14 lines
384 B
Text
14 lines
384 B
Text
--| `equal` checks if two Naturals are equal.
|
|
let lessThanEqual = ./lessThanEqual.dhall
|
|
|
|
let equal
|
|
: Natural → Natural → Bool
|
|
= λ(a : Natural) → λ(b : Natural) → lessThanEqual a b && lessThanEqual b a
|
|
|
|
let example0 = assert : equal 5 5 ≡ True
|
|
|
|
let example1 = assert : equal 5 6 ≡ False
|
|
|
|
let property0 = λ(n : Natural) → assert : equal n n ≡ True
|
|
|
|
in equal
|