Offline · exact source
Exact Lean source

PCTLocalChartCoordinates

formalization/Cloning/PCTLocalChartCoordinates.lean

Source hash: d13374bf2e57d7c7c7f0230108fd67f96bb7c00e9fffe26668381593ca1f11a4

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.PCTTangentChart
2import Cloning.PCTGaussianCovarianceJoint
3 
4/-! The actual exponential chart in the manuscript's spectral and orbital
5coordinates, together with the coordinate limit for normalized tangents. -/
6noncomputable section
7open scoped Matrix ComplexOrder Matrix.Norms.L2Operator InnerProductSpace Topology BigOperators
8open Matrix NormedSpace Filter
9namespace Cloning.PCTLocalChart
10open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTGaussianCovariance
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1200000
13variable {A : Type*} [Fintype A] [LinearOrder A]
14 
15def spectralCoordinates (H : Hermitian A) : A → ℝ := fun a => (H.val a a).re
16 
17def orbitalCoordinates (p : A → ℝ) (H : Hermitian A) : OrbitalPair A → ℂ :=
18  fun ij => H.val ij.1.2 ij.1.1 / (Real.sqrt (p ij.1.1 - p ij.1.2) : ℂ)
19 
20lemma continuous_spectralCoordinates : Continuous (spectralCoordinates (A := A)) := by
21  apply continuous_pi
22  intro a
23  have he : Continuous (fun M : Matrix A A ℂ => M a a) :=
24    (continuous_apply a).comp (continuous_apply a)
25  exact (Complex.continuous_re.comp he).comp (inclusion (A := A)).continuous
26 
27lemma continuous_orbitalCoordinates (p : A → ℝ) : Continuous (orbitalCoordinates p) := by
28  apply continuous_pi
29  intro ij
30  exact (((continuous_apply ij.1.1).comp (continuous_apply ij.1.2)).comp
31    (inclusion (A := A)).continuous).div_const _
32 
33lemma diagonalPart_eq_spectralCoordinates (H : Hermitian A) :
34    diagonalPart H.val = Matrix.diagonal (fun a => (spectralCoordinates H a : ℂ)) := by
35  change Matrix.diagonal (fun a => H.val a a) = _
36  congr 1
37  funext a
38  have hh := congrArg (fun M : Matrix A A ℂ => M a a) H.2
39  exact (Complex.conj_eq_iff_re.mp hh).symm
40 
41/-- The literal zero-diagonal skew generator in ordered orbital coordinates. -/
42def orbitalGenerator (p : A → ℝ) (z : OrbitalPair A → ℂ) : Matrix A A ℂ :=
43  fun a b => if hab : a < b then -star (z ⟨(a,b),hab⟩) / (Real.sqrt (p a - p b) : ℂ)
44    else if hba : b < a then z ⟨(b,a),hba⟩ / (Real.sqrt (p b - p a) : ℂ) else 0
45 
46lemma generator_lower (p : A → ℝ) (H : Hermitian A) (i j : A) (hij : i < j)
47    (hgap : 0 < p i - p j) :
48    generator p H j i = orbitalCoordinates p H ⟨(i,j),hij⟩ /
49      (Real.sqrt (p i - p j) : ℂ) := by
50  simp only [generator_apply, if_neg (ne_of_gt hij), orbitalCoordinates]
51  rw [div_div]
52  congr 1
53  exact_mod_cast (Real.mul_self_sqrt hgap.le).symm
54 
55lemma generator_upper (p : A → ℝ) (H : Hermitian A) (i j : A) (hij : i < j)
56    (hgap : 0 < p i - p j) :
57    generator p H i j = -star (orbitalCoordinates p H ⟨(i,j),hij⟩) /
58      (Real.sqrt (p i - p j) : ℂ) := by
59  have hh := congrArg (fun M : Matrix A A ℂ => M i j) H.2
60  change (starRingEnd ℂ) (H.val j i) = H.val i j at hh
61  simp only [generator_apply, if_neg (ne_of_lt hij), orbitalCoordinates, star_div₀,
62    Complex.star_def, Complex.conj_ofReal, hh, neg_div, div_div]
63  have hs : (Real.sqrt (p i - p j) : ℂ) * (Real.sqrt (p i - p j) : ℂ) =
64      ((p i - p j : ℝ) : ℂ) := by exact_mod_cast Real.mul_self_sqrt hgap.le
65  rw [hs]
66  rw [show ((p j - p i : ℝ) : ℂ) = -((p i - p j : ℝ) : ℂ) by push_cast; ring, div_neg]
67 
68/-- The Hermitian-coordinate generator is exactly the manuscript generator. -/
69theorem generator_eq_orbitalGenerator (p : A → ℝ)
70    (hgap : ∀ i j, i < j → 0 < p i - p j) (H : Hermitian A) :
71    generator p H = orbitalGenerator p (orbitalCoordinates p H) := by
72  ext a b
73  by_cases hab : a < b
74  · simpa only [orbitalGenerator, dif_pos hab] using generator_upper p H a b hab (hgap a b hab)
75  · by_cases hba : b < a
76    · simpa only [orbitalGenerator, dif_neg hab, dif_pos hba] using
77        generator_lower p H b a hba (hgap b a hba)
78    · have he : a = b := le_antisymm (le_of_not_gt hba) (le_of_not_gt hab)
79      subst b
80      simp [orbitalGenerator]
81 
82/-- The spectral coordinate limit equals the actual partial-trace diagonal. -/
83theorem scaledSpectralCoordinates_tendsto (p : A → ℝ) (hp : Function.Injective p)
84    (Z : Matrix A A ℂ) :
85    Tendsto (fun t : ℝ => spectralCoordinates (t⁻¹ • tangentCoordinates p hp Z t)) (𝓝[≠] 0)
86      (𝓝 (classicalCoordinate p Z)) := by
87  have h := continuous_spectralCoordinates.continuousAt.tendsto.comp
88    (scaledTangentCoordinates_tendsto p hp Z)
89  have he : spectralCoordinates (tangentDifferential p Z) = classicalCoordinate p Z := by
90    funext a
91    simp [spectralCoordinates, tangentDifferential, partialTraceDifferential_diagonal,
92      classicalCoordinate]
93  rw [he] at h
94  exact h
95 
96/-- The orbital limit equals the actual Gaussian tangent displacement. -/
97theorem scaledOrbitalCoordinates_tendsto (p : A → ℝ) (hp : Function.Injective p)
98    (Z : Matrix A A ℂ) :
99    Tendsto (fun t : ℝ => orbitalCoordinates p (t⁻¹ • tangentCoordinates p hp Z t)) (𝓝[≠] 0)
100      (𝓝 (fun ij : OrbitalPair A => orbitalCoordinate p Z ij.1.1 ij.1.2)) := by
101  have h := (continuous_orbitalCoordinates p).continuousAt.tendsto.comp
102    (scaledTangentCoordinates_tendsto p hp Z)
103  have he : orbitalCoordinates p (tangentDifferential p Z) =
104      (fun ij : OrbitalPair A => orbitalCoordinate p Z ij.1.1 ij.1.2) := by
105    funext ij
106    exact (orbitalCoordinate_differential p Z _ _).symm
107  rw [he] at h
108  exact h
109 
110/-- Exact finite-scale chart identity in the manuscript's coordinates, valid
111for every Hermitian tangent in the chart. -/
112theorem chart_in_spectral_orbital_coordinates (p : A → ℝ)
113    (hgap : ∀ i j, i < j → 0 < p i - p j) (H : Hermitian A) :
114    (chart p H : Matrix A A ℂ) + base p =
115      NormedSpace.exp (orbitalGenerator p (orbitalCoordinates p H)) *
116        Matrix.diagonal (fun i => ((p i + spectralCoordinates H i : ℝ) : ℂ)) *
117          NormedSpace.exp (-orbitalGenerator p (orbitalCoordinates p H)) := by
118  rw [chart_coe, rawChart, sub_add_cancel, generator_eq_orbitalGenerator p hgap,
119    diagonalPart_eq_spectralCoordinates]
120  congr 2
121  ext a b
122  by_cases hab : a = b <;> simp [base, Matrix.diagonal_apply, hab]
123 
124end Cloning.PCTLocalChart