Offline · exact source
Exact Lean source

TensorLANEmbeddingWindow

formalization/Cloning/TensorLANEmbeddingWindow.lean

Source hash: c97baa6ff583b5e4a1c65d4e9a20fd11bd13b25995a06b4d14f7717cc5ab8ed0

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.TensorLANEmbeddingProtocolError
2 
3/-! Uniform physical LAN estimates on a bounded trace-zero parameter window,
4for each sufficiently large fixed compression cutoff. -/
5noncomputable section
6open scoped BigOperators Topology Classical InnerProductSpace
7open Filter MeasureTheory
8namespace Cloning.TensorLAN
9open Cloning.PCTPhysicalFidelity Cloning.TensorLie Cloning.PCTJointGaussianWhitening
10open Cloning.PhysicalCloningConverse Cloning.YoungHyperplane
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1400000
13variable {k s : ℕ}
14variable (p : SimpleSpectrum (k+1))
15    (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
16    (hb : b 0 = sqrtSpectrum p.eigenvalue) (e : Fin s ≃ PairIndex (k+1))
17 
18theorem exists_cutoff_uniform_physical_protocol (B : ℝ) (ε : ℝ) (hε : 0 < ε) :
19    ∃ Q₀ : ℕ, ∀ Q ≥ Q₀, ∀ᶠ N in atTop, ∀ θ : Parameters k, ‖θ‖ ≤ B →
20      (∑ a, θ.1 a = 0) →
21      ‖(physicalCoordinateForward p b hb e N Q).map (chartTensor p θ N)-(model p b e θ).1‖ < ε ∧
22      ‖(physicalCoordinateReverse p b hb e N Q).map (model p b e θ).1-chartTensor p θ N‖ < ε := by
23  let K : Set (PositiveRoot (k+1) → ℂ) := Metric.closedBall 0 B
24  have hK : IsCompact K := isCompact_closedBall 0 B
25  obtain ⟨Q₀,hQ₀⟩ := exists_cutoff_uniform_physical_averages p.eigenvalue p.positive p.strictAnti
26    p.normalized B K hK (ε/8) (by positivity)
27  obtain ⟨N₁,hN₁⟩ := uniform_whitened_local_Young_l1 p.eigenvalue p.positive p.normalized
28    p.strictAnti b hb B (ε/8) (by positivity)
29  let H : Set (Fin (k+1) → ℝ) := {h | ‖h‖ ≤ B ∧ ∑ a, h a = 0}
30  have hH : Bornology.IsBounded H := isBounded_iff_forall_norm_le.mpr ⟨B, fun h hh => hh.1⟩
31  have hadm := eventually_localSpectrum_admissible p.eigenvalue p.positive p.strictAnti
32    p.normalized H hH (fun h hh => hh.2)
33  refine ⟨Q₀,?_⟩
34  intro Q hQ
35  filter_upwards [hQ₀ Q hQ, hadm, eventually_ge_atTop (max N₁ 1)] with N hN hA hsize θ hθ hzero
36  have hh : ‖θ.1‖ ≤ B := (norm_fst_le θ).trans hθ
37  have hz : θ.2 ∈ K := by
38    change dist θ.2 0 ≤ B
39    simpa only [dist_zero_right] using (norm_snd_le θ).trans hθ
40  have ha := hA θ.1 ⟨hh,hzero⟩
41  have havg := hN θ.1 hh hzero ha.1 ha.2.1.antitone θ.2 hz
42  have hpos : 0 < N := by have ht := (le_max_right N₁ 1).trans hsize; omega
43  have hclass : classicalLocalError p b hb N θ.1 < ε/8 := by
44    have hc := hN₁ N ((le_max_left _ _).trans hsize) θ.1 hh hzero ha.1
45    have he := physicalLabelDensity_eq_whitened p.eigenvalue p.positive b hb N hpos
46      (localSpectrum p.eigenvalue θ.1 N) (fun a => (ha.1 a).le)
47      (localSpectrum_sum p.eigenvalue θ.1 p.normalized hzero N)
48    unfold classicalLocalError
49    rw [he]
50    exact hc
51  have he := physicalCoordinate_errors_le p b hb e N Q hpos θ hzero ha.1
52  constructor
53  · linarith [he.1,havg.1]
54  · linarith [he.2,havg.2]
55 
56end Cloning.TensorLAN