Exact Lean source
YoungRSKContent
formalization/Cloning/YoungRSKContent.lean
Source hash: ff90a309ea255cbbb893565faf771c15f8899e0699d329276068c82b748778db
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
theorem
Cloning.YoungGeneral.row_entry_le_prefixtheorem Cloning.YoungGeneral.row_array_triangular_of_interlacingdefinition Cloning.YoungGeneral.contentRowstheorem Cloning.YoungGeneral.contentRows_lengththeorem Cloning.YoungGeneral.contentRows_pairwisetheorem Cloning.YoungGeneral.contentRows_shapetheorem Cloning.YoungGeneral.contentRows_injectivetheorem Cloning.YoungGeneral.contentRows_monomialtheorem Cloning.YoungGeneral.shapeAdd_ofFndefinition Cloning.YoungGeneral.rowsArraytheorem Cloning.YoungGeneral.rowsArray_ofFntheorem Cloning.YoungGeneral.ofFn_rowsArraytheorem Cloning.YoungGeneral.rowsArray_shapetheorem Cloning.YoungGeneral.rowsArray_pairwisedefinition Cloning.YoungGeneral.rowsContenttheorem Cloning.YoungGeneral.rowsContent_rowsdefinition Cloning.YoungGeneral.rowsSemistandardContenttheorem Cloning.YoungGeneral.rowsSemistandardContent_rowsdefinition Cloning.YoungGeneral.contentInsertCornerdefinition Cloning.YoungGeneral.contentInserttheorem Cloning.YoungGeneral.contentInsert_rowstheorem Cloning.YoungGeneral.contentInsert_weight1import Cloning.YoungRSKTableau
2import Cloning.YoungBranchingContent
3import Mathlib.Data.List.OfFn
4
5/-!
6# Literal finite arrays and count-row tableaux
7
8The triangular zero condition is a consequence of strict-column interlacing.
9This file connects the list representation used by insertion with the finite
10content arrays used in the Schur polynomial.
11-/
12
13noncomputable section
14open scoped BigOperators Classical
15namespace Cloning.YoungGeneral
16
17theorem row_entry_le_prefix {d : ℕ} (A : RowContent d) (j : Fin d) :
18 A j ≤ rowPrefix A j := by
19 exact Finset.single_le_sum (fun _ _ => Nat.zero_le _) (by simp)
20
21/-- Strict columns force row `i` to contain only letters at least `i`. -/
22theorem row_array_triangular_of_interlacing {d : ℕ} (A : Fin d → RowContent d)
23 (hA : ∀ i j, i < j → RowInterlaces (A i) (A j)) :
24 ∀ i j, j < i → A i j = 0 := by
25 suffices h : ∀ n, ∀ i : Fin d, i.val = n → ∀ j, j < i → A i j = 0 by
26 intro i j hj
27 exact h i.val i rfl j hj
28 intro n
29 induction n with
30 | zero => intro i hi j hj; have : j.val < i.val := hj; omega
31 | succ n ih =>
32 intro i hi j hj
33 have hnd : n < d := by omega
34 let prev : Fin d := ⟨n, hnd⟩
35 have hp : prev < i := by change n < i.val; omega
36 have hs : rowStrictPrefix (A prev) j = 0 := by
37 apply Finset.sum_eq_zero
38 intro k hk
39 have hk : k < j := (Finset.mem_filter.mp hk).2
40 exact ih prev rfl k (by change k.val < n; have : j.val < i.val := hj; omega)
41 have hbound := (row_entry_le_prefix (A i) j).trans (hA prev i hp j)
42 rw [hs] at hbound
43 exact Nat.eq_zero_of_le_zero hbound
44
45def contentRows {d N : ℕ} (A : ContentArray d N) : List (RowContent d) :=
46 List.ofFn (fun i => fun j => (A i j).val)
47
48@[simp] theorem contentRows_length {d N : ℕ} (A : ContentArray d N) :
49 (contentRows A).length = d := by simp [contentRows]
50
51theorem contentRows_pairwise {d N : ℕ} {μ : Fin d → ℕ}
52 (A : SemistandardContent N μ) : List.Pairwise RowInterlaces (contentRows A.val) := by
53 apply List.pairwise_ofFn.mpr
54 intro i j hij
55 exact semistandardContent_rowInterlaces A.property i j hij
56
57theorem contentRows_shape {d N : ℕ} {μ : Fin d → ℕ}
58 (A : SemistandardContent N μ) : tableauShape (contentRows A.val) = List.ofFn μ := by
59 simp only [tableauShape, contentRows, List.map_ofFn]
60 congr 1
61 funext i
62 exact A.property.1 i
63
64theorem contentRows_injective {d N : ℕ} :
65 Function.Injective (@contentRows d N) := by
66 intro A B h
67 have he : (fun i j => (A i j).val) = (fun i j => (B i j).val) :=
68 List.ofFn_injective h
69 funext i j
70 exact Fin.ext (congrFun (congrFun he i) j)
71
72theorem contentRows_monomial {d N : ℕ} (p : Fin d → ℝ) (A : ContentArray d N) :
73 tableauMonomial p (contentRows A) = contentWeight p A := by
74 simp only [tableauMonomial, tableauContent, contentRows, List.map_ofFn, List.sum_ofFn]
75 simp_rw [← Finset.prod_pow_eq_pow_sum]
76 exact Finset.prod_comm
77
78theorem shapeAdd_ofFn {d : ℕ} (μ : Fin d → ℕ) (r : Fin d) :
79 shapeAdd (List.ofFn μ) r.val = List.ofFn (addBox μ r) := by
80 induction d with
81 | zero => exact Fin.elim0 r
82 | succ d ih =>
83 refine Fin.cases ?_ (fun s => ?_) r
84 · simp [List.ofFn_succ, shapeAdd, addBox]
85 · simp only [List.ofFn_succ, Fin.val_succ, shapeAdd]
86 rw [ih]
87 simp [addBox]
88 exact ⟨(Fin.succ_ne_zero s).symm, rfl⟩
89
90def rowsArray {d : ℕ} (T : List (RowContent d)) (hT : T.length = d) :
91 Fin d → RowContent d := fun i => T.get ⟨i.val, by omega⟩
92
93theorem rowsArray_ofFn {d : ℕ} (A : Fin d → RowContent d) :
94 rowsArray (List.ofFn A) List.length_ofFn = A := by
95 funext i
96 simp [rowsArray]
97
98theorem ofFn_rowsArray {d : ℕ} (T : List (RowContent d)) (hT : T.length = d) :
99 List.ofFn (rowsArray T hT) = T := by
100 apply List.ext_get (by simpa using hT.symm)
101 intro n h₁ h₂
102 simp [rowsArray]
103
104theorem rowsArray_shape {d : ℕ} {T : List (RowContent d)} {μ : Fin d → ℕ}
105 (hT : T.length = d) (hμ : tableauShape T = List.ofFn μ) (i : Fin d) :
106 rowMass (rowsArray T hT i) = μ i := by
107 have he : List.ofFn (fun i => rowMass (rowsArray T hT i)) = List.ofFn μ := by
108 change List.ofFn (rowMass ∘ rowsArray T hT) = _
109 rw [← List.map_ofFn, ofFn_rowsArray]
110 exact hμ
111 exact congrFun (List.ofFn_injective he) i
112
113theorem rowsArray_pairwise {d : ℕ} {T : List (RowContent d)}
114 (hT : T.length = d) (hp : List.Pairwise RowInterlaces T) :
115 ∀ i j, i < j → RowInterlaces (rowsArray T hT i) (rowsArray T hT j) := by
116 have he : List.Pairwise RowInterlaces (List.ofFn (rowsArray T hT)) := by
117 rwa [ofFn_rowsArray]
118 exact fun _ _ h => List.pairwise_ofFn.mp he h
119
120def rowsContent {d N : ℕ} (T : List (RowContent d)) (hT : T.length = d)
121 (hb : ∀ i j, rowsArray T hT i j ≤ N) : ContentArray d N :=
122 fun i j => ⟨rowsArray T hT i j, Nat.lt_succ_of_le (hb i j)⟩
123
124theorem rowsContent_rows {d N : ℕ} (T : List (RowContent d)) (hT : T.length = d)
125 (hb : ∀ i j, rowsArray T hT i j ≤ N) :
126 contentRows (rowsContent T hT hb) = T :=
127 ofFn_rowsArray T hT
128
129/-- Any interlacing count-row tableau with bounded row sizes gives one of the
130literal finite arrays appearing in the Schur sum. -/
131def rowsSemistandardContent {d N : ℕ} {μ : Fin d → ℕ}
132 (T : List (RowContent d)) (hT : T.length = d)
133 (hμ : tableauShape T = List.ofFn μ) (hp : List.Pairwise RowInterlaces T)
134 (hN : ∀ i, μ i ≤ N) : SemistandardContent N μ := by
135 have hmass := rowsArray_shape hT hμ
136 have hb : ∀ i j, rowsArray T hT i j ≤ N := by
137 intro i j
138 apply le_trans (Finset.single_le_sum (fun _ _ => Nat.zero_le _) (Finset.mem_univ j))
139 exact (hmass i).le.trans (hN i)
140 refine ⟨rowsContent T hT hb, ?_, ?_, ?_⟩
141 · exact hmass
142 · exact row_array_triangular_of_interlacing _ (rowsArray_pairwise hT hp)
143 · exact fun i j k hij => rowsArray_pairwise hT hp i j hij k
144
145theorem rowsSemistandardContent_rows {d N : ℕ} {μ : Fin d → ℕ}
146 (T : List (RowContent d)) (hT : T.length = d)
147 (hμ : tableauShape T = List.ofFn μ) (hp : List.Pairwise RowInterlaces T)
148 (hN : ∀ i, μ i ≤ N) :
149 contentRows (rowsSemistandardContent T hT hμ hp hN).val = T :=
150 ofFn_rowsArray T hT
151
152def contentInsertCorner {d N : ℕ} {μ : Fin d → ℕ}
153 (A : SemistandardContent N μ) (x : Fin d) : Fin d :=
154 ⟨(tableauInsert (contentRows A.val) x).2, by
155 have he := tableauInsert_fixed_length (contentRows A.val) x (contentRows_length A.val)
156 have ht := tableauInsert_corner_lt (contentRows A.val) x
157 omega⟩
158
159/-- Genuine RSK insertion on the exact bounded arrays of the Schur sum. -/
160def contentInsert {d N : ℕ} {μ : Fin d → ℕ} (A : SemistandardContent N μ)
161 (hN : ∀ i, μ i ≤ N) (x : Fin d) :
162 SemistandardContent (N + 1) (addBox μ (contentInsertCorner A x)) :=
163 rowsSemistandardContent (tableauInsert (contentRows A.val) x).1
164 (tableauInsert_fixed_length _ x (contentRows_length _))
165 (by rw [tableauInsert_shape, contentRows_shape]
166 exact shapeAdd_ofFn μ (contentInsertCorner A x))
167 (tableauInsert_pairwise _ (contentRows_pairwise A) x)
168 (fun i => by have := hN i; simp only [addBox]; split_ifs <;> omega)
169
170theorem contentInsert_rows {d N : ℕ} {μ : Fin d → ℕ} (A : SemistandardContent N μ)
171 (hN : ∀ i, μ i ≤ N) (x : Fin d) :
172 contentRows (contentInsert A hN x).val = (tableauInsert (contentRows A.val) x).1 :=
173 rowsSemistandardContent_rows _ _ _ _ _
174
175theorem contentInsert_weight {d N : ℕ} {μ : Fin d → ℕ} (p : Fin d → ℝ)
176 (A : SemistandardContent N μ) (hN : ∀ i, μ i ≤ N) (x : Fin d) :
177 contentWeight p (contentInsert A hN x).val = contentWeight p A.val * p x := by
178 rw [← contentRows_monomial, contentInsert_rows, tableauInsert_monomial,
179 contentRows_monomial]
180
181end Cloning.YoungGeneral