def right

stelliferous@0.0.2.0 · proofs/boolean_logic.bend:26

import stelliferous@0.0.2.0/proofs/boolean_logic.bend as BooleanLogic
import Base
import stelliferous@0.0.2.0/proofs/word_encoding.bend as WordEncoding

26def right(+first: Bool,+second: Bool,truth: {Bool.and(first,second) == True{} : Bool}) -> {second == True{} : Bool}:
27  match first:
28    case False{}: Empty.absurd({second == True{} : Bool},WordEncoding.false_true(truth))
29    case True{}: truth

Uses (4)

Used by (2)