Offline · exact source
Exact Lean source

TensorSchurDecompositionIsometry

formalization/Cloning/TensorSchurDecompositionIsometry.lean

Source hash: 6031ac316f460f7ecad768438496ae2ad139d8a9cd1ea7bb981c307351876bd9

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.TensorSchurDecomposition
2import Mathlib.Analysis.InnerProductSpace.l2Space
3import Mathlib.Analysis.Normed.Lp.LpEquiv
4 
5/-! A complete physical tensor decomposition as an exact Hilbert-sum isometry. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace
8namespace Cloning.TensorLie
9open Cloning.PCT
10set_option maxHeartbeats 1000000
11set_option backward.isDefEq.respectTransparency false
12variable {n d : ℕ}
13 
14local instance : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
15  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
16 
17namespace PhysicalHighestTensor
18 
19abbrev CanonicalSector (H : PhysicalHighestTensor n d) :=
20  cyclicSector (partitionHighestTensor H.weight H.weight_antitone)
21 
22def canonicalEmbedding (H : PhysicalHighestTensor n d) : H.CanonicalSector →ₗᵢ[ℂ] TensorRegister n (Fin d) :=
23  H.sector.subtypeₗᵢ.comp H.canonicalIsometry.toLinearIsometry
24 
25theorem range_canonicalEmbedding (H : PhysicalHighestTensor n d) :
26    LinearMap.range H.canonicalEmbedding.toLinearMap = H.sector := by
27  ext x
28  constructor
29  · rintro ⟨v, rfl⟩
30    exact (H.canonicalIsometry v).property
31  · intro hx
32    refine ⟨H.canonicalIsometry.symm ⟨x, hx⟩, ?_⟩
33    change (H.canonicalIsometry (H.canonicalIsometry.symm ⟨x, hx⟩) : TensorRegister n (Fin d)) = x
34    rw [LinearIsometryEquiv.apply_symm_apply]
35 
36def canonicalTensorOperator (H : PhysicalHighestTensor n d) (X : Matrix (Fin d) (Fin d) ℂ) :
37    H.CanonicalSector →L[ℂ] H.CanonicalSector :=
38  cyclicTensorOperator (partitionHighestTensor H.weight H.weight_antitone)
39    (fun a => (H.weight a : ℂ)) (partitionHighestTensor_cartan H.weight H.weight_antitone)
40    (partitionHighestTensor_raising_zero H.weight H.weight_antitone) X
41 
42theorem canonicalEmbedding_tensorOperator (H : PhysicalHighestTensor n d)
43    (X : Matrix (Fin d) (Fin d) ℂ) (x : H.CanonicalSector) :
44    H.canonicalEmbedding (H.canonicalTensorOperator X x) = tensorOperator n X (H.canonicalEmbedding x) := by
45  exact congrArg (fun y : H.sector => (y : TensorRegister n (Fin d)))
46    (H.canonicalIsometry_tensorOperator X x)
47 
48end PhysicalHighestTensor
49 
50variable (L : List (PhysicalHighestTensor n d))
51 
52abbrev CanonicalSectorSum := lp (fun i : Fin L.length => (L.get i).CanonicalSector) 2
53 
54theorem canonicalSectorFamily_orthogonal
55    (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
56      (fun i => (L.get i).sector.subtypeₗᵢ)) :
57    OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).CanonicalSector)
58      (fun i => (L.get i).canonicalEmbedding) := by
59  intro i j hij x y
60  exact hL hij ((L.get i).canonicalIsometry x) ((L.get j).canonicalIsometry y)
61 
62def canonicalSectorHilbertSum
63    (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
64      (fun i => (L.get i).sector.subtypeₗᵢ))
65    (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤) :
66    IsHilbertSum ℂ (fun i : Fin L.length => (L.get i).CanonicalSector)
67      (fun i => (L.get i).canonicalEmbedding) := by
68  apply IsHilbertSum.mk (canonicalSectorFamily_orthogonal L hL)
69  simp only [PhysicalHighestTensor.range_canonicalEmbedding, hspan]
70  exact Submodule.le_topologicalClosure _
71 
72/-- The full physical register is unitarily equivalent to the finite Hilbert
73sum of its canonical partition copies. Repeated labels are retained. -/
74def physicalSchurIsometry
75    (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
76      (fun i => (L.get i).sector.subtypeₗᵢ))
77    (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤) :
78    TensorRegister n (Fin d) ≃ₗᵢ[ℂ] CanonicalSectorSum L :=
79  (canonicalSectorHilbertSum L hL hspan).linearIsometryEquiv
80 
81theorem physicalSchurIsometry_symm_apply
82    (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
83      (fun i => (L.get i).sector.subtypeₗᵢ))
84    (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤) (x : CanonicalSectorSum L) :
85    (physicalSchurIsometry L hL hspan).symm x =
86      ∑ i : Fin L.length, (L.get i).canonicalEmbedding (x i) := by
87  rw [physicalSchurIsometry, IsHilbertSum.linearIsometryEquiv_symm_apply, tsum_fintype]
88 
89/-- The exact diagonal block action on the finite sum of partition copies. -/
90def physicalSchurBlockOperator (X : Matrix (Fin d) (Fin d) ℂ) :
91    CanonicalSectorSum L →ₗ[ℂ] CanonicalSectorSum L where
92  toFun x := ⟨fun i => (L.get i).canonicalTensorOperator X (x i), Memℓp.all _⟩
93  map_add' x y := by
94    apply lp.ext
95    funext i
96    change (L.get i).canonicalTensorOperator X (x i + y i) = _
97    exact map_add _ _ _
98  map_smul' c x := by
99    apply lp.ext
100    funext i
101    change (L.get i).canonicalTensorOperator X (c • x i) = _
102    exact map_smul _ _ _
103 
104@[simp] theorem physicalSchurBlockOperator_apply (X : Matrix (Fin d) (Fin d) ℂ)
105    (x : CanonicalSectorSum L) (i : Fin L.length) :
106    physicalSchurBlockOperator L X x i = (L.get i).canonicalTensorOperator X (x i) := rfl
107 
108/-- Exact block diagonalization of every literal tensor power, not only of
109unitaries or positive matrices. -/
110theorem physicalSchurIsometry_intertwines
111    (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
112      (fun i => (L.get i).sector.subtypeₗᵢ))
113    (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤)
114    (X : Matrix (Fin d) (Fin d) ℂ) (x : TensorRegister n (Fin d)) :
115    physicalSchurIsometry L hL hspan (tensorOperator n X x) =
116      physicalSchurBlockOperator L X (physicalSchurIsometry L hL hspan x) := by
117  apply (physicalSchurIsometry L hL hspan).symm.injective
118  rw [LinearIsometryEquiv.symm_apply_apply, physicalSchurIsometry_symm_apply]
119  simp only [physicalSchurBlockOperator_apply, PhysicalHighestTensor.canonicalEmbedding_tensorOperator,
120    ← map_sum]
121  rw [← physicalSchurIsometry_symm_apply L hL hspan, LinearIsometryEquiv.symm_apply_apply]
122 
123/-- One fixed exhaustive decomposition, obtained from the proved finite
124orthogonal splitting theorem. -/
125def tensorDecompositionList (n d : ℕ) : List (PhysicalHighestTensor n d) :=
126  Classical.choose (exists_tensor_cyclic_decomposition n d)
127 
128theorem tensorDecompositionList_orthogonal (n d : ℕ) :
129    OrthogonalFamily ℂ
130      (fun i : Fin (tensorDecompositionList n d).length => ((tensorDecompositionList n d).get i).sector)
131      (fun i => ((tensorDecompositionList n d).get i).sector.subtypeₗᵢ) :=
132  (Classical.choose_spec (exists_tensor_cyclic_decomposition n d)).1
133 
134theorem tensorDecompositionList_spans (n d : ℕ) :
135    (⨆ i : Fin (tensorDecompositionList n d).length, ((tensorDecompositionList n d).get i).sector) = ⊤ :=
136  (Classical.choose_spec (exists_tensor_cyclic_decomposition n d)).2
137 
138def tensorSchurTransform (n d : ℕ) :
139    TensorRegister n (Fin d) ≃ₗᵢ[ℂ] CanonicalSectorSum (tensorDecompositionList n d) :=
140  physicalSchurIsometry (tensorDecompositionList n d)
141    (tensorDecompositionList_orthogonal n d) (tensorDecompositionList_spans n d)
142 
143theorem tensorSchurTransform_intertwines (X : Matrix (Fin d) (Fin d) ℂ)
144    (x : TensorRegister n (Fin d)) :
145    tensorSchurTransform n d (tensorOperator n X x) =
146      physicalSchurBlockOperator (tensorDecompositionList n d) X (tensorSchurTransform n d x) :=
147  physicalSchurIsometry_intertwines (tensorDecompositionList n d)
148    (tensorDecompositionList_orthogonal n d) (tensorDecompositionList_spans n d) X x
149 
150end Cloning.TensorLie