MindFormal v1.0.0One Mind

MindFormal.Tools.A705SupportPrograms.TraceCompare

D4 at rate one: a continuous trace whose increments integrate x - r is the exponential average of its activity, so activity envelopes give two-sided trace envelopes.

theorem MindFormal.A705SupportPrograms.trace_closed_form {x r : ℝ → ℝ} (hx : Continuous x) (hr : Continuous r) {a t : ℝ} (hat : a ≤ t) (he : ∀ s ∈ Set.Icc a t, r s - r a = ∫ (u : ℝ) in a..s, x u - r u) :
r t = Real.exp (-(t - a)) * r a + ∫ (s : ℝ) in a..t, Real.exp (-(t - s)) * x s

D4's rate-one solution formula on [a, t], from the integral equation alone.

theorem MindFormal.A705SupportPrograms.trace_between {x r lo hi : ℝ → ℝ} (hx : Continuous x) (hr : Continuous r) (hlo : Continuous lo) (hhi : Continuous hi) {a t : ℝ} (hat : a ≤ t) (he : ∀ s ∈ Set.Icc a t, r s - r a = ∫ (u : ℝ) in a..s, x u - r u) (hb : ∀ s ∈ Set.Icc a t, lo s ≤ x s ∧ x s ≤ hi s) :
Real.exp (-(t - a)) * r a + ∫ (s : ℝ) in a..t, Real.exp (-(t - s)) * lo s ≤ r t ∧ r t ≤ Real.exp (-(t - a)) * r a + ∫ (s : ℝ) in a..t, Real.exp (-(t - s)) * hi s

Two-sided D4 envelope: activity between two continuous envelopes on [a, t] keeps the trace between their exponential averages.

theorem MindFormal.A705SupportPrograms.envelope_average (c e ν a t : ℝ) (hν : ν ≠ 1) :
∫ (s : ℝ) in a..t, Real.exp (-(t - s)) * (c * (1 - Real.exp (-ν * (s - a))) + e) = (c + e) * (1 - Real.exp (-(t - a))) - c * (Real.exp (-(t - a)) * (Real.exp ((1 - ν) * (t - a)) - 1) / (1 - ν))

The exponential average of a rising activity envelope c(1 - e^{-ν(s-a)}) + e.