File size: 2,455 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | import Mathlib
import OAI.Probability.SKBarriers.Interpolation.AdaptiveODERegular
namespace OAI
section
section
noncomputable section
open scoped BigOperators NNReal
open Set Metric
namespace SK.Analytic
theorem exists_floored_adaptive_path {k : β}
(R : (β Γ (Fin (k+1) β β)) β (Fin (k+1) β β)) (hR : ContDiff β 1 R)
(hRb : β p j, R p j β Icc (0:β) 1)
(Ξ΅ : β) (hΞ΅ : 0 < Ξ΅) (qβ : Fin (k+1) β β) :
β q : β β (Fin (k+1) β β), q 0 = qβ β§
β t β Icc (0:β) 1, HasDerivWithinAt q
(R (Real.sqrt (1-t),positiveGapScales k Ξ΅ (q t))) (Icc (0:β) 1) t := by
let G := fun p : β Γ (Fin (k+1) β β) => R (p.1,positiveGapScales k Ξ΅ p.2)
have hG : LocallyLipschitz G := regular_positiveGapScales R hR Ξ΅ hΞ΅
obtain β¨K,hKβ© := LocallyLipschitzOn.exists_lipschitzOnWith_of_compact
(isCompact_Icc.prod (isCompact_closedBall qβ 1)) hG.locallyLipschitzOn
have hs (t : β) (ht : t β Icc (0:β) 1) : Real.sqrt (1-t) β Icc (0:β) 1 := by
refine β¨Real.sqrt_nonneg _,?_β©
apply Real.sqrt_le_one.mpr
linarith [ht.1]
let F := fun t q => G (Real.sqrt (1-t),q)
have hf : IsPicardLindelof F (β¨0,by norm_numβ© : Icc (0:β) 1) qβ 1 0 1 K := by
constructor
Β· intro t ht
apply LipschitzOnWith.of_dist_le_mul
intro x hx y hy
simpa only [F,Prod.dist_eq,dist_self,max_eq_right dist_nonneg] using
hK.dist_le_mul (Real.sqrt (1-t),x) β¨hs t ht,hxβ©
(Real.sqrt (1-t),y) β¨hs t ht,hyβ©
Β· intro x _
exact (hG.continuous.comp ((Real.continuous_sqrt.comp
(continuous_const.sub continuous_id)).prodMk continuous_const)).continuousOn
Β· intro t _ x _
apply (pi_norm_le_iff_of_nonneg (by norm_num : (0:β) β€ 1)).mpr
intro j
rw [Real.norm_eq_abs,abs_of_nonneg (hRb _ j).1]
exact (hRb _ j).2
Β· norm_num
exact hf.exists_eq_forall_mem_Icc_hasDerivWithinAtβ
theorem monotoneOn_unit_of_deriv_nonneg {f g : β β β}
(hf : β t β Icc (0:β) 1, HasDerivWithinAt f (g t) (Icc (0:β) 1) t)
(hg : β t β Icc (0:β) 1, 0 β€ g t) : MonotoneOn f (Icc (0:β) 1) := by
apply monotoneOn_of_hasDerivWithinAt_nonneg (convex_Icc 0 1)
(fun t ht => (hf t ht).continuousWithinAt)
Β· intro t ht
exact (hf t (interior_subset ht)).mono interior_subset
Β· intro t ht
exact hg t (interior_subset ht)
end SK.Analytic
end
end
end
end OAI
|