B3 — Reflection on a fully realized finite repertoire
ProvedAPFLawsOfForm.finite_readout_reflectionWhen every Boolean assignment to the finite union of variables occurring in two forms is realized by an actual state, equality of their interpreted readouts is equivalent to derivability in Laws of Form. The hypothesis is finite joint realization, stronger than separate nontriviality of the readouts; it also requires a state when the support is empty.
import Definitions.Def_APFLawsOfForm_Bridge set_option autoImplicit false open LawsOfForm APFPaper1.Foundation
namespace APFLawsOfForm
theorem finite_readout_reflection {Ω : Type} (r : Nat → Ω → Bool) (e f : Expr)
(hr : Realizes r (freeVars e ∪ freeVars f)) :
Algebra e f ↔ denote r e = denote r f := by sorry
end APFLawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
For every type , every family of Boolean-valued functions , and every two finite expressions built from a blank symbol , variables indexed by natural numbers (including ), a unary constructor , and a binary constructor , let , , , and , and set . Assume that for every total Boolean assignment there exists a state such that for every . Then and are related by the following algebraic relation if and only if they define equal Boolean-valued functions on : the algebraic relation is the least reflexive, symmetric, transitive relation on expressions that, for all expressions , contains , , , , and ; it is closed under applying to both sides, adjoining any expression on either side using , and every simultaneous variable substitution , where substitution sends to , leaves unchanged, and acts recursively through and . The Boolean function defined by an expression is , where , , , and ; thus the asserted equivalence is exactly , under the stated realization assumption. The state witnessing an assignment need not be unique and may depend on the assignment; only indices in must match, and there is no finiteness assumption on . Expressions may have repeated variables or no variables at all, and the finite sets count repeated indices only once. If , the realization assumption reduces to the existence of at least one state in ; if is empty, the realization assumption is impossible even when , so the theorem has no such instance with its hypothesis satisfied.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.