Update one entry of a two-dimensional array
The result writes the new value at the requested row and column while preserving the array shape and every other entry.
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
The exact statement
theorem modify_array_element_spec_satisfied (arr: Array (Array Nat)) (index1: Nat) (index2: Nat) (val: Nat) (h_precond : modify_array_element_precond (arr) (index1) (index2) (val)) :
modify_array_element_postcond (arr) (index1) (index2) (val) (modify_array_element (arr) (index1) (index2) (val) h_precond) h_precond