Jeffrey Kegler

About me

Inventor of the Marpa parsing algorithm. Discoverer of the Lost Morgenstern Document. Novelist. For many years, I had an independent practice as Algorists, Inc. I've been employed or consulted at many places, including AT&T, Applied Materials, Control Data, Hewlett-Packard and Sun. For more, see my CV.

What's New?

To find out what's new on this website, look here.

Marpa, a Context-free Parser

For the past decade, I've been focusing on Marpa, an open-source Perl module that has broken new ground in Earley parsing. There is much more about Marpa on its own page.

Perl Parsing is Undecidable

I am credited with the proof that Perl parsing is undecidable in, among other places, the Wikipedia article on programming languages. While not completely unexpected, this discovery did surprise a lot of people initially.

For most computer languages, although the run-phase behavior might be undecidable, it is always possible to determine if the source code is well-formed. If so, it is always possible to produce a unique parse from that source code. Perl is unusual in that not only is its run phase behavior undecidable, so is its compile phase behavior.

If you're not used to the Larry Wall language design philosophy, you may be wondering: Why create a language that is not, in general, parseable? The answer is that Perl in the compile phase allows the programmer its full range of programming capabilities. These allow Perl a lot of flexibility in setting itself up. But whenever you have all the capabilities of a Turing-complete language, you have undecidability.

I lay out the details of the proof in three articles in The Perl Review. The articles assume no math background.

My novel, The God Proof

I've written a novel about Kurt Gödel. Those of you into software may know Gödel for his mathematical work. Gödel also discovered a new proof of God's existence. A sketch of Gödel's "Ontological Proof", as it is usually called, is in his Collected Works (Vol. III, p. 403-404), but two of Gödel's notebooks have disappeared. Based on their dates and titles, they likely contained more about the God Proof than we now have. The God Proof begins with the reappearance of the Lost Gödel Notebooks in Pacific Grove, California. You can download the novel for free. You can also buy a print copy at Amazon.com. And there's more about The God Proof here.

I've never heard of anyone being persuaded by a proof of God's existence, whether by Kurt Gödel or anyone else. A proof that can change someone's mind is called "coercive". There are lots of coercive proofs out there. For example, if you doubt the facts of arithmetic, there are convincing arguments, backed up by the fact that you'd be wise to accept their force if you want correct change. Similarly for a lot of the basic facts of geometry.

Could a coercive proof be made for God's existence? A reasonable person can certainly have her doubts. But you'd also be forced to admit that if any mathematician could come up with an unexpected results, it would be Gödel, who made a career out of them.

Kurt Gödel's Citizenship Hearing

The most famous incident in Kurt Gödel's life is his citizenship hearing. There are many versions of this story. Most agreed on the following: Studying for the hearing, Kurt Gödel became obsessive. He looked very closely at the U.S. Constitution. He decided it contained a contradiction, one which would allow the United States to be turned, quite legally, into a dictatorship. Gödel decided that his discovery needed to be shared. Albert Einstein and Oskar Morgenstern, Gödel's two best friends and his witnesses at the hearing, teamed up to distract Gödel. But the hearing was barely underway when the judge observed that Gödel's native Austria had become a dictatorship, and that we should be grateful this cannot happen in the U.S. To his friends' horror, Gödel quickly started to correct the judge.

There was a problem with this story as history -- every version of it was hearsay. And they all had the sound of tales "improved" in the telling. Of the four people at the hearing, only one, Oskar Morgenstern, was thought to have left a first-hand account. He was said to have written the story up for publication. But if the Lost Morgenstern Document had ever existed, three decades ago it went missing. And it stayed missing until I found it in November 2008.

I admit it. I'm a sucker for the "lost document" trope. That's why I plotted a whole novel around two lost Gödel documents. So for me to find an important lost Gödel document sounds a lot like the premise of "Murder She Wrote" -- a TV series where every week a mystery writer supposedly solves a real life murder. It's an amusing idea, but it doesn't seem very probable.

But strange or not, it happened. I put the Lost Morgenstern Document on the web. And here is the story of how I found it.

Publications

The Ocean of Awareness Blog

My technical blog, Ocean of Awareness, focuses on Marpa, parsing, Perl and things of interest to techies. Its name is taken from a Tibetan saint. Ocean thrived in the 11th century and is one of the characters in the God Proof.

These pages are licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License