Offline · exact source
Exact Lean source

TensorLANEmbeddingSchurWeights

formalization/Cloning/TensorLANEmbeddingSchurWeights.lean

Source hash: 968d7cf59879fe40f29bbb5d8c90de0c9b0e59aa50011a085a15576a9cdecdc5

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.TensorLANEmbeddingBlocks
2import Cloning.TensorLANEmbeddingCellProtocol
3 
4/-! The actual copy probabilities and their exact affine-lattice pushforward. -/
5noncomputable section
6open scoped BigOperators Topology Classical InnerProductSpace NNReal ENNReal
7open MeasureTheory Filter
8namespace Cloning.TensorLAN
9open Cloning.YoungHyperplane Cloning.TensorLie Cloning.InfiniteTraceClass Cloning.Hybrid
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1200000
12 
13/-- The probabilities of the individual actual physical Schur copies. -/
14def physicalCopyPMF (N d : ℕ) (p : Fin d → ℝ)
15    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) : PMF (SchurCopy N d) :=
16  PMF.ofFintype (fun i => ENNReal.ofReal (((recursivePhysicalDecomposition N d).get i).character p)) (by
17    rw [← ENNReal.ofReal_sum_of_nonneg (fun i _ => PhysicalHighestTensor.character_nonneg _ _),
18      sum_physical_characters (recursivePhysicalDecomposition N d)
19        (recursivePhysicalDecomposition_is_decomposition N d).1
20        (recursivePhysicalDecomposition_is_decomposition N d).2 p hp,
21      hs, one_pow, ENNReal.ofReal_one])
22 
23@[simp] theorem physicalCopyPMF_toReal (N d : ℕ) (p : Fin d → ℝ)
24    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) (i : SchurCopy N d) :
25    (physicalCopyPMF N d p hp hs i).toReal =
26      ((recursivePhysicalDecomposition N d).get i).character p := by
27  simp only [physicalCopyPMF, PMF.ofFintype_apply,
28    ENNReal.toReal_ofReal (PhysicalHighestTensor.character_nonneg _ _)]
29 
30/-- The physical partition measurement is literally the grouping of its
31actual copy probabilities. -/
32theorem tensorYoungPMF_eq_map_copies (N d : ℕ) (p : Fin d → ℝ)
33    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) :
34    tensorYoungPMF N d p hp hs =
35      (physicalCopyPMF N d p hp hs).map
36        (fun i => ((recursivePhysicalDecomposition N d).get i).shape) := by
37  ext mu
38  rw [tensorYoungPMF, physicalYoungPMF, PMF.ofFintype_apply, PMF.map_apply, tsum_fintype]
39  unfold physicalLabelMass
40  rw [ENNReal.ofReal_sum_of_nonneg (fun i _ => by
41    split_ifs
42    · exact PhysicalHighestTensor.character_nonneg _ _
43    · exact le_rfl)]
44  apply Finset.sum_congr rfl
45  intro i _
46  simp only [physicalCopyPMF, PMF.ofFintype_apply]
47  simp only [eq_comm (a := mu), PhysicalHighestTensor.shape_eq_iff]
48  split_ifs <;> simp
49 
50@[simp] theorem schurCopyLattice_eq_shapeLattice (N d : ℕ) (i : SchurCopy N (d+1)) :
51    schurCopyLattice N d i =
52      shapeLattice d N ((recursivePhysicalDecomposition N (d+1)).get i).shape := by
53  apply Subtype.ext
54  funext a
55  symm
56  exact shapeLattice_apply d N _ ((recursivePhysicalDecomposition N (d+1)).get i).weight_sum a
57 
58/-- The normalized law driving the literal fixed-reference cells is exactly
59the genuine copy instrument's pushforward. -/
60theorem tensorYoungLatticePMF_eq_map_copies (N d : ℕ) (p : Fin (d+1) → ℝ)
61    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) :
62    tensorYoungLatticePMF d N p hp hs =
63      (physicalCopyPMF N (d+1) p hp hs).map (schurCopyLattice N d) := by
64  rw [tensorYoungLatticePMF, tensorYoungPMF_eq_map_copies, PMF.map_comp]
65  congr 1
66  funext i
67  exact (schurCopyLattice_eq_shapeLattice N d i).symm
68 
69/-- Exact affine-label probability, including zero mass at every label that
70has no physical copy. -/
71theorem tensorYoungLatticePMF_toReal_eq_sum_copies (N d : ℕ) (p : Fin (d+1) → ℝ)
72    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) (mu : Lattice d (N : ℤ)) :
73    (tensorYoungLatticePMF d N p hp hs mu).toReal =
74      ∑ i : SchurCopy N (d+1), if schurCopyLattice N d i = mu then
75        ((recursivePhysicalDecomposition N (d+1)).get i).character p else 0 := by
76  rw [tensorYoungLatticePMF_eq_map_copies, PMF.map_apply, tsum_fintype,
77    ENNReal.toReal_sum (by
78      intro i _
79      split_ifs
80      · exact (physicalCopyPMF N (d+1) p hp hs).apply_ne_top i
81      · exact ENNReal.zero_ne_top)]
82  apply Finset.sum_congr rfl
83  intro i _
84  simp only [eq_comm (a := mu)]
85  split_ifs <;> simp
86 
87end Cloning.TensorLAN