def pow2_pos
import bend-collections-laws-math@1.0.0.0/proofs/lib/nat.bend as Natimport Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as SC
440def pow2_pos(+k: Nat) -> {Nat.is_le(1n, SC.pow2(k)) == True{} : Bool}:
441 match k:
442 case 0n:
443 {==}
444 case 1n+p:
445 le_trans(1n, SC.pow2(p), Nat.double(SC.pow2(p)), pow2_pos(p), double_self_le(SC.pow2(p)))
Uses (7)
Used by (10)
- bend-collections-laws-math@1.0.0.0/proofs/lib/nat:pow2_mono
- bend-collections-laws-math@1.0.0.0/proofs/lib/nat:pow2_lt_succ
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64sh:pow2_eq
- bend-collections-laws-math@1.0.0.0/proofs/lib/u32:and_low_hy
- bend-collections-laws-math@1.0.0.0/proofs/lib/u32:and_low_hyb
- …