def min_le_r

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/natcmp.bend:124

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/natcmp.bend as Natcmp
import Base
import bend-collections-laws-math@1.0.0.0/proofs/lib/nat.bend as N

124def min_le_r(+a: Nat, +b: Nat) -> {Nat.is_le(Nat.min(a, b), b) == True{} : Bool}:
125  match a b:
126    case 0n _:
127      N.zero_le(b)
128    case 1n+ +ap 0n:
129      {==}
130    case 1n+ +ap 1n+ +bp:
131      min_le_r(ap, bp)

Uses (5)

Used by (1)