BroadcastProofs.fin_broadcast: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/shape/broadcast_proofs.bend as BroadcastProofs Lines 4-17 of bendtorch-core@0.1.0.0/src/shape/broadcast_proofs.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/shape/broadcast_proofs.bend&start_line=4&end_line=17 import Base import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape def fin_broadcast(+n: Nat, +index: Shape.Fin(n)) -> {Shape.Fin.value(n, index) == Shape.broadcast_index(n, Shape.Fin.value(n, index)) : Nat}: match n: case 0n: match index: case 1n+p: match p: case 0n: match index: case Shape.FZero{}: {==} case Shape.FNext{previous}: match previous: case 1n+q: {==} Uses (5): 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=Fin https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=Fin.Step https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=Fin.value https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=broadcast_index