rw [anyM_loop_cons_succ p a x h 0]
case h
α : Type u
m : Type → Type v
inst✝ : Monad m
p : α → m Bool
a : α
x : Array α
stop : Nat
h : stop ≤ size x
b : Bool
⊢ (if b = true then pure true
    else anyM.loop p (cons a x) (stop + 1) (_ : Nat.succ stop ≤ Nat.succ (List.length x.data)) (0 + 1)) =
    if b = true then pure true else anyM.loop p x stop h 0
no goals