ProjectionProofs.pad_strides: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/shape/projection_proofs.bend as ProjectionProofs Lines 66-71 of bendtorch-core@0.1.0.0/src/shape/projection_proofs.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/shape/projection_proofs.bend&start_line=66&end_line=71 import Base import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape def pad_strides(+count: Nat, +dims: List<&2, Nat>) -> {strides_of(Shape.pad(count, dims)) == zeros(count, strides_of(dims)) : List<&2, Nat>}: match count: case 0n: {==} case 1n+rest: Equal.cong(List<&2, Nat>, List<&2, Nat>, tail => 0n <> tail, strides_of(Shape.pad(rest, dims)), zeros(rest, strides_of(dims)), pad_strides(rest, dims)) Uses (6): 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-core@0.1.0.0/src/shape/core.bend&name=pad https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/projection_proofs.bend&name=strides_of https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/projection_proofs.bend&name=zeros