All proofs
Project-declaredLean 4.32.1 · mathlib@520045ab

Church theorem general

LO.FirstOrder.Arithmetic.church_theorem_general

Project documentation

Church's theorem, for an arbitrary arithmetic theory T ⊇ 𝗥₀ sound on 𝚺₁ sentences: the set of T-provable sentences is not computable.

Exact Lean statement

theorem church_theorem_general : ¬ComputablePred T.theory

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem church_theorem_general : ¬ComputablePred T.theory := by  by_contra hC  have hQuoteSubst :      Computablefun σ π : ArithmeticSemisentence 1 /[⌜π⌝] : ArithmeticSentence) :=    computable₂_iff_sigma1_simulate (f := substNumeral (V := )) (by definability)      fun σ τ  by simp [Sentence.quote_eq_encode_nat, substNumeral_app_quote]  have hSubst : Computable fun σ : ArithmeticSemisentence 1 /[⌜σ⌝] : ArithmeticSentence) :=    hQuoteSubst.comp Computable.id Computable.id  have hD : ComputablePred (fun σ : ArithmeticSemisentence 1  T ⊬ σ/[⌜σ⌝]) :=    ComputablePred.computable_of_manyOneReducible      (ManyOneReducible.mk (fun σ  T ⊬ σ) hSubst) hC.not  let D :   Prop :=    fun n  (Encodable.decode:= ArithmeticSemisentence 1) n).elim False      (fun σ  T ⊬ σ/[⌜σ⌝])  have hRe : REPred D := by    simpa [D] using REPred.iff_decoded_pred.mp hD.to_re  have hδ : T ⊬ (codeOfREPred D)/[⌜codeOfREPred D⌝]       T  (codeOfREPred D)/[⌜codeOfREPred D⌝] := by    simpa [D, Encodable.encodek, Arithmetic.gödelNumber'_eq_coe_encode]      using rePred_weak_representation (T := T) hRe (x := Encodable.encode (codeOfREPred D))  tauto
Project
Foundation
License
Apache-2.0
Commit
8dcdb3196454
Source
Foundation/FirstOrder/Incompleteness/Church.lean:56-76

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.32.1

Computable Pred iff decoded pred

ComputablePred.iff_decoded_pred

Plain-language statement

Computability of a predicate on a Primcodable type is equivalent to the computability of the corresponding predicate on obtained by decoding.

formal logicmetatheoryproof theory

Source project: Foundation

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.1

Bv quote fixitr

LO.FirstOrder.Arithmetic.Bootstrapping.bv_quote_fixitr

Plain-language statement

bv-pin bridge (over ℕ): bv ⌜fixitr 0 (fvSup χ) ▹ χ⌝ = fvSup χ. - is immediate from quote_univCl_eq + bv_qqAlls (closing fvSup quantifiers reaches a sentence, whose bv is 0). - is by level-factoring: were the body an IsSemiformula j for some j < fvSup, IsSemiformula.sound + castLE-invariance would re-express χ as `γ ⇜ ![...

formal logicmetatheoryproof theory

Source project: Foundation

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.1

Conj

LO.FirstOrder.Arithmetic.Bootstrapping.Derivable.conj

Plain-language statement

Crucial inducion for formalized Σ1\Sigma_1-completeness.

formal logicmetatheoryproof theory

Source project: Foundation

Person-level attribution pending.

View proof record