def below_is
bendtorch-core@0.1.0.0 · src/tensor/gather_PROOF.bend:86
import bendtorch-core@0.1.0.0/src/tensor/gather_PROOF.bend as GatherPROOF
import Base
import bendtorch-core@0.1.0.0/src/tensor/gather.bend as Gather
import bendtorch-core@0.1.0.0/src/tensor/gather_LAWS.bend as Laws
86
87def below_is(+entries: List<&2, U32>, +bound: Nat, +value: Bool, given: {Laws.inside(entries, bound) == value : Bool}) ->
88 {value == Gather.below(entries, bound) : Bool}:
89 Equal.sym(Bool, Gather.below(entries, bound), value,
90 Equal.trans(Bool, Gather.below(entries, bound), Laws.inside(entries, bound), value, below_inside(entries, bound), given))