LAWS.narrow_rest: law of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/LAWS.bend as LAWS Lines 277-283 of bendtorch@1.3.0.0/LAWS.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/LAWS.bend&start_line=277&end_line=283 import Base import bendtorch@1.3.0.0/tensor.bend as TT # LAW (narrow_rest): narrow (and setting any axis' size) changes only its own axis: with axis d taken out, the shape is # what it was. law narrow_rest: for +s: List<&2, Nat> for +d: Nat for +l: Nat {TT.remove(TT.setd(s, d, l), d) == TT.remove(s, d) : List<&2, Nat>} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.cong https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/tensor.bend&name=remove https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/tensor.bend&name=setd