concept Nats in category idris

appears as: Nats
Type-Driven Development with Idris

This is an excerpt from Manning's book Type-Driven Development with Idris.

Because Nats can never be negative, a Nat can only be subtracted from a larger Nat.

Listing 8.3. Testing for equality of Nats with EqNat (EqNat.idr)