logoalt Hacker News

pgreenwood • today at 5:10 AM • 3 replies • view on HN

It's analogous to using proof by contradiction in mathematics. A direct proof is more elegant and usually more illuminating. But then there's the quote from David Hilbert: "Taking the principle of excluded middle from the mathematician would be the same, say, as proscribing the telescope to the astronomer or to the boxer the use of his fists."


Replies

Agentlien • today at 5:59 AM

I'm not sure that explains it. In mathematics I've never understood the feelings against proof by contradiction. It is essentially just reasoning for why the opposite couldn't work.

But using uniqueness in sudoku feels really cheap and anticlimactic. It gives me the same empty feeling as solving through bifurcation

bigstrat2003 • today at 6:35 AM

I really like proof by contradiction. I still clearly remember in college when we worked through the proof that the reals are uncountably infinite, which was a proof by contradiction. When we got to the end, the final piece was so surprising and delightful to me that I actually went home from class and called my mom just to gush about it (and she tactfully listened and was happy for me even though I'm sure she doesn't care about math). Proof by contradiction feels to me like a plot twist that turns the story on its head and leaves you in awe at what you just witnessed.

➕ show 1 reply
thaumasiotes • today at 5:51 AM

> It's analogous to using proof by contradiction in mathematics.

Well, the argument here is:

1. The solution is unique.

2. If [this square had value X], the solution wouldn't be unique.

3. Therefore, [this square does not have value X].

That isn't a proof by contradiction. It's just contraposition: step 2 says P ⟶ Q, step 1 says ¬Q, and our conclusion in step 3 says ¬P. You can do the whole thing constructively. The relevant proof (that from any implication you can derive the contrapositive) is the 7th exercise in session 4 at https://incredible.pm/ . Classical reasoning starts in session 5. (And the principle of a proof by contradiction is the fourth exercise there, sort of. You could make a strong argument that the principle of a proof by contradiction is inherent in the definitional choice that equates "P ⟶ ⊥" with "¬P".)

Sudoku has a much more direct equivalent of the concept of proof by contradiction. A sudoku proof by contradiction is just trial and error: "If this square is 3, then... [a constraint is violated]. Therefore, this square isn't 3."

Even that is still just contraposition, though, because the rules of sudoku tell you what the constraints are and guarantee that they aren't violated. You don't need to assume the law of the excluded middle when it's given to you explicitly.

➕ show 1 reply