{-# OPTIONS --without-K --safe #-}

module Prelude.Nat where

open import Agda.Builtin.Unit
open import Prelude.Empty
open import Prelude.Bool

open import Agda.Builtin.Nat as  public
  using (zero; suc; _+_; _*_)
  renaming (Nat to ; _<_ to _<ᵇ_; _-_ to _∸_)


_≤?_ :     Bool
zero  ≤? _     = true
suc m ≤? zero  = false
suc m ≤? suc n = m ≤? n

_<?_ :     Bool
m <? n = suc m ≤? n

infix 4 _≤_ _<_

_≤_ :     Set
m  n = Truth (m ≤? n)

_<_ :     Set
m < n = suc m  n