SmallOverlap.lean
1module2public import SubentropyCertificates.OverlapRemainders3public import Mathlib.Topology.UnitInterval45/-! The right-hand small-overlap expansions and the fraction of the6Helstrom error attained by the increasing-branch subentropy lower bound. -/7@[expose] public section8noncomputable section9set_option autoImplicit false10open Set Filter Asymptotics11open scoped Topology12namespace SubentropyCertificates.SmallOverlap13open SubentropyCertificates.ClassicalCurve1415private theorem eventually_small : ∀ᶠ s : ℝ in 𝓝[>] 0, s ∈ Ioo 0 (1/2) :=16 Ioo_mem_nhdsGT_of_mem ⟨le_rfl,by norm_num⟩1718theorem conditional_expansion :19 (fun s => conditionalCurve s - s^2/6) =O[𝓝[>] (0:ℝ)] (fun s => s^4) := by20 refine isBigO_iff.mpr ⟨1/3,?_⟩21 filter_upwards [eventually_small] with s hs22 obtain ⟨hl,hu⟩ := conditional_remainder ⟨hs.1.le,hs.2.le⟩23 rw [Real.norm_eq_abs,abs_of_nonneg hl,Real.norm_eq_abs,abs_of_nonneg (by positivity)]24 linarith2526theorem error_expansion :27 (fun s => errorCurve s - s^2/4) =O[𝓝[>] (0:ℝ)] (fun s => s^4) := by28 refine isBigO_iff.mpr ⟨1/4,?_⟩29 filter_upwards [eventually_small] with s hs30 obtain ⟨hl,hu⟩ := error_remainder ⟨hs.1.le,by linarith [hs.2]⟩31 rw [Real.norm_eq_abs,abs_of_nonneg hl,Real.norm_eq_abs,abs_of_nonneg (by positivity)]32 linarith3334private theorem leading_term {f : ℝ → ℝ} {k C : ℝ}35 (h : ∀ s ∈ Ioo (0:ℝ) (1/2), 0 ≤ f s-k*s^2 ∧ f s-k*s^2 ≤ C*s^4) :36 Tendsto (fun s => f s/s^2) (𝓝[>] 0) (𝓝 k) := by37 have hzero : Tendsto (fun s : ℝ => s) (𝓝[>] 0) (𝓝 0) := nhdsWithin_le_nhds38 have hupper : Tendsto (fun s : ℝ => k+C*s^2) (𝓝[>] 0) (𝓝 k) := by39 simpa using (tendsto_const_nhds (x := k)).add ((tendsto_const_nhds (x := C)).mul (hzero.pow 2))40 apply tendsto_of_tendsto_of_tendsto_of_le_of_le' tendsto_const_nhds hupper41 · filter_upwards [eventually_small] with s hs42 apply (le_div_iff₀ (sq_pos_of_pos hs.1)).mpr43 linarith [(h s hs).1]44 · filter_upwards [eventually_small] with s hs45 apply (div_le_iff₀ (sq_pos_of_pos hs.1)).mpr46 nlinarith [(h s hs).2]4748theorem overlap_leading_terms :49 Tendsto (fun s => conditionalCurve s/s^2) (𝓝[>] 0) (𝓝 (1/6)) ∧50 Tendsto (fun s => errorCurve s/s^2) (𝓝[>] 0) (𝓝 (1/4)) := by51 constructor52 · apply leading_term (C := 1/3)53 intro s hs54 obtain ⟨hl,hu⟩ := conditional_remainder ⟨hs.1.le,hs.2.le⟩55 constructor <;> linarith56 · apply leading_term (C := 1/4)57 intro s hs58 obtain ⟨hl,hu⟩ := error_remainder ⟨hs.1.le,by linarith [hs.2]⟩59 constructor <;> linarith6061private theorem coe_right :62 Tendsto (fun s : unitInterval => (s:ℝ)) (𝓝[>] 0) (𝓝[>] 0) := by63 apply tendsto_nhdsWithin_iff.mpr64 exact ⟨continuous_subtype_val.continuousAt.tendsto.mono_left nhdsWithin_le_nhds,65 self_mem_nhdsWithin⟩6667/-- The genuine inverse satisfies B(s) ~ s^2/6; its ratio to the68optimal Helstrom error tends to two thirds as physical overlaps decrease to zero. -/69theorem inverse_bound_limits :70 Tendsto (fun s : unitInterval => subentropyBound s/(s:ℝ)^2) (𝓝[>] 0) (𝓝 (1/6)) ∧71 Tendsto (fun s : unitInterval => subentropyBound s/errorCurve s) (𝓝[>] 0) (𝓝 (2/3)) := by72 let L := 𝓝[>] (0 : unitInterval)73 have hsmall : ∀ᶠ s : unitInterval in L, (s:ℝ) ∈ Ioo 0 (1/2) := coe_right.eventually eventually_small74 have hpos : ∀ᶠ s : unitInterval in L, 0 < conditionalCurve s := by75 filter_upwards [hsmall] with s hs76 have h := (conditional_remainder ⟨hs.1.le,hs.2.le⟩).177 linarith [sq_pos_of_pos hs.1]78 have he : Continuous errorCurve := by unfold errorCurve; fun_prop79 have he0 : Tendsto (fun s : unitInterval => errorCurve s) L (𝓝 0) := by80 have h := (he.tendsto 0).comp (tendsto_nhdsWithin_iff.mp coe_right).181 simpa [Function.comp_def,errorCurve] using h82 have hb0 : Tendsto subentropyBound L (𝓝 0) :=83 tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds he084 (fun s => (bound_nonneg_le_error s).1) (fun s => (bound_nonneg_le_error s).2)85 have hb : Tendsto subentropyBound L (𝓝[>] 0) := by86 refine tendsto_nhdsWithin_iff.mpr ⟨hb0,?_⟩87 filter_upwards [hpos] with s hs88 apply lt_of_le_of_ne (bound_nonneg_le_error s).189 intro h90 have hq := phi_bound s91 rw [← h,phi_zero] at hq92 linarith93 have ht : Tendsto (fun s : unitInterval => conditionalCurve s/subentropyBound s) L (𝓝 1) := by94 simpa only [Function.comp_def,phi_bound] using (phi_div_error_tendsto_one 0).comp hb95 obtain ⟨hq,hh⟩ := overlap_leading_terms96 have hbq : Tendsto (fun s : unitInterval => subentropyBound s/(s:ℝ)^2) L (𝓝 (1/6)) := by97 have h := (hq.comp coe_right).div ht one_ne_zero98 rw [div_one] at h99 apply h.congr'100 filter_upwards [hpos] with s hs101 exact div_div_div_cancel_left' _ _ hs.ne'102 refine ⟨hbq,?_⟩103 have h := hbq.div (hh.comp coe_right) (by norm_num)104 norm_num at h105 apply h.congr'106 filter_upwards [hsmall] with s hs107 exact div_div_div_cancel_right₀ (pow_ne_zero 2 hs.1.ne') _ _108109/-- The two fourth-order remainder statements and the limiting ratio110from Section 6.2. -/111theorem small_overlap_asymptotics :112 ((fun s => conditionalCurve s - s^2/6) =O[𝓝[>] (0:ℝ)] (fun s => s^4)) ∧113 ((fun s => errorCurve s - s^2/4) =O[𝓝[>] (0:ℝ)] (fun s => s^4)) ∧114 Tendsto (fun s : unitInterval => subentropyBound s/errorCurve s) (𝓝[>] 0) (𝓝 (2/3)) :=115 ⟨conditional_expansion,error_expansion,inverse_bound_limits.2⟩116117end SubentropyCertificates.SmallOverlap
Axioms used
Choose a statement to see which axioms its proof uses.