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