theorem
MindFormal.Prospect.finite_inner_on_menu
{N : ℕ}
(mask keep : Fin N → Bool)
(bar ν H e : ℝ)
(target need : Fin N → ℝ)
(score : ℝ → Fin N → ℝ)
(S : NativeSearch (fun (t : ℝ) (i : Fin N) => if mask i = true then score t i - bar else -1) score 0 H)
(hν : 0 < ν)
(hH : 0 ≤ H)
(he : 0 ≤ e)
(hn : ∀ (j : Fin N), keep j = true → e < need j)
(enclosure :
∀ t ∈ Set.Icc 0 H,
∀ (j : Fin N), keep j = true → |score t j - (referenceActivity ν (target j) 0 t + bar - need j)| ≤ e)
(outside : ∀ t ∈ Set.Icc 0 H, ∀ (j : Fin N), mask j = true → keep j = false → score t j < bar)
(w : Fin N)
(hw : mask w = true)
(hkw : keep w = true)
(deadline : need w + e ≤ referenceActivity ν (target w) 0 H)
(pairs :
∀ (j : Fin N),
j ≠ w → mask j = true → keep j = true → 0 < target j → (need w + e) * target j < (need j - e) * target w)
:
Reuse the existing native comparison on a tested menu. Other outputs are excluded by their actual below-bar bound; nonoutputs need no calibration. Changing scores of permanently unqualified candidates leaves the original event exactly unchanged, as verified from the original search's fields.