Exact Lean source
TensorFlatProjectorCasimirMoment
formalization/Cloning/TensorFlatProjectorCasimirMoment.lean
Source hash: 5e60fddd6333936a56411b77bb0ecd1e48de227d25a016bb11e19f12c95e05e1
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.TensorFlatProjectorCasimirTrace
2import Cloning.Projector
3
4/-! Sharp quadratic tightness for the actual physical flat Young law. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace
7namespace Cloning.TensorLie
8open Cloning.PCT Cloning.YoungGeneral MvPolynomial
9set_option maxHeartbeats 1500000
10set_option backward.isDefEq.respectTransparency false
11variable {n d : ℕ}
12local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
13 (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
14
15/-- Grouping an observable over the literal physical copies. -/
16theorem physicalYoungPMF_sum_observable (L : List (PhysicalHighestTensor n d))
17 (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
18 (fun i => (L.get i).sector.subtypeₗᵢ))
19 (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤)
20 (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1)
21 (f : (Fin d → ℕ) → ℝ) :
22 ∑ mu : Shape d n, (physicalYoungPMF L hL hspan p hp hs mu).toReal *
23 f (fun a => (mu a).val) = ∑ i : Fin L.length, (L.get i).character p * f (L.get i).weight := by
24 classical
25 simp only [physicalYoungPMF_toReal, ← physicalLabelMass_eq_count_mul,
26 physicalLabelMass, Finset.sum_mul]
27 rw [Finset.sum_comm]
28 apply Finset.sum_congr rfl
29 intro i _
30 simp only [ite_mul, zero_mul, ← PhysicalHighestTensor.shape_eq_iff]
31 simp [PhysicalHighestTensor.shape]
32
33/-- The Casimir trace evaluated on the flat input, expressed in its actual
34orthogonal physical summands. -/
35theorem flat_casimir_trace_eq_sum_blocks (L : List (PhysicalHighestTensor n d))
36 (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
37 (fun i => (L.get i).sector.subtypeₗᵢ))
38 (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤) (c : ℝ) (hc : 0 ≤ c) :
39 eval (fun _ : Fin d => (c : ℂ)) (tensorWeightTrace (collectiveCasimir n d)) =
40 ∑ i : Fin L.length, ((L.get i).character (fun _ => c) : ℂ) *
41 casimirEigenvalue (fun a => ((L.get i).weight a : ℂ)) := by
42 classical
43 rw [eval_tensorWeightTrace, LinearMap.trace_eq_sum_inner _ (physicalSchurBasis L hL hspan)]
44 simp only [physicalSchurBasis_apply, PhysicalSchurBasisIndex, Fintype.sum_sigma]
45 apply Finset.sum_congr rfl
46 intro i _
47 let H := L.get i
48 have hm (j : PartitionIndex H.weight H.weight_antitone) :
49 physicalSchurBasisVector L ⟨i,j⟩ ∈ cyclicSector H.vector :=
50 (H.canonicalIsometry (partitionBasis H.weight H.weight_antitone j)).property
51 have he (j : PartitionIndex H.weight H.weight_antitone) :
52 ⟪physicalSchurBasisVector L ⟨i,j⟩,
53 (tensorOperator n (Matrix.diagonal (fun _ : Fin d => (c : ℂ))) *
54 collectiveCasimir n d) (physicalSchurBasisVector L ⟨i,j⟩)⟫_ℂ =
55 (c : ℂ)^n * casimirEigenvalue (fun a => (H.weight a : ℂ)) := by
56 rw [ContinuousLinearMap.mul_apply, collectiveCasimir_eq_smul_on_cyclicSector
57 H.vector (fun a => (H.weight a : ℂ)) H.cartan H.raising (hm j), map_smul]
58 have ht : tensorOperator n (Matrix.diagonal (fun _ : Fin d => (c : ℂ)))
59 (physicalSchurBasisVector L ⟨i,j⟩) = (c : ℂ)^n • physicalSchurBasisVector L ⟨i,j⟩ := by
60 apply lp.ext
61 funext w
62 rw [tensorOperator_diagonal_apply]
63 simp
64 rw [ht, inner_smul_right, inner_smul_right]
65 have hn := orthonormal_iff_ite.mp (physicalSchurBasisVector_orthonormal L hL) ⟨i,j⟩ ⟨i,j⟩
66 simp only [if_true] at hn
67 rw [hn]
68 ring
69 simp only [ContinuousLinearMap.coe_coe, he, Finset.sum_const, Finset.card_univ,
70 nsmul_eq_mul]
71 change _ = (H.character (fun _ => c) : ℂ) * _
72 unfold PhysicalHighestTensor.character
73 rw [sectorPartitionFunction_const _ _ _ _ c hc]
74 change _ = ((c ^ (∑ a, H.weight a) * (partitionDimension H.weight H.weight_antitone : ℝ) : ℝ) : ℂ) * _
75 rw [H.weight_sum]
76 simp only [PartitionIndex, Fintype.card_fin]
77 push_cast
78 ring
79
80/-- The exact quadratic Casimir moment of the actual flat Young PMF. -/
81theorem tensorFlatYoungPMF_casimir_moment (hd : 0 < d) :
82 ∑ mu : Shape d n, (tensorFlatYoungPMF n d hd mu).toReal *
83 (casimirEigenvalue (fun a => ((mu a).val : ℂ))).re =
84 (n : ℝ)*(d : ℝ) + (n : ℝ)*((n : ℝ)-1)/(d : ℝ) := by
85 let L := recursivePhysicalDecomposition n d
86 have hL := (recursivePhysicalDecomposition_is_decomposition n d).1
87 have hspan := (recursivePhysicalDecomposition_is_decomposition n d).2
88 change ∑ mu : Shape d n, (physicalYoungPMF L hL hspan (flatSpectrum d)
89 (fun _ => by unfold flatSpectrum; positivity) (flatSpectrum_sum d hd) mu).toReal * _ = _
90 rw [physicalYoungPMF_sum_observable (f := fun mu =>
91 (casimirEigenvalue (fun a => (mu a : ℂ))).re)]
92 have he := flat_casimir_trace_eq_sum_blocks L hL hspan (1/(d:ℝ)) (by positivity)
93 rw [tensor_flat_casimir_expectation hd] at he
94 have hr := congrArg Complex.re he
95 have hc : ((n:ℂ)*(d:ℂ)+(n:ℂ)*((n:ℂ)-1)/(d:ℂ)).re =
96 (n:ℝ)*(d:ℝ)+(n:ℝ)*((n:ℝ)-1)/(d:ℝ) := by
97 have hc : (n:ℂ)*(d:ℂ)+(n:ℂ)*((n:ℂ)-1)/(d:ℂ) =
98 (((n:ℝ)*(d:ℝ)+(n:ℝ)*((n:ℝ)-1)/(d:ℝ) : ℝ) : ℂ) := by push_cast; rfl
99 rw [hc, Complex.ofReal_re]
100 rw [hc] at hr
101 simp only [Complex.re_sum, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im,
102 zero_mul, sub_zero] at hr
103 exact hr.symm
104
105/-- Real form of the genuine tensor Casimir eigenvalue. -/
106theorem casimirEigenvalue_nat_re (mu : Fin d → ℕ) :
107 (casimirEigenvalue (fun a => (mu a : ℂ))).re =
108 ∑ a, (mu a : ℝ)^2 + ∑ a, ∑ b, if a < b then (mu a : ℝ) - mu b else 0 := by
109 simp [casimirEigenvalue, Complex.mul_re, pow_two, apply_ite]
110
111/-- The physical flat Young law has the sharp O(n) centered second moment.
112No character, Casimir or probability identity is assumed. -/
113theorem tensorFlatYoungPMF_centered_second_moment_le (hd : 0 < d) :
114 (∑ mu : Shape d n, (tensorFlatYoungPMF n d hd mu).toReal *
115 (∑ a : Fin d, (((mu a).val : ℝ) - (n : ℝ)/(d : ℝ))^2)) ≤
116 (n : ℝ) * ((d : ℝ) - 1/(d : ℝ)) := by
117 classical
118 let L := recursivePhysicalDecomposition n d
119 have hL := (recursivePhysicalDecomposition_is_decomposition n d).1
120 have hspan := (recursivePhysicalDecomposition_is_decomposition n d).2
121 have hp : ∀ a, 0 ≤ flatSpectrum d a := fun _ => by unfold flatSpectrum; positivity
122 have hs := flatSpectrum_sum d hd
123 have ht := tensorFlatYoungPMF_casimir_moment (n := n) hd
124 change ∑ mu : Shape d n, (physicalYoungPMF L hL hspan (flatSpectrum d) hp hs mu).toReal * _ = _ at ht
125 rw [physicalYoungPMF_sum_observable (f := fun mu =>
126 (casimirEigenvalue (fun a => (mu a : ℂ))).re)] at ht
127 change (∑ mu : Shape d n, (physicalYoungPMF L hL hspan (flatSpectrum d) hp hs mu).toReal * _) ≤ _
128 rw [physicalYoungPMF_sum_observable (f := fun mu =>
129 ∑ a : Fin d, ((mu a : ℝ) - (n : ℝ)/(d : ℝ))^2)]
130 apply Cloning.Projector.second_moment_le_of_casimir Finset.univ
131 (fun i : Fin L.length => (L.get i).character (flatSpectrum d))
132 (fun i => ∑ a : Fin d, (((L.get i).weight a : ℝ) - (n : ℝ)/(d : ℝ))^2)
133 (fun i => ∑ a : Fin d, ∑ b : Fin d, if a < b then
134 ((L.get i).weight a : ℝ) - (L.get i).weight b else 0)
135 (fun i => (casimirEigenvalue (fun a => ((L.get i).weight a : ℂ))).re)
136 (n : ℝ) (d : ℝ)
137 · intro i _
138 exact (L.get i).character_nonneg _
139 · rw [sum_physical_characters L hL hspan _ hp, hs, one_pow]
140 · intro i _
141 apply Finset.sum_nonneg
142 intro a _
143 apply Finset.sum_nonneg
144 intro b _
145 split_ifs with hab
146 · exact sub_nonneg.mpr (by exact_mod_cast (L.get i).weight_antitone hab.le)
147 · exact le_rfl
148 · intro i _
149 rw [casimirEigenvalue_nat_re]
150 have hsum : ∑ a : Fin d, ((L.get i).weight a : ℝ) = n := by
151 exact_mod_cast (L.get i).weight_sum
152 rw [Cloning.Projector.centered_square_sum_eq Finset.univ
153 (fun a : Fin d => ((L.get i).weight a : ℝ)) (n : ℝ) (d : ℝ)
154 (Nat.cast_ne_zero.mpr hd.ne') (by simp) hsum]
155 ring
156 · exact ht
157
158end Cloning.TensorLie