+ All Categories
Home > Documents > What is a Proof?

What is a Proof?

Date post: 12-Sep-2021
Category:
Upload: others
View: 5 times
Download: 0 times
Share this document with a friend
181
What is a Proof? Jean Gallier and Kurt W.A.J.H.Y. Reillag CIS, Upenn and Hospices de Beaune 1
Transcript
Page 1: What is a Proof?

What is a Proof?Jean Gallier and

Kurt W.A.J.H.Y. ReillagCIS, Upenn and

Hospices de Beaune

1

Page 2: What is a Proof?

Reillag’s office

2

Page 3: What is a Proof?

Another office

3

Page 4: What is a Proof?

After a bad proof!

4

Page 5: What is a Proof?

Finally, Reillag (young)

5

Page 6: What is a Proof?

Quick History

6

Page 7: What is a Proof?

Quick History

• Formalizing the rules of logic goes back to the Greek.

6

Page 8: What is a Proof?

Quick History

• Formalizing the rules of logic goes back to the Greek.

• Axioms and Syllogisms (Aristotle, 384 BC-322 BC) - All humans are mortal - Socrates is a human - Socrates is mortal.

6

Page 9: What is a Proof?

Quick History

• Formalizing the rules of logic goes back to the Greek.

• Axioms and Syllogisms (Aristotle, 384 BC-322 BC) - All humans are mortal - Socrates is a human - Socrates is mortal.

• Modus Ponens: If (P implies Q) holds and P holds, then Q holds.

6

Page 10: What is a Proof?

Types of Proofs

7

Page 11: What is a Proof?

Types of Proofs

• Proof by intimidation

7

Page 12: What is a Proof?

Types of Proofs

• Proof by intimidation

• Proof by seduction

7

Page 13: What is a Proof?

Types of Proofs

• Proof by intimidation

• Proof by seduction

• Proof by interruption

7

Page 14: What is a Proof?

Types of Proofs

• Proof by intimidation

• Proof by seduction

• Proof by interruption

• Proof by misconception

7

Page 15: What is a Proof?

Types of Proofs

• Proof by intimidation

• Proof by seduction

• Proof by interruption

• Proof by misconception

• Proof by obfuscation

7

Page 16: What is a Proof?

Types of Proofs

• Proof by intimidation

• Proof by seduction

• Proof by interruption

• Proof by misconception

• Proof by obfuscation

• Proof by confusion

7

Page 17: What is a Proof?

Types of Proofs

• Proof by intimidation

• Proof by seduction

• Proof by interruption

• Proof by misconception

• Proof by obfuscation

• Proof by confusion

• Proof by exhaustion

7

Page 18: What is a Proof?

More Types of Proofs

8

Page 19: What is a Proof?

More Types of Proofs

• Proof by passion

8

Page 20: What is a Proof?

More Types of Proofs

• Proof by passion

• Proof by example

8

Page 21: What is a Proof?

More Types of Proofs

• Proof by passion

• Proof by example

• Proof by vigorous handwaving

8

Page 22: What is a Proof?

More Types of Proofs

• Proof by passion

• Proof by example

• Proof by vigorous handwaving

• Proof by cumbersome notation

8

Page 23: What is a Proof?

More Types of Proofs

• Proof by passion

• Proof by example

• Proof by vigorous handwaving

• Proof by cumbersome notation

• Proof by omission

8

Page 24: What is a Proof?

More Types of Proofs

• Proof by passion

• Proof by example

• Proof by vigorous handwaving

• Proof by cumbersome notation

• Proof by omission

• Proof by funding

8

Page 25: What is a Proof?

More Types of Proofs

• Proof by passion

• Proof by example

• Proof by vigorous handwaving

• Proof by cumbersome notation

• Proof by omission

• Proof by funding

• Proof by personal communication

8

Page 26: What is a Proof?

More Types of Proofs

• Proof by passion

• Proof by example

• Proof by vigorous handwaving

• Proof by cumbersome notation

• Proof by omission

• Proof by funding

• Proof by personal communication

• Proof by metaproof, etc.

8

Page 27: What is a Proof?

Proof by intimidation!

9

Page 28: What is a Proof?

Quick History

10

Page 29: What is a Proof?

Quick History

• Cantor (1845-1918) and the birth of set theory

10

Page 30: What is a Proof?

Quick History

• Cantor (1845-1918) and the birth of set theory

• Paradoxes and the “crisis of foundations’’.

10

Page 31: What is a Proof?

Quick History

• Cantor (1845-1918) and the birth of set theory

• Paradoxes and the “crisis of foundations’’.

• Sets that are too big or defined by self-reference

10

Page 32: What is a Proof?

Quick History

• Cantor (1845-1918) and the birth of set theory

• Paradoxes and the “crisis of foundations’’.

• Sets that are too big or defined by self-reference

• Russell’s paradox (1902)

10

Page 33: What is a Proof?

Quick History

• Cantor (1845-1918) and the birth of set theory

• Paradoxes and the “crisis of foundations’’.

• Sets that are too big or defined by self-reference

• Russell’s paradox (1902)

• There is no set of all sets

10

Page 34: What is a Proof?

Truth and Proofs

11

Page 35: What is a Proof?

Truth and Proofs

• Ideally, we would like to know what is truth

11

Page 36: What is a Proof?

Truth and Proofs

• Ideally, we would like to know what is truth

• From the point of view of logic, truth has to do with semantics, i.e., the meaning of statements

11

Page 37: What is a Proof?

Truth and Proofs

• Ideally, we would like to know what is truth

• From the point of view of logic, truth has to do with semantics, i.e., the meaning of statements

• Peter Andrew’s motto: ``Truth is elusive’’

11

Page 38: What is a Proof?

Truth and Proofs

• Ideally, we would like to know what is truth

• From the point of view of logic, truth has to do with semantics, i.e., the meaning of statements

• Peter Andrew’s motto: ``Truth is elusive’’

• ``To truth through proof’’

11

Page 39: What is a Proof?

Truth and Proofs

• Ideally, we would like to know what is truth

• From the point of view of logic, truth has to do with semantics, i.e., the meaning of statements

• Peter Andrew’s motto: ``Truth is elusive’’

• ``To truth through proof’’

• Provable implies true. Easier to study proofs

11

Page 40: What is a Proof?

Hilbert

David Hilbert (1862-1943)

12

Page 41: What is a Proof?

Hilbert Systems

13

Page 42: What is a Proof?

Hilbert Systems

• Hilbert systems have many axioms and few inference rules

13

Page 43: What is a Proof?

Hilbert Systems

• Hilbert systems have many axioms and few inference rules

• The axioms are very unnatural!

13

Page 44: What is a Proof?

Hilbert Systems

• Hilbert systems have many axioms and few inference rules

• The axioms are very unnatural!

• That’s because they are chosen to yield the deduction theorem

13

Page 45: What is a Proof?

Hilbert Systems

• Hilbert systems have many axioms and few inference rules

• The axioms are very unnatural!

• That’s because they are chosen to yield the deduction theorem

• Unfriendly system for humans.

13

Page 46: What is a Proof?

Hilbert Systems

• Hilbert systems have many axioms and few inference rules

• The axioms are very unnatural!

• That’s because they are chosen to yield the deduction theorem

• Unfriendly system for humans.

• Proofs in Hilbert systems are very far from proofs that a human would write

13

Page 47: What is a Proof?

Gentzen’s Systems

14

Page 48: What is a Proof?

Gentzen’s Systems

• Gerhard Gentzen (1909-1945)

14

Page 49: What is a Proof?

Gentzen’s Systems

• Gerhard Gentzen (1909-1945)

• Introduced natural deduction systems and sequent calculi

14

Page 50: What is a Proof?

Gentzen’s Systems

• Gerhard Gentzen (1909-1945)

• Introduced natural deduction systems and sequent calculi

• Trivial axioms, ``natural rules’’

14

Page 51: What is a Proof?

Gentzen’s Systems

• Gerhard Gentzen (1909-1945)

• Introduced natural deduction systems and sequent calculi

• Trivial axioms, ``natural rules’’

• The rules formalize informal r rules of reasoning

14

Page 52: What is a Proof?

Gentzen’s Systems

• Gerhard Gentzen (1909-1945)

• Introduced natural deduction systems and sequent calculi

• Trivial axioms, ``natural rules’’

• The rules formalize informal r rules of reasoning

• Symmetry of the rules

14

Page 53: What is a Proof?

Gentzen’s Systems

• Gerhard Gentzen (1909-1945)

• Introduced natural deduction systems and sequent calculi

• Trivial axioms, ``natural rules’’

• The rules formalize informal r rules of reasoning

• Symmetry of the rules

• Introduction/Elimination

14

Page 54: What is a Proof?

Proofs and Deductions

15

Page 55: What is a Proof?

Proofs and Deductions

• A proof of a proposition, P, does not depend on any assumptions (premises).

15

Page 56: What is a Proof?

Proofs and Deductions

• A proof of a proposition, P, does not depend on any assumptions (premises).

• When we construct a proof, we usually introduce extra premises which are later closed (dismissed, discharged).

15

Page 57: What is a Proof?

Proofs and Deductions

• A proof of a proposition, P, does not depend on any assumptions (premises).

• When we construct a proof, we usually introduce extra premises which are later closed (dismissed, discharged).

• Such an ``unfinished’’ proof is a deduction.

15

Page 58: What is a Proof?

Proofs and Deductions

• A proof of a proposition, P, does not depend on any assumptions (premises).

• When we construct a proof, we usually introduce extra premises which are later closed (dismissed, discharged).

• Such an ``unfinished’’ proof is a deduction.

• We need a mechanism to keep track of closed (discharged) premises (the others are open).

15

Page 59: What is a Proof?

Natural Deduction Rules

• A proof is a tree labeled with propositions

• To prove an implication, , from a list of premises, , do this:

• Add to the list and prove from and .

• When this deduction is finished, we obtain a proof of which does not depend on , so the premise needs to be discharged (closed).

Γ = (P1, . . . , Pn)

P ⇒ Q

ΓP Q

P

P ⇒ Q

P

Γ

P

16

Page 60: What is a Proof?

Natural Deduction Rules

The axioms and inference rules for implicational logic are:

Axioms:

Γ, P

P

The ⇒-elimination rule:

Γ

P ⇒ Q

P

Q

17

Page 61: What is a Proof?

Natural Deduction Rules

xIn the introduction rule, the tag indicates which rule caused the premise, , to be discharged. P

The ⇒-introduction rule:

Γ, P x

Qx

P ⇒ Q

18

Page 62: What is a Proof?

Natural Deduction Rules

xIn the introduction rule, the tag indicates which rule caused the premise, , to be discharged. P

The ⇒-introduction rule:

Γ, P x

Qx

P ⇒ Q

Every tag is associated with a unique rule but several premises can be labeled with the same

tag and all discharged in a single step.

18

Page 63: What is a Proof?

Examples of Proofs(a)

P x

Px

P ⇒ P

So, P ⇒ P is provable; this is the least we should expect from our proofsystem!

(b)

(Q ⇒ R)y

(P ⇒ Q)z P x

Q

Rx

P ⇒ Ry

(Q ⇒ R) ⇒ (P ⇒ R)z

(P ⇒ Q) ⇒ ((Q ⇒ R) ⇒ (P ⇒ R))

19

Page 64: What is a Proof?

Examples of proofs

(c) In the next example, the two occurrences of A labeled x are dischargedsimultaneously.

(A ⇒ (B ⇒ C))z Ax

B ⇒ C

(A ⇒ B)y Ax

B

Cx

A ⇒ Cy

(A ⇒ B) ⇒ (A ⇒ C)z

(

A ⇒ (B ⇒ C))

(

(A ⇒ B) ⇒ (A ⇒ C))

20

Page 65: What is a Proof?

More Examples of Proofs

(d) In contrast to Example (c), in the proof tree below the two occurrencesof A are discharged separately. To this effect, they are labeled differently.

(A ⇒ (B ⇒ C))z Ax

B ⇒ C

(A ⇒ B)y At

B

Cx

A ⇒ Cy

(A ⇒ B) ⇒ (A ⇒ C)z

(

A ⇒ (B ⇒ C))

(

(A ⇒ B) ⇒ (A ⇒ C))

t

A ⇒

(

(

A ⇒ (B ⇒ C))

(

(A ⇒ B) ⇒ (A ⇒ C))

)

21

Page 66: What is a Proof?

Wow, I landed it! (the proof)

22

Page 67: What is a Proof?

Natural Deduction in Sequent-Style

• A different way of keeping track of open premises (undischarged) in a deduction

• The nodes of our trees are now sequents of the form , with

• The variables are pairwise distinct but the premises may be repeated

• We can view the premise as the type of the variable !

Γ → P

Γ = x1 : P1, . . . , xm : Pm

Pi

xi

23

Page 68: What is a Proof?

Natural Deduction in Sequent-Style

The axioms and rules for implication in Gentzen-sequent style:

Γ, x : P → P

Γ, x : P → Q

Γ → P ⇒ Q(⇒-intro)

Γ → P ⇒ Q Γ → P

Γ → Q(⇒-elim)

24

Page 69: What is a Proof?

Redundant ProofsProof Normalization

((R ⇒ R) ⇒ Q)x (R ⇒ R)y

Qx

((R ⇒ R) ⇒ Q) ⇒ Qy

(R ⇒ R) ⇒ (((R ⇒ R) ⇒ Q) ⇒ Q)

Rz

Rz

R ⇒ R

((R ⇒ R) ⇒ Q) ⇒ Q

25

Page 70: What is a Proof?

Redundant ProofsProof Normalization

• When an elimination step immediately follows an introduction step, a proof can be normalized (simplified)

((R ⇒ R) ⇒ Q)x (R ⇒ R)y

Qx

((R ⇒ R) ⇒ Q) ⇒ Qy

(R ⇒ R) ⇒ (((R ⇒ R) ⇒ Q) ⇒ Q)

Rz

Rz

R ⇒ R

((R ⇒ R) ⇒ Q) ⇒ Q

25

Page 71: What is a Proof?

Proof Normalization

• A simpler (normalized) proof:

((R ⇒ R) ⇒ Q)x

Rz

Rz

R ⇒ R

Qx

((R ⇒ R) ⇒ Q) ⇒ Q

26

Page 72: What is a Proof?

Where is that simpler proof?

27

Page 73: What is a Proof?

Pointing at a bad proof!

28

Page 74: What is a Proof?

Normalization and Strong Normalization of Proofs

29

Page 75: What is a Proof?

Normalization and Strong Normalization of Proofs

• In the sixties, Dag Prawitz gave reduction rules.

29

Page 76: What is a Proof?

Normalization and Strong Normalization of Proofs

• In the sixties, Dag Prawitz gave reduction rules.

• He proved that every proof can be reduced to a normal form (normalization).

29

Page 77: What is a Proof?

Normalization and Strong Normalization of Proofs

• In the sixties, Dag Prawitz gave reduction rules.

• He proved that every proof can be reduced to a normal form (normalization).

• In 1971, he proved that every reduction sequence terminates (strong normalization) and that every proof has a unique normal form.

29

Page 78: What is a Proof?

Propositions as types and proofs as simply-typed lambda terms

Γ, x : P → x : P

Γ, x : P → M : Q

Γ → λx : P · M : P ⇒ Q(⇒-intro)

Γ → M : P ⇒ Q Γ → N : P

Γ → MN : Q(⇒-elim)

30

Page 79: What is a Proof?

The Curry-Howard Isomorphism

31

Page 80: What is a Proof?

The Curry-Howard Isomorphism

• Howard (1969) observed that proofs can be represented as terms of the simply-typed lambda-calculus (Church).

31

Page 81: What is a Proof?

The Curry-Howard Isomorphism

• Howard (1969) observed that proofs can be represented as terms of the simply-typed lambda-calculus (Church).

• Propositions can be viewed as types.

31

Page 82: What is a Proof?

The Curry-Howard Isomorphism

• Howard (1969) observed that proofs can be represented as terms of the simply-typed lambda-calculus (Church).

• Propositions can be viewed as types.

• Proof normalization corresponds to lambda-conversion.

31

Page 83: What is a Proof?

The Curry-Howard Isomorphism

• Howard (1969) observed that proofs can be represented as terms of the simply-typed lambda-calculus (Church).

• Propositions can be viewed as types.

• Proof normalization corresponds to lambda-conversion.

31

Page 84: What is a Proof?

The Curry-Howard Isomorphism

• Howard (1969) observed that proofs can be represented as terms of the simply-typed lambda-calculus (Church).

• Propositions can be viewed as types.

• Proof normalization corresponds to lambda-conversion.

• Strong normalization (SN) in the typed lambda-calculus implies SN of proofs.

31

Page 85: What is a Proof?

The Curry-Howard Isomorphism

• Howard (1969) observed that proofs can be represented as terms of the simply-typed lambda-calculus (Church).

• Propositions can be viewed as types.

• Proof normalization corresponds to lambda-conversion.

• Strong normalization (SN) in the typed lambda-calculus implies SN of proofs.

(λx : σ · M)N −→β M [N/x]

31

Page 86: What is a Proof?

Adding the connectives and, or, not

• To deal with negation, we introduce falsity (absurdum), the proposition always false:

• We view , the negation of , as an abbreviation for

¬P P

P ⇒⊥

32

Page 87: What is a Proof?

Rules for and

The ∧-introduction rule:

Γ

P

Q

P ∧ Q

The ∧-elimination rule:

Γ

P ∧ Q

P

Γ

P ∧ Q

Q

33

Page 88: What is a Proof?

Rules for or

The ∨-introduction rule:

Γ

P

P ∨ Q

Γ

Q

P ∨ Q

The ∨-elimination rule:

Γ

P ∨ Q

∆, P x

R

Λ, Qy

Rx,y

R

34

Page 89: What is a Proof?

Rules for negation

The ¬-introduction rule:

Γ, P x

⊥x

¬P

The ¬-elimination rule:

Γ

¬P

P

35

Page 90: What is a Proof?

The Quantifier Rules∀-introduction:

Γ

P [u/t]

∀tP

Here, u must be a variable that does not occur free in any of the propositionsin Γ or in ∀tP ; the notation P [u/t] stands for the result of substituting u for allfree occurrences of t in P .

∀-elimination:

Γ

∀tP

P [τ/t]

Here τ is an arbitrary term and it is assumed that bound variables in P havebeen renamed so that none of the variables in τ are captured after substitution.

36

Page 91: What is a Proof?

The Quantifier Rules∃-introduction:

Γ

P [τ/t]

∃tP

As in ∀-elimination, τ is an arbitrary term and the same proviso on boundvariables in P applies.

∃-elimination:

Γ

∃tP

∆, P [u/t]x

Cx

C

Here, u must be a variable that does not occur free in any of the propositionsin ∆, ∃tP , or C, and all premises P [u/t] labeled x are discharged.

37

Page 92: What is a Proof?

The ``Controversial ’’ Rules

The ⊥-elimination rule:

Γ

P

The proof-by-contradiction rule (also known asreductio ad absurdum rule, for short RAA):

Γ,¬P x

⊥x

P

38

Page 93: What is a Proof?

Problems With Negation

⊥-elimination

¬¬P ⇒ P ¬P ∨ P

39

Page 94: What is a Proof?

Problems With Negation

• The rule is not so bad.⊥-elimination

¬¬P ⇒ P ¬P ∨ P

39

Page 95: What is a Proof?

Problems With Negation

• The rule is not so bad.

• It says that once we have reached an absurdity, then everything goes!

⊥-elimination

¬¬P ⇒ P ¬P ∨ P

39

Page 96: What is a Proof?

Problems With Negation

• The rule is not so bad.

• It says that once we have reached an absurdity, then everything goes!

• RAA is worse! I allows us to prove double negation elimination and the law of the excluded middle:

⊥-elimination

¬¬P ⇒ P ¬P ∨ P

39

Page 97: What is a Proof?

Problems With Negation

• The rule is not so bad.

• It says that once we have reached an absurdity, then everything goes!

• RAA is worse! I allows us to prove double negation elimination and the law of the excluded middle:

⊥-elimination

¬¬P ⇒ P ¬P ∨ P

39

Page 98: What is a Proof?

Problems With Negation

• The rule is not so bad.

• It says that once we have reached an absurdity, then everything goes!

• RAA is worse! I allows us to prove double negation elimination and the law of the excluded middle:

• Constructively, these are problematic!

⊥-elimination

¬¬P ⇒ P ¬P ∨ P

39

Page 99: What is a Proof?

Lack of Constructivity

• The provability of and is equivalent to RAA.

• RAA allows proving disjunctions (and existential statements) that may not be constructive; this means that if is provable, in general, it may not be possible to give a proof of or a proof of

• This lack of constructivity of classical logic led Brouwer to invent intuitionistic logic

¬¬P ⇒ P ¬P ∨ P

A ∨ B

A B

40

Page 100: What is a Proof?

That’s too abstract, give me something concrete!

41

Page 101: What is a Proof?

A non-constructive proof

• Claim: There exist two reals numbers, , both irrational, such that is rational.

• Proof: We know that is irrational. Either

• (1) is rational; , or

• (2) is irrational;

• In (2), we use

• Using the law of the excluded middle, our claim is proved! But, what is ?

a, ba

b

2

2

2

2

2

2

a = b =√

2

a =√

2

2

, b =√

2

(√

2√

2

)√

2 = 2

2

42

Page 102: What is a Proof?

Non-constructive Proofs

• The previous proof is non-constructive.

• It shows that and must exist but it does not produce an explicit solution.

• This proof gives no information as to the irrationality of

• In fact, is irrational, but this is very hard to prove!

• A ``better’’ solution:

2

2

a b

2

2

a =√

2, b = log2 9

43

Page 103: What is a Proof?

Existence proofs are often non-constructive

• Fixed-points Theorems often only assert the existence of a fixed point but provide no method for computing them.

• For example, Brouwer’s Fixed Point Theorem.

• That’s too bad, this theorem is used in the proof of the Nash Equilibrium Theorem!

44

Page 104: What is a Proof?

Intuitionism (Brouwer, Heyting)

45

Page 105: What is a Proof?

Intuitionism (Brouwer, Heyting)

• L E J Brouwer(1881-1966)

45

Page 106: What is a Proof?

Intuitionism (Brouwer, Heyting)

• L E J Brouwer(1881-1966)

• Founder of intuitionism (1907)

45

Page 107: What is a Proof?

Intuitionism (Brouwer, Heyting)

• L E J Brouwer(1881-1966)

• Founder of intuitionism (1907)

• Also important work in topology

45

Page 108: What is a Proof?

A. Heyting

46

Page 109: What is a Proof?

A. Heyting

• Arend Heyting (1898-1980)

46

Page 110: What is a Proof?

A. Heyting

• Arend Heyting (1898-1980)

• Heyting algebras (semantics for intuitionistic logic)

46

Page 111: What is a Proof?

Intuitionistic Logic

• In intuitionistic logic, it is forbidden to use the proof by contradiction rule (RAA)

• As a consequence, no longer implies and is no longer provable (in general)

• The connectives, and, or, implication and negation are independent

• No de Morgan laws

¬¬P P

¬P ∨ P

47

Page 112: What is a Proof?

Intuitionistic Logic

• Fewer propositions are provable (than in classical logic) but proofs are more constructive.

• If a disjunction, , is provable, then a proof of or a proof of can be found.

• Similarly, if is provable, then there is a term, , such that is provable.

• However, the complexity of proof search is higher.

P ∨ Q

P Q

∃tP

τ P [τ/t]

48

Page 113: What is a Proof?

Intuitionistic Logic and Typed lambda-Calculi

49

Page 114: What is a Proof?

Intuitionistic Logic and Typed lambda-Calculi

• Proofs in intuitionistic logic can be represented as certain kinds of lambda-terms.

49

Page 115: What is a Proof?

Intuitionistic Logic and Typed lambda-Calculi

• Proofs in intuitionistic logic can be represented as certain kinds of lambda-terms.

• We now have conjunctive, disjunctive, universal and existential types.

49

Page 116: What is a Proof?

Intuitionistic Logic and Typed lambda-Calculi

• Proofs in intuitionistic logic can be represented as certain kinds of lambda-terms.

• We now have conjunctive, disjunctive, universal and existential types.

• Falsity can be viewed as an ``error type’’

49

Page 117: What is a Proof?

Intuitionistic Logic and Typed lambda-Calculi

• Proofs in intuitionistic logic can be represented as certain kinds of lambda-terms.

• We now have conjunctive, disjunctive, universal and existential types.

• Falsity can be viewed as an ``error type’’

• Strong Normalization still holds, but some subtleties with disjunctive and existential types (permutative reductions)

49

Page 118: What is a Proof?

Higher-order Intuitionistic Logic

50

Page 119: What is a Proof?

Higher-order Intuitionistic Logic

• We allow quantification over functions.

50

Page 120: What is a Proof?

Higher-order Intuitionistic Logic

• We allow quantification over functions.

• The corresponding lambda-calculus is a polymorphic lambda calculus (first invented by J. Y. Girard, systems F and F-omega, 1971)

50

Page 121: What is a Proof?

Higher-order Intuitionistic Logic

• We allow quantification over functions.

• The corresponding lambda-calculus is a polymorphic lambda calculus (first invented by J. Y. Girard, systems F and F-omega, 1971)

• System F was independently discovered by J. Reynolds (1974) for very different reasons.

50

Page 122: What is a Proof?

Higher-order Intuitionistic Logic

• We allow quantification over functions.

• The corresponding lambda-calculus is a polymorphic lambda calculus (first invented by J. Y. Girard, systems F and F-omega, 1971)

• System F was independently discovered by J. Reynolds (1974) for very different reasons.

• Later, even richer typed calculi, the theory of construction (Coquand, Huet)

50

Page 123: What is a Proof?

Proof Search

51

Page 124: What is a Proof?

Proof Search

• Some rules (or-elim, exists-elim) violate the subformula property

51

Page 125: What is a Proof?

Proof Search

• Some rules (or-elim, exists-elim) violate the subformula property

• This makes searching for proofs very expansive

51

Page 126: What is a Proof?

Proof Search

• Some rules (or-elim, exists-elim) violate the subformula property

• This makes searching for proofs very expansive

• Natural deduction systems are not well suited for (automated) proof search

51

Page 127: What is a Proof?

Proof Search

• Some rules (or-elim, exists-elim) violate the subformula property

• This makes searching for proofs very expansive

• Natural deduction systems are not well suited for (automated) proof search

• Gentzen sequent calculi are much better suited for proof search.

51

Page 128: What is a Proof?

Pelikans Proof Searching

52

Page 129: What is a Proof?

Proof Search (Sequent Calculi)

• A Gentzen sequent is a pair of sets of formulae, , where

• The intuitive idea is that if all the propositions in hold, then some proposition in should hold.

• The rules of a Gentzen system break the formulae and into subformulae that may end up on the other side of the arrow

Γ → ∆

Γ = {P1, . . . , Pm} ∆ = {Q1, . . . , Qn}

Γ

Pi Qj

53

Page 130: What is a Proof?

Proof Search (Sequent Calculi)

• In intuitionistic logic, has at most one formula

• In classical propositional logic, every search strategy terminates.

• In intuitionistic propositional logic, there is a search strategy that always terminates.

• In first-order logic (classical, intuitionistic), there is no general search procedure that always terminates (Church’s Theorem).

54

Page 131: What is a Proof?

Triumph Proof Searching

55

Page 132: What is a Proof?

What about Semantics?

56

Page 133: What is a Proof?

What about Semantics?

• For classical propositional logic: truth values semantics ({true, false}).

56

Page 134: What is a Proof?

What about Semantics?

• For classical propositional logic: truth values semantics ({true, false}).

• For intuitionistic propositional logic: Heyting algebras, Kripke models.

56

Page 135: What is a Proof?

What about Semantics?

• For classical propositional logic: truth values semantics ({true, false}).

• For intuitionistic propositional logic: Heyting algebras, Kripke models.

• For classical first-order logic: first-order structures (Tarskian semantics).

56

Page 136: What is a Proof?

What about Semantics?

• For classical propositional logic: truth values semantics ({true, false}).

• For intuitionistic propositional logic: Heyting algebras, Kripke models.

• For classical first-order logic: first-order structures (Tarskian semantics).

• For intuitionistic first-order logic: Kripke models.

56

Page 137: What is a Proof?

Soundness and Completeness

57

Page 138: What is a Proof?

Soundness and Completeness

• Soundness: Every provable formula is valid (has the value true for all interpretations).

57

Page 139: What is a Proof?

Soundness and Completeness

• Soundness: Every provable formula is valid (has the value true for all interpretations).

• A proof system must be sound or else it is garbage!

57

Page 140: What is a Proof?

Soundness and Completeness

• Soundness: Every provable formula is valid (has the value true for all interpretations).

• A proof system must be sound or else it is garbage!

• Completeness: Every valid formula is provable.

57

Page 141: What is a Proof?

Soundness and Completeness

• Soundness: Every provable formula is valid (has the value true for all interpretations).

• A proof system must be sound or else it is garbage!

• Completeness: Every valid formula is provable.

• Completeness is desirable but not always possible.

57

Page 142: What is a Proof?

Completeness: Good News

58

Page 143: What is a Proof?

Completeness: Good News

• The systems I presented are all sound and complete.

58

Page 144: What is a Proof?

Completeness: Good News

• The systems I presented are all sound and complete.

• Godel (completeness theorem for classical logic)

58

Page 145: What is a Proof?

Completeness: Good News

• The systems I presented are all sound and complete.

• Godel (completeness theorem for classical logic)

• Kripke (completeness theorem for intuitionistic logic)

58

Page 146: What is a Proof?

Completeness: Good News

• The systems I presented are all sound and complete.

• Godel (completeness theorem for classical logic)

• Kripke (completeness theorem for intuitionistic logic)

• Classical Propositional validity: decidable.

58

Page 147: What is a Proof?

Completeness: Good News

• The systems I presented are all sound and complete.

• Godel (completeness theorem for classical logic)

• Kripke (completeness theorem for intuitionistic logic)

• Classical Propositional validity: decidable.

• Intuitionistic Propositional validity: decidable

58

Page 148: What is a Proof?

Completeness: Bad News!

59

Page 149: What is a Proof?

Completeness: Bad News!

• Complexity of classical prop. validity: co-NP complete (Cook, Karp, 1970)

59

Page 150: What is a Proof?

Completeness: Bad News!

• Complexity of classical prop. validity: co-NP complete (Cook, Karp, 1970)

• Complexity of intuitionistic prop. validity: P-space complete! (Statman, 1979)

59

Page 151: What is a Proof?

Completeness: Bad News!

• Complexity of classical prop. validity: co-NP complete (Cook, Karp, 1970)

• Complexity of intuitionistic prop. validity: P-space complete! (Statman, 1979)

• The decision problem (validity problem) for first-order (classical) logic is undecidable (Church, 1936)

59

Page 152: What is a Proof?

Completeness: Bad News!

• Complexity of classical prop. validity: co-NP complete (Cook, Karp, 1970)

• Complexity of intuitionistic prop. validity: P-space complete! (Statman, 1979)

• The decision problem (validity problem) for first-order (classical) logic is undecidable (Church, 1936)

• Decision problem for intuitionistic logic also undecidable (double negation translation)

59

Page 153: What is a Proof?

Kurt Godel (1906-1978)(Right: with A. Einstein)

60

Page 154: What is a Proof?

Alonzo Church (1903-1995)

61

Page 155: What is a Proof?

Proof Search in Classical Logic

62

Page 156: What is a Proof?

Proof Search in Classical Logic

• Herbrand’s idea: Reduce the provability of a first-order formula to the provability of a quantifier-free conjunction of substitution instances of this formula.

62

Page 157: What is a Proof?

Proof Search in Classical Logic

• Herbrand’s idea: Reduce the provability of a first-order formula to the provability of a quantifier-free conjunction of substitution instances of this formula.

• Normal forms become crucial: conjunctive normal form (cnf), negation normal form (nnf)

62

Page 158: What is a Proof?

Proof Search in Classical Logic

• Herbrand’s idea: Reduce the provability of a first-order formula to the provability of a quantifier-free conjunction of substitution instances of this formula.

• Normal forms become crucial: conjunctive normal form (cnf), negation normal form (nnf)

• Nice formulation of Herbrand’s Theorem for formulae in nnf due to Peter Andrews

62

Page 159: What is a Proof?

Substitutions, Unification

• Roughly speaking, compound instances are obtained by recursively substituting terms for variables in subformulae.

• It turns out that the crux of the method is to find substitutions so that

• where are atomic formulae occurring with opposite signs

σ(Pi) = σ(Pj)

Pi, Pj

63

Page 160: What is a Proof?

Unification Procedures

64

Page 161: What is a Proof?

Unification Procedures

• Such substitutions are called unifiers

64

Page 162: What is a Proof?

Unification Procedures

• Such substitutions are called unifiers

• For efficiency reasons, it is important to find most general unifiers (mgu’s)

64

Page 163: What is a Proof?

Unification Procedures

• Such substitutions are called unifiers

• For efficiency reasons, it is important to find most general unifiers (mgu’s)

• mgu’s always exist. There are efficient algorithms for finding them (Martelli-Montanari, Paterson and Wegman)

64

Page 164: What is a Proof?

Unification Procedures

• Such substitutions are called unifiers

• For efficiency reasons, it is important to find most general unifiers (mgu’s)

• mgu’s always exist. There are efficient algorithms for finding them (Martelli-Montanari, Paterson and Wegman)

• Higher-order unification is also of great interest, but undecidable in general!

64

Page 165: What is a Proof?

Some Theorem Provers and Proof Assistants

• Isabelle

• COQ (Benjamin Pierce is writing two books that make use of COQ)

• TPS

• NUPRL

• PVS

• Agda

• Twelf

65

Page 166: What is a Proof?

Other Logics?

66

Page 167: What is a Proof?

Other Logics?

• One will note that in a deduction (natural or Gentzen sequent style), the same premise can be used as many times as needed.

66

Page 168: What is a Proof?

Other Logics?

• One will note that in a deduction (natural or Gentzen sequent style), the same premise can be used as many times as needed.

• Girard (and Lambeck earlier) had the idea to restrict the use of premises (charge for multiple use).

66

Page 169: What is a Proof?

Other Logics?

• One will note that in a deduction (natural or Gentzen sequent style), the same premise can be used as many times as needed.

• Girard (and Lambeck earlier) had the idea to restrict the use of premises (charge for multiple use).

• This leads to logics where the connectives have a double identity: additive or multiplicative.

66

Page 170: What is a Proof?

Finer Logics: Linear Logic, ...

67

Page 171: What is a Proof?

Finer Logics: Linear Logic, ...

• linear logic, invented by Girard, achieves much finer control over the use of premises.

67

Page 172: What is a Proof?

Finer Logics: Linear Logic, ...

• linear logic, invented by Girard, achieves much finer control over the use of premises.

• The notion of proof becomes more general: proof nets (certain types of graphs)

67

Page 173: What is a Proof?

Finer Logics: Linear Logic, ...

• linear logic, invented by Girard, achieves much finer control over the use of premises.

• The notion of proof becomes more general: proof nets (certain types of graphs)

• linear logic can be viewed as an attempt to deal with resources and parallelism

67

Page 174: What is a Proof?

Finer Logics: Linear Logic, ...

• linear logic, invented by Girard, achieves much finer control over the use of premises.

• The notion of proof becomes more general: proof nets (certain types of graphs)

• linear logic can be viewed as an attempt to deal with resources and parallelism

• Negation is an involution

67

Page 175: What is a Proof?

Special Purpose Logics: Temporal, ...

68

Page 176: What is a Proof?

Special Purpose Logics: Temporal, ...

• From a practical point of view, it is very fruitful to design logics with intented semantics, such as time, concurrency, ...

68

Page 177: What is a Proof?

Special Purpose Logics: Temporal, ...

• From a practical point of view, it is very fruitful to design logics with intented semantics, such as time, concurrency, ...

• Temporal logic deals with time (A. Pnueli)

68

Page 178: What is a Proof?

Special Purpose Logics: Temporal, ...

• From a practical point of view, it is very fruitful to design logics with intented semantics, such as time, concurrency, ...

• Temporal logic deals with time (A. Pnueli)

• Process logic (Manna, Pnueli)

68

Page 179: What is a Proof?

Special Purpose Logics: Temporal, ...

• From a practical point of view, it is very fruitful to design logics with intented semantics, such as time, concurrency, ...

• Temporal logic deals with time (A. Pnueli)

• Process logic (Manna, Pnueli)

• Dynamic logic (Harel, Pratt)

68

Page 180: What is a Proof?

Special Purpose Logics: Temporal, ...

• From a practical point of view, it is very fruitful to design logics with intented semantics, such as time, concurrency, ...

• Temporal logic deals with time (A. Pnueli)

• Process logic (Manna, Pnueli)

• Dynamic logic (Harel, Pratt)

• The world of logic is alive and well!

68

Page 181: What is a Proof?

Searching for that proof!

69


Recommended