|
|
|
|
|
by thaumasiotes
357 days ago
|
|
> my friend you should either read the article more closely or think harder Hmmm. > no property of any numbers is checked here - just that one function agrees with another: theorem maxDollars_spec_correct : ∀ n, maxDollars n = maxDollars_spec n
> this is the part that's undecidable (i should've said that instead of "impossible")> https://en.wikipedia.org/wiki/Richardson%27s_theorem Given that both `maxDollars n` and `maxDollars_spec n` are defined to be natural numbers, I'm not sure why Richardson's theorem is supposed to be relevant. But even if it was, the structure of the proof is to produce the fact `maxDollars_spec n = maxDollars n` algebraically from a definition, and then apply the fact that equality is symmetric to conclude that `maxDollars n = maxDollars_spec n`. And once again I'm not sure how you could possibly fail to conclude that two quantities are equal after being given the fact that they're equal. |
|
Did you know that the naturals are a subset of the reals? If Richardson's doesn't convince you there's also
https://en.m.wikipedia.org/wiki/Rice%27s_theorem
> Examples
> Is P equivalent to a given program Q?
Irrespective of where you're convinced it's 100% true that equality of two functions is undecidable in general.