Offline · exact source
Exact Lean source

TensorLANEmbeddingBlocks

formalization/Cloning/TensorLANEmbeddingBlocks.lean

Source hash: 8c3e245c97f549f8023cf57b371302715bd1c1b99ecbac76aaff9ed3b52ac8fc

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.TensorLANEmbeddingSchur
2import Cloning.TensorGibbsState
3import Cloning.PCTPhysicalState
4 
5/-! Exact trace-class blocks of the literal physical tensor input. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Classical
8namespace Cloning.TensorLAN
9open Cloning.PCT Cloning.TensorLie Cloning.InfiniteTraceClass Cloning.Hybrid
10set_option maxHeartbeats 1000000
11set_option synthInstance.maxHeartbeats 100000
12set_option backward.isDefEq.respectTransparency false
13variable {n d : ℕ}
14local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
15  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
16 
17/-- The actual restricted tensor operator, regarded as a trace-class operator. -/
18def canonicalTensorWeight (H : PhysicalHighestTensor n d)
19    (X : Matrix (Fin d) (Fin d) ℂ) : TraceClass H.CanonicalSector :=
20  TraceClass.ofOperator (H.canonicalTensorOperator X) (isTraceClass_of_finiteDimensional _)
21 
22theorem canonicalEmbedding_adjoint_self (H : PhysicalHighestTensor n d)
23    (x : H.CanonicalSector) :
24    H.canonicalEmbedding.toContinuousLinearMap.adjoint (H.canonicalEmbedding x) = x := by
25  have h := (ContinuousLinearMap.norm_map_iff_adjoint_comp_self
26    H.canonicalEmbedding.toContinuousLinearMap).mp H.canonicalEmbedding.norm_map
27  exact congrArg (fun T : H.CanonicalSector →L[ℂ] H.CanonicalSector => T x) h
28 
29/-- Compressing the literal tensor power to a physical Schur copy gives its
30literal canonical representation, for every complex matrix. -/
31theorem matrixTensorPower_canonical_block (H : PhysicalHighestTensor n d)
32    (X : Matrix (Fin d) (Fin d) ℂ) :
33    conjugationLinearMap H.canonicalEmbedding.toContinuousLinearMap.adjoint
34      (matrixTensorPower X n) = canonicalTensorWeight H X := by
35  apply Subtype.ext
36  apply ContinuousLinearMap.ext
37  intro x
38  change H.canonicalEmbedding.toContinuousLinearMap.adjoint
39    (tensorOperator n X (H.canonicalEmbedding.toContinuousLinearMap.adjoint.adjoint x)) = _
40  rw [ContinuousLinearMap.adjoint_adjoint]
41  change H.canonicalEmbedding.toContinuousLinearMap.adjoint
42    (tensorOperator n X (H.canonicalEmbedding x)) = H.canonicalTensorOperator X x
43  rw [← H.canonicalEmbedding_tensorOperator, canonicalEmbedding_adjoint_self]
44 
45/-- The complete physical tensor is the sum of its embedded canonical blocks.
46The identity is an equality of actual trace-class operators. -/
47theorem matrixTensorPower_eq_sum_canonical_blocks
48    (L : List (PhysicalHighestTensor n d))
49    (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
50      (fun i => (L.get i).sector.subtypeₗᵢ))
51    (hspan : (⨆ i : Fin L.length, (L.get i).sector) = ⊤)
52    (X : Matrix (Fin d) (Fin d) ℂ) :
53    matrixTensorPower X n = ∑ i : Fin L.length,
54      conjugationLinearMap (L.get i).canonicalEmbedding.toContinuousLinearMap
55        (canonicalTensorWeight (L.get i) X) := by
56  apply Subtype.ext
57  change (matrixTensorPower X n).1 = inclusionCLM (∑ i : Fin L.length, _)
58  rw [map_sum]
59  apply ContinuousLinearMap.ext
60  intro x
61  simp only [ContinuousLinearMap.sum_apply, inclusionCLM_apply, conjugationLinearMap_coe,
62    operatorConjugation_apply, canonicalTensorWeight, TraceClass.ofOperator_coe]
63  change tensorOperator n X x = ∑ i : Fin L.length,
64    (L.get i).canonicalEmbedding ((L.get i).canonicalTensorOperator X
65      ((L.get i).canonicalEmbedding.toContinuousLinearMap.adjoint x))
66  simp_rw [PhysicalHighestTensor.canonicalEmbedding_tensorOperator, ← map_sum]
67  congr 1
68  have hcoord := hilbertSum_adjoint_eq_coordinate
69    (fun i : Fin L.length => (L.get i).canonicalEmbedding)
70    (canonicalSectorHilbertSum L hL hspan)
71  simp_rw [hcoord]
72  exact (by
73    simpa only [LinearIsometryEquiv.symm_apply_apply] using
74      physicalSchurIsometry_symm_apply L hL hspan (physicalSchurIsometry L hL hspan x))
75 
76@[simp] theorem canonicalTensorWeight_diagonal (H : PhysicalHighestTensor n d)
77    (p : Fin d → ℝ) :
78    canonicalTensorWeight H (Matrix.diagonal (fun a => (p a : ℂ))) =
79      sectorGibbsWeight (partitionHighestTensor H.weight H.weight_antitone) H.weight
80        (partitionHighestTensor_cartan H.weight H.weight_antitone)
81        (partitionHighestTensor_raising_zero H.weight H.weight_antitone) p := rfl
82 
83/-- Normalization only changes the positive block by its actual partition
84function; no presumed spectral decomposition enters this identity. -/
85theorem sectorGibbsWeight_eq_partition_smul_state
86    (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
87    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
88    (hraise : ∀ a b, a < b → collectiveGenerator n a b Ω = 0)
89    (hΩ : ‖Ω‖ = 1) (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) :
90    sectorGibbsWeight Ω mu hweight hraise p =
91      (sectorPartitionFunction Ω mu hweight hraise p : ℂ) •
92        TraceClass.ofOperator (sectorGibbsState Ω mu hweight hraise hΩ p hp).op
93          (sectorGibbsState Ω mu hweight hraise hΩ p hp).traceClass := by
94  apply Subtype.ext
95  change sectorGibbsOperator Ω mu hweight hraise p =
96    (sectorPartitionFunction Ω mu hweight hraise p : ℂ) •
97      (((sectorPartitionFunction Ω mu hweight hraise p)⁻¹ : ℝ) : ℂ) •
98        sectorGibbsOperator Ω mu hweight hraise p
99  have hc : (sectorPartitionFunction Ω mu hweight hraise p : ℂ) *
100      (((sectorPartitionFunction Ω mu hweight hraise p)⁻¹ : ℝ) : ℂ) = 1 := by
101    exact_mod_cast mul_inv_cancel₀ (sectorPartitionFunction_pos Ω mu hweight hraise hΩ p hp).ne'
102  rw [smul_smul (sectorPartitionFunction Ω mu hweight hraise p : ℂ)
103    (((sectorPartitionFunction Ω mu hweight hraise p)⁻¹ : ℝ) : ℂ)
104    (sectorGibbsOperator Ω mu hweight hraise p), hc]
105  exact (one_smul ℂ (sectorGibbsOperator Ω mu hweight hraise p)).symm
106 
107end Cloning.TensorLAN