def and_left
import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arithimport Base
468def and_left(+a: Bool, -b: Bool, h: {Bool.and(a, b) == True{} : Bool}) -> {a == True{} : Bool}:
469 match a:
470 case False{}:
471 Empty.absurd({False{} == True{} : Bool}, clash(h))
472 case True{}:
473 {==}
Uses (4)
Used by (34)
- 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
- …