Group-ring algebra for common two-point parts
DefinitionCouret_IntersectionTwoAlgebra_ba9c300e13f5couret-programmecouret-unification-20261108
Supplies point masses in the integral additive group ring and proved identities for pairs, disjoint unions, and half-turn translation. Relates a translation-invariant product of two pair indicators to closure of its four-sum support. Includes the criterion forcing one pair to be antipodal when the other is not, under the stated two-torsion-kernel hypotheses.
Definition code
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.MonoidAlgebra.Defs
import Mathlib.Data.Finset.Insert
import Mathlib.Data.Finset.Prod
import Mathlib.Data.Finset.SymmDiff
import Mathlib.Data.ZMod.Basic
import Mathlib.Tactic.Abel
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Ring
import Mathlib.Tactic.Tauto
import Definitions.Def_Couret_SingleSwap_148f04e2e72b
set_option autoImplicit false
namespace Couret.InterIA.IntersectionTwo
open Finset Couret.InterIA.Parity Couret.InterIA.GroupRing
variable {G : Type*} [AddCommGroup G] [DecidableEq G]
noncomputable def atom (a : G) : AddMonoidAlgebra ℤ G :=
AddMonoidAlgebra.single a 1
theorem atom_mul (a b : G) : atom a * atom b = atom (a+b) := by
simp [atom, AddMonoidAlgebra.single_mul_single]
theorem indicator_pair (a b : G) (hab : a ≠ b) :
indicator ({a,b} : Finset G) = atom a + atom b := by
simp [indicator, Finset.sum_pair hab, atom]
theorem indicator_union_disjoint (C U : Finset G) (hd : Disjoint C U) :
indicator (C ∪ U) = indicator C + indicator U := by
exact Finset.sum_union hd
/-- Cancellation is of the integer 2 only. No group-ring factor is cancelled. -/
theorem translated_difference_cross (C U : Finset G) (h : G) (hh2 : h+h=0)
(hCU : Disjoint C U) (hCV : Disjoint C (U.image (fun x => x+h)))
(hsquare : ∀ z, orderedSquare (C ∪ U) z =
orderedSquare (C ∪ U.image (fun x => x+h)) z) :
indicator U * indicator C = atom h * (indicator U * indicator C) := by
have he := (square_equality_iff _ _).mpr hsquare
rw [indicator_union_disjoint C U hCU,
indicator_union_disjoint C _ hCV] at he
have hu := (square_equality_iff (U.image (fun x => x+h)) U).mpr
(Couret.InterIA.Translation.two_torsion_translation_preserves_square U h hh2)
have hz : (2 : AddMonoidAlgebra ℤ G) *
(indicator U * indicator C - indicator (U.image (fun x => x+h)) * indicator C)=0 := by
calc
_ = ((indicator C + indicator U)*(indicator C + indicator U) -
(indicator C + indicator (U.image (fun x => x+h))) *
(indicator C + indicator (U.image (fun x => x+h)))) -
(indicator U*indicator U - indicator (U.image (fun x => x+h)) *
indicator (U.image (fun x => x+h))) := by ring
_ = 0 := by rw [he, hu]; simp
have hc := sub_eq_zero.mp (integer_coefficient_no_two_torsion _ hz)
rw [indicator_translate] at hc
simpa only [atom, mul_assoc] using hc
/-- Positive coefficients recover the support, even if rectangle sums coincide. -/
theorem pair_product_support (q₁ q₂ c₁ c₂ z : G) (hq : q₁ ≠ q₂) (hc : c₁ ≠ c₂) :
(indicator ({q₁,q₂} : Finset G) * indicator ({c₁,c₂} : Finset G)).coeff z ≠ 0 ↔
z ∈ ({q₁+c₁,q₁+c₂,q₂+c₁,q₂+c₂} : Finset G) := by
rw [indicator_mul_coefficient]
simp only [Finset.sum_pair hq, Finset.sum_pair hc, mem_insert, mem_singleton]
by_cases h1 : q₁+c₁=z <;> by_cases h2 : q₁+c₂=z <;>
by_cases h3 : q₂+c₁=z <;> by_cases h4 : q₂+c₂=z <;>
simp_all [eq_comm]
theorem invariant_pair_product_closed (q₁ q₂ c₁ c₂ h : G)
(hq : q₁ ≠ q₂) (hc : c₁ ≠ c₂)
(he : indicator ({q₁,q₂} : Finset G) * indicator ({c₁,c₂} : Finset G) =
atom h * (indicator ({q₁,q₂} : Finset G) * indicator ({c₁,c₂} : Finset G))) :
∀ z ∈ ({q₁+c₁,q₁+c₂,q₂+c₁,q₂+c₂} : Finset G),
z+h ∈ ({q₁+c₁,q₁+c₂,q₂+c₁,q₂+c₂} : Finset G) := by
intro z hz
apply (pair_product_support q₁ q₂ c₁ c₂ (z+h) hq hc).mp
have hz' := (pair_product_support q₁ q₂ c₁ c₂ z hq hc).mpr hz
have ht := congrArg (fun f : AddMonoidAlgebra ℤ G => f.coeff (z+h)) he
change _ = (AddMonoidAlgebra.single h 1 * _).coeff (z+h) at ht
rw [monomial_translate_coefficient] at ht
rw [add_sub_cancel_right] at ht
exact ht.trans_ne hz'
/-- QQ: two distinct changed fibres force an antipodal common pair.
The kernel assumption is essential; it is not valid for arbitrary 2-torsion. -/
theorem qq_common_antipodal (h : G) (hh : h ≠ 0) (hh2 : h+h=0)
(hkernel : ∀ x : G, x+x=0 → x=0 ∨ x=h)
(q₁ q₂ c₁ c₂ : G) (hq : q₁ ≠ q₂) (hqh : q₂ ≠ q₁+h) (hc : c₁ ≠ c₂)
(he : indicator ({q₁,q₂} : Finset G) * indicator ({c₁,c₂} : Finset G) =
atom h * (indicator ({q₁,q₂} : Finset G) * indicator ({c₁,c₂} : Finset G))) :
c₂ = c₁+h := by
have hrect : ({q₁+c₁, q₁+c₁+(q₂-q₁), q₁+c₁+(c₂-c₁),
q₁+c₁+(q₂-q₁)+(c₂-c₁)} : Finset G) =
{q₁+c₁,q₁+c₂,q₂+c₁,q₂+c₂} := by
have h1 : q₁+c₁+(q₂-q₁)=q₂+c₁ := by abel
have h2 : q₁+c₁+(c₂-c₁)=q₁+c₂ := by abel
have h3 : q₁+c₁+(q₂-q₁)+(c₂-c₁)=q₂+c₂ := by abel
rw [h3,h1,h2]
ext z
simp only [mem_insert,mem_singleton]
tauto
have hclosed := invariant_pair_product_closed q₁ q₂ c₁ c₂ h hq hc he
have hr := Couret.InterIA.L4.rectangle_side h hh hh2 hkernel
(q₁+c₁) (q₂-q₁) (c₂-c₁) (by simpa only [hrect] using hclosed)
rcases hr with hr|hr|hr|hr
· exact False.elim (hq (sub_eq_zero.mp hr).symm)
· exact False.elim (hqh (by calc q₂=(q₂-q₁)+q₁ := by abel
_=q₁+h := by rw [hr]; abel))
· exact False.elim (hc (sub_eq_zero.mp hr).symm)
· calc c₂=(c₂-c₁)+c₁ := by abel
_=c₁+h := by rw [hr]; abel
theorem indicator_fibre (h a : G) (hh : h ≠ 0) :
indicator (Couret.InterIA.Fibres.fibre h a)=(1+atom h)*atom a := by
have ha : a ≠ a+h := by
intro he
exact hh (add_left_cancel (by simpa using he.symm : a+h=a+0))
rw [Couret.InterIA.Fibres.fibre,indicator_pair a (a+h) ha,add_mul,one_mul,atom_mul]
rw [add_comm h a]
end Couret.InterIA.IntersectionTwo
Source
Alexandre Couret, Cubic observations for four-point convolution reconstruction: universal two-coordinate bound and Lean proof archive, https://zenodo.org/records/23983731; archive Cubic_Observations_Lean_Archive_20261105.zip, SHA-256 7a118549d5729dbcfbfb20bd35fea7ebd91275b7bde61591d6bdda5c13b749ec; file formal/lean/IntersectionTwoAlgebra.lean; source file SHA-256 d3f401d66028b6fe548ef50d997edcce7176b82bbf76716b11c088a8ea729af9