Re: The naive test for equality
Date: Tue, 09 Aug 2005 22:28:03 +0100
Message-ID: <42f91fe6$0$17488$ed2e19e4_at_ptn-nntp-reader04.plus.net>
David Cressey wrote:
> Now, whenever we are given an unnormalized rational, such as 5/10,
we ask
> the rationals engine to normalize it for us.
> The rationals engine knows the rule for normalizing, namely remove common
> factors in the numerator and denominator. So it returns 1/2, the
> normalized equivalent of 5/10.
>
> If we ask the rationals engine to normalize 1/2, it will give us back 1/2.
>
> So the process of normalizing is choosing one, out of an equivalence class,
> according to some criterion, and using the symbol that represents the
> chosen element to act as the normalized form for the entire class.
What behaviour we want for types with multiple representations per value though? (I'm using words like "representation" in their common spoken usage here!)
Paul. Received on Tue Aug 09 2005 - 23:28:03 CEST