MatmulPROOF.zero_result: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/matmul_PROOF.bend as MatmulPROOF Lines 623-636 of bendtorch-core@0.1.0.0/src/tensor/matmul_PROOF.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul_PROOF.bend&start_line=623&end_line=636 import Base import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matrix import bendtorch-core@0.1.0.0/src/tensor/matmul_LAWS.bend as Laws def zero_result(+left: Shape.Shape, +right: Shape.Shape, -a: Core.Tensor, -b: Core.Tensor, +output: Shape.Shape, -end: Nat, result: Result<&2, &1, Matrix.Error, Core.Tensor & Core.Tensor & Core.Tensor>, -source: Laws.SourceProduct<0, left, right, a, b, output, end, result>) -> Laws.ZeroResult: match result: case Fail{error}: Laws.ZeroResult{unit => Unit{}} case Done{pair}: (ra, rb, out) = pair Laws.ZeroResult{unit => prove : @source: Laws.SourceProduct<0, left, right, a, b, output, end, (Done{(ra, rb, out)} : Result<&2, &1, Matrix.Error, Core.Tensor & Core.Tensor & Core.Tensor>)> -> Laws.ZeroPrefix = \{Laws.SourceProduct: meaning => zero_prefix(left, right, a, b, output, ra, rb, out, end, meaning(Unit{}))} prove(source)} Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=Shape https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/core.bend&name=Tensor https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul_LAWS.bend&name=SourceProduct https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul_LAWS.bend&name=ZeroPrefix https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul_LAWS.bend&name=ZeroResult https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul_PROOF.bend&name=zero_prefix