law get_set_other
import bend-osdev-array@0.1.0.1/LAWS.bend as LAWSimport Base
import bend-osdev-array@0.1.0.1/array.bend as A
113law get_set_other:
114 for -T: Data
115 for d: Nat
116 for a: Array<T>
117 for h: {A.Arrays.is_perfect(T, d, a) == True{} : Bool}
118 for hd: {Nat.is_lt(d, 32n) == True{} : Bool}
119 for i: U32
120 for j: U32
121 for v: T
122 for hij: {U32.is_eq(U32.and(i, U32.sub(U32.shln(1, d), 1)), U32.and(j, U32.sub(U32.shln(1, d), 1))) == False{} : Bool}
123 {Pair.snd(Array<T>, T, Array.get(T, Array.set(T, a, i, v), j)) == Pair.snd(Array<T>, T, Array.get(T, a, j)) : T}
Uses (15)
Used by (0)
No other definition uses this definition.