MindFormal v1.0.0One Mind

MindFormal.Tools.A699Shared.RacePrefix

def MindFormal.A699Shared.RacePrefixComparison {I : Type u_1} (H : NNReal) (α : ℝ) (x lo hi : I → C(↑(HorizonTime ↑H), ℝ)) :

Scalar comparison through the first arrival among all coordinates. This intermediate path predicate is derived from target bounds below; it does not require bounds during the later continuing experiment.

Equations
Instances For
    theorem MindFormal.A699Shared.prefix_first_le_slow {I : Type u_1} (H : NNReal) (α : ℝ) (x lo hi : I → C(↑(HorizonTime ↑H), ℝ)) (hc : RacePrefixComparison H α x lo hi) (k : I) (hk : ∀ (j : I), compactFirstHit ⋯ α (x k) ≤ compactFirstHit ⋯ α (x j)) (i : I) (hiH : compactFirstHit ⋯ α (lo i) ≤ ↑H) :
    compactFirstHit ⋯ α (x k) ≤ compactFirstHit ⋯ α (lo i)

    A slow comparison hit forces some actual hit no later. This uses comparison only before the first actual arrival, including the endpoints.

    theorem MindFormal.A699Shared.prefix_at_first {I : Type u_1} (H : NNReal) (α : ℝ) (x lo hi : I → C(↑(HorizonTime ↑H), ℝ)) (hc : RacePrefixComparison H α x lo hi) (k : I) (hk : ∀ (j : I), compactFirstHit ⋯ α (x k) ≤ compactFirstHit ⋯ α (x j)) (hkH : compactFirstHit ⋯ α (x k) ≤ ↑H) (j : I) :
    compactFirstHit ⋯ α (x k) ≤ compactFirstHit ⋯ α (lo j) ∧ (compactFirstHit ⋯ α (lo j) = compactFirstHit ⋯ α (x k) → compactFirstHit ⋯ α (x j) = compactFirstHit ⋯ α (x k)) ∧ (compactFirstHit ⋯ α (x j) = compactFirstHit ⋯ α (x k) → compactFirstHit ⋯ α (hi j) ≤ compactFirstHit ⋯ α (x k))

    At the first actual hit, every slow comparison time is at least that time; a slow comparison tied there forces an actual tie; every actual coordinate tied there has already hit in its fast comparison.

    theorem MindFormal.A699Shared.prefix_race_sandwich {n : ℕ} (H : NNReal) (α : ℝ) (x lo hi : Fin (n + 1) → C(↑(HorizonTime ↑H), ℝ)) (hc : RacePrefixComparison H α x lo hi) (i : Fin (n + 1)) (strict : Fin n → Bool) :
    have tx := fun (j : Fin (n + 1)) => compactFirstHit ⋯ α (x j); have tl := fun (j : Fin (n + 1)) => compactFirstHit ⋯ α (lo j); have th := fun (j : Fin (n + 1)) => compactFirstHit ⋯ α (hi j); ((tl i ≤ ↑H ∧ ∀ (j : Fin n), th (i.succAbove j) ∈ survivalSet (strict j) (tl i)) → tx i ≤ ↑H ∧ ∀ (j : Fin n), tx (i.succAbove j) ∈ survivalSet (strict j) (tx i)) ∧ ((tx i ≤ ↑H ∧ ∀ (j : Fin n), tx (i.succAbove j) ∈ survivalSet (strict j) (tx i)) → th i ≤ ↑H ∧ ∀ (j : Fin n), tl (i.succAbove j) ∈ survivalSet (strict j) (th i))

    The pathwise lower and upper first-label event inclusions. Strict rivals win a tie against the designated candidate; weak rivals lose that tie. Taking every rival weak gives the non-exclusive read. The proof needs target comparison only up to the first actual arrival, retains the zero atom and closed deadline, and makes no independence assumption.