22 May
2010
22 May
'10
4:32 p.m.
R J <rj248842@hotmail.com> writes:
I'm trying to prove that (==) is reflexive, symmetric, and transitive over the Bools, given this definition:
(==):: Bool -> Bool -> Bool x == y = (x && y) || (not x && not y)
Since Bool is a type, and all Haskell types include ⊥, you need to add conditions in your proofs to exclude it. -- Jón Fairbairn Jon.Fairbairn@cl.cam.ac.uk