Offline · exact source
Exact Lean source

YoungBranchingStandard

formalization/Cloning/YoungBranchingStandard.lean

Source hash: 3ee27369c4ab5d41870e762e906ed931666c869e0441427fa1654b0808b7c429

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 Cloning.YoungGeneralTableaux
2import Mathlib.Data.Fin.Tuple.Basic
3 
4/-!
5# Exact branching of the standard-tableau count
6 
7The concrete standard words used in the general Young formula are split at
8their final letter.  This proves the Young-lattice predecessor recurrence,
9including all support conditions, without supplying any dimension or branching
10formula as a hypothesis.  This is one half of the normalization induction;
11the weighted semistandard Pieri bijection is a separate combinatorial step.
12-/
13 
14noncomputable section
15open scoped BigOperators Classical
16 
17namespace Cloning.YoungGeneral
18 
19def addBox {d : ℕ} (μ : Fin d → ℕ) (i : Fin d) : Fin d → ℕ :=
20  fun j ↦ μ j + if j = i then 1 else 0
21 
22def removeBox {d : ℕ} (μ : Fin d → ℕ) (i : Fin d) : Fin d → ℕ :=
23  fun j ↦ μ j - if j = i then 1 else 0
24 
25theorem addBox_eq_iff {d : ℕ} (ν μ : Fin d → ℕ) (i : Fin d) :
26    addBox ν i = μ ↔ 0 < μ i ∧ ν = removeBox μ i := by
27  constructor
28  · intro h
29    have hi := congrFun h i
30    simp only [addBox, ite_true] at hi
31    refine ⟨by omega, funext fun j ↦ ?_⟩
32    have hj := congrFun h j
33    dsimp only [addBox] at hj
34    dsimp only [removeBox]
35    split_ifs at hj ⊢ <;> omega
36  · rintro ⟨hi, rfl⟩
37    funext j
38    dsimp only [addBox, removeBox]
39    by_cases hji : j = i
40    · subst j
41      simp only [ite_true]
42      omega
43    · simp [hji]
44 
45theorem addBox_sum {d : ℕ} (μ : Fin d → ℕ) (i : Fin d) :
46    ∑ j, addBox μ i j = (∑ j, μ j) + 1 := by
47  simp [addBox, Finset.sum_add_distrib]
48 
49def prefixCount {d N : ℕ} (w : Fin N → Fin d) (n : ℕ) (i : Fin d) : ℕ :=
50  ∑ k, if k.val < n ∧ w k = i then 1 else 0
51 
52theorem prefixCount_eq_card {d N : ℕ} (w : Fin N → Fin d) (n : ℕ) (i : Fin d) :
53    prefixCount w n i = (Finset.univ.filter (fun k ↦ k.val < n ∧ w k = i)).card := by
54  simp [prefixCount, Finset.sum_boole]
55 
56theorem isStandardWord_iff_prefix {d N : ℕ} (w : Fin N → Fin d) :
57    IsStandardWord w ↔ ∀ n, Antitone (prefixCount w n) := by
58  simp only [IsStandardWord, Antitone, prefixCount_eq_card]
59 
60theorem prefixCount_eq_rowCount {d N : ℕ} (w : Fin N → Fin d) (n : ℕ) (hn : N ≤ n) :
61    prefixCount w n = rowCount w := by
62  funext i
63  simp only [prefixCount_eq_card, rowCount]
64  congr 1
65  apply Finset.filter_congr
66  intro k _
67  simp only [show k.val < n from lt_of_lt_of_le k.isLt hn, true_and]
68 
69theorem prefixCount_snoc {d N : ℕ} (w : Fin N → Fin d) (i : Fin d) (n : ℕ) (j : Fin d) :
70    prefixCount (Fin.snoc w i) n j = prefixCount w n j + if N < n ∧ i = j then 1 else 0 := by
71  simp only [prefixCount, Fin.sum_univ_castSucc, Fin.snoc_castSucc, Fin.val_castSucc,
72    Fin.snoc_last, Fin.val_last]
73 
74theorem rowCount_snoc {d N : ℕ} (w : Fin N → Fin d) (i : Fin d) :
75    rowCount (Fin.snoc w i) = addBox (rowCount w) i := by
76  rw [← prefixCount_eq_rowCount (Fin.snoc w i) (N + 1) le_rfl]
77  funext j
78  rw [prefixCount_snoc, prefixCount_eq_rowCount w (N + 1) (by omega)]
79  simp [addBox, eq_comm]
80 
81/-- Extending a standard tableau by one label requires exactly that the new
82shape remain a decreasing partition. -/
83theorem isStandardWord_snoc_iff {d N : ℕ} (w : Fin N → Fin d) (i : Fin d) :
84    IsStandardWord (Fin.snoc w i) ↔
85      IsStandardWord w ∧ Antitone (addBox (rowCount w) i) := by
86  rw [isStandardWord_iff_prefix, isStandardWord_iff_prefix]
87  constructor
88  · intro h
89    refine ⟨fun n ↦ ?_, ?_⟩
90    · by_cases hn : n ≤ N
91      · have he : prefixCount (Fin.snoc w i) n = prefixCount w n := by
92          funext j
93          rw [prefixCount_snoc]
94          simp [Nat.not_lt.mpr hn]
95        rw [← he]
96        exact h n
97      · rw [prefixCount_eq_rowCount w n (by omega)]
98        have he : prefixCount (Fin.snoc w i) N = rowCount w := by
99          funext j
100          rw [prefixCount_snoc, prefixCount_eq_rowCount w N le_rfl]
101          simp
102        rw [← he]
103        exact h N
104    · have he : prefixCount (Fin.snoc w i) (N + 1) = addBox (rowCount w) i := by
105        rw [prefixCount_eq_rowCount _ _ le_rfl, rowCount_snoc]
106      rw [← he]
107      exact h (N + 1)
108  · rintro ⟨hw, hi⟩ n
109    by_cases hn : n ≤ N
110    · have he : prefixCount (Fin.snoc w i) n = prefixCount w n := by
111        funext j
112        rw [prefixCount_snoc]
113        simp [Nat.not_lt.mpr hn]
114      rw [he]
115      exact hw n
116    · rw [prefixCount_eq_rowCount _ _ (by omega), rowCount_snoc]
117      exact hi
118 
119theorem standardCount_eq_sum {d : ℕ} (N : ℕ) (μ : Fin d → ℕ) :
120    standardCount N μ = ∑ w : Fin N → Fin d, if IsStandardWord w ∧ rowCount w = μ then 1 else 0 := by
121  simp [standardCount, Finset.sum_boole]
122 
123/-- Exact predecessor branching for the standard-tableau dimension. -/
124theorem standardCount_succ {d : ℕ} (N : ℕ) (μ : Fin d → ℕ) :
125    standardCount (N + 1) μ =
126      if Antitone μ then ∑ i : Fin d, if 0 < μ i then standardCount N (removeBox μ i) else 0 else 0 := by
127  rw [standardCount_eq_sum]
128  rw [← (Fin.snocEquiv (fun _ : Fin (N + 1) ↦ Fin d)).sum_comp]
129  rw [Fintype.sum_prod_type]
130  by_cases hμ : Antitone μ
131  · rw [if_pos hμ]
132    apply Finset.sum_congr rfl
133    intro i _
134    have hpoint (w : Fin N → Fin d) :
135        (if IsStandardWord (Fin.snoc w i) ∧ rowCount (Fin.snoc w i) = μ then 1 else 0 : ℕ) =
136          if 0 < μ i then (if IsStandardWord w ∧ rowCount w = removeBox μ i then 1 else 0) else 0 := by
137      rw [isStandardWord_snoc_iff, rowCount_snoc]
138      by_cases hi : 0 < μ i
139      · rw [if_pos hi]
140        congr 1
141        rw [and_assoc, and_left_comm]
142        apply propext
143        constructor
144        · rintro ⟨_, hw, he⟩
145          exact ⟨hw, (addBox_eq_iff _ _ i).mp he |>.2⟩
146        · rintro ⟨hw, he⟩
147          have he' := (addBox_eq_iff _ _ i).mpr ⟨hi, he⟩
148          exact ⟨he' ▸ hμ, hw, he'⟩
149      · rw [if_neg hi]
150        apply if_neg
151        rintro ⟨_, he⟩
152        exact hi ((addBox_eq_iff _ _ i).mp he).1
153    change (∑ w : Fin N → Fin d,
154      if IsStandardWord (Fin.snoc w i) ∧ rowCount (Fin.snoc w i) = μ then 1 else 0) = _
155    simp_rw [hpoint]
156    by_cases hi : 0 < μ i
157    · simp only [if_pos hi, ← standardCount_eq_sum]
158    · simp only [if_neg hi, Finset.sum_const_zero]
159  · rw [if_neg hμ]
160    apply Finset.sum_eq_zero
161    intro i _
162    apply Finset.sum_eq_zero
163    intro w _
164    change (if IsStandardWord (Fin.snoc w i) ∧ rowCount (Fin.snoc w i) = μ then 1 else 0) = 0
165    apply if_neg
166    rintro ⟨hw, he⟩
167    exact hμ (he ▸ standardWord_rows_antitone _ hw)
168 
169end Cloning.YoungGeneral