next =>
  exact loop_some (i+1) (Nat.succ_le_of_lt hi) k h
case isFalse
n : Nat
p : Fin n → Bool
i : Nat
hi✝ : i ≤ n
k : Fin n
hne : ¬i = n
hi : i < n
h✝ : ¬p ⟨i, ⋯⟩ = true
h : loop p (i + 1) ⋯ = some k
⊢ p k = true
no goals