Metamath Proof Explorer


Theorem vdw

Description: Van der Waerden's theorem. For any finite coloring R and integer K , there is an N such that every coloring function from 1 ... N to R contains a monochromatic arithmetic progression (which written out in full means that there is a color c and base, increment values a , d such that all the numbers a , a + d , ... , a + ( k - 1 ) d lie in the preimage of { c } , i.e. they are all in 1 ... N and f evaluated at each one yields c ). (Contributed by Mario Carneiro, 13-Sep-2014)

Ref Expression
Assertion vdw RFinK0nfR1ncRadm0K1a+mdf-1c

Proof

Step Hyp Ref Expression
1 simpl RFinK0RFin
2 simpr RFinK0K0
3 1 2 vdwlem13 RFinK0nfR1nKMonoAPf
4 ovex 1nV
5 simpllr RFinK0nfR1nK0
6 simpll RFinK0nRFin
7 elmapg RFin1nVfR1nf:1nR
8 6 4 7 sylancl RFinK0nfR1nf:1nR
9 8 biimpa RFinK0nfR1nf:1nR
10 simplr RFinK0nfR1nn
11 nnuz =1
12 10 11 eleqtrdi RFinK0nfR1nn1
13 eluzfz1 n111n
14 12 13 syl RFinK0nfR1n11n
15 4 5 9 14 vdwmc2 RFinK0nfR1nKMonoAPfcRadm0K1a+mdf-1c
16 15 ralbidva RFinK0nfR1nKMonoAPffR1ncRadm0K1a+mdf-1c
17 16 rexbidva RFinK0nfR1nKMonoAPfnfR1ncRadm0K1a+mdf-1c
18 3 17 mpbid RFinK0nfR1ncRadm0K1a+mdf-1c