Showing posts with label Sudoku game solving. Show all posts
Showing posts with label Sudoku game solving. Show all posts

Wednesday, July 22, 2026

About Logic-1: Law-of-Excluded Middle

Quick Answer: The Law of Excluded Middle states that for any proposition, either it is true or its negation is true — there is no thir...

Quick Answer: The Law of Excluded Middle states that for any proposition, either it is true or its negation is true — there is no third option. In sudoku, this law is the logical engine behind every technique: when you eliminate all impossibilities for a cell, the one remaining candidate must be correct. There is no "maybe." There is no guessing. There is only logical certainty.

1. A Scene from Everyday Life

Imagine you are looking for your car in a parking lot. You remember it's in Section B. Section B has 9 rows. You check each row:

— Row 1? No.
— Row 2? No.
— Row 3? No.

— First 8 rows? All eliminated.
It must be in Row 9.

You didn't "guess" the car is in Row 9. You used one of the oldest logical laws known to humanity: the Law of Excluded Middle.

📖 Formal Definition: For any proposition P, either P is true or its negation is true. There is no third option.
Latin: tertium non datur — "there is no third possibility"
Symbolic Notation: P ∨ ¬P (P or not-P — one must hold)

2. The Law of Excluded Middle in Sudoku: The Logical Core of Naked Single

Consider a specific sudoku cell:

    5   3   ?  |  7   .   .  |  .   .   .
    .   .   .  |  1   9   5  |  .   .   .
    .   .   .  |  .   .   .  |  .   .   .
    -----------+-------------+-----------
    .   .   .  |  .   .   .  |  .   .   .
    .   .   .  |  .   .   .  |  .   .   .
    .   .   .  |  .   .   .  |  .   .   .
    -----------+-------------+-----------

In the top-left box (Box 1), what can go in cell r1c3?

Let's examine the triple-constraint environment of cell r1c3:

Constraint ZoneExisting DigitsEliminated Digits
Row 15, 3, 75, 3, 7
Column 3(no given digits here)
Box 15, 3, 1, 9, 51, 5, 3, 9
Combined EliminationEliminated so far: 1, 3, 5, 7, 9

This leaves four candidates: 2, 4, 6, 8. Can't decide yet? Let's add the column constraints:

CandidateAlready present in column 3?Verdict
2NoPossible ✓
4NoPossible ✓
6NoPossible ✓
8NoPossible ✓

In this example, four candidates remain — the Law of Excluded Middle can't deliver the final answer yet. But this illustrates exactly how the law operates: it is not a one-step oracle, but a step-by-step engine that shrinks the possibility space. Every "it's not X" judgment prepares the ground for the final "it must be Y."

🔍 Simplified Version — When Only One Candidate Remains

Suppose after multiple rounds of elimination, the candidates for r1c3 are reduced to just {2}.

Q: Is r1c3 a 2?
A: Either it is 2, or it is not 2.
Q: Could it be any other digit?
A: 1→eliminated by the same row. 3→eliminated by the same box. 4→eliminated by the same column… 8→eliminated by the same column.
All 8 other digits are impossible.
→ Therefore, r1c3 must be 2.

This is the Naked Single technique, and its logical core is the Law of Excluded Middle.

3. The Law of Excluded Middle in Crosswords: The Power of Cross-Constraints

The Law of Excluded Middle doesn't only apply to numeric logic. Here's a crossword scenario:

✏️ Crossword Example

3-Across: "A four-letter word meaning 'feline'"
You already have C _ T _

Candidates: CATA? CATS? COTE? CITY?

4-Down: "The opposite of false" (5 letters)
You already have T _ U _ _

Now, the 2nd letter of 4-Down must match the 3rd letter of 3-Across.

If 3-Across is CATS → crossing cell = T → 4-Down = T _ U T _ → "TRUTH" fits perfectly!

The Law of Excluded Middle at work: The crossing letter between CATS and TRUTH either matches or it doesn't. There is no "partial match." Once CATS→T aligns with TRUTH's T, all other candidates (CATA, etc.) are eliminated at the crossing cell. CATS becomes a necessity.

Crossword intersections are the analog of sudoku's "row-column-box intersections." Both games share the same logical pattern: cross-constraint → eliminate the impossible → what remains must be the answer.

4. Cognitive Traps: Why We Still "Guess" Despite the Law of Excluded Middle

If the Law of Excluded Middle is so fundamental, why do beginners still "guess"? Three cognitive reasons:

❌ Trap 1: Concluding Before Checking All Constraints

The brain loves shortcuts. Seeing 5 digits eliminated, it assumes only one remains — when in fact three more constraint zones have yet to be checked.

→ The Law of Excluded Middle only works when you've exhausted ALL possibilities, not when you've "checked a few and called it done."

❌ Trap 2: Treating Binary Choices as "50/50"

When only two candidates remain, intuition says "either one works, just pick one." But the Law of Excluded Middle is not gambling — only one of the two can survive the cross-verification of all constraints.

→ "Pick one of two" doesn't mean "pick randomly" — it means "find evidence to eliminate one of them."

❌ Trap 3: Confusing "Haven't Figured It Out Yet" with "Can't Figure It Out"

When you're stuck, your brain says "this path is blocked, switch paths." That doesn't mean you need to guess — it just means you need to re-scan from a different constraint zone.

→ Sudoku never requires guessing. You just need more rounds of elimination.

5. Applications of the Law of Excluded Middle Beyond Puzzles

DomainHow the Law of Excluded Middle Applies
🧩 SudokuNaked Single: eliminate 8 digits → the last one is certain
✏️ CrosswordsCrossing-letter verification: letters either match or they don't
💻 DebuggingBinary elimination: is the bug in module A or module B?
🏥 Medical DiagnosisDifferential diagnosis: normal temperature → rules out infection type A; rash present → rules out infection type B → what's left is the answer
🏛️ Legal Reasoning"Beyond reasonable doubt": eliminate all reasonable doubts, and the defendant's guilt follows with necessity
🔬 Scientific MethodHypothesis testing: if experiment contradicts hypothesis, either the hypothesis is wrong or the experimental design is flawed (both cannot be true simultaneously)

🔑 Key Takeaways

  • The Law of Excluded Middle is why sudoku never lies: every cell has one definite digit; every digit has one definite arrangement.
  • Naked Single is just one application of the Law of Excluded Middle: eliminate the impossible → what remains must be the truth.
  • Next Step: From "one cell has only one candidate" (Naked Single) to "one digit has only one possible cell in a house" (Hidden Single) — this is the leap in reasoning perspective from "cell-centric" to "digit-centric."
  • Remember: 100% logical clarity yields 100% certainty. The Law of Excluded Middle means guessing is never necessary.

❓ Frequently Asked Questions

Q: What is the difference between the Law of Excluded Middle and the Law of Non-Contradiction?
Law of Non-Contradiction: a proposition cannot be both true and false at the same time (¬(P ∧ ¬P)). Law of Excluded Middle: a proposition is always either true or false (P ∨ ¬P). Non-contradiction says "you can't have both"; Excluded Middle says "you must have one."
Q: Which relies more on the Law of Excluded Middle — Naked Single or Hidden Single?
Both equally. Naked Single eliminates all other candidates from a cell; Hidden Single eliminates all other positions for a digit in a house. The difference is only in what is being eliminated — a cell or a digit. The underlying logical pattern of "eliminate, then take what's left" is identical.
Q: Does the Law of Excluded Middle have exceptions?
In classical logic, the Law of Excluded Middle is an axiom with no exceptions. However, some schools (such as constructivist logic) reject it — they argue you cannot assert "either P or not-P" unless you have actually proved one of them. But in the sudoku world, classical Excluded Middle applies perfectly: a cell is either 1 or 2 or ... or 9 — it must fall into one of those.
Q: Why doesn't a crossword puzzle need the Law of Excluded Middle?
On the contrary — crosswords absolutely need it! When you fill in a word, the reasoning that "only this one word in English satisfies both the definition and the crossing letters" is itself an application of the Law of Excluded Middle — all non-matching words are eliminated, and the remaining one is the unique answer. You've simply replaced "candidate list" with "vocabulary."

📚 Further Reading

  • Next: Deductive Reasoning: From Known Truths to Certainty — how X-Wing uses "if...then..." chains to eliminate candidates across 4 cells
  • Sudoku Tutorial Companion: Step 4 — The Single Candidate Rule (full tutorial on Naked Single)
  • Crossword Companion: One-Minute Mystery Crossword #1 — experience the power of cross-constraints interactively

Tags: logical reasoning, logic puzzle, critical thinking, Sudoku game, problem solving ,Sudoku game solving

Hub Pillars Main Tags Sub Tags 🖱 Drag nodes · Click-drag background to pan · Scroll to zoom · Hover for links