Theorem 14 — Canon with respect to a constant
ProvedLawsOfForm.constant_canonEvery finite expression is algebraically equivalent to an expression of nesting depth at most two that introduces no new variables. Adjacency adds no nesting depth; a cross adds one.
import Definitions.Def_LawsOfForm_Canonical set_option autoImplicit false
namespace LawsOfForm theorem constant_canon (e : Expr) : ∃ f : Expr, Algebra e f ∧ depth f ≤ 2 ∧ freeVars f ⊆ freeVars e := by sorry end LawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
Let expressions be the finite formal terms generated by a blank symbol , variables for every (including ), a unary operation , and a binary operation . Let be the least equivalence relation on these expressions that is preserved by and by replacing either argument of with an equivalent expression, is preserved by every simultaneous substitution for an arbitrary function from to expressions (with substitution leaving fixed and commuting with and ), and contains, for every choice of expressions , the relations , , , , and . Define the depth by , , and , and define the finite set of variable indices by , , , and . For every expression , there exists an expression such that , , and . There are no hypotheses on : it may be blank, contain no variables, contain repeated occurrences of variables, or have any finite depth. The permitted depths of include , , and ; every variable index occurring in must occur in , although some indices occurring in may be absent from , and the inclusion places no bound on how often an allowed variable occurs. In particular, when , the conclusion requires .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.