Guest User

Untitled

a guest
Jul 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Program equivalence:
  2. p in (A => B) is equivalent to q in (A => B) exactly when p(x) = q(x) for all x in A.
  3.  
  4. Definition of =, if you need that:
  5. forAll a. a = a.
  6. (a = b) => (b = a)
  7. (a = c) => (c = b) => (a = b).
  8.  
  9. If there's anything else I can help you with, just holler.
  10.  
  11. On documentation: if you're implementing (A => B) => (C => A) => C => B for all A B C,
  12. and your program does anything other than compose two functions, then you either document that or you lie.
  13. If it is mere composition, then the type is a complete and unambiguous specification of the function.
Add Comment
Please, Sign In to add comment