Ord.agda 190 B

12345678910111213141516
  1. module Ord where
  2. data Nat : Set where
  3. Z : Nat
  4. S : Nat -> Nat
  5. data Ord : Set where
  6. z : Ord
  7. lim : (Nat -> Ord) -> Ord
  8. zp : Ord -> Ord
  9. zp z = z
  10. zp (lim f) = lim (\x -> zp (f x))