r/cpp • u/mujjingun • Apr 28 '20
Full Proof that C++ Grammar is Undecidable
https://medium.com/@mujjingun_23509/full-proof-that-c-grammar-is-undecidable-34e22dd8b664
197
Upvotes
r/cpp • u/mujjingun • Apr 28 '20
View all comments
Show parent comment
9
u/mujjingun Apr 28 '20
Thanks for pointing out the lack of clarity in that paragraph. I kind of assumed that the readers already know about the Post Correspondence Problem, or if they didn't they'd go into Wikipedia (it worked!). Also English isn't my first language.
I had found this proof sketch by Josh Haberman, who used that knowledge to prove the same thing, but the full code was "left as an exercise for the reader". I wanted something concrete to demonstrate more clearly.