law get_other_set

bend-ml-tensor-array@0.1.19.0 · main.bend:2328

import bend-ml-tensor-array@0.1.19.0/main.bend as BendMlTensorArray
import Base

2328# LAW: a write at i leaves alone the cell a read at k reaches, when the two descents part before a leaf
2329# (any i and k: both wrap them; h is what makes them different cells, see the top of the file)
2330law get_other_set:
2331  for -T: Data
2332  for a: Array<T>
2333  for +i: U32
2334  for +k: U32
2335  for +v: T
2336  for h: ASet.Apart(T, a, ASet.sz(T, a), ASet.J(i, ASet.sz(T, a)), ASet.Z(i, ASet.sz(T, a)), ASet.J(k, ASet.sz(T, a)), ASet.Z(k, ASet.sz(T, a)))
2337  {Pair.snd(Array<T>, T, Array.get(T, Array.set(T, a, i, v), k)) == Pair.snd(Array<T>, T, Array.get(T, a, k)) : T}

Uses (11)

Used by (0)

No other definition uses this definition.