Exact Lean source
PCTTangentChartSamples
formalization/Cloning/PCTTangentChartSamples.lean
Source hash: 136858fe7ddada6342f6a5e3987ca6728a27e5b380425eb76951a8f859a33219
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.sampleScaletheorem Cloning.PCTLocalChart.sampleScale_ne_zerotheorem Cloning.PCTLocalChart.sampleScale_tendstotheorem Cloning.PCTLocalChart.sampleScale_tendsto_punctureddefinition Cloning.PCTLocalChart.sampleTangenttheorem Cloning.PCTLocalChart.sampleTangent_tendstotheorem Cloning.PCTLocalChart.sampleSpectralCoordinates_tendstotheorem Cloning.PCTLocalChart.sampleOrbitalCoordinates_tendstotheorem Cloning.PCTLocalChart.chart_scale_in_coordinatestheorem Cloning.PCTLocalChart.eventually_sample_exact_charttheorem Cloning.PCTLocalChart.trace_reduced_eq_norm_sqtheorem Cloning.PCTLocalChart.tangentCurve_trace_zerotheorem Cloning.PCTLocalChart.eventually_sample_spectral_sum_zero1import Cloning.PCTLocalChartCoordinates
2
3/-! Exact LAN-chart parameters at sample scale `1 / sqrt L`. This provides the
4physical local-chart input needed by LAN, without asserting existence of the
5LAN channels or their error estimates. -/
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 sampleScale (L : ℕ) : ℝ := (Real.sqrt (L : ℝ))⁻¹
16
17lemma sampleScale_ne_zero {L : ℕ} (hL : 0 < L) : sampleScale L ≠ 0 := by
18 exact inv_ne_zero (Real.sqrt_pos.mpr (Nat.cast_pos.mpr hL)).ne'
19
20lemma sampleScale_tendsto : Tendsto sampleScale atTop (𝓝 (0 : ℝ)) :=
21 tendsto_inv_atTop_zero.comp (Real.tendsto_sqrt_atTop.comp tendsto_natCast_atTop_atTop)
22
23lemma sampleScale_tendsto_punctured : Tendsto sampleScale atTop (𝓝[≠] (0 : ℝ)) := by
24 apply tendsto_nhdsWithin_iff.mpr
25 refine ⟨sampleScale_tendsto, ?_⟩
26 filter_upwards [eventually_gt_atTop 0] with L hL
27 exact sampleScale_ne_zero hL
28
29/-- The scaled Hermitian tangent at the actual sample size. -/
30def sampleTangent (p : A → ℝ) (hp : Function.Injective p) (Z : Matrix A A ℂ) (L : ℕ) :
31 Hermitian A := (sampleScale L)⁻¹ • tangentCoordinates p hp Z (sampleScale L)
32
33theorem sampleTangent_tendsto (p : A → ℝ) (hp : Function.Injective p) (Z : Matrix A A ℂ) :
34 Tendsto (sampleTangent p hp Z) atTop (𝓝 (tangentDifferential p Z)) :=
35 (scaledTangentCoordinates_tendsto p hp Z).comp sampleScale_tendsto_punctured
36
37theorem sampleSpectralCoordinates_tendsto (p : A → ℝ) (hp : Function.Injective p)
38 (Z : Matrix A A ℂ) :
39 Tendsto (fun L => spectralCoordinates (sampleTangent p hp Z L)) atTop
40 (𝓝 (classicalCoordinate p Z)) :=
41 (scaledSpectralCoordinates_tendsto p hp Z).comp sampleScale_tendsto_punctured
42
43theorem sampleOrbitalCoordinates_tendsto (p : A → ℝ) (hp : Function.Injective p)
44 (Z : Matrix A A ℂ) :
45 Tendsto (fun L => orbitalCoordinates p (sampleTangent p hp Z L)) atTop
46 (𝓝 (fun ij : OrbitalPair A => orbitalCoordinate p Z ij.1.1 ij.1.2)) :=
47 (scaledOrbitalCoordinates_tendsto p hp Z).comp sampleScale_tendsto_punctured
48
49lemma chart_scale_in_coordinates (p : A → ℝ)
50 (hgap : ∀ i j, i < j → 0 < p i - p j) (t : ℝ) (H : Hermitian A) :
51 (chart p (t • H) : Matrix A A ℂ) + base p =
52 NormedSpace.exp (t • orbitalGenerator p (orbitalCoordinates p H)) *
53 Matrix.diagonal (fun i => ((p i + t * spectralCoordinates H i : ℝ) : ℂ)) *
54 NormedSpace.exp (-(t • orbitalGenerator p (orbitalCoordinates p H))) := by
55 rw [chart_coe, rawChart, sub_add_cancel]
56 have hsmul : ((t • H : Hermitian A) : Matrix A A ℂ) = t • (H : Matrix A A ℂ) := rfl
57 rw [hsmul, map_smul, generator_eq_orbitalGenerator p hgap H]
58 congr 2
59 rw [map_smul, diagonalPart_eq_spectralCoordinates]
60 ext a b
61 by_cases hab : a = b <;> simp [base, Matrix.diagonal_apply, hab, Complex.real_smul]
62
63/-- For each fixed physical tangent, all sufficiently large sample sizes have
64exact manuscript chart coordinates, with the proved convergent parameters. -/
65theorem eventually_sample_exact_chart (p : A → ℝ) (hp : Function.Injective p)
66 (hp0 : ∀ a, 0 ≤ p a) (hgap : ∀ i j, i < j → 0 < p i - p j)
67 (Z : Matrix A A ℂ) :
68 ∀ᶠ L : ℕ in atTop,
69 NormedSpace.exp (sampleScale L • orbitalGenerator p
70 (orbitalCoordinates p (sampleTangent p hp Z L))) *
71 Matrix.diagonal (fun i => ((p i + sampleScale L *
72 spectralCoordinates (sampleTangent p hp Z L) i : ℝ) : ℂ)) *
73 NormedSpace.exp (-(sampleScale L • orbitalGenerator p
74 (orbitalCoordinates p (sampleTangent p hp Z L)))) =
75 reducedDensityMatrix (normalizedTangentVector p Z (‖coefficientVector Z‖ ^ 2)
76 (sampleScale L)) := by
77 have hc : Tendsto (tangentCurve p Z) (𝓝 0) (𝓝 0) := by
78 simpa only [tangentCurve_zero] using (tangentCurve_hasDerivAt_zero p Z).continuousAt.tendsto
79 have he := (hc.comp sampleScale_tendsto).eventually (eventually_chart_localInverse p hp)
80 filter_upwards [he, eventually_gt_atTop 0] with L hL hpos
81 have hr : sampleScale L • sampleTangent p hp Z L =
82 tangentCoordinates p hp Z (sampleScale L) := by
83 rw [sampleTangent, smul_smul, mul_inv_cancel₀ (sampleScale_ne_zero hpos), one_smul]
84 have hchart := chart_scale_in_coordinates p hgap (sampleScale L) (sampleTangent p hp Z L)
85 rw [hr] at hchart
86 rw [← hchart]
87 change ((chart p (localInverse p hp (tangentCurve p Z (sampleScale L)))) : Matrix A A ℂ) + _ = _
88 dsimp only [Function.comp_def] at hL
89 rw [hL, tangentCurve_coe p hp0, sub_add_cancel]
90
91/-- The trace of a reduced pure state is its vector norm squared. -/
92lemma trace_reduced_eq_norm_sq (ψ : Register (A × A)) :
93 Matrix.trace (reducedDensityMatrix ψ) = ((‖ψ‖ ^ 2 : ℝ) : ℂ) := by
94 calc
95 _ = ⟪ψ,ψ⟫_ℂ := by
96 simp only [reducedDensityMatrix, Matrix.trace, Matrix.diag, lp.inner_eq_tsum,
97 tsum_fintype, Fintype.sum_prod_type, RCLike.inner_apply, Complex.star_def]
98 _ = _ := by rw [inner_self_eq_norm_sq_to_K]; push_cast; rfl
99
100/-- Normalized, orthogonal purification tangents remain on the trace-one
101physical state hyperplane at every scale. -/
102lemma tangentCurve_trace_zero (p : A → ℝ) (hp0 : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1)
103 (Z : Matrix A A ℂ)
104 (horth : ⟪coefficientVector (schmidtCoefficients p), coefficientVector Z⟫_ℂ = 0) (t : ℝ) :
105 Matrix.trace (tangentCurve p Z t : Matrix A A ℂ) = 0 := by
106 rw [tangentCurve_coe p hp0, Matrix.trace_sub, trace_reduced_eq_norm_sq,
107 normalizedTangentVector_norm p hp0 hs Z horth t]
108 simp only [one_pow, Complex.ofReal_one, base, Matrix.trace_diagonal]
109 rw [← Complex.ofReal_sum, hs, Complex.ofReal_one, sub_self]
110
111/-- The exact spectral coordinates lie in the required trace-zero parameter
112hyperplane for all sufficiently large sample sizes. -/
113theorem eventually_sample_spectral_sum_zero (p : A → ℝ) (hp : Function.Injective p)
114 (hp0 : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) (Z : Matrix A A ℂ)
115 (horth : ⟪coefficientVector (schmidtCoefficients p), coefficientVector Z⟫_ℂ = 0) :
116 ∀ᶠ L : ℕ in atTop, ∑ i, spectralCoordinates (sampleTangent p hp Z L) i = 0 := by
117 have hc : Tendsto (tangentCurve p Z) (𝓝 0) (𝓝 0) := by
118 simpa only [tangentCurve_zero] using (tangentCurve_hasDerivAt_zero p Z).continuousAt.tendsto
119 filter_upwards [(hc.comp sampleScale_tendsto).eventually (eventually_chart_localInverse p hp)] with L hL
120 have he := congrArg (fun H : Hermitian A => Matrix.trace (H : Matrix A A ℂ)) hL
121 dsimp only [Function.comp_def] at he
122 rw [chart_trace, tangentCurve_trace_zero p hp0 hs Z horth] at he
123 have he' := congrArg Complex.re he
124 have hsmul (r : ℝ) (H : Hermitian A) :
125 ((r • H : Hermitian A) : Matrix A A ℂ) = r • (H : Matrix A A ℂ) := rfl
126 simp only [spectralCoordinates, sampleTangent, hsmul, Matrix.smul_apply,
127 Complex.real_smul, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero]
128 rw [← Finset.mul_sum]
129 have hz : (∑ i, ((tangentCoordinates p hp Z (sampleScale L)).val i i).re) = 0 := by
130 simpa only [Matrix.trace, Matrix.diag, Complex.re_sum, Complex.zero_re] using he'
131 rw [hz, mul_zero]
132
133end Cloning.PCTLocalChart