Gdels Incompleteness Theorems Andrei Popescu Dmitriy Traytel e - - PowerPoint PPT Presentation

g del s incompleteness theorems
SMART_READER_LITE
LIVE PREVIEW

Gdels Incompleteness Theorems Andrei Popescu Dmitriy Traytel e - - PowerPoint PPT Presentation

A Formally Verified Abstract Account of Gdels Incompleteness Theorems Andrei Popescu Dmitriy Traytel e HOL l l e b a s I = Gdels Incompleteness Theorems 1931 Gdels Incompleteness Theorems 1931


slide-1
SLIDE 1

A Formally Verified Abstract Account

  • f

Gödel’s Incompleteness Theorems

Andrei Popescu Dmitriy Traytel

λ → ∀

=

I s a b e l l e

β α

HOL

slide-2
SLIDE 2

Gödel’s Incompleteness Theorems 1931

slide-3
SLIDE 3

Gödel’s Incompleteness Theorems 1931 Fix a consistent logical theory that

  • contains enough arithmetic,
  • can itself be arithmetized.
slide-4
SLIDE 4

Gödel’s Incompleteness Theorems 1931 There are sentences that the theory cannot decide (i.e., neither prove nor disprove).

Fix a consistent logical theory that

  • contains enough arithmetic,
  • can itself be arithmetized.
slide-5
SLIDE 5

Gödel’s Incompleteness Theorems 1931 There are sentences that the theory cannot decide (i.e., neither prove nor disprove).

Fix a consistent logical theory that

  • contains enough arithmetic,
  • can itself be arithmetized.

The theory cannot prove (an internal formulation of) its own consistency.

slide-6
SLIDE 6

Pen and Paper Proofs of and

slide-7
SLIDE 7

Pen and Paper Proofs of and

… … … …

slide-8
SLIDE 8

Pen and Paper Proofs of and

The reader who does not like incomplete and (apparently) irremediably messy proofs of syntactic facts may wish to skim over the rest of this chapter and take it for granted that …

… … … …

slide-9
SLIDE 9

Formal Verifications of and

slide-10
SLIDE 10

Formal Verifications of and

Paulson 2015 Isabelle O’Connor 2005 Coq Harrison 2004 HOL Light Shankar 1986 NQTHM 1978 TEM Sieg

slide-11
SLIDE 11

End of story

slide-12
SLIDE 12

End of story?

slide-13
SLIDE 13

End of story?

slide-14
SLIDE 14

Formal Verifications of and

Shared structure

slide-15
SLIDE 15
  • Fix a particular logic: Classical FOL

Formal Verifications of and

Shared structure

slide-16
SLIDE 16
  • Fix a particular logic: Classical FOL
  • Fix a particular theory (+ finite extensions of it)
  • Arithmetic (Harrison, O’Connor)
  • Hereditarily finite set theory (Sieg, Shankar, Paulson)

Formal Verifications of and

Shared structure

slide-17
SLIDE 17
  • Fix a particular logic: Classical FOL
  • Fix a particular theory (+ finite extensions of it)
  • Arithmetic (Harrison, O’Connor)
  • Hereditarily finite set theory (Sieg, Shankar, Paulson)

Formal Verifications of and

Shared structure

slide-18
SLIDE 18
  • Fix a particular logic: Classical FOL
  • Fix a particular theory (+ finite extensions of it)
  • Arithmetic (Harrison, O’Connor)
  • Hereditarily finite set theory (Sieg, Shankar, Paulson)
  • Tour de force for the particular combination

Formal Verifications of and

Shared structure

slide-19
SLIDE 19
  • Fix a particular logic: Classical FOL
  • Fix a particular theory (+ finite extensions of it)
  • Arithmetic (Harrison, O’Connor)
  • Hereditarily finite set theory (Sieg, Shankar, Paulson)
  • Tour de force for the particular combination

Formal Verifications of and

Shared structure Scope of and remains largely unexploded

slide-20
SLIDE 20
  • Fix a particular logic: Classical FOL
  • Fix a particular theory (+ finite extensions of it)
  • Arithmetic (Harrison, O’Connor)
  • Hereditarily finite set theory (Sieg, Shankar, Paulson)
  • Tour de force for the particular combination

Formal Verifications of and

Shared structure Scope of and remains largely unexploded E.g. do they hold for Intuitionistic FOL, HOL, CIC?

slide-21
SLIDE 21

Our Motto:

slide-22
SLIDE 22

Our Motto: Don’t Fix, Gather!

slide-23
SLIDE 23

Our Contributions

slide-24
SLIDE 24

Our Contributions

  • Abstract

formalization of and

  • Answer “What must/may a logic/theory offer?”
  • Understand variants and distill trade-offs from the literature
  • Correct a mistake in a pen and paper proof
λ → ∀ =

I s a b e l l e

β α HOL
slide-25
SLIDE 25

Our Contributions

  • Abstract

formalization of and

  • Answer “What must/may a logic/theory offer?”
  • Understand variants and distill trade-offs from the literature
  • Correct a mistake in a pen and paper proof
λ → ∀ =

I s a b e l l e

β α HOL
  • Concrete instantiation to hereditarily finite set theory
  • Reproduce (for

) and improve (for ) Paulson’s formalization

slide-26
SLIDE 26

What must a logic/theory offer?

Generic Syntax Connectives Provability Relation Numerals

slide-27
SLIDE 27

What must a logic/theory offer?

Generic Syntax Connectives Provability Relation Numerals Classical Logic

What may a logic/theory offer?

Order-like Relation Proofs Encodings Represent- ability Derivability Conditions Standard Model Soundness Consistency Omega- Consistency Completeness

  • f Provability

Proofs vs. Provability

slide-28
SLIDE 28

Generic Syntax

slide-29
SLIDE 29
  • sets: Var, Term, Fmla with Var⊆Term

Generic Syntax

slide-30
SLIDE 30
  • sets: Var, Term, Fmla with Var⊆Term
  • operators:

FV_Term : Term → 2Var FV : Fmla → 2Var subst_Term : Term → Var → Term → Term subst : Fmla → Var → Term → Fmla Generic Syntax

slide-31
SLIDE 31
  • sets: Var, Term, Fmla with Var⊆Term
  • operators:

FV_Term : Term → 2Var FV : Fmla → 2Var subst_Term : Term → Var → Term → Term subst : Fmla → Var → Term → Fmla

  • properties, e.g.:

x∈FV(φ) implies FV(subst φ x s) = FV(φ) - {x} ∪ FV_Term(s) Generic Syntax

slide-32
SLIDE 32
  • sets: Var, Term, Fmla with Var⊆Term
  • operators:

FV_Term : Term → 2Var FV : Fmla → 2Var subst_Term : Term → Var → Term → Term subst : Fmla → Var → Term → Fmla

  • properties, e.g.:

x∈FV(φ) implies FV(subst φ x s) = FV(φ) - {x} ∪ FV_Term(s) Generic Syntax

We require unary substitution only. We derive parallel substitution from it.

slide-33
SLIDE 33

Connectives

slide-34
SLIDE 34
  • operators:

≡ : Term → Term → Fmla →, ∧, ∨ : Fmla → Fmla → Fmla ¬ : Fmla → Fmla ⊥, ⊤ : Fmla ∃, ∀ : Var → Fmla → Fmla Connectives

slide-35
SLIDE 35
  • operators:

≡ : Term → Term → Fmla →, ∧, ∨ : Fmla → Fmla → Fmla ¬ : Fmla → Fmla ⊥, ⊤ : Fmla ∃, ∀ : Var → Fmla → Fmla Connectives

We require a minimal list w.r.t. intuitionistic deduction and define the rest.

Note: operators, not constructors

slide-36
SLIDE 36
  • unary relation:

⊢ ⊆ Fmla we write ⊢φ if φ ∈ ⊢

  • properties:

⊢ contains the standard (Hilbert-style) intuitionistic FOL axioms about the connectives Provability Relation

slide-37
SLIDE 37
  • unary relation:

⊢ ⊆ Fmla we write ⊢φ if φ ∈ ⊢

  • properties:

⊢ contains the standard (Hilbert-style) intuitionistic FOL axioms about the connectives Provability Relation

  • nonempty set:

Num ⊆ Fmla0 Numerals

slide-38
SLIDE 38
  • property: ⊢ ¬ ¬ φ → φ

Classical Logic

slide-39
SLIDE 39
  • property: ⊢ ¬ ¬ φ → φ

Classical Logic Order-like Relation

  • formula: ≺ ∈ Fmla2
  • properties, e.g.:

for all φ∈Fmla1 and n∈Num, if ⊢φ(m) for all m∈Num, then ⊢∀x. x≺n → φ(x)

slide-40
SLIDE 40
  • property: ⊢ ¬ ¬ φ → φ

Classical Logic Order-like Relation

  • formula: ≺ ∈ Fmla2
  • properties, e.g.:

for all φ∈Fmla1 and n∈Num, if ⊢φ(m) for all m∈Num, then ⊢∀x. x≺n → φ(x)

  • set: Proof
  • binary relation: ⊩ ∈ Proof×Fmla

we write p⊩φ if (p,φ)∈⊩ Proofs

slide-41
SLIDE 41
  • formulas subst, ⊩, ¬
  • property:

behave like operators/relations (subst, ⊩, ¬) on encodings

  • operators:

⟨_⟩ : Fmla → Num and ⟨_⟩ : Proof → Num Encodings Represent- ability

slide-42
SLIDE 42
  • formulas subst, ⊩, ¬
  • property:

behave like operators/relations (subst, ⊩, ¬) on encodings

  • operators:

⟨_⟩ : Fmla → Num and ⟨_⟩ : Proof → Num Encodings

  • property: ⊬⊥

Consistency Represent- ability

slide-43
SLIDE 43
  • formulas subst, ⊩, ¬
  • property:

behave like operators/relations (subst, ⊩, ¬) on encodings

  • operators:

⟨_⟩ : Fmla → Num and ⟨_⟩ : Proof → Num Encodings

  • property: ⊬⊥

Consistency

  • property: For all φ∈Fmla1,

if ⊢¬φ(n) for all n∈Num then ⊬¬¬(∃x.φ(x)) Omega- Consistency Represent- ability

slide-44
SLIDE 44

What must a logic/theory offer?

Generic Syntax Connectives Provability Relation Numerals Classical Logic

What may a logic/theory offer?

Order-like Relation Proofs Encodings Represent- ability Derivability Conditions Standard Model Soundness Consistency Omega- Consistency Completeness

  • f Provability

Proofs vs. Provability

slide-45
SLIDE 45

Proofs Encodings Represent- ability Derivability Conditions Omega- Consistency subst, ⊩ ⊢φ implies ⊢⊢⟨φ⟩

There exists φ∈Fmla0 such that ⊬φ and ⊬¬φ

slide-46
SLIDE 46

Proofs Encodings Represent- ability Derivability Conditions subst, ⊩ ⊢φ implies ⊢⊢⟨φ⟩

There exists φ∈Fmla0 such that ⊬φ and ⊬¬φ

Consistency

Rosser’s Trick a la Rosser

slide-47
SLIDE 47

Proofs Encodings Represent- ability Derivability Conditions subst, ⊩ ⊢φ implies ⊢⊢⟨φ⟩

There exists φ∈Fmla0 such that ⊬φ and ⊬¬φ

Consistency

Rosser’s Trick

¬

a la Rosser

slide-48
SLIDE 48

Proofs Encodings Represent- ability Derivability Conditions subst, ⊩ ⊢φ implies ⊢⊢⟨φ⟩

There exists φ∈Fmla0 such that ⊬φ and ⊬¬φ

Consistency

Rosser’s Trick

Order-like Relation ¬

a la Rosser

slide-49
SLIDE 49

Encodings Represent- ability Derivability Conditions subst ⊢φ implies ⊢⊢⟨φ⟩

There exists φ∈Fmla0 such that ⊬φ and ⊬¬φ and φ is true in the standard model

semantic

⊢⊢⟨φ⟩ implies ⊢φ Standard Model Soundness Completeness

  • f Provability

Proofs vs. Provability

slide-50
SLIDE 50

Encodings Represent- ability Derivability Conditions subst ⊢φ implies ⊢⊢⟨φ⟩

There exists φ∈Fmla0 such that ⊬φ and ⊬¬φ

classical

⊢⊢⟨φ⟩ implies ⊢φ Classical Logic Consistency

slide-51
SLIDE 51

Encodings Represent- ability Derivability Conditions subst ⊢φ implies ⊢⊢⟨φ⟩

⊬¬⊢⟨⊥⟩

Consistency ⊢⊢⟨φ⟩∧⊢⟨φ→ψ⟩→⊢⟨ψ⟩ ⊢⊢⟨φ⟩→⊢⟨⊢⟨φ⟩⟩

slide-52
SLIDE 52

Encodings Represent- ability Derivability Conditions subst ⊢φ implies ⊢⊢⟨φ⟩

⊬¬⊢⟨⊥⟩

Consistency ⊢⊢⟨φ⟩∧⊢⟨φ→ψ⟩→⊢⟨ψ⟩ ⊢⊢⟨φ⟩→⊢⟨⊢⟨φ⟩⟩

In the paper: Jeroslow’s “improvement" to remove this condition results in weaker conclusion + mistake in proof

slide-53
SLIDE 53
slide-54
SLIDE 54

12000 LOC

λ → ∀

=

I s a b e l l e

β α

H O L

slide-55
SLIDE 55

From Abstract to Concrete

Generic Syntax Connectives Provability Relation Numerals

Verified instances

  • Robinson’s Arithmetic (Q)
  • Hereditarily finite set theory
slide-56
SLIDE 56

From Abstract to Concrete

classical semantic

Instantiations of with Paulson’s HF set theory.

slide-57
SLIDE 57

From Abstract to Concrete

classical semantic

Instantiations of with Paulson’s HF set theory.

12000 LOC

λ → ∀

=

I s a b e l l e

β α

H O L

12000 LOC

slide-58
SLIDE 58

From Abstract to Concrete

classical semantic

Instantiations of with Paulson’s HF set theory.

Paulson assumes soundness (and redundantly consistency!) We removed the soundness assumption from the instantiation of → strictly stronger result → required us to replace “easy” semantic proofs with tedious x → proofs in the HF calculus (no help from the abstract side here) 12000 LOC

λ → ∀

=

I s a b e l l e

β α

H O L

12000 LOC

slide-59
SLIDE 59

From Abstract to Concrete

classical semantic

Instantiations of with Paulson’s HF set theory.

Paulson assumes soundness (and redundantly consistency!) We removed the soundness assumption from the instantiation of → strictly stronger result → required us to replace “easy” semantic proofs with tedious x → proofs in the HF calculus (no help from the abstract side here) 12000 LOC

λ → ∀

=

I s a b e l l e

β α

H O L

12000 LOC

  • 5000 LOC
slide-60
SLIDE 60

From Abstract to Concrete

classical semantic

Instantiations of with Paulson’s HF set theory.

Paulson assumes soundness (and redundantly consistency!) We removed the soundness assumption from the instantiation of → strictly stronger result → required us to replace “easy” semantic proofs with tedious x → proofs in the HF calculus (no help from the abstract side here) 12000 LOC

λ → ∀

=

I s a b e l l e

β α

H O L

12000 LOC

  • 5000 LOC

+5000 LOC

slide-61
SLIDE 61

Conclusion

  • Abstract

formalization of and

  • Answer “What must/may a logic/theory offer?”
  • Understand variants and distill trade-offs from the literature
  • Correct a mistake in a pen and paper proof
  • Concrete instantiation to hereditarily finite set theory
  • Reproduce (for

) and improve (for ) Paulson’s formalization

  • Still unanswered/future work
  • Do

and hold for Intuitionistic FOL, HOL, CIC?

  • Can we do more on the abstract level? (e.g. derivability conditions)
λ → ∀ =

I s a b e l l e

β α HOL
slide-62
SLIDE 62

Conclusion

  • Abstract

formalization of and

  • Answer “What must/may a logic/theory offer?”
  • Understand variants and distill trade-offs from the literature
  • Correct a mistake in a pen and paper proof
  • Concrete instantiation to hereditarily finite set theory
  • Reproduce (for

) and improve (for ) Paulson’s formalization

  • Still unanswered/future work
  • Do

and hold for Intuitionistic FOL, HOL, CIC?

  • Can we do more on the abstract level? (e.g. derivability conditions)
λ → ∀ =

I s a b e l l e

β α HOL

Thank you! Questions?

slide-63
SLIDE 63

A Formally Verified Abstract Account

  • f

Gödel’s Incompleteness Theorems

Andrei Popescu Dmitriy Traytel

λ → ∀

=

I s a b e l l e

β α

HOL