Offline · exact source
Exact Lean source

TensorSchurDecompositionPMF

formalization/Cloning/TensorSchurDecompositionPMF.lean

Source hash: bdcc17da380ea14fb861401979fdc722ec9c91e4514c88547844d864ac296a78

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.TensorSchurDecompositionTrace
2import Cloning.YoungGeneralTableaux
3import Mathlib.Probability.ProbabilityMassFunction.Constructions
4 
5/-! The actual Young-label probability law obtained by grouping physical blocks. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace
8namespace Cloning.TensorLie
9open Cloning.YoungGeneral
10set_option maxHeartbeats 1000000
11set_option backward.isDefEq.respectTransparency false
12attribute [local instance] Classical.propDecidable
13variable {n d : ℕ}
14 
15/-- The trace of the canonical sector. Nonpartitions have no physical sector. -/
16def physicalSectorCharacter (mu : Fin d → ℕ) (p : Fin d → ℝ) : ℝ :=
17  if hmu : Antitone mu then
18    sectorPartitionFunction (partitionHighestTensor mu hmu) mu
19      (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p
20  else 0
21 
22theorem physicalSectorCharacter_nonneg (mu : Fin d → ℕ) (p : Fin d → ℝ) :
23    0 ≤ physicalSectorCharacter mu p := by
24  unfold physicalSectorCharacter
25  split_ifs
26  · exact norm_nonneg _
27  · exact le_rfl
28 
29theorem PhysicalHighestTensor.character_eq_physicalSectorCharacter
30    (H : PhysicalHighestTensor n d) (p : Fin d → ℝ) :
31    H.character p = physicalSectorCharacter H.weight p := by
32  simp [physicalSectorCharacter, H.weight_antitone, PhysicalHighestTensor.character]
33 
34/-- Actual multiplicity in an exhaustive physical list; no combinatorial
35identification enters its definition. -/
36def physicalCopyCount (L : List (PhysicalHighestTensor n d)) (mu : Fin d → ℕ) : ℕ :=
37  (Finset.univ.filter (fun i : Fin L.length => (L.get i).weight = mu)).card
38 
39def physicalLabelMass (L : List (PhysicalHighestTensor n d)) (p : Fin d → ℝ)
40    (mu : Fin d → ℕ) : ℝ :=
41  ∑ i : Fin L.length, if (L.get i).weight = mu then (L.get i).character p else 0
42 
43theorem physicalLabelMass_nonneg (L : List (PhysicalHighestTensor n d))
44    (p : Fin d → ℝ) (mu : Fin d → ℕ) : 0 ≤ physicalLabelMass L p mu := by
45  apply Finset.sum_nonneg
46  intro i _
47  split_ifs
48  · exact PhysicalHighestTensor.character_nonneg _ _
49  · exact le_rfl
50 
51theorem physicalLabelMass_eq_count_mul (L : List (PhysicalHighestTensor n d))
52    (p : Fin d → ℝ) (mu : Fin d → ℕ) :
53    physicalLabelMass L p mu = (physicalCopyCount L mu : ℝ) * physicalSectorCharacter mu p := by
54  unfold physicalLabelMass
55  rw [← Finset.sum_filter]
56  have he : ∀ i ∈ Finset.univ.filter (fun i : Fin L.length => (L.get i).weight = mu),
57      (L.get i).character p = physicalSectorCharacter mu p := by
58    intro i hi
59    rw [PhysicalHighestTensor.character_eq_physicalSectorCharacter,
60      (Finset.mem_filter.mp hi).2]
61  rw [Finset.sum_congr rfl he, Finset.sum_const, nsmul_eq_mul]
62  rfl
63 
64theorem physicalCopyCount_eq_zero_of_not_partition (L : List (PhysicalHighestTensor n d))
65    (mu : Fin d → ℕ) (hmu : ¬ Antitone mu ∨ (∑ a, mu a) ≠ n) :
66    physicalCopyCount L mu = 0 := by
67  apply Finset.card_eq_zero.mpr
68  apply Finset.filter_eq_empty_iff.mpr
69  intro i _ he
70  rcases hmu with hmu | hmu
71  · exact hmu (he ▸ (L.get i).weight_antitone)
72  · exact hmu (he ▸ (L.get i).weight_sum)
73 
74def PhysicalHighestTensor.shape (H : PhysicalHighestTensor n d) : Shape d n :=
75  fun a => ⟨H.weight a, Nat.lt_succ_of_le (by
76    have h := Finset.single_le_sum (fun (b : Fin d) _ => Nat.zero_le (H.weight b))
77      (Finset.mem_univ a)
78    exact h.trans_eq H.weight_sum)⟩
79 
80theorem PhysicalHighestTensor.shape_eq_iff (H : PhysicalHighestTensor n d) (mu : Shape d n) :
81    H.shape = mu ↔ H.weight = fun a => (mu a).val := by
82  constructor
83  · intro h
84    exact funext (fun a => congrArg Fin.val (congrFun h a))
85  · intro h
86    exact funext (fun a => Fin.ext (congrFun h a))
87 
88theorem sum_physicalLabelMass (L : List (PhysicalHighestTensor n d)) (p : Fin d → ℝ) :
89    ∑ mu : Shape d n, physicalLabelMass L p (fun a => (mu a).val) =
90      ∑ i : Fin L.length, (L.get i).character p := by
91  unfold physicalLabelMass
92  rw [Finset.sum_comm]
93  apply Finset.sum_congr rfl
94  intro i _
95  simp only [← PhysicalHighestTensor.shape_eq_iff]
96  simp
97 
98variable (L : List (PhysicalHighestTensor n d))
99  (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
100    (fun i => (L.get i).sector.subtypeₗᵢ))
101  (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤)
102  (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1)
103 
104/-- This PMF is normalized by the trace of the literal tensor-power state. -/
105def physicalYoungPMF : PMF (Shape d n) :=
106  PMF.ofFintype (fun mu => ENNReal.ofReal (physicalLabelMass L p (fun a => (mu a).val))) (by
107    rw [← ENNReal.ofReal_sum_of_nonneg (fun mu _ => physicalLabelMass_nonneg L p _),
108      sum_physicalLabelMass, sum_physical_characters L hL hspan p hp, hs, one_pow]
109    exact ENNReal.ofReal_one)
110 
111@[simp] theorem physicalYoungPMF_toReal (mu : Shape d n) :
112    (physicalYoungPMF L hL hspan p hp hs mu).toReal =
113      (physicalCopyCount L (fun a => (mu a).val) : ℝ) *
114        physicalSectorCharacter (fun a => (mu a).val) p := by
115  rw [physicalYoungPMF, PMF.ofFintype_apply,
116    ENNReal.toReal_ofReal (physicalLabelMass_nonneg L p _), physicalLabelMass_eq_count_mul]
117 
118theorem physicalYoungPMF_eq_zero_of_not_partition (mu : Shape d n)
119    (hmu : ¬ Antitone (fun a => (mu a).val) ∨ (∑ a, (mu a).val) ≠ n) :
120    physicalYoungPMF L hL hspan p hp hs mu = 0 := by
121  rw [physicalYoungPMF, PMF.ofFintype_apply, physicalLabelMass_eq_count_mul,
122    physicalCopyCount_eq_zero_of_not_partition L _ hmu, Nat.cast_zero, zero_mul,
123    ENNReal.ofReal_zero]
124 
125end Cloning.TensorLie