2009/2/2 Joachim Breitner <mail@joachim-breitner.de>
Hi,
Am Montag, den 02.02.2009, 11:06 -0700 schrieb Luke Palmer:
That argument has a flaw. Just because we have a function in the
> That question has kind of a crazy answer.
>
> In mathematics, Nat -> Bool is uncountable, i.e. there is no function
> Nat -> (Nat -> Bool) which has every function in its range.
>
> But we know we are dealing with computable functions, so we can just
> enumerate all implementations. So the computable functions Nat ->
> Bool are countable.
>
> However! If we have a function f : Nat -> Nat -> Bool, we can
> construct the diagonalization g : Nat -> Bool as: g n = not (f n n),
> with g not in the range of f. That makes Nat -> Bool "computably
> uncountable".
mathematical sense that sends ℕ to (Nat -> Bool) does not mean that we
have Haskell function f of that type that we can use to construct g.