Affine operations satisfying E677 satisfy E255: no linear counterexamples over finite rings
ProvedFiniteMagmaE677.affine_magma_e255Let be a finite commutative ring and let with fixed coefficients be an affine binary operation on . If satisfies equation 677,
then it also satisfies equation 255,
Consequently, any finite counterexample to the implication E677 E255 must be non-affine. This is the finite-ring, scalar-coefficient form of the "no linear counterexamples" lemma in Chapter 13 of the Equational Theories Project blueprint; it certifies at once all affine models over prime fields, including the translation-invariant models on and the models on .
The proof: right-translation collisions force left-translation agreement (cancel ), so right translations are injective by the magma-level cancellation lemma, hence surjective by finiteness, giving each a fixer; fixer uniqueness identifies it with .
import Mathlib.Algebra.Ring.Defs import Mathlib.Data.Fintype.Card import Mathlib.Data.Fintype.EquivFin import Mathlib.Tactic.LinearCombination import Definitions.Def_FiniteMagmaE677 import Theorems.Thm_FiniteMagmaE677_left_bijective import Theorems.Thm_FiniteMagmaE677_fixer_unique import Theorems.Thm_FiniteMagmaE677_linear_collision_injective universe u v
theorem FiniteMagmaE677.affine_magma_e255 {R : Type v} [CommRing R] [Fintype R]
(a b c : R)
(h : FiniteMagmaE677.E677 (fun x y : R => a * x + b * y + c)) :
FiniteMagmaE677.E255 (fun x y : R => a * x + b * y + c) := by sorry