Download data/lean/OAI/Probability/SKBarriers/Interpolation/AdaptiveODEExistence.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.46 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/SKBarriers/Interpolation/AdaptiveODEExistence.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/SKBarriers/Interpolation/AdaptiveODEExistence.lean
-
curl -L -o AdaptiveODEExistence.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/SKBarriers/Interpolation/AdaptiveODEExistence.lean
2.46 kB
| 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 | |