SignedLAWS.signed_bound_first: law of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend as SignedLAWS Lines 326-332 of bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend&start_line=326&end_line=332 import Base import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed # A slice's start and stop, PyTorch's get_slice_bounds before its clamp to # the axis: a position counted from the start is kept; Last{k}, the position # d = -1 - k, becomes d + limit in range, and 0 below -limit. law signed_bound_first: for +limit: U32 for +k: U32 {Signed.bound(limit, Signed.First{k}) == k : U32} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/signed.bend&name=Position https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/signed.bend&name=bound