The areas / V32. Logic, model theory and computability
Mathlib.Logic.Godel.GodelBetaFunction
5 declarations. Mathlib docs · Source
Gödel's Beta Function Lemma
This file proves Gödel's Beta Function Lemma, used to prove the First Incompleteness Theorem. It
permits quantification over finite sequences of natural numbers in formal theories of arithmetic.
This Beta Function has no connection with the unrelated Beta Function defined in analysis. Note
that Nat.beta and Nat.unbeta provide similar functionality to Encodable.encodeList and
Encodable.decodeList. We define these separately, because it is easier to prove that Nat.beta
and Nat.unbeta are arithmetically definable, and this is hard to prove that for
Encodable.encodeList and Encodable.decodeList directly. The arithmetic
definability is needed for the proof of the First Incompleteness Theorem.
Main result
beta_unbeta_coe: Gödel's Beta Function Lemma.
Implementation notes
This code is a step towards eventually including a proof of Gödel's First Incompleteness Theorem and other key results from the repository https://github.com/iehality/lean4-logic.
References
- [R. Kaye, Models of Peano arithmetic][kaye1991]
- https://en.wikipedia.org/wiki/G%C3%B6del%27s_%CE%B2_function
Tags
Gödel, beta function
theorem Nat.chineseRemainderOfFinset.congr_simp E1 #
∀ {ι : Type u_1} (a s : ι → ℕ) (t : Finset ι) (hs : ∀ i ∈ t, s i ≠ 0)
(pp : (↑t).Pairwise (Function.onFun Nat.Coprime s)),
Nat.chineseRemainderOfFinset a s t hs pp = Nat.chineseRemainderOfFinset a s t hs pp
theorem Nat.coprime_mul_succ E1 #
∀ {n m a : ℕ}, m - n ∣ a → (n * a + 1).Coprime (m * a + 1)
def Nat.beta E1 #
ℕ → ℕ → ℕ
Gödel's Beta Function. This is similar to (Encodable.decodeList)[i], but it is easier to
prove that it is arithmetically definable.
def Nat.unbeta E1 #
List ℕ → ℕ
Inverse of Gödel's Beta Function. This is similar to Encodable.encodeList, but it is easier
to prove that it is arithmetically definable.
theorem Nat.beta_unbeta_coe E3 #
∀ (l : List ℕ) (i : Fin l.length), (Nat.unbeta l).beta ↑i = l[i]
Gödel's Beta Function Lemma