Pratik Patil

EndpointCurvatureIntegral.lean

1module23public import SubentropyCertificates.EndpointCurvatureFactors4public import SubentropyCertificates.UniformProductSpectrum56/-! Integrating the uniform determinant expansion along a zero-sum direction. -/7@[expose] public section8noncomputable section9open Matrix Set MeasureTheory Filter Asymptotics10open scoped BigOperators Topology ComplexOrder11namespace SubentropyCertificates.EndpointCurvature12open D5.S3.Quantum.Subentropy.Basic13open D5.S3.Quantum.Subentropy.DensityKernel14open SubentropyCertificates.ClassicalCurve1516variable {I : Type*} [Fintype I] [DecidableEq I]1718private def kernel (w : I → ℝ) (t : ℝ) :=19  subentropyKernel (diagonal (fun i ↦ (w i : ℂ))) t2021private theorem kernel_integrable {w : I → ℝ} (hw : w ∈ probabilitySimplex I) :22    IntegrableOn (kernel w) (Ioi 0) := by23  obtain ⟨hp,ht⟩ := diagonal_density hw24  exact integrable_subentropy_kernel hp ht2526private theorem kernel_difference (v : I → ℝ) {c t : ℝ} (hc : 0 < c) (ht : 0 < t) (h : ℝ) :27    kernel (fun _ : I ↦ c) t - kernel (fun i ↦ c+h*v i) t =28      (ratio c t)^(Fintype.card I) * ((∏ i, (1+v i*(h/(t+c))))⁻¹ - 1) := by29  simp only [kernel, kernel_diagonal _ t ht.ne']30  have htc : t+c ≠ 0 := by positivity31  have hsplit (i : I) : t/(t+(c+h*v i)) = ratio c t * (1+v i*(h/(t+c)))⁻¹ := by32    have hr : t+(c+h*v i) = (t+c)*(1+v i*(h/(t+c))) := by field_simp; ring33    rw [hr, ratio, div_eq_mul_inv, div_eq_mul_inv, _root_.mul_inv_rev]34    ring35  simp_rw [hsplit]36  rw [Finset.prod_mul_distrib, Finset.prod_inv_distrib]37  simp [ratio]38  ring3940/-- The quadratic coefficient of classical subentropy at a uniform spectrum on a finite41space. The cubic remainder holds on a two-sided neighborhood in every zero-sum direction. -/42theorem uniform_tangent_expansion (v : I → ℝ) (hv : ∑ i, v i = 0) (c : ℝ) (hc : 0 < c)43    (hnorm : ∑ _ : I, c = 1) :44    (fun h : ℝ ↦ classicalSubentropy (fun _ : I ↦ c) - classicalSubentropy (fun i ↦ c+h*v i) -45        ((∑ i, v i^2)/2/(c*(Fintype.card I+1 : ℕ)))*h^2)46      =O[𝓝 0] (fun h ↦ h^3) := by47  let d := Fintype.card I48  let a := (∑ i, v i^2)/249  let W := 1/(c*(d+1 : ℕ))50  let μ := volume.restrict (Ioi (0:ℝ))51  let w := fun t : ℝ ↦ (ratio c t)^d/(t+c)^252  have hi : Integrable w μ := (integral_ratio_power c hc d).153  have hw : (∫ t, w t ∂μ) = W := (integral_ratio_power c hc d).254  obtain ⟨C,δ,hC,hδ,hR⟩ := reciprocal_product_remainder v hv55  have hsmall : ∀ᶠ h : ℝ in 𝓝 0, |h| < δ*c :=56    continuous_abs.continuousAt.eventually_lt_const (by simpa using mul_pos hδ hc)57  have hprob : ∀ᶠ h : ℝ in 𝓝 0, (fun i ↦ c+h*v i) ∈ probabilitySimplex I := by58    have hh : ∀ᶠ h : ℝ in 𝓝 0, ∀ i, 0 < c+h*v i := eventually_all.mpr fun i ↦59      (by fun_prop : Continuous (fun h : ℝ ↦ c+h*v i)).continuousAt.eventually_const_lt (by simpa)60    filter_upwards [hh] with h hh61    exact ⟨fun i ↦ (hh i).le,by simp [Finset.sum_add_distrib,← Finset.mul_sum,hv,hnorm]⟩62  refine isBigO_iff.mpr ⟨C/c*W,?_⟩63  filter_upwards [hsmall,hprob] with h hh hprob64  let G := fun t ↦ kernel (fun _ : I ↦ c) t - kernel (fun i ↦ c+h*v i) t65  have hi₀ := kernel_integrable (show (fun _ : I ↦ c) ∈ probabilitySimplex I from66    ⟨fun _ ↦ hc.le,hnorm⟩)67  have hi₁ := kernel_integrable hprob68  have hG : Integrable G μ := hi₀.sub hi₁69  have hbound : ∀ᵐ t ∂μ, ‖G t - (a*h^2)*w t‖ ≤ (C/c*|h|^3)*w t := by70    filter_upwards [ae_restrict_mem (μ := volume) measurableSet_Ioi] with t ht71    have ht' : 0 < t := ht72    have hd : 0 < t+c := by linarith73    let b := (ratio c t)^d74    let z := h/(t+c)75    have hb : 0 ≤ b := pow_nonneg (div_nonneg ht'.le hd.le) d76    have hw' : 0 ≤ w t := div_nonneg hb (sq_nonneg _)77    have hz : |z| < δ := by78      rw [show |z|=|h|/(t+c) by rw [abs_div,abs_of_pos hd], div_lt_iff₀ hd]79      nlinarith [mul_pos hδ ht']80    have hpoint := hR z hz81    have he : G t - a*h^2*w t = b*((∏ i,(1+v i*z))⁻¹ - 1 - a*z^2) := by82      dsimp only [G,w,b,z,d]83      rw [kernel_difference v hc ht']84      generalize (∏ i, (1 + v i * (h / (t+c))))⁻¹ = p85      rw [div_pow]86      generalize t+c = s87      ring88    rw [Real.norm_eq_abs,he,abs_mul,abs_of_nonneg hb]89    calc90      _ ≤ b*(C*|z|^3) := mul_le_mul_of_nonneg_left hpoint hb91      _ = C/(t+c)*|h|^3*w t := by92        simp only [z,abs_div,abs_of_pos hd,w,b,div_pow]93        generalize t+c = s94        simp only [div_eq_mul_inv, ← inv_pow]95        ring96      _ ≤ _ := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right97        (div_le_div_of_nonneg_left hC.le hc (by linarith)) (pow_nonneg (abs_nonneg _) 3)) hw'98  have hh' := norm_integral_le_of_norm_le (hi.const_mul (C/c*|h|^3)) hbound99  rw [integral_sub hG (hi.const_mul _), integral_const_mul, integral_const_mul, hw] at hh'100  have he : (∫ t, G t ∂μ) = classicalSubentropy (fun _ : I ↦ c) -101      classicalSubentropy (fun i ↦ c+h*v i) := integral_sub hi₀ hi₁102  rw [he] at hh'103  simp only [Real.norm_eq_abs,abs_pow] at hh' ⊢104  convert hh' using 1 <;> dsimp only [a,W,d] <;> ring105106end SubentropyCertificates.EndpointCurvature

Axioms used

Choose a statement to see which axioms its proof uses.