Exact Lean source
Nonadditivity.HaarWeingartenInverse
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.HaarPermutationSupportNonadditivity.HaarWeingartenInverseSumNonadditivity.HaarWeingartenCyclesMathlib.Order.Interval.Finset.Natdependency
Imported by project modules
2 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
11 project constants, including generated, internal and private declarations.
11 declarations
Nonadditivity.HaarPermutationSupport.distance.congr_simpNonadditivity.HaarWeingartenInverse.geometric_tail_le_halfNonadditivity.HaarWeingartenInverse.geometric_tail_le_half._proof_1_1internal/detail/privateNonadditivity.HaarWeingartenInverse.inverse_entry_boundNonadditivity.HaarWeingartenInverse.inverse_sum_boundNonadditivity.HaarWeingartenInverse.weightNonadditivity.HaarWeingartenInverse.weight._proof_1internal/detail/privateNonadditivity.HaarWeingartenInverse.weight.eq_1internal/detail/privateNonadditivity.HaarWeingartenInverse.weighted_row_sum_leNonadditivity.HaarWeingartenInverse.weingarten_weighted_sum_leNonadditivity.HaarWeingartenInverse.weingarten_weighted_sum_le._simp_1_1internal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPermutationSupport7import Nonadditivity.HaarWeingartenInverseSum8import Nonadditivity.HaarWeingartenCycles9import Mathlib.Order.Interval.Finset.Nat1011/-! # Weighted inverse bounds for permutation Gram matrices1213The number of permutations in a Hamming-distance layer is polynomial in the14degree. Summing those layers yields a uniform inverse bound, with no factorial15loss in the number of permutations.16-/1718noncomputable section19set_option maxHeartbeats 100000020namespace Nonadditivity.HaarWeingartenInverse21open HaarPermutationSupport22open scoped BigOperators Matrix2324theorem geometric_tail_le_half (p : ℕ) :25(∑ d ∈ Finset.Icc 2 p, (1/2:ℝ)^d) ≤ 1/2 := by26have hs : ∀ n : ℕ, (∑ d ∈ Finset.Icc 2 (n+1), (1/2:ℝ)^d) ≤271/2-(1/2:ℝ)^(n+1) := by28intro n29induction n with30| zero => norm_num31| succ n ih =>32rw [Finset.sum_Icc_succ_top (by omega : 2 ≤ n+1+1)]33have he : (1/2:ℝ)^(n+1+1) = (1/2:ℝ)^(n+1)/2 := by rw [pow_succ]; ring34rw [he]35linarith36cases p with37| zero => norm_num38| succ n => exact (hs n).trans (by linarith [pow_nonneg (by norm_num : (0:ℝ) ≤ 1/2) (n+1)])3940def weight (p : ℕ) (q : ℝ) (σ τ : Equiv.Perm (Fin p)) : ℝ :=41(q/(2*(p:ℝ)))^(distance σ τ)4243theorem weighted_row_sum_le (p : ℕ) (hp : 0 < p) (q : ℝ) (hq : 0 < q)44(A : Matrix (Equiv.Perm (Fin p)) (Equiv.Perm (Fin p)) ℂ)45(hdiag : ∀ σ, A σ σ = 1)46(hA : ∀ σ τ, σ ≠ τ → ‖A σ τ‖ ≤ (q⁻¹)^(distance σ τ))47(σ : Equiv.Perm (Fin p)) :48(∑ τ, weight p q σ τ * ‖(1-A) σ τ‖) ≤ 1/2 := by49have hp0 : (0:ℝ) < p := by exact_mod_cast hp50let c : ℝ := 1/(2*(p:ℝ))51have hc : 0 ≤ c := by dsimp [c]; positivity52have hterm (τ : Equiv.Perm (Fin p)) (hne : τ ≠ σ) :53weight p q σ τ * ‖(1-A) σ τ‖ ≤ c^(distance σ τ) := by54have hne' := Ne.symm hne55have hz : (1-A) σ τ = -A σ τ := by simp [hne']56rw [hz, norm_neg]57calc58_ ≤ weight p q σ τ * (q⁻¹)^(distance σ τ) :=59mul_le_mul_of_nonneg_left (hA σ τ hne') (by unfold weight; positivity)60_ = c^(distance σ τ) := by61unfold weight c62rw [← mul_pow]63congr 164field_simp65have hsum : (∑ τ, weight p q σ τ * ‖(1-A) σ τ‖) ≤66∑ τ ∈ Finset.univ.erase σ, c^(distance σ τ) := by67rw [← Finset.sum_erase_add _ _ (Finset.mem_univ σ)]68simp only [Matrix.sub_apply, Matrix.one_apply_eq, hdiag, sub_self, norm_zero,69mul_zero, add_zero]70exact Finset.sum_le_sum (fun τ hτ => hterm τ (Finset.mem_erase.mp hτ).1)71have hfiber : (∑ τ ∈ Finset.univ.erase σ, c^(distance σ τ)) =72∑ d ∈ Finset.Icc 2 p,73∑ τ ∈ (Finset.univ.erase σ).filter (fun τ => distance σ τ=d), c^d := by74symm75have hmap : ∀ τ ∈ Finset.univ.erase σ, distance σ τ ∈ Finset.Icc 2 p := by76intro τ hτ77exact Finset.mem_Icc.mpr ⟨two_le_distance_of_ne σ τ (Ne.symm (Finset.mem_erase.mp hτ).1),78by simpa using distance_le_card σ τ⟩79simpa using Finset.sum_fiberwise_of_maps_to' hmap (fun d => c^d)80have hlayer (d : ℕ) :81((Finset.univ.erase σ).filter (fun τ => distance σ τ=d)).card ≤ p^d := by82calc83_ ≤ (Finset.univ.filter (fun τ : Equiv.Perm (Fin p) => distance σ τ=d)).card :=84Finset.card_le_card (Finset.filter_subset_filter _ (Finset.erase_subset _ _))85_ = Fintype.card {τ : Equiv.Perm (Fin p) // distance σ τ=d} := by86simp [Fintype.card_subtype]87_ ≤ p^d := by simpa using card_distance_layer_le_pow σ d88calc89_ ≤ ∑ τ ∈ Finset.univ.erase σ, c^(distance σ τ) := hsum90_ = _ := hfiber91_ ≤ ∑ d ∈ Finset.Icc 2 p, (1/2:ℝ)^d := by92apply Finset.sum_le_sum93intro d hd94simp only [Finset.sum_const, nsmul_eq_mul]95calc96_ ≤ (p:ℝ)^d * c^d := by97apply mul_le_mul_of_nonneg_right _ (pow_nonneg hc d)98exact_mod_cast hlayer d99_ = (1/2:ℝ)^d := by100rw [← mul_pow]101congr 1102dsimp [c]103field_simp104_ ≤ _ := geometric_tail_le_half p105106/-- Hamming decay of the inverse of a normalized Gram matrix. -/107theorem inverse_entry_bound (p : ℕ) (hp : 0 < p) (q : ℝ)108(hq : 2*(p:ℝ) ≤ q)109(A X : Matrix (Equiv.Perm (Fin p)) (Equiv.Perm (Fin p)) ℂ)110(hAX : A*X=1) (hdiag : ∀ σ, A σ σ=1)111(hA : ∀ σ τ, σ ≠ τ → ‖A σ τ‖ ≤ (q⁻¹)^(distance σ τ))112(σ τ : Equiv.Perm (Fin p)) :113weight p q σ τ * ‖X σ τ‖ ≤ 2 := by114have hp0 : (0:ℝ) < p := by exact_mod_cast hp115have hq0 : 0 < q := lt_of_lt_of_le (by positivity) hq116have hr : 1 ≤ q/(2*(p:ℝ)) := (le_div_iff₀ (by positivity)).mpr (by simpa using hq)117apply WeightedMatrixInverse.weighted_inverse_entry_le_two A X hAX (weight p q)118· intro σ τ119unfold weight120positivity121· intro σ122simp [weight]123· intro σ κ τ124unfold weight125rw [← pow_add]126exact pow_le_pow_right₀ hr (distance_triangle σ κ τ)127· exact weighted_row_sum_le p hp q hq0 A hdiag hA128129theorem inverse_sum_bound (p : ℕ) (hp : 0 < p) (q : ℝ)130(hq : 2*(p:ℝ) ≤ q)131(A X : Matrix (Equiv.Perm (Fin p)) (Equiv.Perm (Fin p)) ℂ)132(hAX : A*X=1) (hdiag : ∀ σ, A σ σ=1)133(hA : ∀ σ τ, σ ≠ τ → ‖A σ τ‖ ≤ (q⁻¹)^(distance σ τ))134(σ : Equiv.Perm (Fin p)) :135(∑ τ, weight p q σ τ * ‖X σ τ‖) ≤ 2 := by136have hp0 : (0:ℝ) < p := by exact_mod_cast hp137have hq0 : 0 < q := lt_of_lt_of_le (by positivity) hq138have hr : 1 ≤ q/(2*(p:ℝ)) := (le_div_iff₀ (by positivity)).mpr (by simpa using hq)139apply WeightedMatrixInverse.weighted_inverse_sum_le_two A X hAX (weight p q)140· intro σ τ141unfold weight142positivity143· intro σ144simp [weight]145· intro σ κ τ146unfold weight147rw [← pow_add]148exact pow_le_pow_right₀ hr (distance_triangle σ κ τ)149· exact weighted_row_sum_le p hp q hq0 A hdiag hA150151open HaarInvariantTensor in152/-- A uniform weighted absolute row bound for the actual inverse Haar Gram153matrix. Both the matrix and its inverse are the constructed invariant-tensor154objects, and the only premises are explicit numerical dimension bounds. -/155theorem weingarten_weighted_sum_le (N p : ℕ) (hp : 0 < p) (hpd : p ≤ N+1)156(hsize : 2*(p:ℝ) ≤ Real.sqrt (N+1)) (σ : Perm p) :157(∑ τ, weight p (Real.sqrt (N+1)) σ τ * ‖weingarten N p σ τ‖) ≤1582/(N+1:ℝ)^p := by159let r : ℝ := (N+1:ℝ)^p160let q : ℝ := Real.sqrt (N+1)161have hr : 0 < r := by dsimp [r]; positivity162have hq : 0 < q := by dsimp [q]; positivity163let A : Matrix (Perm p) (Perm p) ℂ := r⁻¹ • gram N p164let X : Matrix (Perm p) (Perm p) ℂ := r • weingarten N p165have hAX : A*X=1 := by166dsimp [A,X]167rw [smul_mul_smul_comm, gram_mul_weingarten hpd, inv_mul_cancel₀ (ne_of_gt hr)]168ext σ τ169simp170have hdiag (σ : Perm p) : A σ σ=1 := by171change r⁻¹ • gram N p σ σ = 1172rw [gram_apply_self]173have he : (N+1:ℂ)^p = (r:ℂ) := by dsimp [r]; norm_cast174rw [he]175change (r⁻¹:ℝ) • (r:ℂ) = 1176simp only [Complex.real_smul, ← Complex.ofReal_mul,177inv_mul_cancel₀ (ne_of_gt hr), Complex.ofReal_one]178have hA (σ τ : Perm p) (_hne : σ ≠ τ) : ‖A σ τ‖ ≤ q⁻¹^(distance σ τ) := by179have hs : ‖A σ τ‖ = r⁻¹*‖gram N p σ τ‖ := by180simp [A, Matrix.smul_apply, Real.norm_eq_abs, abs_of_pos hr]181have hg := HaarWeingartenCycles.norm_gram_mul_sqrt_pow_le N p σ τ182rw [← distance_eq_support] at hg183change ‖gram N p σ τ‖ * q^(distance σ τ) ≤ r at hg184rw [inv_pow, ← one_div]185apply (le_div_iff₀ (pow_pos hq _)).mpr186rw [hs, mul_assoc]187calc188_ ≤ r⁻¹*r := mul_le_mul_of_nonneg_left hg (inv_nonneg.mpr hr.le)189_ = 1 := inv_mul_cancel₀ (ne_of_gt hr)190have h := inverse_sum_bound p hp q hsize A X hAX hdiag hA σ191have hnorm (τ : Perm p) : ‖X σ τ‖ = r*‖weingarten N p σ τ‖ := by192simp [X, Matrix.smul_apply, Real.norm_eq_abs, abs_of_pos hr]193simp_rw [hnorm] at h194apply (le_div_iff₀ hr).mpr195calc196_ = ∑ τ, weight p q σ τ * (r*‖weingarten N p σ τ‖) := by197rw [Finset.sum_mul]198apply Finset.sum_congr rfl199intro τ _200ring201_ ≤ 2 := h202203end Nonadditivity.HaarWeingartenInverse