Associativity of carries for addition modulo
ProvedZMod.division_carry_assocmazur-n25
Let , and write for their standard representatives. Define the carry by . Then
This identity supplies associativity for the carry-corrected group law on division fibres.
Preamble
import Mathlib set_option autoImplicit false
Formal statement
theorem ZMod.division_carry_assoc (a b c : ZMod 71) :
(a.val + b.val) / 71 + ((a + b).val + c.val) / 71 =
(b.val + c.val) / 71 + (a.val + (b + c).val) / 71 := by sorrySource
B. Mazur, Modular curves and the Eisenstein ideal, Publ. IHES 47 (1977); Lean formalization of the order-25 case for this mission. Modules in the MazurProof/Keystone/Tate families are adapted from anthropics/fermats-last-theorem (Apache-2.0) via the xiangyazi24/FLT fork.