import Euler.BoundedFlowContinuity /-! Construction of the flow and its continuous inverse from a genuine bounded continuous velocity on the prescribed finite time interval. Endpoint extension only defines the auxiliary velocity outside that interval; all stated ODE identities use the original velocity. -/ noncomputable section open Set Metric open scoped Topology NNReal BoundedContinuousFunction namespace EulerBoundedLipschitzFlow variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] def ofTimeInterval (T : ℝ) (hT : 0 ≤ T) (u : C(Icc (0 : ℝ) T, E →ᵇ E)) (K : ℝ≥0) (hLip : ∀ t, LipschitzWith K (u t)) : Data E where velocity t x := u (projIcc 0 T hT t) x continuous := by fun_prop lipschitzConstant := K lipschitz t := hLip (projIcc 0 T hT t) speedBound := ‖u‖₊ speed t x := ((u (projIcc 0 T hT t)).norm_coe_le_norm x).trans (u.norm_coe_le_norm (projIcc 0 T hT t)) omit [NormedSpace ℝ E] in @[simp] theorem ofTimeInterval_velocity (T : ℝ) (hT : 0 ≤ T) (u : C(Icc (0 : ℝ) T, E →ᵇ E)) (K : ℝ≥0) (hLip : ∀ t, LipschitzWith K (u t)) (t : Icc (0 : ℝ) T) (x : E) : (ofTimeInterval T hT u K hLip).velocity t x = u t x := by simp only [ofTimeInterval, projIcc_of_mem _ t.property] variable [CompleteSpace E] end EulerBoundedLipschitzFlow