Offline · exact source
Exact Lean source

TensorCartanStateCoefficients

formalization/Cloning/TensorCartanStateCoefficients.lean

Source hash: c7037cf0ede839ae857c7b5f68ccb659d88f96176f3778982d1bc3866b7a68d1

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.TensorCartanStateProduct
2import Cloning.TensorGibbsStateLimit
3import Cloning.TensorFlatProjectorDimensionLimit
4 
5/-! Exact finite-corner formula for the actual Cartan output of a sector Gibbs state. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Matrix Kronecker ComplexOrder Topology
8open Filter
9namespace Cloning.TensorLie
10open Cloning.PCT Cloning.InfiniteTraceClass
11set_option maxHeartbeats 600000
12set_option backward.isDefEq.respectTransparency false
13variable {d : ℕ}
14local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
15  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
16 
17section Generic
18variable {K I J : Type*} [NormedAddCommGroup K] [InnerProductSpace ℂ K]
19    [Fintype I] [Fintype J]
20 
21theorem inner_operator_of_finite_expansion (B : K →L[ℂ] K) (x y : K)
22    (v : I → J → K) (a c : I → J → ℂ) (lam : I → ℂ)
23    (hy : y = ∑ i, ∑ j, c i j • v i j)
24    (ha : ∀ i j, ⟪v i j,x⟫_ℂ = a i j)
25    (hB : ∀ i j, B (v i j) = lam i • v i j) :
26    ⟪x,B y⟫_ℂ = ∑ i, ∑ j, starRingEnd ℂ (a i j) * lam i * c i j := by
27  rw [hy]
28  simp only [map_sum, map_smul, hB, inner_sum, inner_smul_right]
29  apply Finset.sum_congr rfl
30  intro i _
31  apply Finset.sum_congr rfl
32  intro j _
33  have hi : ⟪x,v i j⟫_ℂ = starRingEnd ℂ (a i j) := by
34    rw [← ha i j]
35    exact (inner_conj_symm _ _).symm
36  rw [hi]
37  ring
38variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
39    [CompleteSpace K]
40 
41theorem inner_scaled_adjoint_compression (V : H →L[ℂ] K) (B : K →L[ℂ] K)
42    (c : ℂ) (x y : H) :
43    ⟪x,(c • V.adjoint.comp (B.comp V)) y⟫_ℂ = c * ⟪V x,B (V y)⟫_ℂ := by
44  simp only [ContinuousLinearMap.smul_apply, inner_smul_right,
45    ContinuousLinearMap.comp_apply, ContinuousLinearMap.adjoint_inner_right]
46 
47theorem traceCLM_quantumChannel (Φ : QuantumChannel H K) (A : TraceClass H) :
48    traceCLM (Φ.toLinearMap A) = traceCLM A := Φ.trace_preserving A
49 
50end Generic
51 
52theorem physicalCartanChannel_cutoff_coefficient
53    (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu) (R : ℕ)
54    (hmuGap : ∀ a : PositiveRoot d, 0 < rootGap mu a)
55    (hnuGap : ∀ a : PositiveRoot d, 0 < rootGap nu a)
56    (hmuLI : LinearIndependent ℂ (cutoffRawFrame (partitionHighestTensor mu hmu) mu R))
57    (hnuLI : LinearIndependent ℂ (cutoffRawFrame (partitionHighestTensor nu hnu) nu R))
58    (A : TraceClass (cyclicSector (partitionHighestTensor mu hmu))) (lam : CutoffIndex d R → ℂ)
59    (hA : ∀ j, A.1 (cutoffSectorFrame (partitionHighestTensor mu hmu) mu R j) =
60      lam j • cutoffSectorFrame (partitionHighestTensor mu hmu) mu R j)
61    (i l : CutoffIndex d R) :
62    ⟪cutoffSectorFrame (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu))
63        (fun a => mu a + nu a) R i,
64      ((physicalCartanChannel mu nu hmu hnu).toLinearMap A).1
65        (cutoffSectorFrame (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu))
66          (fun a => mu a + nu a) R l)⟫_ℂ =
67      ((((partitionDimension mu hmu : ℝ) /
68        (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ)) : ℂ)) *
69      ∑ j : CutoffIndex d R, ∑ k : CutoffIndex d R,
70        starRingEnd ℂ (cartanCutoffFrameMatrixElement mu nu hmu hnu R i j k) *
71          lam j * cartanCutoffFrameMatrixElement mu nu hmu hnu R l j k := by
72  let H := cyclicSector (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu))
73  let x : H := cutoffSectorFrame _ (fun a => mu a + nu a) R i
74  let y : H := cutoffSectorFrame _ (fun a => mu a + nu a) R l
75  let V := (cartanInclusion mu nu hmu hnu).toContinuousLinearMap
76  let B := cartanProductOperator mu nu hmu hnu A.1
77  let c : ℂ := ((partitionDimension mu hmu : ℝ) /
78    (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ))
79  have he := congrArg (fun (T : H →L[ℂ] H) => ⟪x,T y⟫_ℂ)
80    (physicalCartanChannel_operator mu nu hmu hnu A)
81  have he' := inner_scaled_adjoint_compression V B c x y
82  have hexp : ⟪V x,B (V y)⟫_ℂ =
83      ∑ j : CutoffIndex d R, ∑ k : CutoffIndex d R,
84        starRingEnd ℂ (cartanCutoffFrameMatrixElement mu nu hmu hnu R i j k) *
85          lam j * cartanCutoffFrameMatrixElement mu nu hmu hnu R l j k := by
86    apply inner_operator_of_finite_expansion B (V x) (V y)
87      (fun j k => cartanProductVector mu nu hmu hnu
88        (cutoffSectorFrame (partitionHighestTensor mu hmu) mu R j)
89        (cutoffSectorFrame (partitionHighestTensor nu hnu) nu R k))
90      (fun j k => cartanCutoffFrameMatrixElement mu nu hmu hnu R i j k)
91      (fun j k => cartanCutoffFrameMatrixElement mu nu hmu hnu R l j k) lam
92    · exact cartanInclusion_cutoff_product_expansion mu nu hmu hnu R hmuGap hnuGap hmuLI hnuLI l
93    · intro j k
94      rfl
95    · intro j k
96      exact (cartanProductOperator_productVector mu nu hmu hnu A.1 _ _).trans
97        ((congrArg (fun z => cartanProductVector mu nu hmu hnu z
98          (cutoffSectorFrame (partitionHighestTensor nu hnu) nu R k)) (hA j)).trans
99          (cartanProductVector_smul_left mu nu hmu hnu (lam j) _ _))
100  exact he.trans (he'.trans (congrArg (fun z : ℂ => c * z) hexp))
101 
102def cartanGibbsOutput (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
103    (p : Fin d → ℝ) :
104    TraceClass (cyclicSector (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu))) :=
105  (physicalCartanChannel mu nu hmu hnu).toLinearMap
106    (sectorGibbsDensity (partitionHighestTensor mu hmu) mu
107      (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p)
108 
109theorem cartanGibbsOutput_nonneg (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
110    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) : 0 ≤ (cartanGibbsOutput mu nu hmu hnu p).1 :=
111  (physicalCartanChannel mu nu hmu hnu).map_nonneg _
112    (sectorGibbsDensity_nonneg _ _ _ _ (partitionHighestTensor_norm mu hmu) p hp)
113 
114theorem cartanGibbsOutput_trace (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
115    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) : traceCLM (cartanGibbsOutput mu nu hmu hnu p) = 1 := by
116  exact (traceCLM_quantumChannel (physicalCartanChannel mu nu hmu hnu)
117    (sectorGibbsDensity (partitionHighestTensor mu hmu) mu
118      (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p)).trans
119    (sectorGibbsDensity_trace _ _ _ _ (partitionHighestTensor_norm mu hmu) p hp)
120 
121theorem cartanGibbsOutput_cutoff_coefficient
122    (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
123    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (R : ℕ)
124    (hmuGap : ∀ a : PositiveRoot d, 0 < rootGap mu a)
125    (hnuGap : ∀ a : PositiveRoot d, 0 < rootGap nu a)
126    (hmuLI : LinearIndependent ℂ (cutoffRawFrame (partitionHighestTensor mu hmu) mu R))
127    (hnuLI : LinearIndependent ℂ (cutoffRawFrame (partitionHighestTensor nu hnu) nu R))
128    (i l : CutoffIndex d R) :
129    ⟪cutoffSectorFrame (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu))
130        (fun a => mu a + nu a) R i,
131      (cartanGibbsOutput mu nu hmu hnu p).1
132        (cutoffSectorFrame (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu))
133          (fun a => mu a + nu a) R l)⟫_ℂ =
134      ((((partitionDimension mu hmu : ℝ) /
135        (partitionDimension _ (sumPartition_antitone mu nu hmu hnu) : ℝ)) : ℂ)) *
136      ∑ j : CutoffIndex d R, ∑ k : CutoffIndex d R,
137        starRingEnd ℂ (cartanCutoffFrameMatrixElement mu nu hmu hnu R i j k) *
138          (sectorOccupationWeight (partitionHighestTensor mu hmu) mu
139            (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu)
140            p (cutoffOccupation d R j).val : ℂ) *
141          cartanCutoffFrameMatrixElement mu nu hmu hnu R l j k := by
142  exact physicalCartanChannel_cutoff_coefficient mu nu hmu hnu R hmuGap hnuGap hmuLI hnuLI
143    (sectorGibbsDensity (partitionHighestTensor mu hmu) mu
144      (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p)
145    (fun j => (sectorOccupationWeight (partitionHighestTensor mu hmu) mu
146      (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu)
147      p (cutoffOccupation d R j).val : ℂ))
148    (sectorGibbsDensity_cutoffFrame (partitionHighestTensor mu hmu) mu
149      (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p hp R) i l
150 
151end Cloning.TensorLie