Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Parity representative refinement and cyclic specialization

Definition
Couret_RecohParityOrbitRefinement_49bc5e3f0a8c

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

couret-programmecouret-unification-20261108

This bundle relates the orbit families generated by parity representatives to the legacy square-representative families. For typed square entries on a product of cyclic groups, it defines cyclic parity representatives using the positive observed square support, its multiplicity function and the product half solver.

The accompanying coverage and orbit-family identities allow parity generation to replace legacy generation while preserving all torsion orbits of compatible triples.

Definition code
import Aesop
import Lean.Elab.Tactic.Omega
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.Field.ZMod
import Mathlib.Algebra.Group.AddChar
import Mathlib.Algebra.Module.ZMod
import Mathlib.Analysis.Complex.Basic
import Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar
import Mathlib.Data.Complex.Basic
import Mathlib.Data.Finite.Card
import Mathlib.Data.Finset.Card
import Mathlib.Data.Finset.Powerset
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Card
import Mathlib.Data.Multiset.Sort
import Mathlib.Data.Nat.Factorization.Basic
import Mathlib.Data.ZMod.Basic
import Mathlib.FieldTheory.Finiteness
import Mathlib.GroupTheory.FiniteAbelian.Duality
import Mathlib.GroupTheory.SpecificGroups.Cyclic
import Mathlib.LinearAlgebra.Dimension.Constructions
import Mathlib.LinearAlgebra.Dimension.Finite
import Mathlib.LinearAlgebra.Dual.Lemmas
import Mathlib.LinearAlgebra.LinearIndependent.Lemmas
import Mathlib.RingTheory.Polynomial.Cyclotomic.Roots
import Mathlib.RingTheory.RootsOfUnity.Complex
import Mathlib.Tactic
import Mathlib.Tactic.Abel
import Mathlib.Tactic.Choose
import Mathlib.Tactic.FinCases
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.Ring
import Mathlib.Tactic.Tauto
import Definitions.Def_Couret_RecohParityGenerator_deb90a4bb68d
import Definitions.Def_Couret_RecohCompactOrbitBridge_59017063a1ce

set_option autoImplicit false

/-!
Composition of the parity generator with the historical orbit construction.

The equality below is an equality of finite families of entire H-orbits,
not equality of representatives or their iteration order. Deduplication is
applied to an explicit list enumeration of the parity representatives. The
list and its anchors are inputs with stated representation contracts; no
classical `Finset.toList` is hidden in an executable definition.
-/

namespace Couret.STROBO2TORS

variable {G : Type*} [AddCommGroup G] [DecidableEq G] [Fintype G]

/-- The compact generator and historical edge generator represent precisely
the same quotient of the realized fibre by two-torsion translations. -/
theorem recoh_parity_orbit_families_eq_legacy
    (U : Finset G) (R : G → ℕ) (half : G → Option G)
    (hhalf : RecohHalfSolverSpec half) (hR : ∀ z, R z ≠ 0 → z ∈ U) :
    (recohParityRepresentatives U R half).image torsionOrbit =
      (recohSquareRepresentatives U R half).image torsionOrbit := by
  obtain ⟨hsound, hcomplete⟩ := recoh_parity_representatives_cover U R half hhalf hR
  exact recoh_orbit_families_eq_of_sound_complete R
    (recohParityRepresentatives U R half) (recohSquareRepresentatives U R half)
    hsound hcomplete
    (recoh_square_representatives_sound U R half hR)
    (recoh_square_representatives_complete U R half hhalf hR)





section Cyclic

variable {d : ℕ} (q : Fin d → ℕ) [∀ i, NeZero (q i)]

/-- The compact generator instantiated with the existing cyclic square
interpretation and the verified product half-solver. -/
def recohCyclicParityRepresentatives
    (entries : List (((i : Fin d) → ZMod (q i)) × ℕ)) :
    Finset (Finset ((i : Fin d) → ZMod (q i))) :=
  recohParityRepresentatives (recohSelectedSquareSupport q entries)
    (recohTypedSquareValue entries) (recohProductHalf q)

theorem recoh_cyclic_parity_representatives_cover
    (entries : List (((i : Fin d) → ZMod (q i)) × ℕ)) :
    RecohParityCover (recohTypedSquareValue entries)
      (recohCyclicParityRepresentatives q entries) := by
  exact recoh_parity_representatives_cover
    (recohSelectedSquareSupport q entries) (recohTypedSquareValue entries)
    (recohProductHalf q) (recoh_product_half_spec q)
    (recoh_selected_square_support_covered q entries)



/-- All half-solver and square-support contracts are discharged by their
historical cyclic proofs; the conclusion has no abstract solver hypothesis. -/
theorem recoh_cyclic_parity_orbit_families_eq_legacy
    (entries : List (((i : Fin d) → ZMod (q i)) × ℕ)) :
    (recohCyclicParityRepresentatives q entries).image torsionOrbit =
      (recohCyclicSquareRepresentatives q entries).image torsionOrbit := by
  exact recoh_parity_orbit_families_eq_legacy
    (recohSelectedSquareSupport q entries) (recohTypedSquareValue entries)
    (recohProductHalf q) (recoh_product_half_spec q)
    (recoh_selected_square_support_covered q entries)

end Cyclic

end Couret.STROBO2TORS
Source
Alexandre Couret, Couret — Additive reconstruction: STROBO-4, singleton collisions and RECOH formal proof artifacts, https://zenodo.org/records/23980513; archive COURET_MATHEMATIQUES_20261105.zip, SHA-256 19a3b59aee930df74cab79c27b29e014843bd17179a26fef1261ed6b5a651ab7; file RECOH/lean/RecohParityOrbitRefinement.lean; source file SHA-256 185cc0d31c6488113857d44700e65389fdc92fe2ab3f45b213f4e762f52ee979

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