def bit_le1
import bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/width.bend as Widthimport Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
103def bit_le1(+n: Nat) -> {Nat.is_le(C.bit(n), 1n) == True{} : Bool}:
104 match n:
105 case 0n:
106 {==}
107 case 1n:
108 {==}
109 case 2n+ +q:
110 bit_le1(q)
Uses (4)
Used by (6)
- bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/width:low_lt
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/xbits:kbit_le
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/below:and_le
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/lemire:and_self
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/lemire:mask
- …