Fwd: Give alternate default definition for (<=)

---------- Forwarded message ---------
보낸사람: Dannyu NDos
Eq is a superclass of Ord, so how do you define that for Computable?
instance Eq Computable where x == y = x <= y && y <= x

That seems undecidable in general.
On Fri, May 8, 2020 at 6:18 PM Dannyu NDos
---------- Forwarded message --------- 보낸사람: Dannyu NDos
Date: 2020년 5월 8일 (금) 16:35 Subject: Re: Give alternate default definition for (<=) To: Sven Panne 2020년 5월 8일 (금) 15:33, Sven Panne
님이 작성: Eq is a superclass of Ord, so how do you define that for Computable?
instance Eq Computable where x == y = x <= y && y <= x
_______________________________________________ Libraries mailing list Libraries@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries

2020년 5월 9일 (토) 12:35, Carter Schonwald
That seems undecidable in general.
True. It is proven that there is no algorithm that compares arbitrary computable numbers. In other words, min and max are algorithms, but (==) and (<=) are not.

Sorry for the mix-up. It really turns out that I can't really define (==) with only min and max. However, it turns out that the suggested default definition is effective when (==) is properly given. I've come up with another type where it is effective, so stay tuned.
participants (2)
-
Carter Schonwald
-
Dannyu NDos