Smallest difference across two arrays
For two nonempty sorted integer arrays, the result is the smallest absolute difference between an element of the first array and an element of the second.
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
The exact statement
theorem CanyonSearch_spec_satisfied (a: Array Int) (b: Array Int) (h_precond : CanyonSearch_precond (a) (b)) :
CanyonSearch_postcond (a) (b) (CanyonSearch (a) (b) h_precond) h_precond