Offline · exact source
Exact Lean source

TensorPositiveSpectrumCompressionMatrix

formalization/Cloning/TensorPositiveSpectrumCompressionMatrix.lean

Source hash: 37ed5be545f4b5f543ad4c4f0a7b879660cd1c1a9b3d8ecf58bc5c7833413ec0

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.TensorPositiveSpectrumCompression
2import Cloning.TensorRankCartanRestriction
3import Cloning.TensorFlatProjectorGibbsState
4 
5/-! Matrix coordinates and exact support compression of arbitrary sector Gibbs
6states, including the transported sum partition used by the physical Cartan map. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace ComplexOrder Matrix
9namespace Cloning.TensorLie
10open Cloning.PCT Cloning.InfiniteTraceClass Cloning.InfiniteFiniteCorner Cloning.Hybrid
11set_option maxHeartbeats 1600000
12set_option synthInstance.maxHeartbeats 200000
13set_option backward.isDefEq.respectTransparency false
14variable {d r : ℕ}
15local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
16  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
17 
18def partitionGibbsMatrix (mu : Fin d → ℕ) (hmu : Antitone mu) (p : Fin d → ℝ) :=
19  matrixOf (partitionBasis mu hmu)
20    (sectorGibbsDensity (partitionHighestTensor mu hmu) mu
21      (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p).1
22 
23theorem partitionGibbsMatrix_posSemidef (mu : Fin d → ℕ) (hmu : Antitone mu)
24    (p : Fin d → ℝ) (hp : ∀a,0≤p a) : (partitionGibbsMatrix mu hmu p).PosSemidef :=
25  matrixOf_posSemidef _ (sectorGibbsDensity_nonneg_of_nonneg _ _ _ _ p hp)
26 
27theorem partitionMatrixState_partitionGibbsMatrix (mu : Fin d → ℕ) (hmu : Antitone mu)
28    (p : Fin d → ℝ) (hp : ∀a,0≤p a) :
29    partitionMatrixState mu hmu (partitionGibbsMatrix mu hmu p)
30      (partitionGibbsMatrix_posSemidef mu hmu p hp) = nonnegativePartitionGibbsPositive mu hmu p hp := by
31  apply Subtype.ext
32  apply Subtype.ext
33  exact basis_ofMatrix_matrixOf _ _
34 
35section Basis
36variable {H K I J : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
37    [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
38    [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
39 
40theorem basis_matrixOf_eq_toMatrix (b : OrthonormalBasis I ℂ H) (A : H →L[ℂ] H) :
41    matrixOf b A=LinearMap.toMatrix b.toBasis b.toBasis A.toLinearMap := by
42  ext i j
43  simp [matrixOf,LinearMap.toMatrix_apply,OrthonormalBasis.repr_apply_apply]
44 
45theorem basis_matrixOf_conjugation (bH : OrthonormalBasis I ℂ H)
46    (bK : OrthonormalBasis J ℂ K) (V : H →L[ℂ] K) (A : H →L[ℂ] H) :
47    let W := LinearMap.toMatrix bH.toBasis bK.toBasis V.toLinearMap
48    matrixOf bK (V.comp (A.comp V.adjoint))=W*matrixOf bH A*Wᴴ := by
49  dsimp only
50  have ha : LinearMap.toMatrix bK.toBasis bH.toBasis V.adjoint.toLinearMap=
51      (LinearMap.toMatrix bH.toBasis bK.toBasis V.toLinearMap)ᴴ := by
52    ext i j
53    simp only [LinearMap.toMatrix_apply,OrthonormalBasis.coe_toBasis,
54      OrthonormalBasis.coe_toBasis_repr_apply,OrthonormalBasis.repr_apply_apply,
55      Matrix.conjTranspose_apply,← starRingEnd_apply,inner_conj_symm]
56    exact ContinuousLinearMap.adjoint_inner_right V (bH i) (bK j)
57  rw [basis_matrixOf_eq_toMatrix,basis_matrixOf_eq_toMatrix]
58  change LinearMap.toMatrix bK.toBasis bK.toBasis
59    (V.toLinearMap.comp (A.toLinearMap.comp V.adjoint.toLinearMap))=_
60  rw [LinearMap.toMatrix_comp bK.toBasis bH.toBasis bK.toBasis,
61    LinearMap.toMatrix_comp bK.toBasis bH.toBasis bH.toBasis,ha,Matrix.mul_assoc]
62 
63end Basis
64 
65/-- The exact conditional-support identity in physical partition bases. -/
66theorem partitionGibbsMatrix_padSpectrum (mu : Fin r → ℕ) (hmu : Antitone mu)
67    (k : ℕ) (p : Fin r → ℝ) (hp : ∀a,0≤p a) :
68    partitionGibbsMatrix (padPartition mu k) (padPartition_antitone mu hmu k) (padSpectrum p k)=
69      rankSectorEmbeddingMatrix mu hmu k * partitionGibbsMatrix mu hmu p *
70        (rankSectorEmbeddingMatrix mu hmu k)ᴴ := by
71  unfold partitionGibbsMatrix
72  rw [sectorGibbsDensity_padSpectrum mu hmu k p hp]
73  exact basis_matrixOf_conjugation (partitionBasis mu hmu)
74    (partitionBasis (padPartition mu k) (padPartition_antitone mu hmu k))
75    (rankSectorEmbedding mu hmu k).toContinuousLinearMap
76    (sectorGibbsDensity (partitionHighestTensor mu hmu) mu
77      (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p).1
78 
79private theorem partitionGibbsMatrix_padSpectrum_congr
80    (mu : Fin r → ℕ) (hmu : Antitone mu) (k : ℕ) (eta : Fin (r+k) → ℕ)
81    (heta : Antitone eta) (he : padPartition mu k=eta)
82    (p : Fin r → ℝ) (hp : ∀a,0≤p a) :
83    let J := (partitionSectorCongr _ _ (padPartition_antitone mu hmu k) heta he).toLinearIsometry.comp
84      (rankSectorEmbedding mu hmu k)
85    let M := LinearMap.toMatrix (partitionBasis mu hmu).toBasis (partitionBasis eta heta).toBasis J.toLinearMap
86    partitionGibbsMatrix eta heta (padSpectrum p k)=M*partitionGibbsMatrix mu hmu p*Mᴴ := by
87  subst eta
88  exact partitionGibbsMatrix_padSpectrum mu hmu k p hp
89 
90/-- The output-sector version uses exactly the sum-embedding matrix in the
91proved rank-restriction square for the Cartan inclusion. -/
92theorem partitionGibbsMatrix_padSpectrum_sum (mu nu : Fin r → ℕ)
93    (hmu : Antitone mu) (hnu : Antitone nu) (k : ℕ)
94    (p : Fin r → ℝ) (hp : ∀a,0≤p a) :
95    partitionGibbsMatrix (fun a => padPartition mu k a+padPartition nu k a)
96      (sumPartition_antitone _ _ (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k))
97      (padSpectrum p k) =
98      rankSumSectorEmbeddingMatrix mu nu hmu hnu k *
99        partitionGibbsMatrix (fun a => mu a+nu a) (sumPartition_antitone mu nu hmu hnu) p *
100          (rankSumSectorEmbeddingMatrix mu nu hmu hnu k)ᴴ :=
101  partitionGibbsMatrix_padSpectrum_congr _ (sumPartition_antitone mu nu hmu hnu) k _
102    (sumPartition_antitone _ _ (padPartition_antitone mu hmu k) (padPartition_antitone nu hnu k))
103    (padPartition_add mu nu k) p hp
104 
105end Cloning.TensorLie