Exact Lean source
TensorSchurDecompositionTrace
formalization/Cloning/TensorSchurDecompositionTrace.lean
Source hash: ddc70673a26c163c60bf09eb36392cea935c4c0581776223b672d15a2f3629ef
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
definition
Cloning.TensorLie.PhysicalSchurBasisIndexdefinition Cloning.TensorLie.physicalSchurBasisVectortheorem Cloning.TensorLie.physicalSchurBasisVector_orthonormaltheorem Cloning.TensorLie.physicalSchurBasisVector_spansdefinition Cloning.TensorLie.physicalSchurBasistheorem Cloning.TensorLie.physicalSchurBasis_applytheorem Cloning.TensorLie.trace_tensorOperator_eq_sum_blockstheorem Cloning.TensorLie.trace_tensorOperator_diagonaldefinition Cloning.TensorLie.PhysicalHighestTensor.charactertheorem Cloning.TensorLie.PhysicalHighestTensor.character_nonnegtheorem Cloning.TensorLie.PhysicalHighestTensor.character_eq_tracetheorem Cloning.TensorLie.sum_physical_characters1import Cloning.TensorSchurDecompositionIsometry
2import Cloning.TensorCartanCoordinates
3import Cloning.TensorGibbsState
4import Mathlib.Analysis.InnerProductSpace.Trace
5
6/-! Literal physical traces of the full tensor-power decomposition. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace
9namespace Cloning.TensorLie
10open Cloning.PCT
11set_option maxHeartbeats 1000000
12set_option backward.isDefEq.respectTransparency false
13variable {n d : ℕ}
14
15local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
16 (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
17
18variable (L : List (PhysicalHighestTensor n d))
19
20abbrev PhysicalSchurBasisIndex := Σ i : Fin L.length,
21 PartitionIndex (L.get i).weight (L.get i).weight_antitone
22
23def physicalSchurBasisVector (a : PhysicalSchurBasisIndex L) : TensorRegister n (Fin d) :=
24 (L.get a.1).canonicalEmbedding
25 (partitionBasis (L.get a.1).weight (L.get a.1).weight_antitone a.2)
26
27variable (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
28 (fun i => (L.get i).sector.subtypeₗᵢ))
29 (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤)
30
31include hL in
32theorem physicalSchurBasisVector_orthonormal :
33 Orthonormal ℂ (physicalSchurBasisVector L) := by
34 classical
35 rw [orthonormal_iff_ite]
36 rintro ⟨i, a⟩ ⟨j, b⟩
37 by_cases hij : i = j
38 · subst j
39 change ⟪(L.get i).canonicalEmbedding _, (L.get i).canonicalEmbedding _⟫_ℂ = _
40 rw [LinearIsometry.inner_map_map]
41 simpa using orthonormal_iff_ite.mp
42 (partitionBasis (L.get i).weight (L.get i).weight_antitone).orthonormal a b
43 · have hab : (⟨i, a⟩ : PhysicalSchurBasisIndex L) ≠ ⟨j, b⟩ := by
44 intro he
45 exact hij (congrArg Sigma.fst he)
46 rw [if_neg hab]
47 exact (canonicalSectorFamily_orthogonal L hL) hij _ _
48
49include hL hspan in
50theorem physicalSchurBasisVector_spans :
51 ⊤ ≤ Submodule.span ℂ (Set.range (physicalSchurBasisVector L)) := by
52 intro x _
53 have hx := (physicalSchurIsometry_symm_apply L hL hspan
54 (physicalSchurIsometry L hL hspan x)).symm
55 rw [LinearIsometryEquiv.symm_apply_apply] at hx
56 rw [← hx]
57 apply Submodule.sum_mem
58 intro i _
59 let b := partitionBasis (L.get i).weight (L.get i).weight_antitone
60 rw [← b.sum_repr ((physicalSchurIsometry L hL hspan x) i), map_sum]
61 apply Submodule.sum_mem
62 intro j _
63 rw [map_smul]
64 apply Submodule.smul_mem
65 exact Submodule.subset_span ⟨⟨i, j⟩, rfl⟩
66
67def physicalSchurBasis : OrthonormalBasis (PhysicalSchurBasisIndex L) ℂ
68 (TensorRegister n (Fin d)) :=
69 OrthonormalBasis.mk (physicalSchurBasisVector_orthonormal L hL)
70 (physicalSchurBasisVector_spans L hL hspan)
71
72@[simp] theorem physicalSchurBasis_apply (a : PhysicalSchurBasisIndex L) :
73 physicalSchurBasis L hL hspan a = physicalSchurBasisVector L a := by
74 exact congrFun (OrthonormalBasis.coe_mk _ _) a
75
76include hL hspan in
77/-- The trace of every actual tensor power is the sum of the traces of its
78canonical physical irreducible blocks, counted with their actual copies. -/
79theorem trace_tensorOperator_eq_sum_blocks (X : Matrix (Fin d) (Fin d) ℂ) :
80 LinearMap.trace ℂ (TensorRegister n (Fin d)) (tensorOperator n X).toLinearMap =
81 ∑ i : Fin L.length, LinearMap.trace ℂ (L.get i).CanonicalSector
82 ((L.get i).canonicalTensorOperator X).toLinearMap := by
83 rw [LinearMap.trace_eq_sum_inner _ (physicalSchurBasis L hL hspan)]
84 simp only [physicalSchurBasis_apply, PhysicalSchurBasisIndex, Fintype.sum_sigma]
85 apply Finset.sum_congr rfl
86 intro i _
87 rw [LinearMap.trace_eq_sum_inner _ (partitionBasis (L.get i).weight (L.get i).weight_antitone)]
88 apply Finset.sum_congr rfl
89 intro j _
90 change ⟪(L.get i).canonicalEmbedding _, tensorOperator n X ((L.get i).canonicalEmbedding _)⟫_ℂ = _
91 rw [← PhysicalHighestTensor.canonicalEmbedding_tensorOperator,
92 LinearIsometry.inner_map_map]
93 rfl
94
95/-- The full physical diagonal tensor trace, including the zero-fold tensor. -/
96theorem trace_tensorOperator_diagonal (D : Fin d → ℂ) :
97 LinearMap.trace ℂ (TensorRegister n (Fin d))
98 (tensorOperator n (Matrix.diagonal D)).toLinearMap = (∑ a, D a) ^ n := by
99 rw [LinearMap.trace_eq_sum_inner _ (registerBasis (Fin n → Fin d)).toOrthonormalBasis]
100 have he : ∀ w : Fin n → Fin d,
101 ⟪(registerBasis (Fin n → Fin d)).toOrthonormalBasis w,
102 (tensorOperator n (Matrix.diagonal D)).toLinearMap
103 ((registerBasis (Fin n → Fin d)).toOrthonormalBasis w)⟫_ℂ = ∏ t, D (w t) := by
104 intro w
105 simp only [HilbertBasis.coe_toOrthonormalBasis]
106 change ⟪registerBasis (Fin n → Fin d) w,
107 tensorOperator n (Matrix.diagonal D) (registerBasis (Fin n → Fin d) w)⟫_ℂ = _
108 rw [tensorOperator_diagonal_basis, inner_smul_right]
109 have hh := orthonormal_iff_ite.mp (registerBasis (Fin n → Fin d)).orthonormal w w
110 simp only [ite_true] at hh
111 rw [hh, mul_one]
112 simp only [he]
113 rw [← Fintype.prod_sum (fun (_ : Fin n) a => D a)]
114 simp
115
116namespace PhysicalHighestTensor
117
118def character (H : PhysicalHighestTensor n d) (p : Fin d → ℝ) : ℝ :=
119 sectorPartitionFunction (partitionHighestTensor H.weight H.weight_antitone) H.weight
120 (partitionHighestTensor_cartan H.weight H.weight_antitone)
121 (partitionHighestTensor_raising_zero H.weight H.weight_antitone) p
122
123theorem character_nonneg (H : PhysicalHighestTensor n d) (p : Fin d → ℝ) :
124 0 ≤ H.character p := norm_nonneg _
125
126theorem character_eq_trace (H : PhysicalHighestTensor n d) (p : Fin d → ℝ)
127 (hp : ∀ a, 0 ≤ p a) :
128 H.character p = (LinearMap.trace ℂ H.CanonicalSector
129 (H.canonicalTensorOperator (Matrix.diagonal (fun a => (p a : ℂ)))).toLinearMap).re :=
130 sectorPartitionFunction_eq_linearMapTrace _ _ _ _ p hp
131
132end PhysicalHighestTensor
133
134include hL hspan in
135theorem sum_physical_characters (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) :
136 ∑ i : Fin L.length, (L.get i).character p = (∑ a, p a) ^ n := by
137 have ht := trace_tensorOperator_eq_sum_blocks L hL hspan
138 (Matrix.diagonal (fun a => (p a : ℂ)))
139 rw [trace_tensorOperator_diagonal] at ht
140 have hr := congrArg Complex.re ht
141 simp only [Complex.re_sum, ← Complex.ofReal_sum, ← Complex.ofReal_pow, Complex.ofReal_re] at hr
142 rw [hr]
143 exact Finset.sum_congr rfl (fun i _ => PhysicalHighestTensor.character_eq_trace _ p hp)
144
145end Cloning.TensorLie