Operations that can only be used with Nat (N ...)s (nat0, nat1, ...). You will probably never need those.
The Nat (N ...) minus another Nat (N ...). Give the subtracted value twice as a tuple.
nat6 |> NNat.sub ( nat5, nat5 )
--> nat1 :
--> Nat
--> (N Nat1 (Nat1Plus a_)
--> (Is a To (Nat1Plus a))
--> (Is b To (Nat1Plus b))
--> )This is only rarely useful, as you shouldn't
inRangeXMinus10ToX x =
-- won't work
isInRange (x |> NNat.sub ( nat10, nat10 )) xOnly use it when the Nat (N ...) is used once.
isAtLeast10LessThan x =
isAtLeast (x |> NNat.sub ( nat10, nat10 ))(examples don't compile)
The
Nat (N ...)plus anotherNat (N ...). Give the added value twice as a tuple.This is only rarely useful, as you shouldn't
Only use it when the
Nat (N ...)is used once.(examples don't compile)