Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. %default total
  2.  
  3. data Is012 : (x: Nat) -> Type where
  4. IsZero : Is012 Z
  5. IsOne : Is012 (S Z)
  6. IsTwo : Is012 (S (S Z))
  7.  
  8. lte3_proof: (LTE x 2) -> (Is012 x)
  9. lte3_proof LTEZero = IsZero
  10. lte3_proof (LTESucc LTEZero) = IsOne
  11. lte3_proof (LTESucc (LTESucc LTEZero)) = IsTwo
  12.  
  13.  
  14. main : IO ()
  15. main = putStrLn "Correct"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement