Given a set of axioms, if is a consequence of those axioms, can this be proven? If so, logic is complete.
In the early 20th century, Gödel proved first-order logic is complete. It's not important to know what first-order logic is. Know this: "First-order logic has the expressive power for the formalization of virtually all of mathematics" (p. 17). And in turn, virtually all true mathematical statements can be shown to be true.
I've spent the past eighty days studying Gödel's completeness theorem. Starting every day with coffee and Mathematical Logic by Ebbinghaus, Flum, and Thomas. I've done most exercises of the first hundred pages and dreamed of S-interpretations, decidability, and other otherworldly terms of the trade.
I thought knowing the minutiae of Gödel's proof would make me wise. But remarkably, Gödel proves every consequence of a set of axioms (in first-order logic) is proveable, without revealing anything about how: given a statement, how to prove it.
To know every truth is provable and be none the wiser about how to prove a particular truth.
Along the way though I was introduced to sequent calculus: A formal way to write proofs. Unlike regular proofs, proofs written in sequent calculus omit no obvious truths, nor require intuition from the reader. These proofs are so simple and procedural they can be checked by a computer.
To prove Gödel's theorem, Mathematical Logic introduces a sequent calculus. Then, shows it is a contradiction for something to be a consequence of some axioms (in first-order logic) and not provable in the sequent calculus. Thus, every consequence of a set of axioms is provable in the sequent calculus.
In this essay I'll introduce sequent calculus, cumulating in a proof that if is a logical consequence of the axioms , and is also a logical consequence of , then ( reads and) is a logical consequence of .
A set is any aggregation of objects, called elements of the set. For example, is the set of letters. reads, is an element of .
A formula is either true or untrue. If a formula is a consequence of a set of formulas , then is a sequent. A sequent is a set of assumptions and a logical consequence of those assumptions. For example if ( reads equivalent) and are elements of , then is a sequent.
A sequent calculus consists of rules which generate sequents from other sequents. For example, provided is the symbol for logical or, the rule
reads: if is true whenver and are true. And if is true whenever and are true. Then, is true whenver and is true. Notably, only admits true sequents.
More rules, justification for those rules, and a proof if and are consequences of then is a consequence of follows.
reads, all of the elements of are elements of . Assuming is a logical consequence of the elements of and all the elements of are elements of , is a logical consequence of the elements of . For example, is a consequence of , so is also a consequence of .
This fact can be captured in our logical calculus as follows.
Say , then is a valid sequent (it reads, assuming is one of the true formulas, is one of the true formulas). So we can add the following rule to our logical calculus.
All formulas must be either true or untrue. reads, is not true. So, for a formula one of or is true.
Say we wanted to prove Melody did not eat the candy (). Here's one way. Suppose Melody ate the candy (). If Melody ate the candy, then the seal would be broken (). But I checked, and the seal is not broken (). So Melody did not eat the candy ().
Let denote the set of all true statements about the world. Because (the seal is not broken) is a true statement, . So by the assumption rule, is a valid sequent. Supposing (Melody ate the candy) is true, , so by the antecedent rule is a valid sequent. Supposing is true, (the seal is broken) is true, so is also valid sequent. However, because all formulas must be either true or false, and when is true and are true, cannot be true, so (Melody did not eat the candy) must be true, so a valid sequent.
This style of proof is called proof-by-contradiction and can be denoted like this in our sequent calculus.
Rather than argue for this rule's correctness expositionally, we now have enough rules to write a formal proof. Starting from the premise, we show there is a sequence of rules which when applied produce the target sequent. Because our sequent rules only produce true sequents, we know our target sequent is true.
Proof:
Proof:
Proof:
This concludes the proof as is logically equivalent to .
Most of this is synthesized from Mathematical Logic by Heinz-Dieter Ebbinghaus, Jörg Flum, Wolfgang Thomas. I've written up solutions to some of my favorite exercises in the book here.
Thanks Ally, Janita, Moses, Nick, Noah, Pete, and Tonya for interesting conversations.