Labelled ordered-square counts and support transformations
DefinitionCouret_Prelude_5b3cc8c481fbcouret-programmecouret-unification-20261108
For a finite abelian group and arbitrary finite supports , define
Ordered pairs retain every diagonal and multiplicity. The bundle also defines , translation , and reflection . The raw support operations do not require cardinality three; that restriction belongs to later statements. This is the finite labelled-count vocabulary in namespace Couret.Strobo2Tors.
Definition code
import Mathlib
import Mathlib
/-!
STROBO-2TORS: exact finite-abelian triple-support model.
Scope of this module: definitions and elementary two-torsion lemmas ONLY.
The universal collision classification and count are NOT formalized here.
Until a pinned Lean build succeeds, this source is UNCOMPILED.
-/
namespace Couret.Strobo2Tors
variable {G : Type*} [AddCommGroup G] [Fintype G] [DecidableEq G]
/-- Number of ORDERED representations of `w` as `a+b` with `a,b in S`,
including all diagonal pairs. -/
def orderedRep (S : Finset G) (w : G) : Nat :=
((S.product S).filter (fun p => p.1 + p.2 = w)).card
/-- Equality of ordered convolution squares with labels fixed. -/
def SameSquare (S T : Finset G) : Prop :=
forall w : G, orderedRep S w = orderedRep T w
/-- Set of all elements killed by doubling. -/
def torsionTwo : Finset G :=
Finset.univ.filter (fun x : G => x + x = 0)
/-- Translate a three-element generator set. -/
def translate (S : Finset G) (k : G) : Finset G :=
S.image (fun x => x + k)
/-- Reflect a three-element generator set about `v`. -/
def reflect (S : Finset G) (v : G) : Finset G :=
S.image (fun x => v - x)
end Couret.Strobo2Tors
Source
Alexandre Couret, https://github.com/alexcour/couret-finite-verifications/blob/a91e50bc44e6bea233226b8e1090ba3e1b805b46/research/STROBO_2TORS_01/lean/STROBO2Tors/Prelude.lean; source file SHA-256 89fcdc8c9910bcaf6db0f9ef8c7ab2a0a0f7b5e04fda098817c5e55b8bab0dc9