MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.MatchedSaving.Race

theorem MindFormal.MatchedSaving.reachable_of_deadline {nu target need H : ℝ} (ha : 0 < target) (hit : need < referenceActivity nu target 0 H) :
need < target

M3: N's strict finite-horizon hit implies its finite reachable branch.

theorem MindFormal.MatchedSaving.earlier_passage {nu aG aN hG hN H : ℝ} (hnu : 0 < nu) (haG : 0 < aG) (haN : 0 < aN) (hhG : 0 < hG) (hhN : 0 < hN) (horizon : hN < referenceActivity nu aN 0 H) (ratio : hG / hN < aG / aN) :
hG < aG ∧ 0 < passageTime nu aG 0 hG ∧ passageTime nu aG 0 hG < passageTime nu aN 0 hN ∧ passageTime nu aN 0 hN ≤ H

M3: a strict ratio gives the earlier logarithmic G hit, including the proof that G is reachable; no first-response conclusion is a premise.

theorem MindFormal.MatchedSaving.strict_race_iff {nu aG aN hG hN H : ℝ} (hnu : 0 < nu) (haG : 0 < aG) (haN : 0 < aN) (hhG : 0 < hG) (hhN : 0 < hN) (horizon : hN < referenceActivity nu aN 0 H) :
(∃ t ∈ Set.Icc 0 H, hG ≤ referenceActivity nu aG 0 t ∧ referenceActivity nu aN 0 t < hN) ↔ hG / hN < aG / aN

M3: the first-hit ordering is exactly the headroom-ratio test. An unreachable G is included in the reverse direction.

theorem MindFormal.MatchedSaving.native_strict_race {N : ℕ} {nu aG aN hG hN H bar : ℝ} {score : ℝ → Fin N → ℝ} (go stay : Fin N) (hnu : 0 < nu) (haG : 0 < aG) (haN : 0 < aN) (hhG : 0 < hG) (hhN : 0 < hN) (horizon : hN < referenceActivity nu aN 0 H) (readG : ∀ t ∈ Set.Icc 0 H, bar ≤ score t go ↔ hG ≤ referenceActivity nu aG 0 t) (readN : ∀ t ∈ Set.Icc 0 H, bar ≤ score t stay ↔ hN ≤ referenceActivity nu aN 0 t) (rivals : ∀ t ∈ Set.Icc 0 H, ∀ (j : Fin N), j ≠ go → j ≠ stay → score t j < bar) (search : NativeSearch (fun (t : ℝ) (j : Fin N) => score t j - bar) score 0 H) (ratio : hG / hN < aG / aN) :
∃ t ∈ Set.Icc 0 H, search.event = some (t, go)

M3 applied to V's actual first-event definition for the held comparison. The score/headroom calibration and all competing-output exclusions concern the reference coefficients. No event or winning label is supplied.

theorem MindFormal.MatchedSaving.inner_yes_ratio {hG hN eG eN R : ℝ} (hn : 0 < hN) (he : eN < hN) :
hG / hN < R - (eG + R * eN) / hN ↔ (hG + eG) / (hN - eN) < R

M9's strip radius is exactly the allowance needed to separate the raised G barrier from the lowered N barrier.

theorem MindFormal.MatchedSaving.inner_no_ratio {hG hN eG eN R : ℝ} (hn : 0 < hN) (he : 0 < hN + eN) :
R + (eG + R * eN) / hN < hG / hN ↔ R < (hG - eG) / (hN + eN)

The other side of the same strip lowers G and raises N.

theorem MindFormal.MatchedSaving.native_barrier_first {N : ℕ} {nu aW aJ hW hJ H : ℝ} {guard score : ℝ → Fin N → ℝ} (w j : Fin N) (hnu : 0 < nu) (haW : 0 < aW) (haJ : 0 < aJ) (hhW : 0 < hW) (horizon : hW < referenceActivity nu aW 0 H) (separated : hW / aW < hJ / aJ) (search : NativeSearch guard score 0 H) (upper : ∀ t ∈ Set.Icc 0 H, hW ≤ referenceActivity nu aW 0 t → 0 ≤ guard t w) (lower : ∀ t ∈ Set.Icc 0 H, referenceActivity nu aJ 0 t < hJ → guard t j < 0) (rivals : ∀ t ∈ Set.Icc 0 H, ∀ (i : Fin N), i ≠ w → i ≠ j → guard t i < 0) :
∃ t ∈ Set.Icc 0 H, search.event = some (t, w)

M9: separated activity-unit barriers force the original search's first event. These guard implications are a pathwise helper, and must be derived from primitive read/box estimates before any clause can use this result.

theorem MindFormal.MatchedSaving.native_binary_reply {N : ℕ} {guard score : ℝ → Fin N → ℝ} {H : ℝ} (go stay : Fin N) (search : NativeSearch guard score 0 H) (hH : 0 ≤ H) (qualifies : 0 ≤ guard H stay) (rivals : ∀ t ∈ Set.Icc 0 H, ∀ (j : Fin N), j ≠ go → j ≠ stay → guard t j < 0) :
∃ t ∈ Set.Icc 0 H, search.event = some (t, go) ∨ search.event = some (t, stay)

Reply by H includes the whole strip: one raised N hit and exclusion of all other outputs suffice; a binary winner is derived, not assumed.

theorem MindFormal.MatchedSaving.native_off_tie {N : ℕ} {nu aG aN hG hN H bar : ℝ} {score : ℝ → Fin N → ℝ} (go stay : Fin N) (distinct : go ≠ stay) (hnu : 0 < nu) (haG : 0 < aG) (haN : 0 < aN) (hhG : 0 < hG) (hhN : 0 < hN) (horizon : hN < referenceActivity nu aN 0 H) (readG : ∀ t ∈ Set.Icc 0 H, bar ≤ score t go ↔ hG ≤ referenceActivity nu aG 0 t) (readN : ∀ t ∈ Set.Icc 0 H, bar ≤ score t stay ↔ hN ≤ referenceActivity nu aN 0 t) (rivals : ∀ t ∈ Set.Icc 0 H, ∀ (j : Fin N), j ≠ go → j ≠ stay → score t j < bar) (search : NativeSearch (fun (t : ℝ) (j : Fin N) => score t j - bar) score 0 H) (noTie : hG / hN ≠ aG / aN) :
(∃ t ∈ Set.Icc 0 H, search.event = some (t, go)) ↔ hG / hN < aG / aN

M3: away from a tie the reference native first act is exactly the headroom-ratio test, including the unreachable-G case.

theorem MindFormal.MatchedSaving.first_tie_priority {N : ℕ} {score : ℝ → Fin N → ℝ} {H U bar : ℝ} (go stay : Fin N) (priority : go ≤ stay) (search : NativeSearch (fun (t : ℝ) (i : Fin N) => score t i - bar) score 0 H) (hU : U ∈ Set.Icc 0 H) (before : ∀ t ∈ Set.Ico 0 U, ∀ (i : Fin N), score t i < bar) (atG : score U go = bar) (atN : score U stay = bar) (rivals : ∀ (i : Fin N), i ≠ go → i ≠ stay → score U i < bar) :
search.event = some (U, go)

V's equality convention at a simultaneous first hit: equal threshold scores are resolved by the fixed Fin order. This is not an external argmax.

theorem MindFormal.MatchedSaving.native_tie {N : ℕ} {nu aG aN hG hN H bar : ℝ} {score : ℝ → Fin N → ℝ} (go stay : Fin N) (hnu : 0 < nu) (haG : 0 < aG) (haN : 0 < aN) (hhN : 0 < hN) (horizon : hN < referenceActivity nu aN 0 H) (readG : ∀ t ∈ Set.Icc 0 H, bar ≤ score t go ↔ hG ≤ referenceActivity nu aG 0 t) (readN : ∀ t ∈ Set.Icc 0 H, bar ≤ score t stay ↔ hN ≤ referenceActivity nu aN 0 t) (rivals : ∀ t ∈ Set.Icc 0 H, ∀ (j : Fin N), j ≠ go → j ≠ stay → score t j < bar) (search : NativeSearch (fun (t : ℝ) (j : Fin N) => score t j - bar) score 0 H) (tie : hG / hN = aG / aN) :
search.event = some (passageTime nu aN 0 hN, min go stay)

M3's equality case is a simultaneous first qualification, with both continuous scores exactly at the bar. The original V priority picks the smaller label, including general monotone calibrated reads.