Theorems 10–13 — Generalized transposition and generation
ProvedLawsOfForm.higher_order_generalizationsTransposition, modified transposition and cross-transposition extend to arbitrary finite lists, including empty lists. Generation remains valid at any depth represented by a one-hole expression context. These are syntactic algebraic derivations.
import Definitions.Def_LawsOfForm_Canonical set_option autoImplicit false
namespace LawsOfForm theorem higher_order_generalizations : (∀ (xs : List Expr) (r : Expr), Algebra (.beside (.cross (join (xs.map Expr.cross))) r) (.cross (join (xs.map (fun a => Expr.cross (.beside a r)))))) ∧ (∀ (xs : List Expr) (a r : Expr), Algebra (.cross (.beside (.cross a) (join (xs.map (fun b => Expr.cross (.beside b r)))))) (.beside (.cross (.beside (.cross a) (join (xs.map Expr.cross)))) (.cross (.beside (.cross a) (.cross r))))) ∧ (∀ (as xs : List Expr) (r : Expr), Algebra (.cross (.beside (join (as.map (fun a => Expr.cross (.beside (.cross a) (.cross r))))) (join (xs.map (fun x => Expr.cross (.beside (.cross x) r)))))) (.beside (.cross (.beside (.cross r) (join as))) (.cross (.beside r (join xs))))) ∧ (∀ (context : ExprContext) (x g : Expr), Algebra (.beside (fill context (.beside x g)) g) (.beside (fill context x) g)) := by sorry end LawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
Let be the set of finite formal expressions freely built from a blank symbol , variable symbols for every natural number , including , a unary constructor , and a binary constructor . Write for the least equivalence relation on that is preserved by and by either argument of , is closed under every simultaneous substitution specified by a map (replacing each by , fixing , and commuting with both constructors), and contains, for all , the relations , , , , and . For an ordered finite list of expressions define , and, for , define ; thus the blank at the end is part of this expression even for a singleton list. The theorem asserts the conjunction of the following four universally quantified statements: (1) for every natural number , every list of expressions, and every , ; (2) for every natural number , every list of expressions, and every , ; (3) for every pair of natural numbers , every two independently chosen lists and of expressions, and every , ; and (4) for every finite context with exactly one hole and every , , where the contexts are generated from the bare hole by the constructions , , and for arbitrary , and filling is defined by , , , and . In particular, the empty-list instance of (1) is , and the empty-list instance of (2) is . In (3), when the first list is empty the asserted relation is , and when the second list is empty it is ; these instances also allow the remaining list to be empty, giving . The bare-hole instance of (4) is . All expressions, including and the fixed expressions in contexts, may themselves be blank or contain arbitrary variables and nesting; lists may contain repetitions, and there are no distinctness or variable-freshness conditions on any list or context.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.