Theorems 8–9 — Invariance and variance
ProvedLawsOfForm.arithmetic_connective_lawsFor all finite arithmetic forms p, q and r, the symbolic invariance law [[p]p]=blank and the variance law [[pr][qr]]=[[p][q]]r are derivable using the original arithmetic calculation rules. Invariance here is the displayed symbolic version selected as J1, not the stronger surrounding prose.
import Definitions.Def_LawsOfForm_Algebra set_option autoImplicit false
namespace LawsOfForm theorem arithmetic_connective_laws (p q r : Form) : Calculates (Form.cross (Form.beside (Form.cross p) p)) Form.blank ∧ Calculates (Form.cross (Form.beside (Form.cross (Form.beside p r)) (Form.cross (Form.beside q r)))) (Form.beside (Form.cross (Form.beside (Form.cross p) (Form.cross q))) r) := by sorry end LawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
Let a form be a finite expression generated from a constant , a unary constructor , and a binary constructor , with no variable constructor, and put . Define arrangement equivalence to be the least equivalence relation on forms that is preserved by and by either argument of and contains , , and for all forms . Define simplification to be the least reflexive, transitive relation on forms that contains every arrangement equivalence, contains the directed rules and , and is preserved by applying or placing the related forms in either argument of with the other argument fixed. Define calculation to be the least symmetric, transitive relation containing simplification; it is also reflexive because simplification is reflexive. For every three forms , both and hold. There are no additional hypotheses: each of may be the blank form , and the three forms need not be distinct.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.