_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
The relation to theorem proving is the main motivation for my question.
In am trying to understand why some equations are ok and others not.
I suspect that in Haskell equations are definitions rather than assertions.
If approach 2 is a non-starter in Haskell, then can approach 1, using if-then-else, achieve the same results for propositions?
hope it helpsandi don't understand what you're trying to do with that code, however you seem to be asking about theorem proving in generalcheck out
http://www.haskell.org/haskellwiki/Libraries_and_tools/Theorem_provers
http://en.wikipedia.org/wiki/Automated_theorem_proving
Not exactly what you ask, but it is noteworthy that the mind has different logic processors. The fastest one work with IF THEN ELSE rules applied specifically to deals. This is why your example (and most examples of logic) involves a kind of deal expressed in the first person. This trigger a fast mental evaluation, while an equivalent but more general case is harder to process and need some paper work. (That special treatment of first person deals logic respond to the need to detect breaks of deals as fast as possible)That's why higher level languages have redundant logical structures and do not follow a general abstract and short mathematical notation. Therefore "higher level", in programming languages, does not mean higher mathematical abstraction, but to be closer to the way the mind works.