Offline · exact source
Exact Lean source

TensorFlatProjectorGibbs

formalization/Cloning/TensorFlatProjectorGibbs.lean

Source hash: 62a59ff171be2011dd646ba2b7a12f706e19ba9ad0e8a6d562707ee20bfc278e

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.TensorFlatProjectorTraceClass
2import Cloning.TensorLANEmbeddingSchurState
3 
4/-! Exact physical Gibbs mixtures at nonnegative spectra, including zero eigenvalues. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace ComplexOrder Matrix
7namespace Cloning.TensorLie
8open Cloning.PCT Cloning.InfiniteTraceClass Cloning.Hybrid
9set_option maxHeartbeats 1200000
10set_option synthInstance.maxHeartbeats 200000
11set_option backward.isDefEq.respectTransparency false
12variable {n d : ℕ}
13local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
14  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
15variable (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
16    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
17    (hraise : ∀ a b, a < b → collectiveGenerator n a b Ω = 0)
18 
19theorem sectorGibbsDensity_nonneg_of_nonneg (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) :
20    0 ≤ (sectorGibbsDensity Ω mu hweight hraise p).1 := by
21  change 0 ≤ (((sectorPartitionFunction Ω mu hweight hraise p)⁻¹ : ℝ) : ℂ) •
22    (sectorGibbsWeight Ω mu hweight hraise p).1
23  apply (ContinuousLinearMap.nonneg_iff_isPositive _).mpr
24  apply ((ContinuousLinearMap.nonneg_iff_isPositive _).mp
25    (sectorGibbsWeight_nonneg Ω mu hweight hraise p hp)).smul_of_nonneg
26  exact_mod_cast inv_nonneg.mpr (norm_nonneg (sectorGibbsWeight Ω mu hweight hraise p))
27 
28/-- Scalar reconstruction also holds for zero blocks, whose actual weight is zero. -/
29theorem sectorGibbsWeight_eq_partition_smul_density (p : Fin d → ℝ) :
30    sectorGibbsWeight Ω mu hweight hraise p =
31      (sectorPartitionFunction Ω mu hweight hraise p : ℂ) • sectorGibbsDensity Ω mu hweight hraise p := by
32  by_cases hz : sectorGibbsWeight Ω mu hweight hraise p = 0
33  · simp [sectorGibbsDensity, hz]
34  · rw [sectorGibbsDensity, sectorPartitionFunction, smul_smul, ← Complex.ofReal_mul,
35      mul_inv_cancel₀ (norm_ne_zero_iff.mpr hz), Complex.ofReal_one, one_smul]
36 
37theorem sectorGibbsDensity_norm_le_one (p : Fin d → ℝ) :
38    ‖sectorGibbsDensity Ω mu hweight hraise p‖ ≤ 1 := by
39  rw [sectorGibbsDensity, sectorPartitionFunction, norm_smul, Complex.norm_real,
40    Real.norm_eq_abs, abs_of_nonneg (inv_nonneg.mpr (norm_nonneg _))]
41  change ‖sectorGibbsWeight Ω mu hweight hraise p‖⁻¹ * ‖sectorGibbsWeight Ω mu hweight hraise p‖ ≤ 1
42  by_cases hz : sectorGibbsWeight Ω mu hweight hraise p = 0
43  · simp [hz]
44  · rw [inv_mul_cancel₀ (norm_ne_zero_iff.mpr hz)]
45 
46end Cloning.TensorLie
47 
48namespace Cloning.TensorLAN
49open Cloning.PCT Cloning.TensorLie Cloning.InfiniteTraceClass Cloning.Hybrid
50set_option maxHeartbeats 1400000
51set_option backward.isDefEq.respectTransparency false
52variable {n d : ℕ}
53local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
54  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
55 
56theorem canonicalTensorWeight_rotated_diagonal_nonneg (H : PhysicalHighestTensor n d)
57    (U : Matrix (Fin d) (Fin d) ℂ) (p : Fin d → ℝ) :
58    canonicalTensorWeight H (U * Matrix.diagonal (fun a => (p a : ℂ)) * Uᴴ) =
59      (H.character p : ℂ) • canonicalRotatedGibbs H U p := by
60  rw [canonicalTensorWeight_conjugate, canonicalTensorWeight_diagonal,
61    sectorGibbsWeight_eq_partition_smul_density, map_smul]
62  rfl
63 
64theorem canonicalRotatedGibbs_nonneg_of_nonneg (H : PhysicalHighestTensor n d)
65    (U : Matrix (Fin d) (Fin d) ℂ) (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) :
66    0 ≤ (canonicalRotatedGibbs H U p).1 :=
67  conjugationLinearMap_nonneg _ _ (sectorGibbsDensity_nonneg_of_nonneg _ _ _ _ p hp)
68 
69theorem canonicalRotatedGibbs_norm_le_one (H : PhysicalHighestTensor n d)
70    (U : Matrix (Fin d) (Fin d) ℂ) (hU : Uᴴ * U = 1) (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) :
71    ‖canonicalRotatedGibbs H U p‖ ≤ 1 := by
72  let V := cyclicUnitary (partitionHighestTensor H.weight H.weight_antitone)
73    (fun a => (H.weight a : ℂ)) (partitionHighestTensor_cartan _ _)
74    (partitionHighestTensor_raising_zero _ _) U hU
75  rw [TraceClass.norm_eq_trace_re_of_nonneg _ (canonicalRotatedGibbs_nonneg_of_nonneg H U p hp)]
76  change (traceCLM (conjugationLinearMap V.toLinearIsometry.toContinuousLinearMap (canonicalGibbsDensity H p))).re ≤ 1
77  rw [conjugationLinearMap_isometry_trace]
78  have hn : 0 ≤ (canonicalGibbsDensity H p).1 := sectorGibbsDensity_nonneg_of_nonneg
79    (partitionHighestTensor H.weight H.weight_antitone) H.weight
80    (partitionHighestTensor_cartan _ _) (partitionHighestTensor_raising_zero _ _) p hp
81  change (trace (canonicalGibbsDensity H p).1 (canonicalGibbsDensity H p).2).re ≤ 1
82  rw [← TraceClass.norm_eq_trace_re_of_nonneg _ hn]
83  exact sectorGibbsDensity_norm_le_one _ _ _ _ p
84 
85/-- The full physical tensor-state mixture includes arbitrary zero eigenvalues. -/
86theorem matrixTensorPower_rotated_eq_copy_mixture_nonneg
87    (U : Matrix (Fin d) (Fin d) ℂ) (p : Fin d → ℝ) :
88    matrixTensorPower (U * Matrix.diagonal (fun a => (p a : ℂ)) * Uᴴ) n =
89      ∑ i : SchurCopy n d,
90        (((recursivePhysicalDecomposition n d).get i).character p : ℂ) •
91          conjugationLinearMap
92            ((recursivePhysicalDecomposition n d).get i).canonicalEmbedding.toContinuousLinearMap
93            (canonicalRotatedGibbs ((recursivePhysicalDecomposition n d).get i) U p) := by
94  rw [matrixTensorPower_eq_sum_canonical_blocks (recursivePhysicalDecomposition n d)
95    (recursivePhysicalDecomposition_is_decomposition n d).1
96    (recursivePhysicalDecomposition_is_decomposition n d).2]
97  apply Finset.sum_congr rfl
98  intro i _
99  rw [canonicalTensorWeight_rotated_diagonal_nonneg, map_smul]
100 
101end Cloning.TensorLAN