<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Logic on kenji.blog</title><link>http://kenji.blog/en/categories/logic/</link><description>Recent content in Logic on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>kenjinote</copyright><lastBuildDate>Thu, 10 Sep 2026 21:00:00 +0900</lastBuildDate><atom:link href="http://kenji.blog/en/categories/logic/index.xml" rel="self" type="application/rss+xml"/><item><title>Are Emeralds Green or 'Grue'?: Goodman's New Riddle of Induction</title><link>http://kenji.blog/en/p/grue-paradox/</link><pubDate>Thu, 10 Sep 2026 21:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/grue-paradox/</guid><description>&lt;img src="http://kenji.blog/p/grue-paradox/img/grue_paradox.jpg" alt="Featured image of post Are Emeralds Green or 'Grue'?: Goodman's New Riddle of Induction" />&lt;p>We predict the &amp;ldquo;future&amp;rdquo; from &amp;ldquo;past experiences&amp;rdquo;.
&amp;ldquo;The sun rose from the east yesterday, so it will rise from the east tomorrow as well.&amp;rdquo;
&amp;ldquo;All emeralds we have seen so far were green, so the next emerald unearthed will also be green.&amp;rdquo;&lt;/p>
&lt;p>Such reasoning is called &amp;ldquo;induction&amp;rdquo;, and it is the foundation of all science. However, in 1955, philosopher Nelson Goodman devised a bizarre concept of color to show that this induction has a fundamental flaw. That is the &lt;strong>&amp;ldquo;Grue&amp;rdquo; paradox&lt;/strong>.&lt;/p>
&lt;h2 id="definition-of-the-new-color-grue">Definition of the New Color &amp;ldquo;Grue&amp;rdquo;
&lt;/h2>&lt;p>Goodman defined a new property (color) called &amp;ldquo;Grue&amp;rdquo;, which is a synthesis of &amp;ldquo;Green&amp;rdquo; and &amp;ldquo;Blue&amp;rdquo;, as follows.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Definition of Grue:&lt;/strong>
An object is &amp;ldquo;grue&amp;rdquo; if it is observed before a specific time $t$ (e.g., January 1, 2030) and is &amp;ldquo;green&amp;rdquo;, and if it is observed at or after time $t$ and is &amp;ldquo;blue&amp;rdquo;.&lt;/p>
&lt;/blockquote>
$$
\text{Grue} =
\begin{cases}
\text{Green} &amp; (\text{Time} &lt; t) \\
\text{Blue} &amp; (\text{Time} \ge t)
\end{cases}
$$
&lt;p>According to this definition, the green emerald you hold in your hand right now (before time $t$) is simultaneously &amp;ldquo;green&amp;rdquo; and &amp;ldquo;grue&amp;rdquo;.&lt;/p>
&lt;h2 id="why-is-it-a-paradox">Why is it a Paradox?
&lt;/h2>&lt;p>The paradox occurs when we try to predict the future.
All emeralds humanity has observed so far have been &amp;ldquo;green&amp;rdquo;. Therefore, using induction, we predict the following:&lt;/p>
&lt;p>&lt;strong>Hypothesis A: &amp;ldquo;All emeralds are &amp;lsquo;green&amp;rsquo;&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>But wait a minute. Since all emeralds observed so far were from before time $t$, they must have also all been &amp;ldquo;grue&amp;rdquo;. Therefore, from exactly the same observational data, the following prediction also holds true.&lt;/p>
&lt;p>&lt;strong>Hypothesis B: &amp;ldquo;All emeralds are &amp;lsquo;grue&amp;rsquo;&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>If we follow the rules of induction, past observations support Hypothesis B with &amp;ldquo;exactly the same strength&amp;rdquo; as they support Hypothesis A.&lt;/p>
&lt;div class="mermaid">graph TD
A["Past observation: All emeralds were green"] -->|Simultaneously| B["Past observation: All emeralds were 'grue'"]
A --> C["Inductive prediction A: Future emeralds will also be 'green'"]
B --> D["Inductive prediction B: Future emeralds will also be 'grue'"]
C --> E["Remain green even after time t"]
D --> F["Turn 'blue' after time t!"]
style C fill:#4CAF50,stroke:#333,color:#fff
style D fill:#2196F3,stroke:#333,color:#fff
style F fill:#F44336,stroke:#333,color:#fff,stroke-width:2px&lt;/div>
&lt;h2 id="will-emeralds-turn-blue">Will Emeralds Turn Blue?
&lt;/h2>&lt;p>If Hypothesis B is correct, the moment time $t$ arrives, all emeralds in the world must simultaneously turn &amp;ldquo;blue&amp;rdquo; (from the definition of grue).&lt;/p>
&lt;p>Intuitively, we think, &amp;ldquo;That&amp;rsquo;s absurd. Hypothesis B is unnatural wordplay, and Hypothesis A (green) must be the correct one.&amp;rdquo;&lt;/p>
&lt;p>However, Goodman&amp;rsquo;s question lies much deeper.
&lt;strong>Even though both &amp;ldquo;green&amp;rdquo; and &amp;ldquo;grue&amp;rdquo; hypotheses perfectly match past data, why do we consider only the &amp;ldquo;green&amp;rdquo; prediction as valid and eliminate the &amp;ldquo;grue&amp;rdquo; prediction? What is the &amp;ldquo;logical basis&amp;rdquo; for that?&lt;/strong>&lt;/p>
&lt;h2 id="challenge-to-the-uniformity-of-nature">Challenge to the &amp;ldquo;Uniformity of Nature&amp;rdquo;
&lt;/h2>&lt;p>To avoid this problem, an objection comes to mind: &amp;ldquo;We should use simple concepts like &amp;lsquo;green&amp;rsquo; and not complex, time-dependent concepts like &amp;lsquo;grue&amp;rsquo;.&amp;rdquo;&lt;/p>
&lt;p>However, Goodman showed the opposite: if we define a color &amp;ldquo;Bleen&amp;rdquo; (blue until time $t$, green thereafter), the very concept of &amp;ldquo;green&amp;rdquo; becomes a complex, time-dependent concept (&amp;ldquo;grue&amp;rdquo; until time $t$, &amp;ldquo;bleen&amp;rdquo; thereafter).
In other words, which words we take as &amp;ldquo;fundamental&amp;rdquo; is merely a habit of our language.&lt;/p>
&lt;p>Goodman&amp;rsquo;s &amp;ldquo;Grue&amp;rdquo; paradox (the new riddle of induction) proved that scientific theories are not determined merely by objective data alone, but depend heavily on &amp;ldquo;what conceptual framework (language) we use to carve up the world&amp;rdquo;.&lt;/p>
&lt;p>Even in the context of AI and machine learning, this paradox continues to hold significant meaning today as the problem of &amp;ldquo;overfitting&amp;rdquo; and &amp;ldquo;bias&amp;rdquo;, where even with the same training data, predictions for the future can completely change depending on the &amp;ldquo;structure of the model (which features it focuses on)&amp;rdquo;.&lt;/p></description></item><item><title>Does seeing a blue apple prove 'ravens are black'? : Hempel's Ravens</title><link>http://kenji.blog/en/p/hempels-ravens/</link><pubDate>Thu, 10 Sep 2026 21:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/hempels-ravens/</guid><description>&lt;img src="http://kenji.blog/p/hempels-ravens/img/hempels_ravens.jpg" alt="Featured image of post Does seeing a blue apple prove 'ravens are black'? : Hempel's Ravens" />&lt;p>How do scientists prove theories? Usually, they use &amp;ldquo;induction,&amp;rdquo; gathering data by observing the world.
For example, if you wanted to prove the hypothesis that &amp;ldquo;all ravens are black,&amp;rdquo; you would observe ravens around the world and confirm one by one that they are black.&lt;/p>
&lt;p>However, in the 1940s, logician Carl Hempel pointed out a strange logical loophole hidden in this commonplace scientific method.
This is the paradox of &lt;strong>Hempel&amp;rsquo;s Ravens&lt;/strong>, which states that &lt;strong>&amp;ldquo;simply seeing a blue apple or a red shoe serves as evidence that &amp;lsquo;ravens are black&amp;rsquo;.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;h2 id="logical-substitution-the-magic-of-the-contrapositive">Logical Substitution: The Magic of the Contrapositive
&lt;/h2>&lt;p>To understand Hempel&amp;rsquo;s argument, we must recall the concept of the &lt;strong>&amp;ldquo;contrapositive&amp;rdquo;&lt;/strong> learned in high school mathematics.&lt;/p>
&lt;p>In logic, if a proposition &amp;ldquo;If A, then B&amp;rdquo; is true, its contrapositive &amp;ldquo;If not B, then not A&amp;rdquo; must also be true (this is called logical equivalence).&lt;/p>
&lt;p>Hypothesis $H_1$: &lt;strong>&amp;ldquo;All ravens are black (If it is a raven, then it is black)&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>Let&amp;rsquo;s take the contrapositive of this hypothesis $H_1$.
It becomes &amp;ldquo;If it is not black, then it is not a raven.&amp;rdquo;&lt;/p>
&lt;p>Hypothesis $H_2$: &lt;strong>&amp;ldquo;Everything that is not black is not a raven&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>According to the rules of logic, $H_1$ and $H_2$ have &lt;strong>exactly the same meaning (equivalence)&lt;/strong>. If one is proven, the other is automatically proven as well.&lt;/p>
&lt;h2 id="proving-ravens-without-seeing-ravens">Proving Ravens Without Seeing Ravens
&lt;/h2>&lt;p>Now, to confirm hypothesis $H_1$ (ravens are black), every time you find a black raven, the certainty (evidence) of the hypothesis gets a little stronger.
This is something everyone can agree on.&lt;/p>
&lt;p>However, since $H_1$ and $H_2$ mean the same thing, finding evidence for hypothesis $H_2$ (things that are not black are not ravens) should directly serve as evidence for hypothesis $H_1$.&lt;/p>
&lt;p>So, what constitutes evidence for $H_2$?
You just need to find something that is &amp;ldquo;not black and not a raven.&amp;rdquo;&lt;/p>
&lt;ul>
&lt;li>Suppose there is a &lt;strong>&amp;ldquo;blue apple&amp;rdquo;&lt;/strong> on the table. It is not black, and it is not a raven. Therefore, it is evidence supporting $H_2$.&lt;/li>
&lt;li>There are &lt;strong>&amp;ldquo;red shoes&amp;rdquo;&lt;/strong> in the closet. These are also not black and not ravens. They are evidence for $H_2$.&lt;/li>
&lt;li>A &lt;strong>&amp;ldquo;white cloud&amp;rdquo;&lt;/strong> is floating in the sky. This is also evidence for $H_2$.&lt;/li>
&lt;/ul>
&lt;p>Since evidence for $H_2$ holds the same value as evidence for $H_1$, the following bizarre conclusion is logically derived:&lt;/p>
&lt;p>&lt;strong>&amp;ldquo;The more you observe blue apples and red shoes in a room, the more the hypothesis &amp;lsquo;all ravens are black&amp;rsquo; is proven to be true.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;div class="mermaid">graph TD
A["Proposition H1: All ravens are black"] &lt;-->|Logical equivalence (Contrapositive)| B["Proposition H2: What is not black is not a raven"]
C["Observation: Black raven"] -->|Serves as evidence for| A
D["Observation: Blue apple"] -->|Serves as evidence for| B
D -.->|Therefore, this should also be evidence for?| A
style A fill:#4CAF50,stroke:#333,stroke-width:2px,color:#fff
style B fill:#4CAF50,stroke:#333,stroke-width:2px,color:#fff
style C fill:#2196F3,stroke:#333,color:#fff
style D fill:#FF9800,stroke:#333,color:#fff&lt;/div>
&lt;h2 id="why-is-it-counterintuitive">Why Is It Counterintuitive?
&lt;/h2>&lt;p>No ornithologist anywhere in the world grows more convinced that &amp;ldquo;ravens are black&amp;rdquo; by looking at a blue apple. Although it should be perfectly correct logically, why does our common sense reject this?&lt;/p>
&lt;p>Several approaches have been proposed in the fields of philosophy and statistics to address this paradox.&lt;/p>
&lt;h3 id="1-the-bayesian-solution-difference-in-information-content">1. The Bayesian Solution (Difference in Information Content)
&lt;/h3>&lt;p>The most compelling counterargument from the perspective of modern statistics (Bayesian probability) focuses on the difference in the &amp;ldquo;strength of evidence (information content).&amp;rdquo;&lt;/p>
&lt;p>In the world, there are overwhelmingly more &amp;ldquo;things that are not black&amp;rdquo; than &amp;ldquo;black things,&amp;rdquo; and astronomically more &amp;ldquo;things that are not ravens&amp;rdquo; than &amp;ldquo;ravens.&amp;rdquo;&lt;/p>
&lt;p>When you see a blue apple, it certainly serves as evidence that &amp;ldquo;all ravens are black,&amp;rdquo; but &lt;strong>its value as evidence (the increase in probability) is infinitely close to zero&lt;/strong>.
Confirming just one of the countless &amp;ldquo;non-black things&amp;rdquo; in the vast universe raises the probability that &amp;ldquo;ravens are black&amp;rdquo; by an amount comparable to the effect of removing a single grain of sand from a desert. On the other hand, directly finding one black raven carries an overwhelmingly greater evidentiary value.&lt;/p>
&lt;p>In other words, the Bayesian solution is that logically &amp;ldquo;a blue apple is evidence,&amp;rdquo; but practically &amp;ldquo;its evidentiary value is equal to zero and can be ignored.&amp;rdquo;&lt;/p>
&lt;h3 id="2-the-limits-of-indoor-ornithology">2. The Limits of &amp;ldquo;Indoor Ornithology&amp;rdquo;
&lt;/h3>&lt;p>This paradox highlights how the foundation of science known as &amp;ldquo;induction (deriving general laws from observation)&amp;rdquo; rests on a fragile premise. Relying solely on logical equivalence would enable &amp;ldquo;indoor ornithology,&amp;rdquo; where one could verify any universal law (&amp;ldquo;all swans are white,&amp;rdquo; &amp;ldquo;no aliens are green,&amp;rdquo; etc.) simply by observing the junk in a room without ever going outside.&lt;/p>
&lt;p>Hempel&amp;rsquo;s Ravens is a fascinating paradox that shows that the words &amp;ldquo;evidence&amp;rdquo; and &amp;ldquo;proof&amp;rdquo; we unconsciously use cannot be fully captured by the rules of pure symbolic logic alone.&lt;/p></description></item><item><title>The Master and the Student, A Contradictory Trial No Matter Who Wins: Paradox of the Court</title><link>http://kenji.blog/en/p/paradox-of-the-court/</link><pubDate>Thu, 10 Sep 2026 21:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/paradox-of-the-court/</guid><description>&lt;img src="http://kenji.blog/p/paradox-of-the-court/img/paradox_of_court.jpg" alt="Featured image of post The Master and the Student, A Contradictory Trial No Matter Who Wins: Paradox of the Court" />&lt;p>In ancient Greece, a young man named Euathlus became a student of Protagoras, the greatest of the Sophists (teachers of rhetoric). The two entered into the following contract regarding the payment of tuition fees.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Contract Terms:&lt;/strong>
After completing the entire course in rhetoric, Euathlus will pay the remaining balance of the tuition to Protagoras &lt;strong>at the moment he wins his first court case&lt;/strong>.&lt;/p>
&lt;/blockquote>
&lt;p>Euathlus was an excellent student and successfully completed the entire rhetoric course.
However, after completing it, he refused to take on any court cases for some reason. If he never went to court, the condition of &amp;ldquo;winning his first court case&amp;rdquo; would never be met, meaning he would not have to pay the tuition.&lt;/p>
&lt;p>Exasperated, Protagoras sued Euathlus in court.
&amp;ldquo;Pay the tuition,&amp;rdquo; he demanded.&lt;/p>
&lt;p>And from here, a labyrinth of logic begins.&lt;/p>
&lt;h2 id="the-logic-of-the-master-protagoras">The Logic of the Master, Protagoras
&lt;/h2>&lt;p>Protagoras argued in court as follows:&lt;/p>
&lt;p>&amp;ldquo;Oh judge, no matter what happens, I win.&lt;/p>
&lt;ul>
&lt;li>If &lt;strong>I win&lt;/strong> this case, by the court&amp;rsquo;s verdict, Euathlus must pay me the tuition.&lt;/li>
&lt;li>If &lt;strong>I lose&lt;/strong> this case, it means Euathlus has &amp;lsquo;won his first court case.&amp;rsquo; In other words, the terms of the contract have been fulfilled, and he must pay the tuition according to the contract.&lt;/li>
&lt;/ul>
&lt;p>In either case, he has an obligation to pay the tuition.&amp;rdquo;&lt;/p>
&lt;h2 id="the-logic-of-the-student-euathlus">The Logic of the Student, Euathlus
&lt;/h2>&lt;p>In response, Euathlus also held his ground:&lt;/p>
&lt;p>&amp;ldquo;Oh judge, no matter what happens, I win.&lt;/p>
&lt;ul>
&lt;li>If &lt;strong>I win&lt;/strong> this case, by the court&amp;rsquo;s verdict, I do not have to pay the tuition.&lt;/li>
&lt;li>If &lt;strong>I lose&lt;/strong> this case, I still have not &amp;lsquo;won my first court case.&amp;rsquo; In other words, because the terms of the contract have not been fulfilled, contractually, I have no obligation to pay the tuition.&lt;/li>
&lt;/ul>
&lt;p>In either case, I do not need to pay the tuition.&amp;rdquo;&lt;/p>
&lt;div class="mermaid">graph TD
A["Result of the trial"] --> B["Protagoras wins"]
A --> C["Euathlus wins"]
B --> B1["Verdict: Euathlus must pay"]
B --> B2["Contract: Euathlus has not won -> Does not have to pay"]
C --> C1["Verdict: Euathlus does not have to pay"]
C --> C2["Contract: Euathlus's first win -> Must pay"]
B1 --> D{"Contradiction! Verdict vs Contract"}
B2 --> D
C1 --> E{"Contradiction! Verdict vs Contract"}
C2 --> E
style A fill:#ECEFF1,stroke:#333,stroke-width:2px
style B fill:#4CAF50,color:#fff
style C fill:#2196F3,color:#fff
style D fill:#F44336,color:#fff,stroke-width:3px
style E fill:#F44336,color:#fff,stroke-width:3px&lt;/div>
&lt;h2 id="why-does-it-contradict">Why Does It Contradict?
&lt;/h2>&lt;p>The root cause of this paradox is that &lt;strong>two different rule systems (law and contract) make contradictory judgments against each other&lt;/strong>.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Rule of Law&lt;/strong>: Obey the court&amp;rsquo;s verdict.&lt;/li>
&lt;li>&lt;strong>Rule of Contract&lt;/strong>: Obey the condition of &amp;ldquo;pay if you win your first court case.&amp;rdquo;&lt;/li>
&lt;/ul>
&lt;p>Normally, law and contract function as independent domains, but because Protagoras made the &amp;ldquo;payment of tuition&amp;rdquo; the issue of the trial, the result of this trial itself affected the condition of the contract, causing the two systems to fall into a self-referential loop.&lt;/p>
&lt;h2 id="answers-from-legal-scholars">Answers From Legal Scholars
&lt;/h2>&lt;p>The ancient Roman jurist Aulus Gellius proposed the following solution to this problem:&lt;/p>
&lt;p>&amp;ldquo;The court should rule in favor of Euathlus (no payment required) because it is a fact that the condition of the contract has not yet been met. However, after this verdict, Protagoras can sue Euathlus &lt;strong>again&lt;/strong>. Because Euathlus won the first trial, the condition of the contract has been fulfilled. In the second trial, Protagoras will win.&amp;rdquo;&lt;/p>
&lt;p>In other words, attempting to &amp;ldquo;solve the paradox simultaneously in a single trial&amp;rdquo; creates a contradiction, but handling it &amp;ldquo;in two stages&amp;rdquo; resolves it.&lt;/p>
&lt;h2 id="connection-to-self-referential-paradoxes">Connection to Self-Referential Paradoxes
&lt;/h2>&lt;p>The Paradox of the Court has the same &lt;strong>self-referential structure&lt;/strong> as the &amp;ldquo;Liar Paradox (&amp;lsquo;This sentence is false&amp;rsquo;)&amp;rdquo; and &amp;ldquo;Russell&amp;rsquo;s Paradox.&amp;rdquo; A proposition (the conclusion of the trial) affects the condition (the fulfillment of the contract) that determines its own truth or falsity.&lt;/p>
&lt;p>This kind of paradox is deeply related to problems that demonstrate the fundamental limits of logic and computation, such as the &amp;ldquo;Halting Problem (it is impossible to create a program that determines whether a given program will halt or not)&amp;rdquo; in modern computer science, and Gödel&amp;rsquo;s Incompleteness Theorems.&lt;/p>
&lt;p>The Paradox of the Court is a 2,400-year-old warning teaching us that systems of human-made rules (laws and contracts) can internally collapse through clever self-reference.&lt;/p></description></item><item><title>When Does a Heap of Sand Stop Being a Heap? The Sorites Paradox</title><link>http://kenji.blog/en/p/sorites-paradox/</link><pubDate>Thu, 10 Sep 2026 21:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/sorites-paradox/</guid><description>&lt;img src="http://kenji.blog/p/sorites-paradox/img/sorites_paradox.jpg" alt="Featured image of post When Does a Heap of Sand Stop Being a Heap? The Sorites Paradox" />&lt;p>Imagine a fine heap of sand made up of 10,000 grains right in front of you. Anyone would agree that this is a &amp;ldquo;heap.&amp;rdquo;
Now, let&amp;rsquo;s remove just one grain of sand. 9,999 grains. Still a heap, right?
Remove one more grain. 9,998 grains. Still a heap.&lt;/p>
&lt;p>Let&amp;rsquo;s keep repeating this process.
Removing a single grain shouldn&amp;rsquo;t turn a &amp;ldquo;heap&amp;rdquo; into &amp;ldquo;not a heap.&amp;rdquo; However, if you keep applying this logic over and over, you&amp;rsquo;ll eventually be left with just one grain of sand.&lt;/p>
&lt;p>&lt;strong>Is a single grain of sand a &amp;ldquo;heap&amp;rdquo;?&lt;/strong>&lt;/p>
&lt;p>Of course, no one would call a single grain of sand a &amp;ldquo;heap.&amp;rdquo; And yet, we never once rejected the premise that &amp;ldquo;removing one grain still leaves a heap.&amp;rdquo; The logic must break down somewhere, but &lt;strong>at exactly which grain did the heap stop being a heap?&lt;/strong>&lt;/p>
&lt;p>This is the &lt;strong>Sorites Paradox (also known as the Paradox of the Heap)&lt;/strong>, attributed to the ancient Greek philosopher Eubulides in the 4th century BCE.&lt;/p>
&lt;h2 id="logical-structure">Logical Structure
&lt;/h2>&lt;p>This paradox can be expressed in the form of a syllogism:&lt;/p>
&lt;p>&lt;strong>Premise 1&lt;/strong>: A collection of 10,000 grains of sand is a &amp;ldquo;heap.&amp;rdquo;
&lt;strong>Premise 2&lt;/strong>: A heap with one grain of sand removed is still a &amp;ldquo;heap.&amp;rdquo;
&lt;strong>Conclusion&lt;/strong>: Therefore, even a single grain of sand is a &amp;ldquo;heap.&amp;rdquo;&lt;/p>
&lt;p>Premise 1 and Premise 2 each sound perfectly reasonable on their own. However, repeatedly applying Premise 2 leads to an obviously false conclusion.&lt;/p>
&lt;div class="mermaid">graph LR
A["10,000 grains = Heap"] -->|Remove 1| B["9,999 grains = Heap"]
B -->|Remove 1| C["9,998 grains = Heap"]
C -->|...repeat...| D["100 grains = Heap?"]
D -->|Remove 1| E["10 grains = Heap?"]
E -->|Remove 1| F["1 grain = Heap?"]
style A fill:#4CAF50,color:#fff
style D fill:#FF9800,color:#fff
style E fill:#FF5722,color:#fff
style F fill:#F44336,color:#fff,stroke-width:3px&lt;/div>
&lt;h2 id="why-this-paradox-is-unsolvable">Why This Paradox Is Unsolvable
&lt;/h2>&lt;p>The crux of the Sorites Paradox is that &lt;strong>the word &amp;ldquo;heap&amp;rdquo; is inherently vague.&lt;/strong>
There is no clear definition (threshold) for how many grains constitute a &amp;ldquo;heap.&amp;rdquo; Such concepts are called &lt;strong>&amp;ldquo;vague predicates.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>Our everyday language is full of such vague terms:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&amp;ldquo;Tall&amp;rdquo;&lt;/strong> — how many centimeters qualifies as &amp;ldquo;tall&amp;rdquo;? A person who is 180 cm is &amp;ldquo;tall.&amp;rdquo; What if you shave off 1 mm? Another 1 mm?&lt;/li>
&lt;li>&lt;strong>&amp;ldquo;Rich&amp;rdquo;&lt;/strong> — how much wealth makes someone &amp;ldquo;rich&amp;rdquo;? 10 billion yen is &amp;ldquo;rich.&amp;rdquo; What if you lose 1 yen?&lt;/li>
&lt;li>&lt;strong>&amp;ldquo;Bald&amp;rdquo;&lt;/strong> — how few hairs qualifies as &amp;ldquo;bald&amp;rdquo;? Zero hairs is &amp;ldquo;bald.&amp;rdquo; What if one hair grows back?&lt;/li>
&lt;/ul>
&lt;p>All of these share exactly the same structure as the Sorites Paradox.&lt;/p>
&lt;h2 id="philosophical-approaches">Philosophical Approaches
&lt;/h2>&lt;h3 id="1-epistemicism-the-boundary-exists">1. Epistemicism (The Boundary Exists)
&lt;/h3>&lt;p>This approach claims that &amp;ldquo;a precise boundary between heap and non-heap actually exists, but humans simply lack the ability to perceive it.&amp;rdquo;
For example, there may be an exact boundary where &amp;ldquo;5,837 grains is a heap but 5,836 grains is not&amp;rdquo; — we just cannot know it.&lt;/p>
&lt;p>This is logically tidy, but most people feel intuitively uneasy with this position.&lt;/p>
&lt;h3 id="2-fuzzy-logic-graduated-truth-values">2. Fuzzy Logic (Graduated Truth Values)
&lt;/h3>&lt;p>Classical logic deals in a binary of &amp;ldquo;true or false,&amp;rdquo; but fuzzy logic allows values &lt;strong>anywhere between 0 and 1.&lt;/strong>&lt;/p>
&lt;p>For example:&lt;/p>
&lt;ul>
&lt;li>10,000 grains of sand → &amp;ldquo;Heap-ness = 1.0 (completely a heap)&amp;rdquo;&lt;/li>
&lt;li>5,000 grains → &amp;ldquo;Heap-ness = 0.7&amp;rdquo;&lt;/li>
&lt;li>100 grains → &amp;ldquo;Heap-ness = 0.1&amp;rdquo;&lt;/li>
&lt;li>1 grain → &amp;ldquo;Heap-ness = 0.0 (completely not a heap)&amp;rdquo;&lt;/li>
&lt;/ul>
&lt;p>This method is practical, but it does not fully resolve the paradox. It introduces a new kind of vagueness: &amp;ldquo;What is the difference between a heap-ness of 0.7 and 0.699?&amp;rdquo;&lt;/p>
&lt;h3 id="3-supervaluationism">3. Supervaluationism
&lt;/h3>&lt;p>This approach considers all conceivable reasonable boundaries for the word &amp;ldquo;heap&amp;rdquo; simultaneously. If something is judged a &amp;ldquo;heap&amp;rdquo; under every possible boundary, it is &amp;ldquo;definitely a heap.&amp;rdquo; If it is judged &amp;ldquo;not a heap&amp;rdquo; under every boundary, it is &amp;ldquo;definitely not a heap.&amp;rdquo; The area where opinions diverge is deemed &amp;ldquo;indeterminate.&amp;rdquo;&lt;/p>
&lt;h2 id="impact-on-modern-society">Impact on Modern Society
&lt;/h2>&lt;p>The Sorites Paradox is not merely a word game — it raises serious problems in the real world of law and policy.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Age of majority&lt;/strong>: At 17 years and 364 days, you are a &amp;ldquo;child&amp;rdquo;; at exactly 18 years and 0 days, you are an &amp;ldquo;adult.&amp;rdquo; What fundamentally changes in a single day?&lt;/li>
&lt;li>&lt;strong>Poverty line&lt;/strong>: If your income falls 1 yen below the threshold, you are &amp;ldquo;in poverty&amp;rdquo;; 1 yen above, and you are &amp;ldquo;not in poverty.&amp;rdquo;&lt;/li>
&lt;li>&lt;strong>Environmental regulations&lt;/strong>: If pollutant emissions exceed the standard by 0.001 mg, it&amp;rsquo;s illegal. Right at the standard, it&amp;rsquo;s legal.&lt;/li>
&lt;/ul>
&lt;p>Human language and thought are inherently imbued with vagueness, and attempting to carve the world into clear-cut binary categories may be fundamentally flawed. The Sorites Paradox is a paradox that has perplexed philosophers for over 2,400 years, revealing the fundamental limits of human intellect.&lt;/p></description></item><item><title>When Words Describe Themselves: The Grelling-Nelson Paradox</title><link>http://kenji.blog/en/p/grelling-nelson-paradox/</link><pubDate>Thu, 10 Sep 2026 21:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/grelling-nelson-paradox/</guid><description>&lt;img src="http://kenji.blog/p/grelling-nelson-paradox/img/grelling_nelson.jpg" alt="Featured image of post When Words Describe Themselves: The Grelling-Nelson Paradox" />&lt;p>Words are tools for describing the world, but when we try to describe the words themselves, logic can fall into unexpected pitfalls.&lt;/p>
&lt;p>Devised in 1908 by Kurt Grelling and Leonard Nelson, the &lt;strong>&amp;ldquo;Grelling-Nelson Paradox&amp;rdquo;&lt;/strong> is a famous semantic paradox that confronts the limits of &amp;ldquo;words defining words.&amp;rdquo;&lt;/p>
&lt;h2 id="classifying-words-into-two-categories">Classifying Words into Two Categories
&lt;/h2>&lt;p>Grelling and Nelson considered that all adjectives (words) could be classified into the following two groups:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Autological&lt;/strong>: A word that possesses the property it expresses.&lt;/li>
&lt;li>&lt;strong>Heterological&lt;/strong>: A word that does not possess the property it expresses.&lt;/li>
&lt;/ol>
&lt;h3 id="lets-look-at-some-examples">Let&amp;rsquo;s Look at Some Examples
&lt;/h3>&lt;p>&lt;strong>Examples of Autological Words:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&amp;ldquo;short&amp;rdquo;&lt;/strong>: The word itself is short.&lt;/li>
&lt;li>&lt;strong>&amp;ldquo;English&amp;rdquo;&lt;/strong>: The word itself is English.&lt;/li>
&lt;li>&lt;strong>&amp;ldquo;noun&amp;rdquo;&lt;/strong>: The word is a noun.&lt;/li>
&lt;li>&lt;strong>&amp;ldquo;pentasyllabic&amp;rdquo;&lt;/strong>: The word &amp;ldquo;pen-ta-syl-lab-ic&amp;rdquo; in English has five syllables.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Examples of Heterological Words:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&amp;ldquo;long&amp;rdquo;&lt;/strong>: The word itself is short, not long.&lt;/li>
&lt;li>&lt;strong>&amp;ldquo;German&amp;rdquo;&lt;/strong>: This word is English, not German.&lt;/li>
&lt;li>&lt;strong>&amp;ldquo;invisible&amp;rdquo;&lt;/strong>: This word is currently clearly visible on your screen or paper.&lt;/li>
&lt;/ul>
&lt;p>Up to this point, it looks like mere wordplay. Every word should theoretically fall into one of the two categories: either it embodies its meaning or it doesn&amp;rsquo;t.&lt;/p>
&lt;h2 id="the-fatal-question-the-emergence-of-the-paradox">The Fatal Question: The Emergence of the Paradox
&lt;/h2>&lt;p>Now, here begins the paradox. Consider the following single word:&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Is the word &amp;ldquo;heterological&amp;rdquo; itself autological or heterological?&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;p>Whatever answer we choose for this question, we face a contradiction.&lt;/p>
&lt;h3 id="case-1-assume-heterological-is-autological">Case 1: Assume &amp;ldquo;heterological&amp;rdquo; is &amp;ldquo;autological&amp;rdquo;
&lt;/h3>&lt;p>If the word &amp;ldquo;heterological&amp;rdquo; is &amp;ldquo;autological,&amp;rdquo; by definition, it &amp;ldquo;possesses the property it expresses.&amp;rdquo;
However, the meaning of this word is &amp;ldquo;heterological.&amp;rdquo;
In other words, having the property of being &amp;ldquo;heterological&amp;rdquo; means that it is &amp;ldquo;heterological.&amp;rdquo;
&lt;strong>We assumed it was autological, but the result turned out to be heterological.&lt;/strong> (Contradiction)&lt;/p>
&lt;h3 id="case-2-assume-heterological-is-heterological">Case 2: Assume &amp;ldquo;heterological&amp;rdquo; is &amp;ldquo;heterological&amp;rdquo;
&lt;/h3>&lt;p>If the word &amp;ldquo;heterological&amp;rdquo; is &amp;ldquo;heterological,&amp;rdquo; by definition, it &amp;ldquo;does not possess the property it expresses.&amp;rdquo;
Since the meaning of this word is &amp;ldquo;heterological,&amp;rdquo; not having that property means that it is &amp;ldquo;autological.&amp;rdquo;
&lt;strong>We assumed it was heterological, but the result turned out to be autological.&lt;/strong> (Contradiction)&lt;/p>
&lt;p>Whichever way it goes, logic collapses.&lt;/p>
&lt;div class="mermaid">graph TD
A["The word 'heterological'"] --> B{"How is it classified?"}
B -->|Autological| C["Definition: Possesses the property it expresses"]
C --> D["Its meaning is 'heterological'"]
D --> E["Result: It is heterological!"]
E -->|Contradiction| B
B -->|Heterological| F["Definition: Does not possess the property it expresses"]
F --> G["Its meaning is 'heterological'"]
G --> H["Result: It is autological!"]
H -->|Contradiction| B
style A fill:#4CAF50,stroke:#333,stroke-width:2px,color:#fff
style B fill:#FF9800,stroke:#333,stroke-width:2px,color:#fff
style E fill:#F44336,stroke:#333,stroke-width:2px,color:#fff
style H fill:#F44336,stroke:#333,stroke-width:2px,color:#fff&lt;/div>
&lt;h2 id="connection-to-math-and-logic-a-relative-of-russells-paradox">Connection to Math and Logic: A Relative of Russell&amp;rsquo;s Paradox
&lt;/h2>&lt;p>This paradox is not a simple miscalculation or illusion like the &amp;ldquo;Missing Dollar Riddle.&amp;rdquo; It shares essentially the same structure as &lt;strong>Russell&amp;rsquo;s Paradox&lt;/strong> (&amp;ldquo;Does the set of all sets that do not contain themselves contain itself?&amp;rdquo;), which shook the foundations of mathematics.&lt;/p>
&lt;p>The Grelling-Nelson Paradox can be considered the semantic (word meaning) version of Russell&amp;rsquo;s Paradox.&lt;/p>
&lt;p>Russell&amp;rsquo;s Paradox in set theory:
When defining a set
&lt;/p>
$$ R = \\{ x \mid x \notin x \\} $$
&lt;p>
asking whether $R \in R$ or $R \notin R$ leads to a contradiction.&lt;/p>
&lt;p>The Grelling-Nelson Paradox in semantics:
When defining $Het(x)$ as &amp;ldquo;the word $x$ does not possess the property $x$ (is heterological)&amp;rdquo;,
&lt;/p>
$$ Het(\text{"Het"}) \iff \neg Het(\text{"Het"}) $$
&lt;p>
leads to a logical contradiction.&lt;/p>
&lt;h2 id="why-is-this-paradox-important">Why is This Paradox Important?
&lt;/h2>&lt;p>When words refer to themselves (self-reference), there is always a latent danger of infinite loop-like errors occurring.&lt;/p>
&lt;p>This is not just a problem in philosophy or linguistics. In the fields of computer science and artificial intelligence, similar logical walls are encountered when programs attempt to evaluate or modify their own code, or when natural language processing models interpret semantic contradictions.&lt;/p>
&lt;p>The Grelling-Nelson Paradox is a thought experiment that beautifully visualizes the bugs (limitations) inherently contained within the system of &amp;ldquo;language.&amp;rdquo;&lt;/p></description></item><item><title>Berry Paradox: The Contradiction That Occurs When Trying to Define a "Number" Using "Words"</title><link>http://kenji.blog/en/p/berry-paradox/</link><pubDate>Thu, 10 Sep 2026 11:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/berry-paradox/</guid><description>&lt;img src="http://kenji.blog/p/berry-paradox/img/berry_paradox.jpg" alt="Featured image of post Berry Paradox: The Contradiction That Occurs When Trying to Define a "Number" Using "Words"" />&lt;h2 id="1-expressing-numbers-with-words">1. Expressing Numbers with Words
&lt;/h2>&lt;p>We routinely express numbers not only using &amp;ldquo;Arabic numerals (1, 2, 3&amp;hellip;)&amp;rdquo; but also using &amp;ldquo;words (Japanese, English, etc.)&amp;rdquo;.&lt;/p>
&lt;p>For example, the number &amp;ldquo;$10$&amp;rdquo; can be expressed in various words as follows:&lt;/p>
&lt;ul>
&lt;li>&amp;ldquo;じゅう&amp;rdquo; (jū: 3 characters)&lt;/li>
&lt;li>&amp;ldquo;ごの2ばい&amp;rdquo; (twice five: 5 characters)&lt;/li>
&lt;li>&amp;ldquo;ひゃくの10ぶんの1&amp;rdquo; (one tenth of a hundred: 9 characters)&lt;/li>
&lt;/ul>
&lt;p>In this way, let&amp;rsquo;s consider explaining a certain number using &amp;ldquo;Japanese characters&amp;rdquo;.
We will set a limit on the number of characters we can use. Here, let&amp;rsquo;s consider numbers that can be expressed in Japanese using &lt;strong>&amp;ldquo;19 characters or less&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>Naturally, there is a &lt;strong>limit&lt;/strong> to the numbers that can be expressed in 19 characters or less.
The number of Japanese character types (hiragana, katakana, kanji, etc.) is finite, and the number of combinations arranging them in 19 characters or less is also finite (it will be an astronomical number, but it is not infinite).&lt;/p>
&lt;p>In other words, there absolutely must exist &lt;strong>&amp;ldquo;huge integers that simply cannot be fully expressed in Japanese using 19 characters or less&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="2-birth-of-the-paradox">2. Birth of the Paradox
&lt;/h2>&lt;p>Now, here is the main point.
There are countless &amp;ldquo;integers that cannot be expressed in Japanese using 19 characters or less&amp;rdquo;.
Suppose we find the &lt;strong>&amp;ldquo;smallest one (the least integer)&amp;rdquo;&lt;/strong> among those countless unexpressible numbers.&lt;/p>
&lt;p>Let&amp;rsquo;s call that number $X$.
Since $X$ is by definition the smallest among the &amp;ldquo;numbers that cannot be expressed in Japanese using 19 characters or less&amp;rdquo;, we can refer to it as follows:&lt;/p>
&lt;p>&lt;strong>&amp;ldquo;じゅうきゅうもじいないであらわせないさいしょうのせいすう&amp;rdquo;&lt;/strong> (the smallest integer not expressible in nineteen characters or less)&lt;/p>
&lt;p>Let&amp;rsquo;s count the number of characters.
&amp;ldquo;じゅ・う・きゅ・う・も・じ・い・な・い・で・あ・ら・わ・せ・な・い・さ・い・しょ・う・の・せ・い・す・う&amp;rdquo;
&amp;hellip;Wait? Even without the punctuation, there are 25 characters.
This exceeds &amp;ldquo;19 characters&amp;rdquo;.&lt;/p>
&lt;p>So, let&amp;rsquo;s tweak the expression a bit and use kanji to make it shorter.&lt;/p>
&lt;p>&lt;strong>「十九文字以内で表せない最小の整数」&lt;/strong>&lt;/p>
&lt;p>Now, please count the number of characters in this Japanese phrase.&lt;/p>
&lt;ol>
&lt;li>十&lt;/li>
&lt;li>九&lt;/li>
&lt;li>文&lt;/li>
&lt;li>字&lt;/li>
&lt;li>以&lt;/li>
&lt;li>内&lt;/li>
&lt;li>で&lt;/li>
&lt;li>表&lt;/li>
&lt;li>せ&lt;/li>
&lt;li>な&lt;/li>
&lt;li>い&lt;/li>
&lt;li>最&lt;/li>
&lt;li>小&lt;/li>
&lt;li>の&lt;/li>
&lt;li>整&lt;/li>
&lt;li>数&lt;/li>
&lt;/ol>
&lt;p>Surprisingly, it is &lt;strong>only &amp;ldquo;16 characters&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>Something strange has happened.
We have just expressed the number $X$ using the &lt;strong>&amp;ldquo;16 Japanese characters&amp;rdquo;&lt;/strong> in the phrase &lt;strong>&amp;ldquo;十九文字以内で表せない最小の整数&amp;rdquo;&lt;/strong>!&lt;/p>
&lt;div class="mermaid">graph TD
Define["Definition:&lt;br>X = The smallest integer not expressible in 19 characters or less"] --> CheckLength{"What is the character count of&lt;br>『十九文字以内で表せない最小の整数』?"}
CheckLength -->|It is 16 characters| Contradiction["Contradiction!&lt;br>X was expressed in 『16 characters』!"]
Contradiction --> Paradox["X is supposed to be 『not expressible in 19 characters or less』&lt;br>but it is 『expressible in 19 characters or less (16 characters)』"]
style Contradiction fill:#ff9999,stroke:#333
style Paradox fill:#ff4444,color:#fff,stroke:#333,stroke-width:2px&lt;/div>
&lt;p>Even though $X$ is supposed to be a number that &amp;ldquo;cannot be expressed in 19 characters or less&amp;rdquo;, the very words defining it perfectly express $X$ in &amp;ldquo;16 characters (which is 19 characters or less)&amp;rdquo;.
This is the &lt;strong>&amp;ldquo;Berry Paradox&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="3-who-created-this-paradox">3. Who Created This Paradox?
&lt;/h2>&lt;p>This paradox was devised in 1904 by a person named &lt;strong>G. G. Berry&lt;/strong>, a librarian at Oxford University.
It spread worldwide after the genius mathematician and philosopher representing the 20th century, &lt;strong>Bertrand Russell&lt;/strong>, introduced it in his own paper.&lt;/p>
&lt;p>(*In the original English paper, the expression &amp;ldquo;The least integer not nameable in fewer than nineteen syllables&amp;rdquo; was used, and the paradox was constructed to work with the number of syllables in English.)&lt;/p>
&lt;hr>
&lt;h2 id="4-why-did-the-contradiction-occur">4. Why Did the Contradiction Occur?
&lt;/h2>&lt;p>The fundamental cause of this paradox lies in the &lt;strong>ambiguity&lt;/strong> and &lt;strong>self-reference&lt;/strong> of the &amp;ldquo;natural languages (such as Japanese or English)&amp;rdquo; that we usually use.&lt;/p>
&lt;h3 id="natural-language-cannot-withstand-the-rigor-of-mathematics">Natural Language Cannot Withstand the Rigor of Mathematics
&lt;/h3>&lt;p>In the world of mathematics, &amp;ldquo;defining a number&amp;rdquo; is a highly rigorous process (using equations and symbols).
However, in the Berry Paradox, an attempt was made to define a mathematical object (an integer) using the &lt;strong>everyday language&lt;/strong> of humans, such as &amp;ldquo;expressible&amp;rdquo; or &amp;ldquo;not expressible&amp;rdquo;.&lt;/p>
&lt;p>Everyday language is incredibly powerful and flexible, but due to that flexibility, it allows for acrobatic feats like &amp;ldquo;referring to its own character count&amp;rdquo;.
As a result, it caused a self-contradiction (a paradox of self-reference) where &amp;ldquo;the definition itself breaks the rules of the definition.&amp;rdquo;&lt;/p>
&lt;h3 id="what-does-it-mean-to-be-nameable">What Does It Mean to Be &amp;ldquo;Nameable&amp;rdquo;?
&lt;/h3>&lt;p>Furthermore, the definition of the phrase &amp;ldquo;expressible in 16 characters&amp;rdquo; is also ambiguous.
The phrase &amp;ldquo;the smallest integer not expressible in 19 characters or less&amp;rdquo; &lt;strong>does not directly point&lt;/strong> to a specific, concrete number (like $987654321...$, for example).
It &lt;strong>merely describes indirectly&lt;/strong> that &amp;ldquo;there must be a number satisfying the condition.&amp;rdquo;&lt;/p>
&lt;p>Mathematically, a clear distinction must be made between &amp;ldquo;expressing in a directly calculable form&amp;rdquo; and &amp;ldquo;stating indirect conditions in words.&amp;rdquo; The logical trick is hidden in the fact that these two are conflated to claim, &amp;ldquo;It could be expressed in 16 characters!&amp;rdquo;&lt;/p>
&lt;hr>
&lt;h2 id="5-summary-and-impact-on-the-modern-era">5. Summary and Impact on the Modern Era
&lt;/h2>&lt;p>At first glance, the Berry Paradox seems like a mere &amp;ldquo;wordplay&amp;rdquo; or &amp;ldquo;riddle&amp;rdquo;.
However, this problem served as a catalyst that made 20th-century mathematicians deeply recognize the &lt;strong>&amp;ldquo;danger of building the foundations of mathematics using everyday language&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;p>&amp;ldquo;We must not define numbers with words. Mathematics must be constructed entirely and exclusively with independent, rigorous symbols.&amp;rdquo;&lt;/p>
&lt;p>This paradox became an important milestone leading to cutting-edge studies that changed the history of mathematics, such as &amp;ldquo;Gödel&amp;rsquo;s incompleteness theorems&amp;rdquo; (there are truths in mathematics that can never be proven) and &amp;ldquo;Kolmogorov complexity&amp;rdquo; (the theory of how short information can be compressed) in computer science.&lt;/p>
&lt;p>Just 16 characters of Japanese exposed the limits of mathematics. That is the beauty of the Berry Paradox.&lt;/p></description></item><item><title>The Unexpected Hanging Paradox: The Day a Logically "Absolutely Impossible" Test Takes Place</title><link>http://kenji.blog/en/p/unexpected-hanging-paradox/</link><pubDate>Thu, 10 Sep 2026 10:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/unexpected-hanging-paradox/</guid><description>&lt;img src="http://kenji.blog/p/unexpected-hanging-paradox/img/unexpected_hanging.jpg" alt="Featured image of post The Unexpected Hanging Paradox: The Day a Logically "Absolutely Impossible" Test Takes Place" />&lt;h2 id="1-the-teachers-absolute-declaration">1. The Teacher&amp;rsquo;s &amp;ldquo;Absolute Declaration&amp;rdquo;
&lt;/h2>&lt;p>On the way home one Friday, a math teacher made a terrifying announcement to his students.&lt;/p>
&lt;p>&lt;strong>&amp;ldquo;Next week, on some day from Monday to Friday, I will give a &amp;lsquo;surprise test&amp;rsquo; exactly once.&lt;/strong>
&lt;strong>However, if you can definitely predict &amp;rsquo;the test is today&amp;rsquo; on the morning of that day, it won&amp;rsquo;t be a surprise, so the test will not be given on that day.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>Hearing this declaration, the students trembled. It meant they had to spend every day in fear, wondering when the test would be held.
However, Student A, the brightest in the class, suddenly smiled and stood up.&lt;/p>
&lt;p>&amp;ldquo;Everyone, you can rest easy. &lt;strong>It is absolutely impossible for a surprise test to be held next week. It&amp;rsquo;s logically impossible!&lt;/strong>&amp;rdquo;&lt;/p>
&lt;p>With full confidence, Student A began to write the following &amp;ldquo;perfect logic&amp;rdquo; on the blackboard.&lt;/p>
&lt;hr>
&lt;h2 id="2-student-as-proof-by-perfect-logic">2. Student A&amp;rsquo;s Proof by &amp;ldquo;Perfect Logic&amp;rdquo;
&lt;/h2>&lt;p>Student A&amp;rsquo;s proof uses a mathematical technique of &lt;strong>thinking backwards from &amp;ldquo;Friday&amp;rdquo; (backward reasoning)&lt;/strong>.&lt;/p>
&lt;h3 id="step-1-eliminate-the-possibility-of-friday">Step 1: Eliminate the Possibility of Friday
&lt;/h3>&lt;blockquote>
&lt;p>Suppose the test was not given for the four days of Monday, Tuesday, Wednesday, and Thursday.
Then, the only day left is &amp;ldquo;Friday.&amp;rdquo;
On the morning of Friday, the students would be able to &lt;strong>definitely predict&lt;/strong>, &amp;ldquo;Today is the only day left, so the test is definitely today!&amp;rdquo;
According to the teacher&amp;rsquo;s declaration, &amp;ldquo;It will not be given on a day it can be predicted,&amp;rdquo; so it is logically impossible to give a surprise test on Friday.
&lt;strong>Therefore, there will absolutely be no test on Friday.&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;h3 id="step-2-eliminate-the-possibility-of-thursday">Step 2: Eliminate the Possibility of Thursday
&lt;/h3>&lt;blockquote>
&lt;p>It is confirmed that there is no test on Friday.
This means that the last possible day the test can be given is &amp;ldquo;Thursday.&amp;rdquo;
Suppose the test was not given for the three days of Monday, Tuesday, and Wednesday.
Then, the only remaining possibility is Thursday (Friday has already been eliminated).
On the morning of Thursday, the students would be able to definitely predict, &amp;ldquo;The test is today!&amp;rdquo;
&lt;strong>Therefore, there will absolutely be no test on Thursday either.&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;h3 id="step-3-all-days-of-the-week-disappear">Step 3: All Days of the Week Disappear
&lt;/h3>&lt;blockquote>
&lt;p>We just need to repeat the same logic.
If there&amp;rsquo;s no Thursday, the last day becomes Wednesday. Thus, if there is no test until Tuesday, it could be predicted on Wednesday morning, so Wednesday also disappears.
If Wednesday disappears, Tuesday disappears, and Monday disappears too.
&lt;strong>Conclusion: As long as the teacher&amp;rsquo;s rules are followed, it is absolutely impossible to give a surprise test on any day from Monday to Friday!&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;div class="mermaid">graph TD
Fri["Friday morning&lt;br>(No test Mon-Thu)"] -->|"Predictable as 'Only Friday left'"| NoFri["Test impossible on Friday"]
Thu["Thursday morning&lt;br>(No test Mon-Wed)"] -->|"Predictable as 'Not Friday so it must be today'"| NoThu["Test impossible on Thursday"]
Wed["Wednesday morning"] -->|"Predictable as 'Not Thu/Fri so it must be today'"| NoWed["Test impossible on Wednesday"]
Tue["Tuesday morning"] -->|"Predictable similarly"| NoTue["Test impossible on Tuesday"]
Mon["Monday morning"] -->|"Predictable similarly"| NoMon["Test impossible on Monday"]
NoFri -.-> Thu
NoThu -.-> Wed
NoWed -.-> Tue
NoTue -.-> Mon
style NoFri fill:#ff9999,stroke:#333
style NoThu fill:#ff9999,stroke:#333
style NoWed fill:#ff9999,stroke:#333
style NoTue fill:#ff9999,stroke:#333
style NoMon fill:#ff9999,stroke:#333&lt;/div>
&lt;p>The students in the class rejoiced. Student A&amp;rsquo;s logic seemed perfect, with no loopholes anywhere.
They spent the weekend playing around and having fun, and welcomed Monday without studying for the test at all.&lt;/p>
&lt;p>Monday&amp;hellip; There was no test. &amp;ldquo;See!&amp;rdquo;
Tuesday&amp;hellip; There was no test. &amp;ldquo;Just like Student A said!&amp;rdquo;&lt;/p>
&lt;p>And then, on &lt;strong>Wednesday morning&lt;/strong>.
&lt;em>Clatter!&lt;/em> The classroom door opened, the teacher came in, and said:&lt;/p>
&lt;p>&lt;strong>&amp;ldquo;Alright, clear your desks. We&amp;rsquo;re going to start the surprise test now!&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>The students fell into a panic.
&amp;ldquo;W-Why!? We &lt;strong>completely didn&amp;rsquo;t predict&lt;/strong> that there would be a test on Wednesday!&amp;rdquo;&lt;/p>
&lt;p>The teacher smiled smugly.
&lt;strong>&amp;ldquo;See, you couldn&amp;rsquo;t predict it, could you? My &amp;lsquo;declaration&amp;rsquo; was completely correct, and the surprise test was established according to the rules.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;hr>
&lt;h2 id="3-where-did-the-logic-go-wrong">3. Where Did the Logic Go Wrong?
&lt;/h2>&lt;p>Even though Student A&amp;rsquo;s proof looked perfect, why did a &amp;ldquo;perfect surprise test&amp;rdquo; actually take place in reality?
This problem is originally called the &amp;ldquo;Unexpected Hanging Paradox,&amp;rdquo; and ever since it was devised by the Swedish mathematician Lennart Ekbom in the 1940s, it has continued to trouble philosophers and logicians.&lt;/p>
&lt;p>Actually, there is still no unified view that &amp;ldquo;this is the one absolute correct answer&amp;rdquo; to this paradox. However, there are some leading approaches to resolving it.&lt;/p>
&lt;h3 id="approach-1-paradox-of-knowledge-epistemology">Approach 1: &amp;ldquo;Paradox of Knowledge (Epistemology)&amp;rdquo;
&lt;/h3>&lt;p>The biggest pitfall in Student A&amp;rsquo;s reasoning was that &lt;strong>he incorporated the premise that &amp;ldquo;the teacher&amp;rsquo;s declaration is 100% true&amp;rdquo; into his own prediction&lt;/strong>.&lt;/p>
&lt;p>The teacher&amp;rsquo;s declaration consists of two conditions: &amp;ldquo;Give a test next week (P)&amp;rdquo; and &amp;ldquo;Do not give it on a day it can be predicted (Q).&amp;rdquo;
If there has been no test up to Friday, the student thinks, &amp;ldquo;If the declaration is correct, it must be today,&amp;rdquo; but at the same time, room for doubt is born: &amp;ldquo;If I can predict it&amp;rsquo;s today, it violates Q of the declaration. In that case, wasn&amp;rsquo;t the declaration P (give a test) itself a lie in the first place?&amp;rdquo;&lt;/p>
&lt;p>As a result of the collision between the belief that &amp;ldquo;the teacher&amp;rsquo;s words are absolutely correct&amp;rdquo; and &amp;ldquo;logical reasoning,&amp;rdquo; the students held the false conclusion (belief) that &amp;ldquo;the teacher will not give the test,&amp;rdquo; and as a result, no matter when the test was given, they ended up in an &amp;ldquo;unexpected (surprise)&amp;rdquo; state.&lt;/p>
&lt;h3 id="approach-2-paradox-of-self-reference">Approach 2: &amp;ldquo;Paradox of Self-Reference&amp;rdquo;
&lt;/h3>&lt;p>Let&amp;rsquo;s convert the teacher&amp;rsquo;s words into a logical formula.
Let the teacher&amp;rsquo;s claim be $S$.
$S =$ &amp;ldquo;I will give a test on a certain day $T$. And, you will not be able to predict that day $T$.&amp;rdquo;&lt;/p>
&lt;p>This claim has a &lt;strong>&amp;ldquo;self-referential structure&amp;rdquo;&lt;/strong> where its truth or falsehood changes depending on how the students receive it itself (the declaration). Just like the &amp;ldquo;Liar Paradox (&amp;lsquo;This sentence is a lie&amp;rsquo;)&amp;rdquo;, it has the property of causing logical reasoning to loop infinitely.&lt;/p>
&lt;hr>
&lt;h2 id="4-surprise-tests-lurking-in-daily-life">4. &amp;ldquo;Surprise Tests&amp;rdquo; Lurking in Daily Life
&lt;/h2>&lt;p>This paradox is applied not only to mathematics but also to our everyday lives.&lt;/p>
&lt;p>&lt;strong>[The Dilemma of the Surprise Party]&lt;/strong>&lt;/p>
&lt;blockquote>
&lt;p>Suppose a friend declares, &amp;ldquo;I&amp;rsquo;m going to throw a surprise party for your birthday this month!&amp;rdquo;
Hearing this, you guess every day, &amp;ldquo;Is it today? Is it tomorrow?&amp;rdquo;
If there is no party even by the last day of the month, you end up reasoning that in order to satisfy the condition of a &amp;ldquo;surprise (unpredictable)&amp;rdquo;, it absolutely cannot be done on the last day&amp;hellip;
However, in reality, if a cake suddenly appears around the middle of the month, you receive a perfect surprise, thinking, &amp;ldquo;I was really surprised!&amp;rdquo;&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;h2 id="5-conclusion">5. Conclusion
&lt;/h2>&lt;p>&amp;ldquo;The Unexpected Hanging Paradox&amp;rdquo; brilliantly expresses &lt;strong>the difficulty of including the human state of &amp;lsquo;knowing (predicting)&amp;rsquo; itself into logical calculations&lt;/strong>.&lt;/p>
&lt;p>What we think of as &amp;ldquo;perfect reasoning&amp;rdquo; might actually be nothing more than a castle built on sand, resting on the baseless belief that &amp;ldquo;the other party will absolutely follow the rules.&amp;rdquo;
Next time a teacher says, &amp;ldquo;I&amp;rsquo;m giving a surprise test,&amp;rdquo; it seems the most rational thing to do is to stop twisting logic and just quietly study every day.&lt;/p></description></item><item><title>Russell's Paradox: Does the "set of all sets that do not contain themselves" contain itself?</title><link>http://kenji.blog/en/p/russells-paradox/</link><pubDate>Thu, 10 Sep 2026 04:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/russells-paradox/</guid><description>&lt;img src="http://kenji.blog/p/russells-paradox/img/russells_paradox.jpg" alt="Featured image of post Russell's Paradox: Does the "set of all sets that do not contain themselves" contain itself?" />&lt;h2 id="1-the-barber-paradox-that-struck-a-peaceful-village">1. The &amp;ldquo;Barber Paradox&amp;rdquo; That Struck a Peaceful Village
&lt;/h2>&lt;p>In a certain peaceful village, there was a single barber.
At the entrance of the village stood a strange sign with the following rule:&lt;/p>
&lt;p>&lt;strong>&amp;ldquo;The barber of this village shaves all and only those villagers who do not shave themselves.&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>The villagers were satisfied with this rule. Those who couldn&amp;rsquo;t shave themselves just had to go to the barber, and those who could shave themselves would just do it at home.&lt;/p>
&lt;p>However, one day, the young barber looked in the mirror and was suddenly startled. He had stubble growing on his chin.
&amp;ldquo;Now then, should I shave my own beard?&amp;rdquo;&lt;/p>
&lt;p>He decided to think logically according to the rule on the sign.&lt;/p>
&lt;ol>
&lt;li>&lt;strong>What if he decides to &amp;ldquo;shave himself&amp;rdquo;?&lt;/strong>
According to the rule, the barber must only shave those who &amp;ldquo;do not shave themselves.&amp;rdquo; Therefore, if he shaves himself, he is not eligible to be shaved by the barber (himself). In other words, &amp;ldquo;he must not shave himself.&amp;rdquo;&lt;/li>
&lt;li>&lt;strong>What if he decides &amp;ldquo;not to shave himself&amp;rdquo;?&lt;/strong>
According to the rule, the barber must shave everyone who &amp;ldquo;does not shave themselves.&amp;rdquo; Therefore, if he doesn&amp;rsquo;t shave himself, he must be shaved by the barber (himself). In other words, &amp;ldquo;he must shave himself.&amp;rdquo;&lt;/li>
&lt;/ol>
&lt;p>&amp;ldquo;If he shaves himself, he must not shave himself.&amp;rdquo;
&amp;ldquo;If he does not shave himself, he must shave himself.&amp;rdquo;&lt;/p>
&lt;p>The barber completely panicked and became unable to take either action. This is the famous &lt;strong>&amp;ldquo;Barber Paradox&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;div class="mermaid">graph TD
Barber["Barber: Should he shave himself?"]
Barber -->|YES: Shaves himself| Cond1["Rule violation!&lt;br>(He must not shave the beard of someone who shaves himself)"]
Barber -->|NO: Does not shave himself| Cond2["Rule violation!&lt;br>(He must shave the beard of someone who does not shave himself)"]
Cond1 --> Paradox["Contradiction (Paradox)"]
Cond2 --> Paradox
style Paradox fill:#ff4444,color:#fff,stroke:#333,stroke-width:2px&lt;/div>
&lt;hr>
&lt;h2 id="2-russells-paradox-that-shook-the-mathematical-world">2. &amp;ldquo;Russell&amp;rsquo;s Paradox&amp;rdquo; That Shook the Mathematical World
&lt;/h2>&lt;p>This &amp;ldquo;Barber Paradox&amp;rdquo; is an allegory created by the British logician and philosopher Bertrand Russell to explain a mathematical paradox he discovered in a way that is easy for the general public to understand.&lt;/p>
&lt;p>What he actually discovered was not about a barber, but a terrifying contradiction regarding &lt;strong>&amp;ldquo;Sets&amp;rdquo;&lt;/strong>.
It is called &lt;strong>&amp;ldquo;Russell&amp;rsquo;s Paradox (1901)&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;h3 id="the-concept-of-a-set-of-sets">The Concept of a &amp;ldquo;Set of Sets&amp;rdquo;
&lt;/h3>&lt;p>In mathematics, a &amp;ldquo;set&amp;rdquo; is a collection of things that satisfy a certain condition.&lt;/p>
&lt;ul>
&lt;li>&amp;ldquo;The set of even numbers less than or equal to 10&amp;rdquo; = $\{2, 4, 6, 8, 10\}$&lt;/li>
&lt;li>&amp;ldquo;The set of red apples&amp;rdquo;&lt;/li>
&lt;/ul>
&lt;p>And, as the contents (elements) of a set, you can also put in another &amp;ldquo;set&amp;rdquo;.
For example, consider &amp;ldquo;the set of all books in the world&amp;rdquo;. Since this set itself is not a &amp;ldquo;book&amp;rdquo;, &amp;ldquo;the set of all books in the world&amp;rdquo; is not included within its own set.&lt;/p>
&lt;p>On the other hand, consider &amp;ldquo;the set of things that are not books&amp;rdquo;. This set itself is also not a &amp;ldquo;book&amp;rdquo;. Therefore, &amp;ldquo;the set of things that are not books&amp;rdquo; is included within its own set.&lt;/p>
&lt;p>In this way, sets in the world can be broadly divided into two types:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>A: Sets that do not contain themselves&lt;/strong> (e.g., the set of books)&lt;/li>
&lt;li>&lt;strong>B: Sets that contain themselves&lt;/strong> (e.g., the set of things that are not books)&lt;/li>
&lt;/ul>
&lt;h3 id="the-birth-of-the-demonic-set-r">The Birth of the Demonic Set $R$
&lt;/h3>&lt;p>Here, Russell considered the following special set $R$:&lt;/p>
&lt;p>&lt;strong>Set $R$ = The set of all &amp;ldquo;sets that do not contain themselves (Type A)&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>Written as a mathematical formula (intensional notation), it looks like this:
&lt;/p>
$$ R = \{ x \mid x \notin x \} $$
&lt;p>Now, here is the main point. Russell posed the following question regarding this set $R$:&lt;/p>
&lt;p>&lt;strong>&amp;ldquo;Does the set $R$ contain itself ($R$)?&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>Let&amp;rsquo;s think about it.&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>What if $R$ &amp;ldquo;contains itself ($R \in R$)&amp;rdquo;?&lt;/strong>
The condition to be included in $R$ is &amp;ldquo;not containing oneself&amp;rdquo;. Therefore, $R$ does not satisfy the condition, and cannot be included in $R$. (Leading to $R \notin R$, a contradiction)&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>What if $R$ &amp;ldquo;does not contain itself ($R \notin R$)&amp;rdquo;?&lt;/strong>
The condition to be included in $R$ is &amp;ldquo;not containing oneself&amp;rdquo;. Therefore, $R$ perfectly satisfies the condition, and must be included in $R$. (Leading to $R \in R$, a contradiction)&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>Written as a formula, it is a logical collapse in just one line:
&lt;/p>
$$ R \in R \iff R \notin R $$
&lt;p>&amp;ldquo;If it contains itself, it is not contained.&amp;rdquo; &amp;ldquo;If it is not contained, it contains itself.&amp;rdquo;
This has exactly the same structure as the Barber Paradox. However, while the village barber story can be laughed off with &amp;ldquo;the mayor who put up a sign with such rules is just stupid&amp;rdquo;, in the world of mathematics, it&amp;rsquo;s not that simple.&lt;/p>
&lt;p>This was because the mathematical community at the time was right in the middle of trying to rebuild all of mathematics based on the naive rule (Naive Set Theory) that &lt;strong>&amp;ldquo;as long as you clearly define the condition, you can freely create a &amp;lsquo;set&amp;rsquo; out of anything&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="3-freges-tragedy">3. Frege&amp;rsquo;s Tragedy
&lt;/h2>&lt;p>The person to whom Russell sent a letter detailing this was the great German logician Gottlob Frege.
Frege had just sent the second volume of his magnum opus, &lt;em>The Basic Laws of Arithmetic&lt;/em>, to the printing press, having dedicated his entire life to it. This book was a culmination of his attempt to prove the completeness of mathematics based on the rule that &amp;ldquo;a set can be created from any condition&amp;rdquo;.&lt;/p>
&lt;p>Upon reading Russell&amp;rsquo;s letter, Frege despaired. It proved that using the &amp;ldquo;most fundamental of foundations&amp;rdquo; rules in his book, an &amp;ldquo;absolutely contradictory set&amp;rdquo; like Russell&amp;rsquo;s Paradox could be created. If the foundation collapses, hundreds of pages of mathematical formulas built upon it all become invalid.&lt;/p>
&lt;p>At the very end of his book, right before publication, Frege left the following agonizing postscript:&lt;/p>
&lt;blockquote>
&lt;p>&amp;ldquo;Hardly anything more unfortunate can befall a scientific writer than to have one of the foundations of his edifice shaken after the work is finished. This was the position I was placed in by a letter of Mr. Bertrand Russell, just when the printing of this volume was nearing its completion.&amp;rdquo;&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;h2 id="4-overcoming-the-crisis-the-birth-of-axiomatic-set-theory">4. Overcoming the Crisis: The Birth of Axiomatic Set Theory
&lt;/h2>&lt;p>Russell&amp;rsquo;s Paradox triggered a massive panic in the mathematical community, known as the &amp;ldquo;foundational crisis of mathematics&amp;rdquo;.
The freewheeling rule that &amp;ldquo;as long as you decide the condition, you can freely create a set&amp;rdquo; had given birth to a monster called contradiction.&lt;/p>
&lt;p>To resolve this crisis, mathematicians set out to strictly enforce the rules.
Mathematicians such as Zermelo and Fraenkel established a &lt;strong>rulebook (axiomatic system) that strictly distinguishes between &amp;ldquo;sets that are allowed to be created&amp;rdquo; and &amp;ldquo;sets that must not be created (too large)&amp;rdquo;&lt;/strong>. This is called the &amp;ldquo;ZFC Axioms (Axiomatic Set Theory)&amp;rdquo;.&lt;/p>
&lt;p>Under the ZFC axioms, a &amp;ldquo;set $R$ that collects all &amp;lsquo;sets that do not contain themselves&amp;rsquo;&amp;rdquo; as conceived by Russell was banned from the world of mathematics, deemed &lt;strong>&amp;ldquo;too huge and dangerous, so it is no longer recognized as a &amp;lsquo;set&amp;rsquo; (it is merely a &amp;lsquo;class&amp;rsquo;)&amp;rdquo;&lt;/strong>.&lt;/p>
&lt;div class="mermaid">graph LR
subgraph "Naive Set Theory (Before Russell)"
Free["You can freely create a set&lt;br>with any condition!"] --> Monster["The Monster of Contradiction R&lt;br>(Russell's Paradox)"]
end
subgraph "Axiomatic Set Theory (Modern Mathematics)"
Strict["Only those that follow strict&lt;br>rules (axioms) are 'Sets'"] --> Safe["Contradiction R is not recognized&lt;br>as a 'Set', so it's safe!"]
end
Monster -.->|Crisis in the Mathematical World| Strict&lt;/div>
&lt;hr>
&lt;h2 id="5-conclusion-paradoxes-are-a-drastic-medicine-for-fixing-logic-bugs">5. Conclusion: Paradoxes are a &amp;ldquo;Drastic Medicine&amp;rdquo; for Fixing &amp;ldquo;Logic Bugs&amp;rdquo;
&lt;/h2>&lt;p>Russell&amp;rsquo;s Paradox is the ultimate logic bug caused by self-reference (referring to oneself), similar to &amp;ldquo;a snake eating its own tail (Ouroboros)&amp;rdquo; or &amp;ldquo;the liar who says &amp;lsquo;I am a liar&amp;rsquo;&amp;rdquo;.&lt;/p>
&lt;p>At first glance, paradoxes may seem like mere sophistry or wordplay, but they destroyed the very foundation of mathematics, the most rigorous of disciplines, and consequently forced it to evolve into something stronger and more rigorous.&lt;/p>
&lt;p>If the genius Russell had not noticed this &amp;ldquo;barber&amp;rsquo;s bug&amp;rdquo;, modern mathematics, and computer science which lies on the extension of that logic, might have developed while harboring a fatal contradiction somewhere.
A paradox is the most stimulating drastic medicine that teaches us the limits of human logic.&lt;/p></description></item></channel></rss>