An interactive illustration of the proof of Gödel's completeness theorem for first-order predicate calculus.
Gödel's completeness theorem states: if a set of formulas \(\Gamma\) is consistent, then it has a model. The proof constructively builds this model in three steps.
This same completeness theorem is why second-order arithmetic, taken as a formal system, stays first-order: its models turn out to be general (Henkin) structures, in which the second sort is an arbitrary family of “sets” rather than the genuine power set \(\mathcal{P}(\mathbb{N})\). What follows from that for \(\mathsf{ACA}_0\), \(\mathsf{Z}_2\) and categoricity is examined in «Hierarchy of Second-Order Arithmetic Theories».
The example on this page. The language \(\mathcal{L} = \{=,\,{<},\,0\}\) with the theory of a linear order and the minimality axiom \(\forall x\,(0{=}x \vee 0{<}x)\). The constant \(0\) gives the first closed term, so the Henkin construction starts right away: already in \(\mathcal{L}_0\) the formula \(\exists x\,(0{<}x)\) makes sense. The slider n controls the number of iterations of the language extension, the slider k — the number of Lindenbaum steps.
↓ Full text of the proof of Gödel's completeness theorem (PDF)On the map of mathematical foundations (MathLogic Nexus): Completeness Theorem · Lindenbaum Algebra