Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Labelled ordered-square counts and support transformations

Definition
Couret_Prelude_5b3cc8c481fb

by alexcour · Nov 8, 2026 · Mathlib c5ea003 (Lean v4.30.0)

couret-programmecouret-unification-20261108

For a finite abelian group GGG and arbitrary finite supports S,T⊆GS,T\subseteq GS,T⊆G, define

QS(w)=∣{(a,b)∈S2:a+b=w}∣,SameSquare⁡(S,T)  ⟺  ∀w, QS(w)=QT(w).Q_S(w)=|\{(a,b)\in S^2:a+b=w\}|,\qquad\operatorname{SameSquare}(S,T)\iff\forall w,\ Q_S(w)=Q_T(w).QS​(w)=∣{(a,b)∈S2:a+b=w}∣,SameSquare(S,T)⟺∀w, QS​(w)=QT​(w).

Ordered pairs retain every diagonal and multiplicity. The bundle also defines G[2]={x:2x=0}G[2]=\{x:2x=0\}G[2]={x:2x=0}, translation S+k={x+k:x∈S}S+k=\{x+k:x\in S\}S+k={x+k:x∈S}, and reflection v−S={v−x:x∈S}v-S=\{v-x:x\in S\}v−S={v−x:x∈S}. 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

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me