Zulip Chat Archive
Stream: maths
Topic: Gödel's Incompleteness Theorem
Palalansoukî (Sep 04 2024 at 15:55):
Last year, I completed a formal proof of Gödel's first incompleteness theorem, and this time, I have finished formalizing the proof of second incompleteness theorem. I proved that a theory , which is stronger than , -definable, and has as a model, cannot prove or disprove a statement asserting its own consistency:
theorem goedel_second_incompleteness [𝐈𝚺₁ ≼ T] [T.Delta1Definable] [System.Consistent T] :
T ⊬ ↑𝗖𝗼𝗻
theorem consistent_undecidable [𝐈𝚺₁ ≼ T] [T.Delta1Definable] [ℕ ⊧ₘ* T] :
System.Undecidable T ↑𝗖𝗼𝗻
The formal proof of G2 has already been done using Isabelle, but my result is stronger. The result in Isabelle is based on the theory of hereditary finite sets (), which is equivalent to Peano arithmetic, but I proved it for a weaker theory, . This is likely the first formalization.
I also showed a stronger result on the first incompleteness theorem than before, proving the incompleteness of Cobham's . is a theory of arithmetic weaker than Robinson's , known as the weakest theory where essential incompleteness holds. This is also likely the first formalization of this.
theorem goedel_first_incompleteness [𝐑₀ ≼ T] [T.Delta1Definable] [Sigma1Sound T] :
¬System.Complete T
In addition, there are several important theorems as byproducts, which I hope to include in mathlib in the future.
- The exponential function's graph can be expressed by a -formula of arithmetic.
- .
There are a few things to note. First, the definition of the arithmetical hierarchy differs slightly from the standard one. Typically, /-formula is defined as a formula with quantifiers alternating times starting with /, but in my formalization, / is defined as those closed by //bounded quantifiers. However, since it is known that , there is no issue in terms of the provability strength of .
Also, I adopted Tait-calculus as a proof system. Tait-calculus has fewer inference rules, making the formalization easier to handle, but the formulas themselves must satisfy the De Morgan rules. Because of this, it is not directly compatible with ModelTheory
in mathlib.
Adam Topaz (Sep 04 2024 at 16:05):
Congratulations! This is really great!
Aaron Anderson (Sep 05 2024 at 00:30):
Just checking what you mean by saying "the formulas themselves must satisfy the De Morgan rules" - do you mean that you're requiring that not
/neg
isn't part of the inductive definition?
Palalansoukî (Sep 05 2024 at 02:26):
That's right. Formulas are defined as
and negation is defined inductively.
Also in ModelTheory
the equality symbol is always included in the atomic formula, but not in my formalization. However, it would be possible to define appropriate translations between each other.
David Michael Roberts (Sep 05 2024 at 06:26):
Cool! Could you say what the language and axioms for R_0 are in the usual mathematical vernacular? I guess this is the formal definition: https://github.com/FormalizedFormalLogic/Foundation/blob/41ecee31d573798ea47f005189841c76041090b5/Logic/FirstOrder/Arith/Theory.lean#L21-L26
I think I'm most mystified by leastNumber
...
Palalansoukî (Sep 05 2024 at 06:52):
In my formalization, Language of is , and consists of axioms of equality and following infinite axioms.
for all
for all
for all , such that
for all
is a numeral of , defined as
leastNumber
is the least number principle , but it is just defined and not used.
Nir Paz (Sep 08 2024 at 16:26):
This is really cool!
Could you explain why the exponential function's graph is sigma 0? I can't figure it out
Palalansoukî (Sep 08 2024 at 16:47):
Technically, the proof is quite complex. The core of the proof is to use the definition of exponential () by prefix induction used by Buss.
The proof can be found in Logical Foundations of Proof Complexity by Cook & Nguyen or Metamathematics of First-Order Arithmetic by Hajek & Pudlak.
Palalansoukî (Sep 20 2024 at 12:32):
I opened a PR to update the Freek's list. #16968
Last updated: May 02 2025 at 03:31 UTC