MindFormal v1.0.0One Mind

MindFormal.Tools.ContractionEnclosure

02.20: an exact solution of a time-dependent field stays in a tube around an approximate path whose width follows Grönwall's bound at the field's one-sided Lipschitz constant μ (its logarithmic norm in a stated norm z ↦ ‖Lz‖) in place of its Lipschitz constant. μ may be zero or negative: the width then stays within δ + εt, or within the larger of δ and ε/|μ|, where a Lipschitz constant K makes it grow as e^{Kt}. Glued across pieces. Pure analysis, no mind.

theorem MindFormal.mul_le_max_of_between {A e E : ℝ} (h1 : min 1 E ≤ e) (h2 : e ≤ max 1 E) :
A * e ≤ max (A * 1) (A * E)

02.20: a real affine in a quantity e lying between 1 and E is at most the larger of its values at 1 and at E.

theorem MindFormal.gronwallBound_le_max {δ μ ε h s : ℝ} (hε : 0 ≤ ε) (hs : s ∈ Set.Icc 0 h) :
gronwallBound δ μ ε s ≤ max δ (gronwallBound δ μ ε h)

02.20: on [0,h] Grönwall's bound at any rate μ, positive, zero or negative, is at most the larger of its values at the two ends.

theorem MindFormal.gronwallBound_le_of_exp_le {δ μ ε h E : ℝ} (hδ : 0 ≤ δ) (hε : 0 ≤ ε) (hh : 0 ≤ h) (hE : Real.exp (μ * h) ≤ E) :
gronwallBound δ μ ε h ≤ δ * E + ε * h * max 1 E

02.20: Grönwall's bound at the end of [0,h], from any upper bound E of e^{μh} and any sign of μ: at most δE + εh·max(1,E), since (e^{μh} − 1)/μ = ∫₀ʰ e^{μs} ds.

theorem MindFormal.contraction_enclosure {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {v : ℝ → E → E} {x y y' : ℝ → E} {P : Set E} {L : E →L[ℝ] F} {a b δ ε r μ : ℝ} (hx : ContinuousOn x (Set.Icc a b)) (hx' : ∀ t ∈ Set.Ico a b, HasDerivWithinAt x (v t (x t)) (Set.Ici t) t) (hxP : ∀ t ∈ Set.Ico a b, x t ∈ P) (hy : ContinuousOn y (Set.Icc a b)) (hy' : ∀ t ∈ Set.Ico a b, HasDerivWithinAt y (y' t) (Set.Ici t) t) (defect : ∀ t ∈ Set.Ico a b, ‖L (y' t - v t (y t))‖ ≤ ε) (osl : ∀ t ∈ Set.Ico a b, ∀ z ∈ P, ‖L (z - y t)‖ ≤ r → ∃ h₀ > 0, ∀ h ∈ Set.Ioo 0 h₀, ‖L (z - y t + h • (v t z - v t (y t)))‖ ≤ (1 + h * μ) * ‖L (z - y t)‖) (start : ‖L (x a - y a)‖ ≤ δ) (room : max δ (gronwallBound δ μ ε (b - a)) < r) (t : ℝ) :
t ∈ Set.Icc a b → ‖L (x t - y t)‖ ≤ gronwallBound δ μ ε (t - a)

02.20: THE CONTRACTION ENCLOSURE, one piece. On [a,b] let x solve x' = v(t,x) from the right and stay in a set P, and let y be continuous with right derivative y'. Distances are measured by z ↦ ‖Lz‖ for a continuous linear map L (a weighted sup norm when L scales coordinates). Suppose the path's defect is at most ε, ‖L(y'(t) − v(t,y(t)))‖ ≤ ε; on the tube {z ∈ P : ‖L(z − y(t))‖ ≤ r} the field's one-sided Lipschitz constant against the path is at most μ, of any sign: for every small h > 0, ‖L(z − y(t) + h(v(t,z) − v(t,y(t))))‖ ≤ (1 + hμ)‖L(z − y(t))‖; ‖L(x(a) − y(a))‖ ≤ δ; and the larger of δ and the bound's end value is below r. Then x stays in the tube and ‖L(x(t) − y(t))‖ ≤ gronwallBound δ μ ε (t − a) on [a,b].

theorem MindFormal.contraction_enclosure_pieces {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {v : ℝ → E → E} {x : ℝ → E} {P : Set E} {L : E →L[ℝ] F} {m : ℕ} {τ : ℕ → ℝ} {y y' : ℕ → ℝ → E} {δ ε r μ : ℕ → ℝ} (hτ : ∀ k < m, τ k ≤ τ (k + 1)) (hx : ∀ k < m, ContinuousOn x (Set.Icc (τ k) (τ (k + 1)))) (hx' : ∀ k < m, ∀ t ∈ Set.Ico (τ k) (τ (k + 1)), HasDerivWithinAt x (v t (x t)) (Set.Ici t) t) (hxP : ∀ k < m, ∀ t ∈ Set.Ico (τ k) (τ (k + 1)), x t ∈ P) (hy : ∀ k < m, ContinuousOn (y k) (Set.Icc (τ k) (τ (k + 1)))) (hy' : ∀ k < m, ∀ t ∈ Set.Ico (τ k) (τ (k + 1)), HasDerivWithinAt (y k) (y' k t) (Set.Ici t) t) (defect : ∀ k < m, ∀ t ∈ Set.Ico (τ k) (τ (k + 1)), ‖L (y' k t - v t (y k t))‖ ≤ ε k) (osl : ∀ k < m, ∀ t ∈ Set.Ico (τ k) (τ (k + 1)), ∀ z ∈ P, ‖L (z - y k t)‖ ≤ r k → ∃ h₀ > 0, ∀ h ∈ Set.Ioo 0 h₀, ‖L (z - y k t + h • (v t z - v t (y k t)))‖ ≤ (1 + h * μ k) * ‖L (z - y k t)‖) (start : ‖L (x (τ 0) - y 0 (τ 0))‖ ≤ δ 0) (carry : ∀ (k : ℕ), k + 1 < m → gronwallBound (δ k) (μ k) (ε k) (τ (k + 1) - τ k) + ‖L (y k (τ (k + 1)) - y (k + 1) (τ (k + 1)))‖ ≤ δ (k + 1)) (room : ∀ k < m, max (δ k) (gronwallBound (δ k) (μ k) (ε k) (τ (k + 1) - τ k)) < r k) (k : ℕ) :
k < m → ∀ t ∈ Set.Icc (τ k) (τ (k + 1)), ‖L (x t - y k t)‖ ≤ gronwallBound (δ k) (μ k) (ε k) (t - τ k)

02.20: THE CONTRACTION ENCLOSURE, the pieces glued. Breakpoints τ k ≤ τ (k+1) for k < m. On piece k, x is continuous, solves x' = v(t,x) from the right and stays in P; the approximate path y k is continuous with right derivative y' k and defect at most ε k in the norm z ↦ ‖Lz‖, and the field's one-sided Lipschitz constant against it on the tube of width r k is at most μ k, of any sign. The start is within δ 0; at each break the bound's end value plus the jump ‖L(y k − y (k+1))‖ there is at most δ (k+1); on each piece the larger of δ k and the bound's end value is below r k. Then on each piece ‖L(x(t) − y k(t))‖ ≤ gronwallBound (δ k) (μ k) (ε k) (t − τ k). Any finite number of pieces.