def double_self_le
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/nat.bend as Natimport Base
426def double_self_le(+n: Nat) -> {Nat.is_le(n, Nat.double(n)) == True{} : Bool}:
427 match n:
428 case 0n:
429 {==}
430 case 1n+p:
431 le_trans(p, Nat.double(p), 1n+Nat.double(p), double_self_le(p), le_succ(Nat.double(p)))
Uses (6)
Used by (8)
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/nat:pow2_pos
- bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/width:shift_ge
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/arith:le_sc
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/nat:double_succ_le
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake3/tree:half_len_take
- …