SliceLAWS.slice_start_kept: law of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/slice_LAWS.bend as SliceLAWS Lines 28-35 of bendtorch-core@0.1.0.0/src/tensor/slice_LAWS.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/slice_LAWS.bend&start_line=28&end_line=35 import Base import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice # PyTorch's clamp of a slice to an axis of extent n. A start at most n is # kept, a start past n becomes n. law slice_start_kept: for +extent: Nat for +start: Nat for +stop: Nat for inside: {Nat.is_le(start, extent) == True{} : Bool} {low(Slice.bounds(extent, start, stop)) == start : Nat} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/slice.bend&name=bounds https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/slice_LAWS.bend&name=low https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/slice_PROOF.bend&name=min_left