exact anyM_loop_cons_zero p a x h
α : Type u
m : Type → Type v
inst✝ : Monad m
p : α → m Bool
a : α
x : Array α
stop : Nat
h : stop ≤ size x
⊢ anyM.loop p (cons a x) (stop + 1) (_ : Nat.succ stop ≤ Nat.succ (size x)) 0 = do
    let b ← p a
    if b = true then pure true else anyM.loop p x stop h 0
no goals