Linear search for a present key
When the key is present, the result is an in-bounds index containing the key and no earlier position contains it.
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
The exact statement
theorem LinearSearch_spec_satisfied (a: Array Int) (e: Int) (h_precond : LinearSearch_precond (a) (e)) :
LinearSearch_postcond (a) (e) (LinearSearch (a) (e) h_precond) h_precond