Rotate an array to the left
For a nonnegative offset, the result has the same length as the input.
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
The exact statement
theorem rotate_spec_satisfied (a: Array Int) (offset: Int) (h_precond : rotate_precond (a) (offset)) :
rotate_postcond (a) (offset) (rotate (a) (offset) h_precond) h_precondFor a nonnegative offset, the result has the same length as the input. Each output position reads from the input position advanced by that offset, wrapping around at the end.
