2020-09-09 19:17:07 +03:00
|
|
|
%default total
|
|
|
|
|
|
|
|
isNat : Type -> Bool
|
|
|
|
isNat Nat = True
|
2020-10-02 14:22:57 +03:00
|
|
|
isNat (List Char) = False
|
2020-09-09 19:17:07 +03:00
|
|
|
isNat Int = False
|
|
|
|
isNat _ = False
|
|
|
|
|
|
|
|
trivialEquality : isNat Int = False
|
|
|
|
trivialEquality = Refl
|