Download slides1

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Meaning (philosophy of language) wikipedia , lookup

Quantum logic wikipedia , lookup

Model theory wikipedia , lookup

Axiom of reducibility wikipedia , lookup

Modal logic wikipedia , lookup

History of logic wikipedia , lookup

Propositional calculus wikipedia , lookup

Gödel's incompleteness theorems wikipedia , lookup

Turing's proof wikipedia , lookup

Combinatory logic wikipedia , lookup

Interpretation (logic) wikipedia , lookup

Georg Cantor's first set theory article wikipedia , lookup

Foundations of mathematics wikipedia , lookup

Laws of Form wikipedia , lookup

Cognitive semantics wikipedia , lookup

Law of thought wikipedia , lookup

Truth-bearer wikipedia , lookup

Natural deduction wikipedia , lookup

Mathematical logic wikipedia , lookup

Intuitionistic logic wikipedia , lookup

Theorem wikipedia , lookup

Curry–Howard correspondence wikipedia , lookup

Mathematical proof wikipedia , lookup

Transcript
Proofs and Types
Introduction
Bow-Yaw Wang
Academia Sinica
Spring 2012
Bow-Yaw Wang (Academia Sinica)
Introduction
Spring 2012
1/7
What is Mathematics?
Consider the following equality
27 × 37 = 999.
Clearly, “27 × 37” is not “999.”
I
Both sides have different senses. They are not equal.
On the other hand, the number obtained by computing “27 × 37”
is indeed “999.”
I
Both sides have the same denotation. They are equal.
Given a sentence A, there are two ways of viewing it (by Frege):
I
as a sequence of instructtions, which determine its sense.
F
I
A ∨ B means “A or B.”
as the ideal result found by the instructions. This is denotation.
F
False (f) or True (t).
Bow-Yaw Wang (Academia Sinica)
Introduction
Spring 2012
2/7
Sense and Denotation
The dichotomy of sense and denotation gives the following
association:
I
I
sense, syntax, proofs;
denotation, truth, semantics, algebraic operations.
Denotation has been fruitful in mathematical logic.
I
for example, model theory.
Sense unfortunately has not reached its rival (until, I think, the
influence from computer science).
I
for example, interactive theorem proving.
Bow-Yaw Wang (Academia Sinica)
Introduction
Spring 2012
3/7
Tarski Semantics
In Tarski semantics, we are only interested in the denotation.
For atomic sentences, we assume the denotation is known.
I
I
27 × 37 = 999 is t;
3 × 13 = 37 is f.
The denotation of composed sentences are obtained by the truth
table:
A B A ∧ B A ∨ B A ⇒ B ¬A
f f
f
f
t
t
f
t
t
t
f t
t f
f
t
f
f
t t
t
t
t
f
The denotation of ∀ξ.A is t if for every a in the domain of
interpretation, A[a/ξ] is t. Similarly, ∃ξ.A is t if A[a/ξ] is t for some
a.
Bow-Yaw Wang (Academia Sinica)
Introduction
Spring 2012
4/7
Heyting Semantics
In Heyting semantics, we are interested in witnesses to truth.
Instead of asking “when is A true?”, we ask “what is the proof of
A?”
For atomic sentences, the proofs are intrinsic. For example, the
proof of 27 × 37 = 999 is by calculation.
A proof of A ∧ B is a pair (p, q) where p and q are proofs of A and B
respectively.
A proof of A ∨ B is a pair (i, p) with
I
I
i = 0, and p is a proof of A;
i = 1, and p is a proof of B.
A proof of A ⇒ B is a function f that maps each proof p of A to the
proof f (p) of B.
¬A is treated as A ⇒ ⊥ where ⊥ is a sentence without proof.
A proof of ∀ξ.A is a function f that maps each point a in the
domain of definition to a proof f (a) of A[a/ξ].
A proof of ∃ξ.A is a pair (a, p) where a is in the domain of
definition and p is a proof of A[a/ξ].
Bow-Yaw Wang (Academia Sinica)
Introduction
Spring 2012
5/7
Intuitionistic Logic
Consider the sentence A ∨ ¬A.
In classical logic, A ∨ ¬A is t.
I
It follows from denotation (or Tarski’s semantics).
But this is not clear from a witness’s point of view.
I
I
Do you mean you always have either a proof of A or a proof of ¬A?
If so, give me a proof of P = NP or P 6= NP.
Brouwer’s intuitionistic logic does not accept A ∨ ¬A as an axiom.
I
It coincides with Heyting’s semantics.
Intuitionistic logic is influential in constructive mathematics.
Bow-Yaw Wang (Academia Sinica)
Introduction
Spring 2012
6/7
Interactive Theorem Proving
The interactive theorem prover C OQ is based on intuitionistic
logic.
The theory of C OQ is initially developed by Thierry Coquand and
Gérard Heut.
The tool C OQ has been developed for over 20 years.
In 2004, the proof of four color theorem is formalized in C OQ.
C OQ is used in CompCert.
I
The project CompCert builds formally verified optimizing compiler
for a subset of C programming language.
Bow-Yaw Wang (Academia Sinica)
Introduction
Spring 2012
7/7