def or_true

bend-collections-laws-math@1.0.0.0 · proofs/math/natural/logs.bend:104

import bend-collections-laws-math@1.0.0.0/proofs/math/natural/logs.bend as Logs
import Base
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as M

104def or_true(+n: Nat, +b: Nat) -> {M.ilog_ok(n, b, Bool.or(Nat.is_eq(n, 0n), True{})) == Fail{M.Domain{}} : Result<&2, &2, M.MathError, Nat>}:
105  match n:
106    case 0n:
107      {==}
108    case 1n+np:
109      {==}

Uses (7)

Used by (1)