def law_swap_refines
import bendtorch-core@0.1.0.0/src/storage/refinement.bend as Refinementimport Base
import bendtorch-core@0.1.0.0/src/storage/model.bend as Model
import bendtorch-core@0.1.0.0/src/storage/array.bend as Core
396def law_swap_refines(-T: Data, +d: Nat, array: Array<T>, +i: U32, new: T,
397 valid: Model.Balanced(T, d, array)) ->
398 {first(T, Array.swap(T, array, i, new)) == Core.write_path(T, d, array, route(d, i), new) : Array<T>}:
399 swap_written(T, d, array, i, new, swap(T, d, array, i, new, valid))
Uses (10)
Used by (0)
No other definition uses this definition.