MindFormal v1.0.0One Mind

MindFormal.Equations.NativeComparison

def MindFormal.NativeSearch.reindex {N : ℕ} {g f g' f' : ℝ → Fin N → ℝ} {r r' H : ℝ} (S : NativeSearch g f r H) (hg : g = g') (hf : f = f') (hr : r = r') :
NativeSearch g' f' r' H

Transport equal guard, score and release descriptions without changing the selected event. This is a representation change, not a new search.

Equations
Instances For
    theorem MindFormal.NativeSearch.reindex_event {N : ℕ} {g f g' f' : ℝ → Fin N → ℝ} {r r' H : ℝ} (S : NativeSearch g f r H) (hg : g = g') (hf : f = f') (hr : r = r') :
    (S.reindex hg hf hr).event = S.event

    Reindexing a search preserves its event, including deferral.

    theorem MindFormal.native_event_iff {N : ℕ} {g f : ℝ → Fin N → ℝ} {r H t : ℝ} (S : NativeSearch g f r H) (i : Fin N) :
    S.event = some (t, i) ↔ r ≤ t ∧ t ≤ H ∧ 0 ≤ g t i ∧ (∀ (s : ℝ), r ≤ s → s < t → ∀ (j : Fin N), g s j < 0) ∧ (∀ (j : Fin N), 0 ≤ g t j → f t j ≤ f t i) ∧ ∀ (j : Fin N), 0 ≤ g t j → f t j = f t i → i ≤ j

    A native event is exactly an attained first qualification and the current maximum with fixed priority. This also handles qualified releases.

    theorem MindFormal.native_none_iff {N : ℕ} {g f : ℝ → Fin N → ℝ} {r H : ℝ} (S : NativeSearch g f r H) :
    S.event = none ↔ ∀ t ∈ Set.Icc r H, ∀ (i : Fin N), g t i < 0

    No event is equivalent to strict nonqualification throughout the eligible interval; this includes an empty output mask and an empty interval.

    theorem MindFormal.native_acceptance_mono {N : ℕ} (mask : Fin N → Bool) (bar : ℝ) {f f' : ℝ → Fin N → ℝ} {r H : ℝ} (S : NativeSearch (fun (t : ℝ) (i : Fin N) => if mask i = true then f t i - bar else -1) f r H) (S' : NativeSearch (fun (t : ℝ) (i : Fin N) => if mask i = true then f' t i - bar else -1) f' r H) (w : Fin N) (hw : ∀ t ∈ Set.Icc r H, f t w ≤ f' t w) (hj : ∀ t ∈ Set.Icc r H, ∀ (j : Fin N), j ≠ w → f' t j ≤ f t j) {t : ℝ} (hit : S.event = some (t, w)) :
    ∃ s ≤ t, S'.event = some (s, w)

    TX1 paragraph 4: increasing the accepting score and decreasing every rival through a common first search preserves acceptance, including ties. The functions are whole paths, not endpoint means.