law when_true

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/chacha/proof.bend:31

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/proof.bend as Proof
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/chacha20.bend as I

31law when_true:
32  for +ok: Bool
33  for +x: List<&2, U32>
34  for +h: {ok == True{} : Bool}
35  {I.when(ok, x) == Some{x} : Maybe<&2, List<&2, U32>>}

Uses (6)

Used by (4)