theorem
MindFormal.ScalarExit.sufficient_upper_exit
{a S L e t s : ℝ}
(hL : L = 2 * a - S)
(hLp : 0 < L)
(ht : 0 ≤ t)
(hs : 0 ≤ s)
(x y Z : ℝ → ℝ)
(tube : ∀ u ∈ Set.Icc 0 t, |x u - (S + Z u) / 2| ≤ e ∧ |y u - (S - Z u) / 2| ≤ e)
(beforeAnswer : ∀ u ∈ Set.Ico 0 t, x u < a ∧ y u < a)
(beforeExit : ∀ u ∈ Set.Ico 0 s, -L + 2 * e < Z u)
(hit : Z s = L + 2 * e)
:
The upper exit of the sufficient asymmetric interval excludes a wrong native answer. No independence or ordering of the two stopping times is assumed. All path errors end at the actual answer.
theorem
MindFormal.ScalarExit.necessary_upper_exit
{a S L e t s : ℝ}
(hL : L = 2 * a - S)
(hLp : 0 < L)
(ht : 0 ≤ t)
(hs : 0 ≤ s)
(x y Z : ℝ → ℝ)
(tube : ∀ u ∈ Set.Icc 0 t, |x u - (S + Z u) / 2| ≤ e ∧ |y u - (S - Z u) / 2| ≤ e)
(beforeAnswer : ∀ u ∈ Set.Ico 0 t, x u < a ∧ y u < a)
(beforeExit : ∀ u ∈ Set.Ico 0 s, Z u < L - 2 * e)
(hit : Z s = -L - 2 * e ∨ Z s = L - 2 * e)
(correct : x t = a)
:
A correct native answer forces the upper exit of the necessary asymmetric interval. Equality at a boundary is included explicitly.