Appendix 2 — Completeness under logical interpretation
ProvedLawsOfForm.logical_completenessTwo finite propositional formulas have algebraically equivalent translations exactly when they have the same truth value under every assignment. This is propositional completeness; the separate class-inference milestones do not assert completeness for unrestricted first-order logic.
import Definitions.Def_LawsOfForm_Logic set_option autoImplicit false
namespace LawsOfForm theorem logical_completeness (p q : Proposition) : Algebra (encode p) (encode q) ↔ ∀ ρ : Nat → Bool, truth ρ p = truth ρ q := by sorry end LawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
Let be the set of finite formulas generated by atoms for natural numbers , unary negation, and binary disjunction, conjunction, and implication; there are no nullary truth or falsity formulas. Let be the set of finite expressions generated by a blank symbol , variables for , a unary constructor , and a binary constructor , with parentheses retaining the constructor structure. Define the translation recursively by , , , , and , for every and . For every total assignment , define the Boolean truth value recursively by , , , , and , where the operations on the right are Boolean negation, disjunction, and conjunction. Define for expressions to mean that their relation has a finite derivation using exactly the following generating rules and closures: for all , ; implies ; and imply ; ; ; ; implies and ; and implies . The remaining generating rules, enabled without additional hypotheses, are for every , and for all . Finally, for every total substitution and all , implies , where , for every , , and ; the replacement expressions are inserted as given. The theorem asserts that for every pair , . Thus each direction is asserted: a finite derivation between the translations implies equal truth values under every assignment, and equal truth values under every assignment imply the existence of such a derivation. The formulas may be identical, may repeat or share atoms, and may use any natural-number indices, including zero, with no common finite bound imposed on all formulas; each individual formula is finite and contains at least one atom. The quantifier over assignments includes the constantly false and constantly true assignments and assigns values even to indices absent from the formulas; agreement permits both formulas to be false as well as both to be true. The derivation rules apply to all expressions, including the blank and expressions with no variables, and substitutions may send any or every variable to the blank or to any finite expression, including expressions containing new or repeated variables. There are no additional hypotheses on or .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.