Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix 2 — Completeness under logical interpretation

Proved
LawsOfForm.logical_completeness

by FiniteUniverse · Sep 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

laws-of-formlogic

Two 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.

Preamble
import Definitions.Def_LawsOfForm_Logic

set_option autoImplicit false
Formal statement
namespace LawsOfForm
theorem logical_completeness (p q : Proposition) :
  Algebra (encode p) (encode q) ↔ ∀ ρ : Nat → Bool, truth ρ p = truth ρ q := by sorry
end LawsOfForm
Source
G. Spencer-Brown, Laws of Form, Julian Press, New York, first American edition, 1972. Page authority: complete user-supplied G-Spencer-Brown-Laws-of-Form.pdf, SHA-256 1d1112350b9cf616a52bd406284f05a7fa8efe54dab6cbd37b21c005ba3928eb. Printed p = one-based PDF p+24. Edition record: https://openlibrary.org/books/OL5299727M/Laws_of_form. Appendix 2, completeness under propositional interpretation, printed p. 119 (PDF p. 143), using Chapter 9 Theorem 17.
Read-back

What the Lean code literally says, in plain math · Codex (GPT-6)

Let P\mathcal PP be the set of finite formulas generated by atoms PnP_nPn​ for natural numbers n∈N={0,1,2,…}n\in\mathbb N=\{0,1,2,\ldots\}n∈N={0,1,2,…}, unary negation, and binary disjunction, conjunction, and implication; there are no nullary truth or falsity formulas. Let E\mathcal EE be the set of finite expressions generated by a blank symbol ε\varepsilonε, variables xnx_nxn​ for n∈Nn\in\mathbb Nn∈N, a unary constructor CCC, and a binary constructor ⊕\oplus⊕, with parentheses retaining the constructor structure. Define the translation T:P→ET:\mathcal P\to\mathcal ET:P→E recursively by T(Pn)=xnT(P_n)=x_nT(Pn​)=xn​, T(¬u)=C(T(u))T(\neg u)=C(T(u))T(¬u)=C(T(u)), T(u∨v)=T(u)⊕T(v)T(u\lor v)=T(u)\oplus T(v)T(u∨v)=T(u)⊕T(v), T(u∧v)=C(C(T(u))⊕C(T(v)))T(u\land v)=C(C(T(u))\oplus C(T(v)))T(u∧v)=C(C(T(u))⊕C(T(v))), and T(u→v)=C(T(u))⊕T(v)T(u\to v)=C(T(u))\oplus T(v)T(u→v)=C(T(u))⊕T(v), for every n∈Nn\in\mathbb Nn∈N and u,v∈Pu,v\in\mathcal Pu,v∈P. For every total assignment ρ:N→{false,true}\rho:\mathbb N\to\{\mathrm{false},\mathrm{true}\}ρ:N→{false,true}, define the Boolean truth value tρt_\rhotρ​ recursively by tρ(Pn)=ρ(n)t_\rho(P_n)=\rho(n)tρ​(Pn​)=ρ(n), tρ(¬u)=¬tρ(u)t_\rho(\neg u)=\neg t_\rho(u)tρ​(¬u)=¬tρ​(u), tρ(u∨v)=tρ(u)∨tρ(v)t_\rho(u\lor v)=t_\rho(u)\lor t_\rho(v)tρ​(u∨v)=tρ​(u)∨tρ​(v), tρ(u∧v)=tρ(u)∧tρ(v)t_\rho(u\land v)=t_\rho(u)\land t_\rho(v)tρ​(u∧v)=tρ​(u)∧tρ​(v), and tρ(u→v)=¬tρ(u)∨tρ(v)t_\rho(u\to v)=\neg t_\rho(u)\lor t_\rho(v)tρ​(u→v)=¬tρ​(u)∨tρ​(v), where the operations on the right are Boolean negation, disjunction, and conjunction. Define a∼ba\sim ba∼b for expressions a,b∈Ea,b\in\mathcal Ea,b∈E to mean that their relation has a finite derivation using exactly the following generating rules and closures: for all a,b,c∈Ea,b,c\in\mathcal Ea,b,c∈E, a∼aa\sim aa∼a; a∼ba\sim ba∼b implies b∼ab\sim ab∼a; a∼ba\sim ba∼b and b∼cb\sim cb∼c imply a∼ca\sim ca∼c; (a⊕b)⊕c∼a⊕(b⊕c)(a\oplus b)\oplus c\sim a\oplus(b\oplus c)(a⊕b)⊕c∼a⊕(b⊕c); a⊕b∼b⊕aa\oplus b\sim b\oplus aa⊕b∼b⊕a; ε⊕a∼a\varepsilon\oplus a\sim aε⊕a∼a; a∼ba\sim ba∼b implies C(a)∼C(b)C(a)\sim C(b)C(a)∼C(b) and a⊕c∼b⊕ca\oplus c\sim b\oplus ca⊕c∼b⊕c; and b∼cb\sim cb∼c implies a⊕b∼a⊕ca\oplus b\sim a\oplus ca⊕b∼a⊕c. The remaining generating rules, enabled without additional hypotheses, are C(C(a)⊕a)∼εC(C(a)\oplus a)\sim\varepsilonC(C(a)⊕a)∼ε for every a∈Ea\in\mathcal Ea∈E, and C(C(a⊕r)⊕C(b⊕r))∼C(C(a)⊕C(b))⊕rC(C(a\oplus r)\oplus C(b\oplus r))\sim C(C(a)\oplus C(b))\oplus rC(C(a⊕r)⊕C(b⊕r))∼C(C(a)⊕C(b))⊕r for all a,b,r∈Ea,b,r\in\mathcal Ea,b,r∈E. Finally, for every total substitution σ:N→E\sigma:\mathbb N\to\mathcal Eσ:N→E and all a,b∈Ea,b\in\mathcal Ea,b∈E, a∼ba\sim ba∼b implies Sσ(a)∼Sσ(b)S_\sigma(a)\sim S_\sigma(b)Sσ​(a)∼Sσ​(b), where Sσ(ε)=εS_\sigma(\varepsilon)=\varepsilonSσ​(ε)=ε, Sσ(xn)=σ(n)S_\sigma(x_n)=\sigma(n)Sσ​(xn​)=σ(n) for every n∈Nn\in\mathbb Nn∈N, Sσ(C(a))=C(Sσ(a))S_\sigma(C(a))=C(S_\sigma(a))Sσ​(C(a))=C(Sσ​(a)), and Sσ(a⊕b)=Sσ(a)⊕Sσ(b)S_\sigma(a\oplus b)=S_\sigma(a)\oplus S_\sigma(b)Sσ​(a⊕b)=Sσ​(a)⊕Sσ​(b); the replacement expressions σ(n)\sigma(n)σ(n) are inserted as given. The theorem asserts that for every pair p,q∈Pp,q\in\mathcal Pp,q∈P, T(p)∼T(q) ⟺ ∀ρ:N→{false,true}, tρ(p)=tρ(q)T(p)\sim T(q)\ \Longleftrightarrow\ \forall\rho:\mathbb N\to\{\mathrm{false},\mathrm{true}\},\ t_\rho(p)=t_\rho(q)T(p)∼T(q) ⟺ ∀ρ:N→{false,true}, tρ​(p)=tρ​(q). 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 ppp or qqq.

Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FiniteUniverse · Nov 18, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me