B5 — Nontrivial APF distinctions survive algebraic rewriting
ProvedAPFLawsOfForm.distinction_transportDerivably equivalent forms are either both nonconstant on the supplied states or both not nonconstant. Whenever they are nonconstant, their promotions to the existing APF BinaryDistinction structure are equal, regardless of the chosen proofs of nontriviality. The theorem does not assert that every form is nonconstant.
import Definitions.Def_APFLawsOfForm_Bridge set_option autoImplicit false open LawsOfForm APFPaper1.Foundation
namespace APFLawsOfForm
theorem distinction_transport {Ω : Type} (r : Nat → Ω → Bool) (e f : Expr)
(h : Algebra e f) :
(Nonconstant (denote r e) ↔ Nonconstant (denote r f)) ∧
(∀ he : Nonconstant (denote r e), ∀ hf : Nonconstant (denote r f),
asDistinction (denote r e) he = asDistinction (denote r f) hf) := by sorry
end APFLawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
For every type of states , every family of Boolean functions indexed by all natural numbers (including ), and every two finite expressions generated from a blank expression , variables , a unary operation , and a binary operation , assume that , with evidence , where is the least equivalence relation closed under , under either argument of , and under every simultaneous substitution of an expression for each variable (leaving the blank unchanged and acting recursively through and ), and containing, for all expressions , the relations , , , , and ; both of the last two rules are enabled. For each expression , define its Boolean readout recursively by , , , and , where and are Boolean negation and disjunction. The assertion is the conjunction of the following two statements: if and only if ; and, for every proof of the former existential statement and every proof of the latter, the binary-distinction records and are equal, where a binary-distinction record consists exactly of a Boolean readout on together with evidence that it has two inputs with different outputs. The witnesses in these two existential statements need not be chosen to be the same, and the record equality is asserted for every choice of the two proofs, not merely for some such choices. No assumption makes nonempty or ensures that any readout is nonconstant; the family may contain constant or identical functions and has no independence requirement, and the expressions may include no variables. If one of never takes different values at two inputs, the equivalence asserts the same for the other, and the universally quantified record-equality statement is vacuous because the required proofs do not exist; in particular, this happens for every pair of readouts when is empty or has at most one element.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.