MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.ProbeKernelPeak

theorem MindFormal.positive_mul_neg_iff {p x : ℝ} (hp : 0 < p) :
p * x < 0 ↔ x < 0
noncomputable def MindFormal.probePeak (ν lam d : ℝ) :
Equations
Instances For
    theorem MindFormal.exponential_difference_pos_iff {a b δ t : ℝ} (ha : 0 < a) (hb : 0 < b) (hδ : δ ≠ 0) :
    0 < (a - b * Real.exp (δ * t)) / δ ↔ t < Real.log (a / b) / δ

    A difference of two exponentials changes sign exactly at the displayed logarithm, for either ordering of their rates.

    theorem MindFormal.exponential_difference_neg_iff {a b δ t : ℝ} (ha : 0 < a) (hb : 0 < b) (hδ : δ ≠ 0) :
    (a - b * Real.exp (δ * t)) / δ < 0 ↔ Real.log (a / b) / δ < t
    theorem MindFormal.probeStepRaw_deriv_ne {ν lam t : ℝ} (hne : ν ≠ lam) :
    HasDerivAt (probeStepRaw ν lam) (ν * lam * (Real.exp (-lam * t) - Real.exp (-ν * t)) / (ν - lam)) t
    theorem MindFormal.probeStepRaw_deriv_eq (ν t : ℝ) :
    HasDerivAt (probeStepRaw ν ν) (ν ^ 2 * t * Real.exp (-ν * t)) t
    theorem MindFormal.probeStepRaw_deriv_pos {ν lam t : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (ht : 0 < t) :
    0 < deriv (probeStepRaw ν lam) t
    theorem MindFormal.probeKernel_tail_deriv_ne {ν lam d t : ℝ} (hne : ν ≠ lam) (hd : 0 < d) (ht : d < t) :
    HasDerivAt (fun (u : ℝ) => probeKernel ν lam u d) (ν * lam * Real.exp (-ν * t) * (Real.exp (ν * d) - 1 - (Real.exp (lam * d) - 1) * Real.exp ((ν - lam) * t)) / (ν - lam)) t
    theorem MindFormal.probePeak_gt_duration_ne {ν lam d : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hd : 0 < d) (hne : ν ≠ lam) :
    d < probePeak ν lam d
    theorem MindFormal.probeKernel_tail_deriv_pos_iff_ne {ν lam d t : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hd : 0 < d) (hne : ν ≠ lam) (ht : d < t) :
    0 < deriv (fun (u : ℝ) => probeKernel ν lam u d) t ↔ t < probePeak ν lam d
    theorem MindFormal.probeKernel_tail_deriv_neg_iff_ne {ν lam d t : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hd : 0 < d) (hne : ν ≠ lam) (ht : d < t) :
    deriv (fun (u : ℝ) => probeKernel ν lam u d) t < 0 ↔ probePeak ν lam d < t
    theorem MindFormal.probeKernel_tail_deriv_eq {ν d t : ℝ} (hd : 0 < d) (ht : d < t) :
    HasDerivAt (fun (u : ℝ) => probeKernel ν ν u d) (ν ^ 2 * Real.exp (-ν * t) * (d * Real.exp (ν * d) - (Real.exp (ν * d) - 1) * t)) t

    The equal-rate tail retains the polynomial factor in the continuous limit; it has the same single sign change.

    theorem MindFormal.probePeak_eq_identity {ν d : ℝ} (hν : 0 < ν) (hd : 0 < d) :
    (Real.exp (ν * d) - 1) * probePeak ν ν d = d * Real.exp (ν * d)
    theorem MindFormal.probePeak_gt_duration {ν lam d : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hd : 0 < d) :
    d < probePeak ν lam d
    theorem MindFormal.probeKernel_tail_deriv_pos_iff {ν lam d t : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hd : 0 < d) (ht : d < t) :
    0 < deriv (fun (u : ℝ) => probeKernel ν lam u d) t ↔ t < probePeak ν lam d
    theorem MindFormal.probeKernel_tail_deriv_neg_iff {ν lam d t : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hd : 0 < d) (ht : d < t) :
    deriv (fun (u : ℝ) => probeKernel ν lam u d) t < 0 ↔ probePeak ν lam d < t
    theorem MindFormal.probeKernel_single_maximum {ν lam d : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hd : 0 < d) :
    d < probePeak ν lam d ∧ StrictMonoOn (fun (t : ℝ) => probeKernel ν lam t d) (Set.Icc 0 (probePeak ν lam d)) ∧ StrictAntiOn (fun (t : ℝ) => probeKernel ν lam t d) (Set.Ici (probePeak ν lam d))

    (17.3): the causal rectangle trace has exactly one peak. Both strict monotonicity statements include their endpoints, including the point where the rectangle ends, without presupposing differentiability of a hard-switched input at that point.

    theorem MindFormal.probeKernel_interval_extrema {ν lam d a b t : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hd : 0 < d) (ha : 0 ≤ a) (ht : t ∈ Set.Icc a b) :
    min (probeKernel ν lam a d) (probeKernel ν lam b d) ≤ probeKernel ν lam t d ∧ probeKernel ν lam t d ≤ max (max (probeKernel ν lam a d) (probeKernel ν lam b d)) (if probePeak ν lam d ∈ Set.Icc a b then probeKernel ν lam (probePeak ν lam d) d else max (probeKernel ν lam a d) (probeKernel ν lam b d))

    Every finite lag interval needs only its endpoints and, for its maximum, the single explicit peak. This is the finite evaluation rule used to compute r_L and r_H in (17.4).