Offline · exact source
Exact Lean source

WeylCharacterAlternantDominance

formalization/Cloning/WeylCharacterAlternantDominance.lean

Source hash: 9a8128874bd22d79f94108d35366776145e8e4e54767d718dd80c8fe9df624d7

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Mathlib.Algebra.BigOperators.Fin
2import Mathlib.Algebra.Order.BigOperators.Ring.Finset
3import Mathlib.Tactic
4 
5/-! Finite dominance and strict squared-norm separation.  These elementary
6lemmas distinguish the highest shifted weight in the Casimir character
7equation; they assume no representation or character formula. -/
8noncomputable section
9open scoped BigOperators Classical
10 
11namespace Cloning.WeylCharacter
12 
13def partialSum (a : ℕ → ℝ) (n : ℕ) : ℝ := ∑ i ∈ Finset.range n, a i
14 
15@[simp] theorem partialSum_zero (a : ℕ → ℝ) : partialSum a 0 = 0 := by
16  simp [partialSum]
17 
18theorem partialSum_succ (a : ℕ → ℝ) (n : ℕ) :
19    partialSum a (n+1) = partialSum a n + a n := Finset.sum_range_succ _ _
20 
21theorem finite_summation_by_parts (a w : ℕ → ℝ) (n : ℕ) :
22    (∑ i ∈ Finset.range n, a i * w i) = partialSum a n * w n +
23      ∑ k ∈ Finset.range n, partialSum a (k+1) * (w k - w (k+1)) := by
24  induction n with
25  | zero => simp [partialSum]
26  | succ n ih =>
27    rw [Finset.sum_range_succ, Finset.sum_range_succ, ih, partialSum_succ]
28    ring
29 
30/-- A strictly decreasing test weight detects every nonzero sequence whose
31proper partial sums are nonnegative and whose total is zero. -/
32theorem weighted_sum_eq_zero_forces_zero (a w : ℕ → ℝ) (n : ℕ)
33    (hpartial : ∀ k ≤ n, 0 ≤ partialSum a k) (htotal : partialSum a n = 0)
34    (hw : ∀ k, k+1 < n → w (k+1) < w k)
35    (hweighted : ∑ i ∈ Finset.range n, a i * w i = 0) :
36    ∀ i < n, a i = 0 := by
37  have hnonneg (k : ℕ) (hk : k ∈ Finset.range n) :
38      0 ≤ partialSum a (k+1) * (w k - w (k+1)) := by
39    have hkn : k < n := Finset.mem_range.mp hk
40    by_cases hlast : k+1 = n
41    · rw [hlast, htotal, zero_mul]
42    · exact mul_nonneg (hpartial (k+1) (by omega)) (sub_nonneg.mpr (hw k (by omega)).le)
43  have hsum : (∑ k ∈ Finset.range n, partialSum a (k+1) * (w k - w (k+1))) = 0 := by
44    rw [finite_summation_by_parts a w n, htotal, zero_mul, zero_add] at hweighted
45    exact hweighted
46  have hterm := (Finset.sum_eq_zero_iff_of_nonneg hnonneg).mp hsum
47  have hpzero (k : ℕ) (hk : k ≤ n) : partialSum a k = 0 := by
48    by_cases hk0 : k = 0
49    · subst k; exact partialSum_zero a
50    by_cases hkn : k = n
51    · rw [hkn, htotal]
52    have hkpos : 0 < k := by omega
53    have h := hterm (k-1) (Finset.mem_range.mpr (by omega))
54    rw [show k-1+1=k by omega] at h
55    have hw' := hw (k-1) (by omega)
56    rw [show k-1+1=k by omega] at hw'
57    exact (mul_eq_zero.mp h).resolve_right (sub_ne_zero.mpr (ne_of_gt hw'))
58  intro i hi
59  have h := partialSum_succ a i
60  rw [hpzero (i+1) (by omega), hpzero i (by omega), zero_add] at h
61  exact h.symm
62 
63/-- Dominance and the squared-norm eigenvalue determine a strictly dominant
64weight uniquely among dominant weights. -/
65theorem dominant_eq_of_sum_squares (a b : ℕ → ℝ) (n : ℕ)
66    (ha : ∀ k, k+1 < n → a (k+1) < a k)
67    (hb : ∀ k, k+1 < n → b (k+1) ≤ b k)
68    (hprefix : ∀ k ≤ n, partialSum b k ≤ partialSum a k)
69    (htotal : partialSum a n = partialSum b n)
70    (hsq : ∑ i ∈ Finset.range n, a i ^ 2 = ∑ i ∈ Finset.range n, b i ^ 2) :
71    ∀ i < n, a i = b i := by
72  have hp k : partialSum (fun i ↦ a i - b i) k = partialSum a k - partialSum b k := by
73    simp [partialSum, Finset.sum_sub_distrib]
74  have hc := weighted_sum_eq_zero_forces_zero (fun i ↦ a i - b i)
75    (fun i ↦ a i + b i) n
76    (fun k hk ↦ by rw [hp]; exact sub_nonneg.mpr (hprefix k hk))
77    (by rw [hp, htotal, sub_self])
78    (fun k hk ↦ by have := ha k hk; have := hb k hk; linarith)
79    (by
80      simp_rw [show ∀ i, (a i - b i) * (a i + b i) = a i ^ 2 - b i ^ 2 by intro i; ring]
81      rw [Finset.sum_sub_distrib, hsq, sub_self])
82  intro i hi
83  exact sub_eq_zero.mp (hc i hi)
84 
85def zeroExtend {d : ℕ} (a : Fin d → ℝ) (k : ℕ) : ℝ :=
86  if hk : k < d then a ⟨k, hk⟩ else 0
87 
88@[simp] theorem zeroExtend_apply {d : ℕ} (a : Fin d → ℝ) (i : Fin d) :
89    zeroExtend a i.val = a i := by simp [zeroExtend, i.isLt]
90 
91theorem sum_zeroExtend {d : ℕ} (a : Fin d → ℝ) :
92    partialSum (zeroExtend a) d = ∑ i, a i := by
93  rw [partialSum, ← Fin.sum_univ_eq_sum_range]
94  simp only [zeroExtend_apply]
95 
96def DominatedBy {d : ℕ} (b a : Fin d → ℝ) : Prop :=
97  (∀ k ≤ d, partialSum (zeroExtend b) k ≤ partialSum (zeroExtend a) k) ∧
98    (∑ i, b i) = ∑ i, a i
99 
100theorem fin_dominant_eq_of_sum_squares {d : ℕ} (a b : Fin d → ℝ)
101    (ha : StrictAnti a) (hb : Antitone b) (hdom : DominatedBy b a)
102    (hsq : ∑ i, a i ^ 2 = ∑ i, b i ^ 2) : a = b := by
103  have h := dominant_eq_of_sum_squares (zeroExtend a) (zeroExtend b) d
104    (fun k hk ↦ by
105      simpa only [zeroExtend, dif_pos hk, dif_pos (show k < d by omega)] using
106        ha (show (⟨k, by omega⟩ : Fin d) < ⟨k+1, hk⟩ from by simp))
107    (fun k hk ↦ by
108      simpa only [zeroExtend, dif_pos hk, dif_pos (show k < d by omega)] using
109        hb (show (⟨k, by omega⟩ : Fin d) ≤ ⟨k+1, hk⟩ from by simp))
110    hdom.1 (by simpa only [sum_zeroExtend] using hdom.2.symm)
111    (by simpa only [← Fin.sum_univ_eq_sum_range, zeroExtend_apply] using hsq)
112  funext i
113  simpa only [zeroExtend_apply] using h i.val i.isLt
114 
115end Cloning.WeylCharacter