John Baez's post "Surprises in Logic" explores counterintuitive results within mathematical logic. It highlights the unexpected power of first-order logic, capable of expressing sophisticated concepts like finiteness and the natural numbers despite its seemingly simple structure. Conversely, it demonstrates limitations, such as the inability of first-order theories of the natural numbers to capture all true statements about them (Gödel's incompleteness theorem). The post emphasizes the surprising disconnect between a theory's ability to define a concept and its ability to characterize it completely, using examples like Peano arithmetic. This leads to the exploration of second-order logic and its increased expressive power, though at the cost of losing the completeness and compactness theorems enjoyed by first-order logic. The overall message is that even seemingly basic logical systems can harbor deep and often unintuitive complexities.
The Halting Problem is frequently cited as an example of an NP-hard problem, but this is misleading. While both are "hard" problems, the nature of their difficulty is fundamentally different. NP-hard problems deal with the difficulty of finding a solution among a vast number of possibilities, where verifying a given solution is relatively easy. The Halting Problem, however, is about the impossibility of determining whether a program will even finish, regardless of how long we wait. This undecidability is a stronger statement than NP-hardness, as it asserts that no algorithm can solve the problem for all inputs, not just that efficient algorithms are unknown. Using the Halting Problem to introduce NP-hardness confuses computational complexity (how long a problem takes to solve) with computability (whether a problem can even be solved). A better introductory example would be something like the Traveling Salesperson Problem, which highlights the search for an optimal solution within a large, but finite, search space.
HN commenters largely agree with the author's premise that the halting problem is a poor example for explaining NP-hardness. Many point out that the halting problem is about undecidability, a distinct concept from computational complexity which NP-hardness addresses. Some suggest better examples for illustrating NP-hardness, such as the traveling salesman problem or SAT. A few commenters argue that the halting problem is a valid, albeit confusing, example because all NP-hard problems can be reduced to it. However, this view is in the minority, with most agreeing that the difference between undecidability and intractability should be emphasized when teaching these concepts. One commenter clarifies the author's critique: it's not that the halting problem isn't NP-hard, but rather that its undecidability overshadows its NP-hardness, making it a pedagogically poor example. Another thread discusses the nuances of Turing completeness in relation to the discussion.
Summary of Comments ( 6 )
https://news.ycombinator.com/item?id=43763291
Hacker News users discuss various aspects of the surprises in mathematical logic presented in the linked article. Several commenters delve into the implications of Gödel's incompleteness theorems, with some highlighting the distinction between truth and provability. The concept of "surprising" itself is debated, with some arguing that the listed examples are well-known within the field and therefore not surprising to experts. Others point out the connection between logic and computation, referencing Turing machines and the halting problem. The role of axioms in shaping mathematical systems is also mentioned, alongside the challenge of finding "natural" axioms that accurately reflect our intuitive understanding of mathematics. A few commenters express appreciation for the article's clear explanations of complex topics.
The Hacker News post titled "Surprises in Logic (2016)" linking to John Baez's article has generated several comments discussing various aspects of logic, set theory, and their implications.
One commenter highlights the significance of Löwenheim-Skolem theorem, which states that if a first-order theory has an infinite model, then it has a model of every infinite cardinality. They explain how this theorem can be counterintuitive, especially when applied to theories intended to describe a unique structure, like the real numbers. They suggest it implies there are "countable models of set theory that think they contain uncountable sets," a concept they find fascinating and paradoxical.
Another comment dives into the implications of Gödel's incompleteness theorems, specifically focusing on their impact on Hilbert's program. They mention how Gödel's work demonstrated the inherent limitations of formal systems in proving all true statements within a given set of axioms. This commenter further connects this to the concept of truth being "larger" than provability, emphasizing that there will always be true statements that are unprovable within a given formal system.
Further discussion revolves around the nature of infinity and its various interpretations within set theory. One comment clarifies the distinction between countable and uncountable infinities, using the analogy of integers versus real numbers. They point out that while both sets are infinite, the real numbers are "denser" than the integers, leading to the concept of uncountability.
The conversation also touches upon the implications of the Axiom of Choice, a fundamental principle in set theory that allows for making infinitely many arbitrary choices. Some comments express how counterintuitive this axiom can be, even though it's necessary for many important mathematical theorems. They mention how it can lead to seemingly paradoxical results, like the Banach-Tarski paradox, which demonstrates how a sphere can be decomposed and reassembled into two spheres identical to the original.
A few commenters also delve into the philosophical implications of these mathematical concepts, questioning the nature of mathematical truth and its relationship to reality. They discuss whether mathematical structures are discovered or invented, and whether the limitations of formal systems reflect limitations on our ability to understand the universe.
Finally, some comments offer additional resources for exploring these topics further, including links to relevant Wikipedia pages, books, and online lectures. These recommendations provide avenues for those interested in gaining a deeper understanding of the discussed concepts.