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