Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

B2 — Derivations preserve interpreted readouts

Proved
APFLawsOfForm.algebra_preserves_readouts

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

apfboolean-readoutsenforcement-costslaws-of-form

For any state space and any family of Boolean readouts, every derivation from Spencer-Brown’s two initials preserves the interpreted readout as an entire function on states. This includes constrained, correlated, repeated, and constant readouts, and an empty state space.

Preamble
import Definitions.Def_APFLawsOfForm_Bridge

set_option autoImplicit false
open LawsOfForm APFPaper1.Foundation
Formal statement
namespace APFLawsOfForm
theorem algebra_preserves_readouts {Ω : Type} (r : Nat → Ω → Bool) (e f : Expr)
    (h : Algebra e f) : denote r e = denote r f := by sorry
end APFLawsOfForm
Source
APF project with Codex, APF–Laws of Form: Distinctions, Continuations, and Enforcement Costs, project technical note version 1, 7 September 2026, SOURCE.md. Newly stated project synthesis, not a theorem attributed to the source book or APF supplement. Source SHA-256 245df96046094e878a79e7b95eb1dc2e2e534c5b4ef07111803d9b1cf0992f03. Statement B2: For every type Ω, every family r of Boolean readouts on Ω, and every pair of finite forms e and f, a derivation Algebra e f implies equality of the entire functions denote r e and denote r f. The readouts may be correlated, repeated, constant, or defined on an empty state type.
Read-back

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

For every type Ω\OmegaΩ, every family of Boolean-valued functions r:N→(Ω→{false,true})r : \mathbb{N} \to (\Omega \to \{\mathrm{false},\mathrm{true}\})r:N→(Ω→{false,true}), and every two finite expressions eee and fff built recursively from a blank symbol BBB, variable symbols vnv_nvn​ for natural numbers nnn (including 000), a unary constructor C(a)C(a)C(a), and a binary constructor a⊕ba \oplus ba⊕b, if e∼fe \sim fe∼f, then their interpretations are equal as functions Ω→{false,true}\Omega \to \{\mathrm{false},\mathrm{true}\}Ω→{false,true}. Here ∼\sim∼ is the least relation on these expressions that is reflexive, symmetric, and transitive; includes (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, and B⊕a∼aB \oplus a \sim aB⊕a∼a for all expressions a,b,ca,b,ca,b,c; is preserved by CCC and by replacing either argument of ⊕\oplus⊕ by a related expression while fixing the other; includes C(C(a)⊕a)∼BC(C(a) \oplus a) \sim BC(C(a)⊕a)∼B and C(C(a⊕t)⊕C(b⊕t))∼C(C(a)⊕C(b))⊕tC(C(a \oplus t) \oplus C(b \oplus t)) \sim C(C(a) \oplus C(b)) \oplus tC(C(a⊕t)⊕C(b⊕t))∼C(C(a)⊕C(b))⊕t for all expressions a,b,ta,b,ta,b,t; and is preserved by every simultaneous substitution specified by an arbitrary function σ:N→Expr\sigma : \mathbb{N} \to \mathrm{Expr}σ:N→Expr, where substitution sends vnv_nvn​ to σ(n)\sigma(n)σ(n), leaves BBB unchanged, and acts recursively through CCC and ⊕\oplus⊕. Both of the displayed rules involving CCC are enabled without an additional condition. The interpretation of an expression at a state x∈Ωx \in \Omegax∈Ω is obtained recursively by interpreting BBB as false\mathrm{false}false, vnv_nvn​ as r(n)(x)r(n)(x)r(n)(x), C(a)C(a)C(a) as the Boolean negation of the interpretation of aaa, and a⊕ba \oplus ba⊕b as the Boolean disjunction of the interpretations of aaa and bbb; thus the conclusion says that these evaluations of eee and fff agree for every x∈Ωx \in \Omegax∈Ω. The only hypothesis is membership of (e,f)(e,f)(e,f) in the specified algebraic relation; there is no assumption that Ω\OmegaΩ is inhabited, that any r(n)r(n)r(n) is nonconstant, that different indices give different functions, or that arbitrary assignments to the variables occur at some state. Consequently, the claim includes empty Ω\OmegaΩ, when the asserted equality of functions is vacuous pointwise; singleton Ω\OmegaΩ; constant or coincident members of the family rrr; expressions with no variables, including the blank expression; and the case e=fe=fe=f, for which the relation hypothesis holds by reflexivity.

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