Pratik Patil

PathIntegralComparison.lean

1module23public import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus45/-! Integration of the variable derivative bound along the unit interval. -/6@[expose] public section7noncomputable section89open Set MeasureTheory1011namespace SubentropyCertificates.ConditionalContinuity1213/-- A continuous majorant for the absolute derivative controls the endpoint difference. -/14theorem abs_sub_le_integral_of_deriv_bound (f v k : ℝ → ℝ) (d : ℝ)15    (hk : ContinuousOn k (Icc 0 1)) (hf : ∀ t ∈ Icc (0 : ℝ) 1, HasDerivAt f (v t) t)16    (hb : ∀ t ∈ Icc (0 : ℝ) 1, |v t| ≤ k t * d) :17    |f 1 - f 0| ≤ d * ∫ t in (0 : ℝ)..1, k t := by18  have hc : ContinuousOn f (Icc 0 1) := fun t ht ↦ (hf t ht).continuousAt.continuousWithinAt19  have hi : IntegrableOn (fun t ↦ k t * d) (Icc 0 1) :=20    (hk.mul continuousOn_const).integrableOn_Icc21  have hpos := intervalIntegral.sub_le_integral_of_hasDeriv_right_of_le zero_le_one hc22    (fun t ht ↦ (hf t (Ioo_subset_Icc_self ht)).hasDerivWithinAt) hi23    (fun t ht ↦ (le_abs_self _).trans (hb t (Ioo_subset_Icc_self ht)))24  have hneg := intervalIntegral.sub_le_integral_of_hasDeriv_right_of_le zero_le_one hc.neg25    (fun t ht ↦ (hf t (Ioo_subset_Icc_self ht)).neg.hasDerivWithinAt) hi26    (fun t ht ↦ (neg_le_abs _).trans (hb t (Ioo_subset_Icc_self ht)))27  rw [intervalIntegral.integral_mul_const, mul_comm _ d] at hpos hneg28  exact abs_le.mpr ⟨by simpa [neg_sub] using neg_le_neg hneg, hpos⟩2930/-- If the path coefficient is at most one, the weighted length is at most the distance. -/31theorem weighted_path_integral_le (k : ℝ → ℝ) {d : ℝ} (hd : 0 ≤ d)32    (hk : ContinuousOn k (Icc 0 1)) (h1 : ∀ t ∈ Icc (0 : ℝ) 1, k t ≤ 1) :33    d * (∫ t in (0 : ℝ)..1, k t) ≤ d := by34  have hi : IntervalIntegrable k volume 0 1 := by35    apply ContinuousOn.intervalIntegrable36    simpa only [uIcc_of_le zero_le_one] using hk37  have h := intervalIntegral.integral_mono_on zero_le_one hi (intervalIntegrable_const) h138  simpa using mul_le_mul_of_nonneg_left h hd3940end SubentropyCertificates.ConditionalContinuity

Axioms used

Choose a statement to see which axioms its proof uses.