def pos_of

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

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int.bend as U32int
import Base

940def pos_of(+x: Nat, +h: {Nat.is_le(1n, x) == True{} : Bool}) -> {Nat.is_lt(0n, x) == True{} : Bool}:
941  match x:
942    case 0n:
943      Empty.absurd({Nat.is_lt(0n, 0n) == True{} : Bool}, true_ne_false(Equal.sym(Bool, False{}, True{}, h)))
944    case 1n+y:
945      {==}

Uses (7)

Used by (4)