5 #31 Ramsey's theorem forget
From 11.book.
Ramsey's theorem: a complete graph with edges colored in 2 colors has a set of vertices of a specified size joined only by red edges or only by blue edges. Proved by induction.
5.1 Order lemmas
Order lemmas for natural numbers (from
\(\),
\(\),
\(\), etc.).
5.2 Notation for finite sequences and colorings, base case
We take as an axiom of this section that there is a sequence obtained by changing the value at just one point of a sequence (UPD).
A finite sequence of length \(P\) is represented by a pair \(\langle x,P\rangle\). \(x \upuparrows P\): increasing sequence. \(\langle x,P\rangle \sqsubseteq \langle v,L\rangle\): every value of \(x\) is a value of \(v\). \(c \models_0 \langle x,P\rangle\): under the coloring \(c\), every two points of \(x\) are red (value 0). \(\models_1\) is blue (value \(\ne 0\)).
UPD …
\(\exists h \, ( h ( k ) = v , \forall i \in \mathbb{M} . ( i \neq k \Longrightarrow h ( i ) = g ( i ) ) )\) word(ss,p) …
\(\upuparrows\) \(\sqsubseteq\) \(\models_0\) \(\models_1\)⇈. …
\(x \upuparrows P \Longleftrightarrow \forall i \in \mathbb{M} . ( i < P \Longrightarrow x ( i ) \in \mathbb{M} ) , \forall i \in \mathbb{M} . \forall j \in \mathbb{M} . ( i < j < P \Longrightarrow x ( i ) < x ( j ) )\) ⊑. …
\(\langle x , P \rangle \sqsubseteq \langle v , L \rangle \Longleftrightarrow \forall i \in \mathbb{M} . ( i < P \Longrightarrow \exists j \in \mathbb{M} . j < L , x ( i ) = v ( j ) )\) ⊨₀. …
\(c \models_0 \langle x , P \rangle \Longleftrightarrow \forall i \in \mathbb{M} . \forall j \in \mathbb{M} . ( i < j < P \Longrightarrow ( c ( x ( i ) ) ) ( x ( j ) ) = 0 )\) ⊨₁. …
\(c \models_1 \langle x , P \rangle \Longleftrightarrow \forall i \in \mathbb{M} . \forall j \in \mathbb{M} . ( i < j < P \Longrightarrow ( c ( x ( i ) ) ) ( x ( j ) ) \neq 0 )\) The case \(P = 0\): the sequence of length 0 is a red complete subset (base case).
R0Q …
\(Q \in \mathbb{M} \Longrightarrow \forall c \, \forall v \, \forall L \in \mathbb{M} . ( v \upuparrows L , 0 \le L \Longrightarrow \exists x \, ( ( x \upuparrows 0 , \langle x , 0 \rangle \sqsubseteq \langle v , L \rangle , c \models_0 \langle x , 0 \rangle ) \mathbin{\rm o\!r} ( x \upuparrows Q , \langle x , Q \rangle \sqsubseteq \langle v , L \rangle , c \models_1 \langle x , Q \rangle ) ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,↑0X ,⋅0XThe case \(Q = 0\) is similar (base case).
RP0 …
\(P \in \mathbb{M} \Longrightarrow \forall c \, \forall v \, \forall L \in \mathbb{M} . ( v \upuparrows L , 0 \le L \Longrightarrow \exists x \, ( ( x \upuparrows P , \langle x , P \rangle \sqsubseteq \langle v , L \rangle , c \models_0 \langle x , P \rangle ) \mathbin{\rm o\!r} ( x \upuparrows 0 , \langle x , 0 \rangle \sqsubseteq \langle v , L \rangle , c \models_1 \langle x , 0 \rangle ) ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,↑0X ,⋅0XIf \(n + m \le a + b\), then \(n \le a\) or \(m \le b\).
Lsplit …
\(a , b , n , m \in \mathbb{M} , n + m \le a + b \Longrightarrow n \le a \mathbin{\rm o\!r} m \le b\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,↑0X ,⋅0X5.3 Counting
Distribute the vertices before the last vertex \(v(m)\) into the sequence of those joined to \(v(m)\) by red, \(r\), and the sequence of those joined by blue, \(u\) (ENUM).
ENUM …
\(m , M \in \mathbb{M} , v \upuparrows ( m + 1 ) , M \le m \Longrightarrow \exists a \in \mathbb{M} . \exists b \in \mathbb{M} . a + b = M , \exists r \, ( r \upuparrows a , \langle r , a \rangle \sqsubseteq \langle v , M \rangle , \forall i \in \mathbb{M} . ( i < a \Longrightarrow ( c ( r ( i ) ) ) ( v ( m ) ) = 0 ) ) , \exists u \, ( u \upuparrows b , \langle u , b \rangle \sqsubseteq \langle v , M \rangle , \forall i \in \mathbb{M} . ( i < b \Longrightarrow ( c ( u ( i ) ) ) ( v ( m ) ) \neq 0 ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,↑0X ,UPD ,⋅0X5.4 Adding
Adding \(v(m)\) to a red complete subset within the red neighbors gives a red complete subset one larger in \(v\) (APPR). Blue is the same (APPB).
5.5 One step of induction
If there are at least \(n\) red neighbors, apply the case \((P, Q+1)\) there; if it gives a red complete subset, add \(v(m)\). If there are at least \(k\) blue neighbors, similarly. Since \(n + k \le m\), one of them happens (Lsplit).
STEP …
\(P , Q , n , k , m \in \mathbb{M} , \forall c \, \forall v \, \forall L \in \mathbb{M} . ( v \upuparrows L , n \le L \Longrightarrow \exists x \, ( ( x \upuparrows P , \langle x , P \rangle \sqsubseteq \langle v , L \rangle , c \models_0 \langle x , P \rangle ) \mathbin{\rm o\!r} ( x \upuparrows ( Q + 1 ) , \langle x , ( Q + 1 ) \rangle \sqsubseteq \langle v , L \rangle , c \models_1 \langle x , ( Q + 1 ) \rangle ) ) ) , \forall c \, \forall v \, \forall L \in \mathbb{M} . ( v \upuparrows L , k \le L \Longrightarrow \exists x \, ( ( x \upuparrows ( P + 1 ) , \langle x , ( P + 1 ) \rangle \sqsubseteq \langle v , L \rangle , c \models_0 \langle x , ( P + 1 ) \rangle ) \mathbin{\rm o\!r} ( x \upuparrows Q , \langle x , Q \rangle \sqsubseteq \langle v , L \rangle , c \models_1 \langle x , Q \rangle ) ) ) , v \upuparrows ( m + 1 ) , ( ( n + k ) + 1 ) \le ( m + 1 ) \Longrightarrow \exists x \, ( ( x \upuparrows ( P + 1 ) , \langle x , ( P + 1 ) \rangle \sqsubseteq \langle v , ( m + 1 ) \rangle , c \models_0 \langle x , ( P + 1 ) \rangle ) \mathbin{\rm o\!r} ( x \upuparrows ( Q + 1 ) , \langle x , ( Q + 1 ) \rangle \sqsubseteq \langle v , ( m + 1 ) \rangle , c \models_1 \langle x , ( Q + 1 ) \rangle ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,↑0X ,UPD ,⋅0X5.6 Ramsey's theorem
For any \(P, Q\), for every increasing sequence of length at least \(N\), \(v\), and every coloring \(c\), \(v\) contains a red complete subset of size \(P\) or a blue complete subset of size \(Q\); there is such an \(N\). By double induction on \(P\) and \(Q\), take \(N\) to be \((n + k) + 1\) (STEP).
Ramsey …
\(P , Q \in \mathbb{M} \Longrightarrow \exists N \in \mathbb{M} . \forall c \, \forall v \, \forall L \in \mathbb{M} . ( v \upuparrows L , N \le L \Longrightarrow \exists x \, ( ( x \upuparrows P , \langle x , P \rangle \sqsubseteq \langle v , L \rangle , c \models_0 \langle x , P \rangle ) \mathbin{\rm o\!r} ( x \upuparrows Q , \langle x , Q \rangle \sqsubseteq \langle v , L \rangle , c \models_1 \langle x , Q \rangle ) ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,↑0X ,UPD ,⋅0X