Unordered zero-free collision edge counts by symmetric difference
DefinitionCouret_Strobo2TorsZeroFreeDeltaCount_41cbef917dd9For a finite abelian additive group G with decidable equality and any natural k, this bundle defines three natural counts as edgeFinset cardinalities after restricting both endpoint supports to avoid zero. zeroFreeSquareDeltaPairCount uses the union squareDeltaGraph k, zeroFreeOrdinaryDeltaPairCount uses ordinaryDeltaGraph k, and zeroFreeNontranslationDeltaPairCount uses nontranslationDeltaGraph k. Endpoints are distinct three-element finite subsets of G, and their symmetric difference has cardinality k. Ordinary edges relate supports by a translation u with u+u=0; nontranslation edges join equal labelled ordered-square supports with no ambient translation between them. Edges are unordered and retain the labelled group elements; there is no quotient by group automorphisms or simultaneous translations. The definitions apply to every k and to small groups, with empty edge sets counted as zero. They contain no closed formula for these counts.
import Aesop
import Lean.Elab.Tactic.Omega
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise
import Mathlib.Combinatorics.SimpleGraph.DegreeSum
import Mathlib.Data.Finset.Powerset
import Mathlib.Data.Finset.SymmDiff
import Mathlib.Data.Fintype.Card
import Mathlib.Data.Nat.Choose.Basic
import Mathlib.Tactic.Abel
import Mathlib.Tactic.IntervalCases
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Ring
import Mathlib.Tactic.Tauto
import Definitions.Def_Couret_Strobo2TorsZeroFreeIncidence_e3b7fd015f51
set_option autoImplicit false
open scoped BigOperators symmDiff
/-!
Exact unordered collision counts by symmetric difference after excluding zero
from both three-element supports. The proof transfers each translation-stable
branch by incidence counting. All subtractions and divisions are in Nat.
Historical unrestricted counts remain unchanged.
-/
namespace Couret.STROBO2TORS
variable {G : Type*} [AddCommGroup G] [DecidableEq G]
section Finite
variable [Fintype G]
/-- All unordered zero-free equal-square pairs, with labelled group elements. -/
noncomputable def zeroFreeSquareDeltaPairCount (k : ℕ) : ℕ :=
(zeroFreeGraph (squareDeltaGraph (G := G) k)).edgeFinset.card
noncomputable def zeroFreeOrdinaryDeltaPairCount (k : ℕ) : ℕ :=
(zeroFreeGraph (ordinaryDeltaGraph (G := G) k)).edgeFinset.card
noncomputable def zeroFreeNontranslationDeltaPairCount (k : ℕ) : ℕ :=
(zeroFreeGraph (nontranslationDeltaGraph (G := G) k)).edgeFinset.card
end Finite
end Couret.STROBO2TORS