law set_view
import lawful-arrays@0.1.0.0/LAWS.bend as LAWSimport Base
import lawful-arrays@0.1.0.0/defs.bend as D
79# Array.set replaces leaf i (modulo the size) and nothing else.
80law set_view:
81 for -T: Data
82 for a: Array<T>
83 for d: Nat
84 for i: U32
85 for v: T
86 for hf: {D.full(T, a, d) == True{} : Bool}
87 for hd: {Nat.is_lt(d, 32n) == True{} : Bool}
88 {D.view(T, Array.set(T, a, i, v)) == List.set(&2, T, D.view(T, a), D.slot(i, d), v) : List<&2, T>}
Uses (13)
Used by (0)
No other definition uses this definition.