We study various formulations of the completeness of firstorder logic phrased in constructive type theory and mechanised in the Coq proof assistant. Specifically, we examine the completeness of variants of classical and intuitionistic natural deduction and sequent calculi with respect to model-theoretic, algebraic, and game-theoretic semantics. As completeness with respect to the standard model-theoretic semantics à la Tarski and Kripke is not readily constructive, we analyse connections of completeness theorems to Markov's Principle and Weak Kőnig's Lemma and discuss non-standard semantics admitting assumption-free completeness. We contribute a reusable Coq library for first-order logic containing all results covered in this paper. 1 Accepted in Russian constructivism while in conflict with Brouwer's intuitionism arXiv:2006.04399v1 [cs.LO] 8 Jun 2020 Fact 6. T and F are data types and Γ ϕ and Γ c ϕ are enumerable. Proof. By the techniques discussed in [16], e.g. Fact 3.19. The standard model-theoretic completeness proofs analysed in Section 3 require the assumption of Markov's Principle. A proposition P : P is called stable if ¬¬P → P and, analogously, a predicate p : X → P is called stable if p x is stable for all x. A synthetic version of Markov's Principle states that satisfiability of Boolean sequences is stable (cf. [51]): MP := ∀f : N → B. ¬¬(∃n. f n = tt) → ∃n. f n = tt Note that MP is trivially implied by Excluded Middle EM := ∀P : P. P ∨ ¬P . Moreover, MP regulates the behaviour of computationally tractable predicates: Fact 7. MP holds iff all enumerable predicates on discrete types are stable. Proof. The direction from left to right is Fact 2.18 in [16]. For the reverse direction assume that enumerable predicates on discrete types are stable. Let f : N → B and let p : 1 → P be defined by p x := ∃n. f n = tt. The predicate p is enumerable by f n := if f n then else ∅. Stability of p is now equivalent to ¬¬(∃n. f n = tt) → (∃n. f n = tt).As a consequence of Fact 6 and Fact 7, MP implies that the deduction systems Γ ϕ and Γ c ϕ are stable. In fact, only these stabilities are required for the standard model-theoretic completeness proofs discussed in the next section and they are equivalent to MP L , a version of Markov's Principle stated for the call-by-value λ-calculus L [57,22] and its halting problem E:
¬¬Es → EsWe will prove the following in Section 3.5: Lemma 8. MP L , stability of Γ ϕand stability of Γ c ϕ are all equivalent. Completeness Theorems for FOL Analysed in Constructive Type Theory 73 Model-Theoretic SemanticsThe first variant of semantics we consider is based on the idea of interpreting terms as objects in a model and embedding the logical connectives into the metalogic. A formula is considered valid if it is satisfied by all models. The simplest case is Tarski semantics, coinciding with classical deduction via Henkin's completeness proof factoring through a (constructive) model-existence theorem [30]. Kripke semantics, coinciding with intuitionistic deduction, add more structure by connec...