MindFormal v1.0.0One Mind

MindFormal.Tools.HitBounds

noncomputable def MindFormal.hitTime (f : ℝ → ℝ) (bar release H : ℝ) :

First qualification in the closed eligible window, with infinity for an empty set, including a release after the deadline.

Equations
Instances For
    theorem MindFormal.hitTime_le {f : ℝ → ℝ} {bar r H t : ℝ} (ht : t ∈ Set.Icc r H) (hq : bar ≤ f t) :
    hitTime f bar r H ≤ ↑t

    Any qualifying time bounds the infimum from above.

    theorem MindFormal.hitTime_at_release {f : ℝ → ℝ} {bar r H : ℝ} (hr : r ≤ H) (hq : bar ≤ f r) :
    hitTime f bar r H = ↑r

    A score qualified at eligibility has first hit exactly at eligibility.

    theorem MindFormal.hitTime_mono {f g : ℝ → ℝ} {a b r s H : ℝ} (sub : ∀ t ∈ Set.Icc s H, b ≤ g t → t ∈ Set.Icc r H ∧ a ≤ f t) :
    hitTime f a r H ≤ hitTime g b s H

    Set inclusion reverses the order of the first qualifying times, including either empty set. No continuity is needed for this bound.

    theorem MindFormal.hitTime_attained {f : ℝ → ℝ} {bar r H U : ℝ} (hf : Continuous f) (h : hitTime f bar r H ≤ ↑U) :
    ∃ (t : ℝ), hitTime f bar r H = ↑t ∧ t ∈ Set.Icc r H ∧ bar ≤ f t ∧ t ≤ U

    A finite bound on a continuous score's infimum supplies an attained first hit, rather than an assumed crossing at the bound.

    theorem MindFormal.hitTime_after {f : ℝ → ℝ} {bar r H : ℝ} (h : H < r) :
    hitTime f bar r H = ⊤

    A locked search has no finite candidate hit.

    theorem MindFormal.hitTime_sandwich {f f₀ : ℝ → ℝ} {bar e rlo r rhi H : ℝ} (hr : r ∈ Set.Icc rlo rhi) (enc : ∀ t ∈ Set.Icc rlo H, |f t - f₀ t| ≤ e) :
    hitTime f₀ (bar - e) rlo H ≤ hitTime f bar r H ∧ hitTime f bar r H ≤ hitTime f₀ (bar + e) rhi H

    A uniform score enclosure and a bracket on the actual release give both infimum inequalities, without excluding empty sets or late starts.

    theorem MindFormal.hitTime_of_cutoff {f : ℝ → ℝ} {bar r H a : ℝ} (qual : ∀ t ∈ Set.Icc r H, bar ≤ f t ↔ a ≤ t) :
    hitTime f bar r H = if max r a ≤ H then ↑(max r a) else ⊤

    When qualification is exactly a time cutoff, eligibility takes its maximum with that cutoff; censoring after the deadline gives infinity.