def zero_nat
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32laws.bend as U32lawsimport Base
79# U32.is_zero is the zero test on the value
80def zero_nat(+a: U32) -> {U32.is_zero(a) == Nat.is_eq(v(a), 0n) : Bool}:
81 is_zero_c(a, U32.is_zero(a), {==}, v(a), {==})
Uses (6)
Used by (38)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64add:is_zero_value
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64bits:fz_g
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32laws:nz
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32laws:tests_is_zero
- bend-collections-laws-math@1.0.0.0/proofs/math/number/fixprime:succ_t
- …