RobustFixedTolerance.lean
1module23public import SubentropyCertificates.RobustLimit4public import SubentropyCertificates.UncalibratedAncillaLimit56/-! The rates in Section 6.4 suffice for convergence uniformly over allowed error signs.7At a fixed positive tolerance an allowed overestimate cancels the error subtraction exactly. -/8@[expose] public section9noncomputable section10set_option autoImplicit false11open Filter Set12open scoped Topology13namespace SubentropyCertificates.Robust14open SubentropyCertificates.CompactStability15open SubentropyCertificates.SpectralContinuity (maximallyMixed)16open SubentropyCertificates.AncillaCalibration17open SubentropyCertificates.AncillaLimit18open SubentropyCertificates.Quadratic (inverse statistic)19variable {X D : Type*} [Fintype X] [DecidableEq X] [Fintype D] [DecidableEq D]2021/-- Take the exact state and vₖ=Cₖ+η, for any fixed positive η. The error tolerance22is attained; multiplying it by the ancilla dimension diverges. The robust inverse23nevertheless coincides with the unperturbed one and has the same limit. -/24theorem fixed_tolerance_exact (l : ℕ) (hn : Fintype.card X = l+2) (E : Ensemble X D)25 {η : ℝ} (hη : 0 < η) :26 let ν := fun k : ℕ ↦ maximallyMixed (Fin (k+1))27 let C := fun k ↦ extendedConditional (ν k) E28 let v := fun k ↦ C k + η29 let q := fun k ↦ max 0 (v k - η - 0 / ((k+1:ℕ):ℝ))30 (∀ k, |v k - C k| = η ∧ q k = C k) ∧31 Tendsto (fun k : ℕ ↦ ((k+1:ℕ):ℝ)*η) atTop atTop ∧32 ∃ h : ∀ k, q k ∈ calibratedCurveRange (ν k) l,33 Tendsto (fun k ↦ calibratedPhiInverse (ν k) l (q k) (h k)) atTop34 (𝓝 (inverse l (statistic E.1 E.1.2.1 E.1.2.2 (fun x ↦ asState (E.2 x))))) := by35 intro ν C v q36 have hr (k) : C k ∈ calibratedCurveRange (ν k) l :=37 conditional_product_mem_calibratedRange (ν k) l hn E.1 E.1.2.1 E.1.2.2 (fun x ↦ asState (E.2 x))38 have hq (k) : q k = C k := by simp [q,v,max_eq_right (hr k).1]39 refine ⟨fun k ↦ ⟨by simp [v,abs_of_pos hη], hq k⟩, ?_, ?_⟩40 · apply Tendsto.atTop_mul_const hη41 simpa only [Nat.cast_add,Nat.cast_one] using42 tendsto_atTop_add_const_right atTop (1:ℝ) (tendsto_natCast_atTop_atTop (R := ℝ))43 · refine ⟨fun k ↦ (hq k) ▸ hr k, ?_⟩44 have h := uniform_ancilla_inverse_tendsto l hn E.1 E.1.2.1 E.1.2.2 (fun x ↦ asState (E.2 x))45 apply h.congr'46 apply Eventually.of_forall47 intro k48 dsimp only [ensembleCalibratedInverse]49 simp only [hq k]50 rfl5152/-- For the opposite evaluation error vₖ=Cₖ−η at exactly the same tolerance,53the clipped argument and the returned bound eventually both vanish. -/54theorem fixed_tolerance_lower (l : ℕ) (hn : Fintype.card X = l+2) (E : Ensemble X D)55 {η : ℝ} (hη : 0 < η) :56 let ν := fun k : ℕ ↦ maximallyMixed (Fin (k+1))57 let C := fun k ↦ extendedConditional (ν k) E58 let v := fun k ↦ C k - η59 let q := fun k ↦ max 0 (v k - η - 0/((k+1:ℕ):ℝ))60 (∀ k, |v k - C k| = η) ∧61 ∀ᶠ k in atTop, q k = 0 ∧ ∃ h : q k ∈ calibratedCurveRange (ν k) l,62 calibratedPhiInverse (ν k) l (q k) h = 0 := by63 intro ν C v q64 constructor65 · intro k66 simp [v,abs_of_pos hη]67 have hC : Tendsto C atTop (𝓝 0) :=68 (AncillaExamples.uncalibrated_ancilla_inverse_tendsto l hn E.1 E.1.2.1 E.1.2.269 (fun x ↦ asState (E.2 x))).170 filter_upwards [hC.eventually_lt_const hη] with k hk71 have hq : q k = 0 := by72 simp only [q,v,zero_div,sub_zero]73 exact max_eq_left (by linarith)74 have hz : (0:ℝ) ∈ Icc 0 (ClassicalCurve.uniformError l) := ⟨le_rfl,(ClassicalCurve.uniformError_mem l).1⟩75 have h := calibratedPhiInverse_phi (ν k) l 0 hz76 have he : q k = calibratedPhi (ν k) l 0 := hq.trans (calibratedPhi_zero (ν k) l).symm77 refine ⟨hq, ?_⟩78 exact he ▸ ⟨_,h⟩7980end SubentropyCertificates.Robust
Axioms used
Choose a statement to see which axioms its proof uses.