<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Self-Reference on kenji.blog</title><link>http://kenji.blog/en/tags/self-reference/</link><description>Recent content in Self-Reference 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/tags/self-reference/index.xml" rel="self" type="application/rss+xml"/><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 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></channel></rss>