Find the first entry satisfying a predicate
If at least one entry satisfies the predicate, the result is an in-bounds index whose entry satisfies it and no earlier entry does.
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
The exact statement
theorem LinearSearch3_spec_satisfied (a: Array Int) (P: Int -> Bool) (h_precond : LinearSearch3_precond (a) (P)) :
LinearSearch3_postcond (a) (P) (LinearSearch3 (a) (P) h_precond) h_precond