Re:Programming Languages Going Above and Beyond
by rockstar-guy-23 on Thursday June 29, 2023 @03:57PM
(#36525863)
[ Parent
| on HN ]
Re:Programming Languages Going Above and Beyond
by redjamjar on Thursday June 29, 2023 @05:07PM
(#36526714)
Haha, yeah ... this one you would have a very hard time with :)
Hopefully, though, termination of your program does not depend on this ... otherwise could be a long wait!
Re:Programming Languages Going Above and Beyond
by nine_k on Thursday June 29, 2023 @05:22PM
(#36526908)
I remember there was a theorem that one can find an arbitrary substring in a long enough output of infinite (stationary) random process. I also suppose that a decimal representation of pi may count as one, then your function provably terminates.
But this is of a theoretic interest. In practice the verifier says: "I can't prove that this function will terminate within (some reasonable window), program rejected". And this is what's actually needed: a program that provably has certain properties, where an automatic proof is tractable.
Re:Programming Languages Going Above and Beyond
by xigoi on Thursday June 29, 2023 @06:32PM
(#36527748)
It is currently not known whether π is a normal number (that is, its representation in any base contains any finite sequence of digits with the same density as in a uniformly random string of digits).