I really don’t care much about philosophy, but I am absolutely fascinated with logic.
Ha, that’s what they all say at first.
Anyway, here are some good books:
For just learning to work with the predicate calculus, I think that, by far, the best book is Kalish, Montague, and Mar’s Logic: Techniques Of Formal Reasoning. It’s had many editions, so I’d aim for the latest one. For a first book, this is the one to get. It requires virtually no mathematical background but it is rigorous enough for an instroduction. There is very little meta-theory, but that’s okay, since the practice the book gives you in first order logic puts you in good stead to move on to meta-theory. This is a textbook, so it’s not cheap, but it is worth the money. The book was originally written by Kalish and Montague; Mar came in for the latest edition. Sidenote: Mar is the last person to receive a doctorate sponsored by Alonzo Church.
With your grasp of predicate logic attained from the Kalish, Montague and Mar text, you’ll be in a good position to get some basic set theory under your belt, and you will need set theory to study meta-logic. So, for a set theory text, I especially recommend Herbert B. Enderton’s Elements Of Set Theory (online errata sheet available at his home page).
Another good set theory text, and available cheaply in paperback, is Patrick Suppes’s Axiomatic Set Theory. I prefer his development of the natural numbers and ordinals to Enderton’s development of these. On the other hand, I do not prefer Suppes intitial axiomatization since it allow urelements, thus requiring that ‘is a set’ be a predicate and that a constant for the empty set be taken as a primitive.
With enough set theory, you’re ready for some meta-logic. I strongly recommend Herbert B. Enderton’s A Mathematical Introduction To Logic (online errata sheet available at his home page). Much welcome is the emphasis on induction and recursion from almost the very start of the development. The prose is clear and the layout is easy to follow. The book takes you through a detailed exposition of an incompleteness proof (straight to the Rosser result) with the important stops along the way. One drawback, I think, is that the axiomatization of sentential logic is: If it’s a tautology, then it’s an axiom. But this is okay as long as one is already competent in sketching sentential proofs, which you will be by this time. There are some other goodies bundled, including a chapter on non-standard analysis. The logic book has a second edition.
As a reference, Alonzo Church’s Introduction To Mathematical Logic has so much wisdom and information - just in the footnotes alone! The introductory chapter might as well be the definitive synopsis on those topics. It is a great book. However, I think it’s a bit recondite to serve as a gateway to the subject.
As a reference, Stephen Kleene’s Introduction To Metamathematics is expensive and hard to find. But this must be considered one of the great works. Kleene is one of the great logicians and among the founders of the theory of computability.
Kleene’s Mathematical Logic, in its paperback edition, can be had cheaply and it is jam packed with great information. However, I find that his expositions sprawl and that the clutter - the formulas overflowing in every nook and cranny - is difficult to cope with. He just gives you so much, like he’s “spilling his guts”, that it’s a bit much to sort through. But, considering the price, and the wealth of information, one should grab this one and refer to whenever needed. Note that his proof of incompleteness is mainly through Turing machines. I do love this book.
A beautiful book is Dirk van Dalen’s Logic And Structure, and reasonably priced for a Springer book. This has some detail of rigor on topics I’ve not been able to find in other books. His presentation is very lucid and he deftly covers a lot of ground. He gives a natural deduction system, and covers most of the subject through incompleteness. And the book has nice chapters on intuitionist logic, including Kripke semantics.
An amazing book is Raymond Smullyan’s First Order Logic. This book takes my breath away. Talk about elegant! He’ll prove a major meta-theorem, and the proof is so concise, so short and sweet, that at the end of it you say, “That’s it? That’s all there is to it?” Then you go back through it and confirm that, sure enough, it’s all there and solid as a rock. He favors trees and tableaux, by the way. However, there is quite a bit that the book does not cover, including incompleteness.
One of the most comprehensive introductory books is Joseph R. Shoenfield’s Mathematical Logic as it takes you through the major meta-theorems for predicate calculus, incompleteness, recursion theory, a quick tour of set theory, and then even through forcing.
Patrick Suppes’s Introduction To Logic is a bit recondite in its presentation but it’s a good book, and in paperback, it’s a bargain. And there is one chapter that makes the book, in my view, a must have: His chapter on the theory of definitions is the best I’ve come across.
Benson Mates’s Elementary Logic is a real nice book for learning predicate calculus, but it’s quite brief on meta-theorems.
Elliot Mendelson’s Introduction To Mathematical Logic is another classic.
W.V. Quine’s Mathematical Logic is a classic, and Quine really nails it on some topics, such as use-mention. This is good in conjunction with his Set Theory And Its Logic. It’s nice to be apprised of Quine’s NF. One drawback is the Principia style notation. Quine is, of course, an institution onto himself, and his subtle wit is always welcome.
A nice, lucid, uncluttered presentation is in L.T.F Gamut’s two volume set Logic, Language, And Meaning ('L.T.F. Gamut is a collective pseudonym like ‘Nicholas Bourbaki’). The first volume is basic logic and the second volume is modal logic and other topics. Not much in the way of meta-theorems, but this is a good starter kit.
For computability and recursion theory, the paperback edition of Martin Davis’s Computability And Unsolvability is a steal! But what a dorky cover they put on the book!
Torkel Franzen’s two books: Inexhaustibility: A Non-Exhaustive Treatment and Godel’s Theorem: An Incomplete Guide To Its Use And Abuse are must reads, though they’re not books to cover course material with.
Jean van Heijenoort’s From Frege To Godel is the standard anthology of famous papers in the history of mathematical logic.
And Azriel Levy’s Basic Set Theory is a killer book, and a bargain in paperback. It goes well past the basics (though it doesn’t include forcing or even Godel’s half of the independence proof). Actually, the book pretty much uses class theory as opposed to set theory, and the first chapter is a bit confusing. But the book is generally well written and has a wealth of material.