Tensor.inner: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/tensor.bend as Tensor Lines 264-272 of bendtorch@1.3.0.0/tensor.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/tensor.bend&start_line=264&end_line=272 import Base import bend-ml-nat-lemmas@0.1.2.0/main.bend as NL # the product of the sizes after axis k def inner(s: List<&2, Nat>, k: Nat) -> Nat: match s k: case Nil{} _: 1n case Con{h, t} 0n: NL.product(t) case Con{h, t} 1n+p: inner(t, p) Uses (3): 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=bend-ml-nat-lemmas@0.1.2.0/main.bend&name=product