MindFormal v1.0.0One Mind

MindFormal.Tools.ConditionalNewsChain.Dynamics

Scalar integrations and the telescoping finite comparison. These prove the evaluated curves from differential equations rather than assuming them.

theorem MindFormal.ConditionalNewsChain.constant_of_zero_derivative {f : ℝ → ℝ} {H : ℝ} (hH : 0 ≤ H) (hf : ∀ t ∈ Set.Icc 0 H, HasDerivAt f 0 t) :
f H = f 0
theorem MindFormal.ConditionalNewsChain.solve_decay {x : ℝ → ℝ} {Ω b H : ℝ} (hΩ : Ω ≠ 0) (hH : 0 ≤ H) (hx : ∀ t ∈ Set.Icc 0 H, HasDerivAt x (-Ω * x t + b) t) :
x H = x 0 * Real.exp (-Ω * H) + b / Ω * (1 - Real.exp (-Ω * H))
theorem MindFormal.ConditionalNewsChain.sum_successive_differences (f : ℕ → ℝ) (K : ℕ) :
∑ k ∈ Finset.range K, (f (k + 1) - f k) = f K - f 0
theorem MindFormal.ConditionalNewsChain.piecewise_constant (ν start target H t : ℝ) (ht : t ∈ Set.Icc 0 H) (a : ℕ → ℝ) (K : ℕ) (ha0 : a 0 = 0) (haK : a K = H) (v : ℕ → ℝ) (hv : ∀ k < K, v k = target) :
piecewiseComparison ν start a v K t = target + (start - target) * Real.exp (-ν * t)
theorem MindFormal.ConditionalNewsChain.decay_below {C k ε d : ℝ} (hC : 0 < C) (hk : 0 < k) (hε : 0 < ε) (hd : Real.log (C / ε) / k < d) :
C * Real.exp (-k * d) < ε