def iz

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/u32int.bend:241

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int.bend as U32int
import Base
import bend-collections-laws-math@1.0.0.0/src/math/num.bend as NM
import bend-collections-laws-math@1.0.0.0/src/math/instances.bend as I
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32laws.bend as LW

241def iz(+a: U32, +n: Nat, +h: {v(a) == n : Nat}) -> {I.u32_is(NM.IsZero{a}) == Nat.is_eq(n, 0n) : Bool}:
242  Equal.trans(Bool, I.u32_is(NM.IsZero{a}), Nat.is_eq(v(a), 0n), Nat.is_eq(n, 0n), LW.tests_is_zero(a), Equal.cong(Nat, Bool, t => Nat.is_eq(t, 0n), v(a), n, h))

Uses (10)

Used by (8)