Offline · exact source
Exact Lean source

TensorFundamentalBranchingShape

formalization/Cloning/TensorFundamentalBranchingShape.lean

Source hash: 65ff434cb8ffcc60d27b19e1afef20e16c303d84519932cfd2a1306004d7acb5

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.YoungBranchingStandard
2 
3/-! Removing the initial column below an addable row. -/
4noncomputable section
5namespace Cloning.TensorLie
6open YoungGeneral
7variable {d : ℕ}
8 
9/-- Remove one box from every row strictly above the chosen new box. -/
10def removeInitialColumn (mu : Fin d → ℕ) (r : Fin d) : Fin d → ℕ :=
11  fun a => mu a - if a < r then 1 else 0
12 
13theorem positive_above_addable (mu : Fin d → ℕ) (r : Fin d)
14    (hr : Antitone (addBox mu r)) {a : Fin d} (ha : a < r) : 0 < mu a := by
15  have h := hr (le_of_lt ha)
16  have hne : a ≠ r := ne_of_lt ha
17  simp [addBox, hne] at h
18  omega
19 
20theorem removeInitialColumn_antitone (mu : Fin d → ℕ) (hmu : Antitone mu)
21    (r : Fin d) (hr : Antitone (addBox mu r)) : Antitone (removeInitialColumn mu r) := by
22  intro a b hab
23  have h := hmu hab
24  by_cases hbr : b < r
25  · have har : a < r := lt_of_le_of_lt hab hbr
26    simpa only [removeInitialColumn, if_pos hbr, if_pos har] using Nat.sub_le_sub_right h 1
27  · by_cases har : a < r
28    · have hgap := hr (le_of_lt har)
29      have hne : a ≠ r := ne_of_lt har
30      simp [addBox, hne] at hgap
31      have htail := hmu (le_of_not_gt hbr)
32      simp only [removeInitialColumn, if_neg hbr, if_pos har, Nat.sub_zero]
33      omega
34    · simpa only [removeInitialColumn, if_neg hbr, if_neg har, Nat.sub_zero] using h
35 
36theorem removeInitialColumn_add_indicator (mu : Fin d → ℕ) (r : Fin d)
37    (hr : Antitone (addBox mu r)) (a : Fin d) :
38    removeInitialColumn mu r a + (if a.val < r.val then 1 else 0) = mu a := by
39  by_cases ha : a < r
40  · have hp := positive_above_addable mu r hr ha
41    simp only [removeInitialColumn, if_pos ha, if_pos (show a.val < r.val from ha)]
42    omega
43  · simp only [removeInitialColumn, if_neg ha, if_neg (show ¬ a.val < r.val from ha), Nat.sub_zero, add_zero]
44 
45theorem removeInitialColumn_add_succ_indicator (mu : Fin d → ℕ) (r : Fin d)
46    (hr : Antitone (addBox mu r)) (a : Fin d) :
47    removeInitialColumn mu r a + (if a.val < r.val + 1 then 1 else 0) = addBox mu r a := by
48  have he := removeInitialColumn_add_indicator mu r hr a
49  by_cases har : a < r
50  · have hne := ne_of_lt har
51    have hav : a.val < r.val := har
52    simp only [if_pos hav] at he
53    simp only [addBox, if_neg hne, if_pos (by omega : a.val < r.val + 1)]
54    exact he
55  · by_cases heq : a = r
56    · subst a
57      simp [removeInitialColumn, addBox]
58    · have hneval : a.val ≠ r.val := fun h => heq (Fin.ext h)
59      have hav : ¬ a.val < r.val := har
60      simp only [if_neg hav, add_zero] at he
61      simp only [addBox, if_neg heq, if_neg (by omega : ¬ a.val < r.val + 1), add_zero]
62      exact he
63 
64end Cloning.TensorLie