Gödel completeness theorem
ProvedFlypitch.godel_completeness_theoremlogicmodel-theoryset-theory
Gödel's completeness theorem for the Flypitch first-order calculus. Let be a first-order language, a theory (a set of sentences of ), and a sentence of . Then is provable from if and only if is semantically entailed by :
Here is the Hilbert-style provability judgment and ranges over all ordinary (two-valued) models. This is the bridge between syntax and semantics on which the development rests: it lets unprovability be established by exhibiting a countermodel.
Formalization Note. Provability from a sentence theory is SentTheory.sprovable (notation ⊢ₛ'); semantic entailment is Fol.ssatisfied.
Preamble
import Definitions.Def_CH_Cohen_Library10 open Fol
Formal statement
namespace Flypitch
theorem godel_completeness_theorem {L : Language} (T : SentTheory L) (ψ : sentence L) :
(T ⊢ₛ' ψ) ↔ ssatisfied T ψ := by sorry
end FlypitchSource
J. M. Han and F. van Doorn, Flypitch project, src/summary.lean (https://github.com/flypitch/flypitch/blob/master/src/summary.lean); Lean 4 port https://github.com/ianklatzco/flypitch/blob/ad649f89e9f3107b7e2ea97a58b2eafdfc80b815/flypitch4/Flypitch4/Summary.lean ; cf. Han–van Doorn, 'A Formal Proof of the Independence of the Continuum Hypothesis', CPP 2020, https://doi.org/10.1145/3372885.3373826 . Theorem `godel_completeness_theorem` in summary.lean.