def and_right
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/logic.bend as Logicimport Base
26def and_right(a: Bool, b: Bool, e: {Bool.and(a, b) == True{} : Bool}) -> {b == True{} : Bool}:
27 match a:
28 case False{}:
29 Empty.absurd({b == True{} : Bool}, false_true(e))
30 case True{}:
31 e
Uses (4)
Used by (72)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs:okb_tail
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs:lea_tail
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/value:tl_le
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/sel:sel0
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/sel:sel1
- …