def mode
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int.bend as U64intimport Base
915# md: every value >= 1, or every value <= 1 (the base 0 case)
916def mode(md: Bool, +x: Nat) -> Bool:
917 match md:
918 case True{}:
919 Nat.is_le(1n, x)
920 case False{}:
921 Nat.is_le(x, 1n)
Uses (3)
Used by (9)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:md_init
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:powsim
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:unfit_big
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:ms_fits
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:ms_mode
- …