Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 16 — Bridge between orders

Proved
LawsOfForm.bridge

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

laws-of-formlogic

If two expressions become algebraically equivalent after uniformly replacing one selected variable by blank, and also after replacing it by the empty cross, then they are algebraically equivalent before replacement. All other variables remain free.

Preamble
import Definitions.Def_LawsOfForm_Algebra

set_option autoImplicit false
Formal statement
namespace LawsOfForm
theorem bridge (a b : Expr) (x : Nat) :
  Algebra (replaceVar x .blank a) (replaceVar x .blank b) →
  Algebra (replaceVar x eMarked a) (replaceVar x eMarked b) → Algebra a b := 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. Chapter 8, Theorem 16, printed pp. 47–49 (PDF pp. 71–73); setting developed pp. 42–46.
Read-back

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

For every pair of finite formal expressions a,ba,ba,b and every natural number xxx (including 000), the following implication holds. Expressions are generated by a blank symbol BBB, variable symbols XiX_iXi​ indexed by all i∈Ni\in\mathbb Ni∈N, a unary constructor C(u)C(u)C(u), and a binary constructor u⊕vu\oplus vu⊕v; these are formal constructors. Write u∼vu\sim vu∼v for the least equivalence relation on these expressions that is preserved by CCC and by either argument of ⊕\oplus⊕, is closed under every simultaneous substitution of arbitrary expressions for variables, and contains, for every expression u,v,w,ru,v,w,ru,v,w,r, the relations (u⊕v)⊕w∼u⊕(v⊕w)(u\oplus v)\oplus w\sim u\oplus(v\oplus w)(u⊕v)⊕w∼u⊕(v⊕w), u⊕v∼v⊕uu\oplus v\sim v\oplus uu⊕v∼v⊕u, B⊕u∼uB\oplus u\sim uB⊕u∼u, C(C(u)⊕u)∼BC(C(u)\oplus u)\sim BC(C(u)⊕u)∼B, and C(C(u⊕r)⊕C(v⊕r))∼C(C(u)⊕C(v))⊕rC(C(u\oplus r)\oplus C(v\oplus r))\sim C(C(u)\oplus C(v))\oplus rC(C(u⊕r)⊕C(v⊕r))∼C(C(u)⊕C(v))⊕r. Here closure under substitution means that, for every function σ:N→Expr\sigma:\mathbb N\to\mathrm{Expr}σ:N→Expr, u∼vu\sim vu∼v implies Sσ(u)∼Sσ(v)S_\sigma(u)\sim S_\sigma(v)Sσ​(u)∼Sσ​(v), where Sσ(B)=BS_\sigma(B)=BSσ​(B)=B, Sσ(Xi)=σ(i)S_\sigma(X_i)=\sigma(i)Sσ​(Xi​)=σ(i), Sσ(C(u))=C(Sσ(u))S_\sigma(C(u))=C(S_\sigma(u))Sσ​(C(u))=C(Sσ​(u)), and Sσ(u⊕v)=Sσ(u)⊕Sσ(v)S_\sigma(u\oplus v)=S_\sigma(u)\oplus S_\sigma(v)Sσ​(u⊕v)=Sσ​(u)⊕Sσ​(v); the inserted expressions are not themselves subjected again to this substitution. For an expression ttt, let t[x:=q]t[x:=q]t[x:=q] replace every occurrence of XxX_xXx​ by qqq, leave every other variable and the blank unchanged, and preserve both constructors. If a[x:=B]∼b[x:=B]a[x:=B]\sim b[x:=B]a[x:=B]∼b[x:=B] and a[x:=C(B)]∼b[x:=C(B)]a[x:=C(B)]\sim b[x:=C(B)]a[x:=C(B)]∼b[x:=C(B)], then a∼ba\sim ba∼b. There are no additional assumptions on aaa, bbb, or xxx: the expressions may be blank, contain no variables, contain arbitrary other variable indices, or have any finite number of occurrences of XxX_xXx​, including none. If XxX_xXx​ occurs in neither expression, both substituted pairs equal the original pair, so each hypothesis is already a∼ba\sim ba∼b.

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