Offline · exact source
Exact Lean source

TensorFlatProjectorPadding

formalization/Cloning/TensorFlatProjectorPadding.lean

Source hash: f39cab47e8a8239e74ea649ec5c7ae3ad5cf8a40ddf35315339eacc342ae3dde

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.TensorFlatProjectorState
2 
3/-! Exact preservation of standard-tableau multiplicity by zero padding. -/
4noncomputable section
5open scoped BigOperators
6namespace Cloning.TensorLie
7open Cloning.YoungGeneral
8set_option maxHeartbeats 1200000
9set_option backward.isDefEq.respectTransparency false
10variable {n r k : ℕ}
11 
12theorem coordinateWordEmbedding_prefix (w : Fin n → Fin r) (N : ℕ) :
13    (fun a : Fin (r+k) => (Finset.univ.filter (fun t : Fin n => t.val < N ∧
14      coordinateWordEmbedding n r k w t = a)).card) =
15    padPartition (fun a => (Finset.univ.filter (fun t : Fin n => t.val < N ∧ w t = a)).card) k := by
16  classical
17  funext a
18  induction a using Fin.addCases with
19  | left a => simp [coordinateWordEmbedding, padPartition]
20  | right a =>
21    have he (t : Fin n) : Fin.castAdd k (w t) ≠ Fin.natAdd r a := by
22      intro hh
23      have hv := congrArg Fin.val hh
24      simp only [Fin.val_castAdd, Fin.val_natAdd] at hv
25      omega
26    simp [coordinateWordEmbedding, padPartition, he]
27 
28theorem coordinateWordEmbedding_rowCount (w : Fin n → Fin r) :
29    rowCount (coordinateWordEmbedding n r k w) = padPartition (rowCount w) k := by
30  simpa only [Fin.is_lt, true_and, rowCount] using coordinateWordEmbedding_prefix (k := k) w n
31 
32theorem coordinateWordEmbedding_standard (w : Fin n → Fin r) :
33    IsStandardWord (coordinateWordEmbedding n r k w) ↔ IsStandardWord w := by
34  constructor
35  · intro hw N a b hab
36    have he := hw N (show Fin.castAdd k a ≤ Fin.castAdd k b from hab)
37    simpa only [congrFun (coordinateWordEmbedding_prefix w N) _, padPartition_left] using he
38  · intro hw N
39    rw [coordinateWordEmbedding_prefix]
40    exact padPartition_antitone _ (hw N) k
41 
42/-- Zero terminal row counts force every actual row-word letter into the
43smaller alphabet. -/
44theorem word_supported_of_padded_rowCount (w : Fin n → Fin (r+k)) (mu : Fin r → ℕ)
45    (hw : rowCount w = padPartition mu k) : ∀ t, (w t).val < r := by
46  classical
47  intro t
48  by_contra ht
49  have hr : r ≤ (w t).val := Nat.le_of_not_gt ht
50  let a : Fin k := ⟨(w t).val-r, by omega⟩
51  have he : w t = Fin.natAdd r a := Fin.ext (by simp only [Fin.val_natAdd]; dsimp [a]; omega)
52  have hz : rowCount w (w t) = 0 := by rw [hw, he, padPartition_right]
53  have hp : 0 < rowCount w (w t) := by
54    apply Finset.card_pos.mpr
55    exact ⟨t, Finset.mem_filter.mpr ⟨Finset.mem_univ _, rfl⟩⟩
56  omega
57 
58/-- The literal standard-tableau count is unchanged by zero padding. -/
59theorem standardCount_padPartition (mu : Fin r → ℕ) (k : ℕ) :
60    standardCount n (padPartition mu k) = standardCount n mu := by
61  classical
62  unfold standardCount
63  symm
64  apply Finset.card_bij (fun w _ => coordinateWordEmbedding n r k w)
65  · intro w hw
66    obtain ⟨_,hs,hc⟩ := Finset.mem_filter.mp hw
67    apply Finset.mem_filter.mpr
68    exact ⟨Finset.mem_univ _, (coordinateWordEmbedding_standard w).mpr hs,
69      (coordinateWordEmbedding_rowCount w).trans (congrArg (fun f => padPartition f k) hc)⟩
70  · intro w hw v hv he
71    exact (coordinateWordEmbedding n r k).injective he
72  · intro w hw
73    obtain ⟨_,hs,hc⟩ := Finset.mem_filter.mp hw
74    have hsupport := word_supported_of_padded_rowCount w mu hc
75    let v : Fin n → Fin r := fun t => ⟨(w t).val,hsupport t⟩
76    have he : coordinateWordEmbedding n r k v = w := funext (fun t => Fin.ext rfl)
77    refine ⟨v, ?_, he⟩
78    apply Finset.mem_filter.mpr
79    refine ⟨Finset.mem_univ _, (coordinateWordEmbedding_standard v).mp (he.symm ▸ hs), ?_⟩
80    have hh := (coordinateWordEmbedding_rowCount v).symm.trans (he ▸ hc)
81    funext a
82    simpa only [padPartition_left] using congrFun hh (Fin.castAdd k a)
83 
84end Cloning.TensorLie