AncillaIntegralLimit.lean
1module23public import SubentropyCertificates.AncillaKernelLimit4public import SubentropyCertificates.AncillaKernelBound5public import D5.S3.Quantum.Subentropy.UniformIntegrals6public import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals7public import Mathlib.MeasureTheory.Integral.DominatedConvergence89/-! Integrating the difference of the replicated factors for two normalized spectra. -/10@[expose] public section11noncomputable section12open Filter MeasureTheory Set13open scoped Topology BigOperators14namespace SubentropyCertificates.AncillaLimit15open D5.S3.Quantum.Subentropy.UniformIntegrals (inverse_power)1617/-- The common leading term cancels for spectra of the same total mass one. -/18theorem replicated_difference_integral_tendsto {I J : Type*} [Fintype I] [Fintype J]19 (w : I → ℝ) (v : J → ℝ) (hw : ∀ i, 0 ≤ w i) (hv : ∀ j, 0 ≤ v j)20 (sw : ∑ i, w i = 1) (sv : ∑ j, v j = 1) :21 Tendsto (fun k : ℕ ↦ ∫ t in Ioi (0 : ℝ),22 ((k + 1 : ℕ) : ℝ) * (replicatedFactor w k t - replicatedFactor v k t) / t ^ 2)23 atTop (𝓝 (((∑ i, w i ^ 2) - ∑ j, v j ^ 2) / 2)) := by24 let μ := volume.restrict (Ioi (0 : ℝ))25 let F (k : ℕ) (t : ℝ) :=26 ((k + 1 : ℕ) : ℝ) * (replicatedFactor w k t - replicatedFactor v k t) / t ^ 227 let c := ((∑ i, w i ^ 2) - ∑ j, v j ^ 2) / 228 let g (t : ℝ) := 8 / (1 + t) ^ 229 have hg : Integrable g μ := by30 have hi : Integrable (fun t : ℝ ↦ 1 / (1 + t) ^ 2) μ := by31 change IntegrableOn (fun t : ℝ ↦ 1 / (1 + t) ^ 2) (Ioi (0 : ℝ))32 simpa [add_comm] using (inverse_power 1 (by norm_num) 0).133 simpa only [g, div_eq_mul_inv, one_mul] using hi.const_mul 834 have hmeas : ∀ᶠ k in atTop, AEStronglyMeasurable (F k) μ :=35 .of_forall fun k ↦ by apply Measurable.aestronglyMeasurable; unfold F replicatedFactor; fun_prop36 have hbound : ∀ᶠ k in atTop, ∀ᵐ t ∂μ, ‖F k t‖ ≤ g t := by37 filter_upwards [eventually_ge_atTop 1] with k hk38 filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht39 let a := ((k + 1 : ℕ) : ℝ) * (replicatedFactor w k t - Real.exp (-t)) / t ^ 240 let b := ((k + 1 : ℕ) : ℝ) * (replicatedFactor v k t - Real.exp (-t)) / t ^ 241 have hf : F k t = a - b := by dsimp only [F, a, b]; ring42 rw [hf, Real.norm_eq_abs]43 calc44 |a - b| ≤ |a| + |b| := abs_sub _ _45 _ ≤ 4 / (1+t)^2 + 4 / (1+t)^2 := add_le_add46 (replicatedFactor_centered_bound w hw sw hk ht) (replicatedFactor_centered_bound v hv sv hk ht)47 _ = g t := by dsimp [g]; ring48 have hpoint : ∀ᵐ t ∂μ, Tendsto (fun k ↦ F k t) atTop (𝓝 (c * Real.exp (-t))) := by49 filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht50 have h := (replicatedFactor_centered_tendsto w hw sw ht).sub51 (replicatedFactor_centered_tendsto v hv sv ht)52 convert h using 153 · funext k54 dsimp only [F, Pi.sub_apply]55 ring56 · congr 157 dsimp only [c]58 ring59 have h := tendsto_integral_filter_of_dominated_convergence g hmeas hbound hg hpoint60 have he : (∫ t, c * Real.exp (-t) ∂μ) = c := by61 change (∫ t in Ioi (0 : ℝ), c * Real.exp (-t)) = c62 rw [integral_const_mul, integral_exp_neg_Ioi_zero, mul_one]63 rwa [he] at h6465end SubentropyCertificates.AncillaLimit
Axioms used
Choose a statement to see which axioms its proof uses.