Nonogram Puzzles

Proof by contradiction (without guessing)

When the direct techniques stop working, ask a question: what would happen if this cell were filled? If the answer is "its line can't be completed", the cell is empty. That's not a guess; it's a proof.

Updated

Guessing versus proving

Guessing means filling a cell and carrying on, hoping it was right. Proof by contradiction means following the consequences of an assumption within one line until they clash, then concluding the opposite. You never leave a doubtful mark on the board. Every puzzle on this site can be solved without guessing; contradiction is sometimes the shortest path, and it's what our solver does under the hood when it looks at a whole line at once.

Both cases agree

A gentle form: the known filled cell could belong to either of two blocks. Try each. If both possibilities give the same answer for some cell, that answer is certain.

14.
Clue 1 4 with cell 3 filled. If cell 3 is the 1, cell 2 touches a finished 1, so it is empty. If cell 3 is part of the 4, the 1 must sit in cell 1 and cell 2 is the gap between them. Either way, cell 2 is empty.

One case breaks

The stronger form: assume a cell is filled, follow its line, and find that the clue can no longer fit. Take a row of 8 cells with the clue 3 and cell 2 filled. Could cell 6 be filled? Then the single block of 3 would have to cover both cell 2 and cell 6, which are five cells apart. Impossible, so cell 6 is empty.

You could have reached the same conclusion with unreachable cells, and that is the point: a contradiction is just a way of asking a line a direct question when you can't see the answer straight away.

Keep it to one line

Contradictions that run across several lines (fill this, which forces that column, which forces this row...) are valid but hard to keep in your head and easy to get wrong. Prefer single-line contradictions; if you need more, it's usually a sign there's a simpler move elsewhere on the board. Press Hint: it always names a line where a deduction is available.

In a real puzzle

True contradictions are rare. On a 20×20 axe from the site, the solver had to use them three times. Each time it tested squares in one line and found that one choice made the clue impossible:

356711126464554515554432457911106555555555542
31. Row 15 (4): try every way the blocks can still fit around the cells you know. They all agree on 0 filled and 4 empty cells.
356711126464554515554432457911106555555555542
38. Row 11 (1 5): try every way the blocks can still fit around the cells you know. They all agree on 0 filled and 1 empty cells.
356711126464554515554432457911106555555555542
39. Row 14 (4): try every way the blocks can still fit around the cells you know. They all agree on 0 filled and 1 empty cells.

How often you'll use it

Rarely, and that's deliberate. Across about 600 black-and-white puzzles on the site, in-line contradictions are needed in under 1% of puzzles and make up less than 0.2% of all steps. They appear mostly at 20×20 and up. If you think you need one, first run through the simpler checks in getting unstuck.

Common mistakes

  • Testing across several lines. Following a guess through many lines is trial and error; a contradiction test stays inside one line.
  • Testing at random. Test squares where the line is nearly decided, such as the ends of a known run.
  • Forgetting the opposite test. If "filled" leads nowhere, try "empty": either result is information.

Try it

That's the whole toolkit. Put it together on the hard nonograms, or read the complete solving guide.

Questions and answers

Is contradiction the same as guessing?
No. A contradiction proves a cell's value by showing the opposite can't work. Guessing leaves an unproven mark on the board and hopes.
Do I need contradictions to solve these puzzles?
Never strictly: every puzzle here solves with line-by-line logic. Single-line contradictions are part of that logic, and they often save time.
Is the contradiction technique guessing?
No. It tests one square inside one line; if the line becomes impossible, the opposite must be true. That's a proof.