def nz_pos

bend-collections-laws-math@1.0.0.0 · proofs/math/random/bounded.bend:21

import bend-collections-laws-math@1.0.0.0/proofs/math/random/bounded.bend as Bounded
import Base
import bend-collections-laws-math@1.0.0.0/proofs/lib/logic.bend as L

21def nz_pos(+v: Nat, +h: {Nat.is_eq(v, 0n) == False{} : Bool}) -> {Nat.is_lt(0n, v) == True{} : Bool}:
22  match v:
23    case 0n:
24      Empty.absurd({Nat.is_lt(0n, 0n) == True{} : Bool}, L.true_false(h))
25    case 1n+p:
26      {==}

Uses (6)

Used by (1)