def and_right
import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arithimport Base
475def and_right(+a: Bool, -b: Bool, h: {Bool.and(a, b) == True{} : Bool}) -> {b == True{} : Bool}:
476 match a:
477 case False{}:
478 Empty.absurd({b == True{} : Bool}, clash(h))
479 case True{}:
480 h
Uses (4)
Used by (30)
- bendtorch-core@0.1.0.0/src/storage/route:index_complete
- bendtorch-core@0.1.0.0/src/tensor/contracts/build_facts:output_position
- bendtorch-core@0.1.0.0/src/tensor/transpose_PROOF:axes_facts
- bendtorch-core@0.1.0.0/src/tensor/word_conversion:naturals_words_fitting
- bendtorch-core@0.1.0.0/src/tensor/contracts/binary_proofs:output_positive
- …