File size: 1,499 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 | import Mathlib
import OAI.Probability.LatticeSurface.Dynamics.ProjectionDerivative
namespace OAI
namespace ProjectionComparison
open Set MeasureTheory
variable {V E : Type*} [Fintype V]
lemma project_path_lipschitz (S : System V E) (b vβ vβ : V β β) (hne : (feasible S b).Nonempty) (x : V) :
LipschitzWith βvβ-vβββ (fun t : β => project S b hne (fun y => vβ y+t*(vβ y-vβ y)) x) := by
apply LipschitzWith.of_dist_le_mul
intro s t
rw [Real.dist_eq,Real.dist_eq]
apply projection_parameter_stability S b b _ _ _ _ (βvβ-vββ*|s-t|) (mul_nonneg (norm_nonneg _) (abs_nonneg _))
(project_spec S b hne _) (project_spec S b hne _)
Β· intro y hy;simpa using mul_nonneg (norm_nonneg (vβ-vβ)) (abs_nonneg (s-t))
Β· intro y hy
have hn : |vβ y-vβ y|β€βvβ-vββ := by simpa only [Real.norm_eq_abs,Pi.sub_apply] using norm_le_pi_norm (vβ-vβ) y
calc
|(vβ y+s*(vβ y-vβ y))-(vβ y+t*(vβ y-vβ y))|=|s-t| * |vβ y-vβ y| := by rw [β abs_mul];congr 1;ring
_ β€ βvβ-vββ*|s-t| := by nlinarith [abs_nonneg (s-t)]
lemma project_path_ae_derivative (S : System V E) (b vβ vβ : V β β) (hne : (feasible S b).Nonempty) :
βα΅ t : β,β x,DifferentiableAt β (fun s => project S b hne (fun y => vβ y+s*(vβ y-vβ y)) x) t := by
apply MeasureTheory.ae_all_iff.mpr
intro x
exact (project_path_lipschitz S b vβ vβ hne x).ae_differentiableAt_real
end ProjectionComparison
end OAI
|