Exact Lean source
PCTTangentChart
formalization/Cloning/PCTTangentChart.lean
Source hash: 12db55005dc279c67c99f1cb5937611e9098151fc1f462594e5797efdbda5dc3
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
definition
Cloning.PCTLocalChart.tangentDifferentialdefinition Cloning.PCTLocalChart.tangentCurvetheorem Cloning.PCTLocalChart.tangentCurve_zerotheorem Cloning.PCTLocalChart.reducedDensityMatrix_hermitiantheorem Cloning.PCTLocalChart.tangentCurve_coetheorem Cloning.PCTLocalChart.tangentCurve_hasDerivAt_zerodefinition Cloning.PCTLocalChart.tangentCoordinatestheorem Cloning.PCTLocalChart.tangentCoordinates_zerotheorem Cloning.PCTLocalChart.tangentCoordinates_hasDerivAt_zerotheorem Cloning.PCTLocalChart.scaledTangentCoordinates_tendstotheorem Cloning.PCTLocalChart.eventually_tangent_exact_chart1import Cloning.PCTLocalChartInverse
2import Cloning.PCTGaussianCovarianceOrbital
3import Mathlib.Analysis.Calculus.Deriv.Slope
4import Mathlib.Analysis.Calculus.Deriv.Inv
5import Mathlib.Analysis.Calculus.Deriv.Pow
6
7/-! Exact inverse-chart coordinates of the normalized physical purification
8tangent. Their scaled limit is its literal reduced-state differential. -/
9noncomputable section
10open scoped Matrix ComplexOrder Matrix.Norms.L2Operator InnerProductSpace Topology BigOperators
11open Matrix NormedSpace Filter
12namespace Cloning.PCTLocalChart
13open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTGaussianCovariance
14set_option backward.isDefEq.respectTransparency false
15set_option maxHeartbeats 1200000
16variable {A : Type*} [Fintype A] [DecidableEq A]
17
18/-- The Hermitian tangent furnished by the actual partial trace differential. -/
19def tangentDifferential (p : A → ℝ) (Z : Matrix A A ℂ) : Hermitian A :=
20 ⟨partialTraceDifferential p Z, partialTraceDifferential_hermitian p Z⟩
21
22/-- The exact rational curve determined by normalized purification, centered
23at the base state. The projection only packages its Hermitian codomain. -/
24def tangentCurve (p : A → ℝ) (Z : Matrix A A ℂ) (t : ℝ) : Hermitian A :=
25 hermitianPart ((1 + t ^ 2 * ‖coefficientVector Z‖ ^ 2)⁻¹ •
26 (base p + t • partialTraceDifferential p Z + t ^ 2 • (Z * Zᴴ)) - base p)
27
28@[simp] lemma tangentCurve_zero (p : A → ℝ) (Z : Matrix A A ℂ) : tangentCurve p Z 0 = 0 := by
29 simp [tangentCurve]
30
31lemma reducedDensityMatrix_hermitian (ψ : Register (A × A)) :
32 (reducedDensityMatrix ψ).IsHermitian := by
33 let M : Matrix A A ℂ := fun a b => ψ (a,b)
34 change (M * Mᴴ)ᴴ = M * Mᴴ
35 simp
36
37/-- The curve is exactly the actual reduced normalized purification, with no
38change caused by the Hermitian packaging projection. -/
39theorem tangentCurve_coe (p : A → ℝ) (hp : ∀ a, 0 ≤ p a)
40 (Z : Matrix A A ℂ) (t : ℝ) :
41 (tangentCurve p Z t : Matrix A A ℂ) =
42 reducedDensityMatrix (normalizedTangentVector p Z (‖coefficientVector Z‖ ^ 2) t) - base p := by
43 have hh := (reducedDensityMatrix_hermitian
44 (normalizedTangentVector p Z (‖coefficientVector Z‖ ^ 2) t)).sub (base_hermitian p)
45 have he := hh.isSelfAdjoint.coe_selfAdjointPart_apply ℝ
46 rw [normalizedTangent_reduced_exact p hp Z _ (sq_nonneg _) t] at he
47 rw [normalizedTangent_reduced_exact p hp Z _ (sq_nonneg _) t]
48 exact he
49
50/-- The exact normalized physical curve has the stated first derivative. -/
51theorem tangentCurve_hasDerivAt_zero (p : A → ℝ) (Z : Matrix A A ℂ) :
52 HasDerivAt (tangentCurve p Z) (tangentDifferential p Z) 0 := by
53 have ht2 : HasDerivAt (fun t : ℝ => t ^ 2) 0 0 := by
54 simpa using (hasDerivAt_id (0 : ℝ)).pow 2
55 have hn : HasDerivAt (fun t : ℝ => base p + t • partialTraceDifferential p Z +
56 t ^ 2 • (Z * Zᴴ)) (partialTraceDifferential p Z) 0 := by
57 simpa using (((hasDerivAt_id (0 : ℝ)).smul_const (partialTraceDifferential p Z)).const_add
58 (base p)).add (ht2.smul_const (Z * Zᴴ))
59 have hi : HasDerivAt (fun t : ℝ => (1 + t ^ 2 * ‖coefficientVector Z‖ ^ 2)⁻¹) 0 0 := by
60 simpa using ((ht2.mul_const (‖coefficientVector Z‖ ^ 2)).const_add 1).inv (by norm_num)
61 have hr := (hi.smul hn).sub_const (base p)
62 have hr' : HasDerivAt (fun t : ℝ => (1 + t ^ 2 * ‖coefficientVector Z‖ ^ 2)⁻¹ •
63 (base p + t • partialTraceDifferential p Z + t ^ 2 • (Z * Zᴴ)) - base p)
64 (partialTraceDifferential p Z) 0 := by simpa using hr
65 have h := (hermitianPart (A := A)).hasFDerivAt.comp_hasDerivAt 0 hr'
66 have he : hermitianPart (partialTraceDifferential p Z) = tangentDifferential p Z := by
67 apply Subtype.ext
68 exact (partialTraceDifferential_hermitian p Z).isSelfAdjoint.coe_selfAdjointPart_apply ℝ
69 simpa only [he, tangentCurve] using h
70
71/-- The actual (unscaled) local inverse coordinates of the tangent curve. -/
72def tangentCoordinates (p : A → ℝ) (hp : Function.Injective p)
73 (Z : Matrix A A ℂ) (t : ℝ) : Hermitian A := localInverse p hp (tangentCurve p Z t)
74
75@[simp] lemma tangentCoordinates_zero (p : A → ℝ) (hp : Function.Injective p)
76 (Z : Matrix A A ℂ) : tangentCoordinates p hp Z 0 = 0 := by simp [tangentCoordinates]
77
78theorem tangentCoordinates_hasDerivAt_zero (p : A → ℝ) (hp : Function.Injective p)
79 (Z : Matrix A A ℂ) :
80 HasDerivAt (tangentCoordinates p hp Z) (tangentDifferential p Z) 0 := by
81 have hi : HasFDerivAt (localInverse p hp)
82 (ContinuousLinearMap.id ℝ (Hermitian A)) (tangentCurve p Z 0) := by
83 simpa using (localInverse_hasStrictFDerivAt_zero p hp).hasFDerivAt
84 simpa [tangentCoordinates] using hi.comp_hasDerivAt 0 (tangentCurve_hasDerivAt_zero p Z)
85
86/-- The scaled exact coordinates converge. No quadratic bound on the inverse,
87or uniform control over unbounded tangents, is needed. -/
88theorem scaledTangentCoordinates_tendsto (p : A → ℝ) (hp : Function.Injective p)
89 (Z : Matrix A A ℂ) :
90 Tendsto (fun t : ℝ => t⁻¹ • tangentCoordinates p hp Z t) (𝓝[≠] 0)
91 (𝓝 (tangentDifferential p Z)) := by
92 simpa only [zero_add, tangentCoordinates_zero, sub_zero] using
93 (tangentCoordinates_hasDerivAt_zero p hp Z).tendsto_slope_zero
94
95/-- For every fixed tangent, inverse-chart equality holds at all sufficiently
96small scales. The matrices here are the physical normalized reduced states. -/
97theorem eventually_tangent_exact_chart (p : A → ℝ) (hp : Function.Injective p)
98 (hp0 : ∀ a, 0 ≤ p a) (Z : Matrix A A ℂ) :
99 ∀ᶠ t : ℝ in 𝓝 0,
100 NormedSpace.exp (generator p (tangentCoordinates p hp Z t)) *
101 (base p + diagonalPart (tangentCoordinates p hp Z t : Matrix A A ℂ)) *
102 NormedSpace.exp (-generator p (tangentCoordinates p hp Z t)) =
103 reducedDensityMatrix (normalizedTangentVector p Z (‖coefficientVector Z‖ ^ 2) t) := by
104 have hc : Tendsto (tangentCurve p Z) (𝓝 0) (𝓝 0) := by
105 simpa only [tangentCurve_zero] using (tangentCurve_hasDerivAt_zero p Z).continuousAt.tendsto
106 filter_upwards [hc.eventually (eventually_chart_localInverse p hp)] with t ht
107 have h := congrArg (fun H : Hermitian A => (H : Matrix A A ℂ)) ht
108 dsimp only at h
109 rw [chart_coe, tangentCurve_coe p hp0] at h
110 change _ - base p = _ - base p at h
111 exact sub_left_injective h
112
113end Cloning.PCTLocalChart