Unofficial Hacker News companion — get notified on comment replies, and more.

Sudoku's Hidden Rule (opens external site)

478 points by multifasciatus 1 day ago | cyrusjavan.com | 213 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (4)

  1. The perhaps obvious question: is it actually possible to design a sudoku with multiple solutions, BUT if people use BUG, they will get stuck and not get a solution at all?

    If such a thing is not possible, the reasoning is not actually circular.

    Replies (2)
    1. It is possible. Imagine a sudoku with just one number filled in at the start. Clearly there could be multiple solutions.
      Replies (1)
      1. But there is a second constraint. If someone were to use BUG, would they be unable to find any solution at all? For the one-number-at-the-start, BUG doesn't (obviously) lead to deadlocks later.
    2. Counterexample: the case from the blog post could be filled in like so:

          8 5 7 |   6   |     2
            4   | 2 8 7 |     5
            2   |   5   | 8   7
          ------+-------+------
          1 7 4 | 5 2 3 | 6 8 9
          2 8 5 | 4 9 6 | 3 7 1
          3 9 6 | 7 1 8 | 5 2 4
          ------+-------+------
          4 1 2 | 6 3 5 | 7 9 8
          5 3 8 | 9 7 2 | 4 1 6
          7 6 9 | 8 4 1 | 2 5 3
      
      If you fill in a 3 where the blog post tells you then you get a contradiction, 0 solutions. But the puzzle as it stands has two.

      You are correct to suspect that there's an impossibility result here but it requires a stronger logical model than Sudoku can provide or something. (The theorem is called Löb’s theorem, and says that if a logic can prove “if P is provable, then P is true” then it can prove P, as long as it was sophisticated enough to start with.)