MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  rami Structured version   Visualization version   GIF version

Theorem rami 15926
Description: The defining property of a Ramsey number. (Contributed by Mario Carneiro, 22-Apr-2015.)
Hypotheses
Ref Expression
rami.c 𝐶 = (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})
rami.m (𝜑𝑀 ∈ ℕ0)
rami.r (𝜑𝑅𝑉)
rami.f (𝜑𝐹:𝑅⟶ℕ0)
rami.x (𝜑 → (𝑀 Ramsey 𝐹) ∈ ℕ0)
rami.s (𝜑𝑆𝑊)
rami.l (𝜑 → (𝑀 Ramsey 𝐹) ≤ (♯‘𝑆))
rami.g (𝜑𝐺:(𝑆𝐶𝑀)⟶𝑅)
Assertion
Ref Expression
rami (𝜑 → ∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝐺 “ {𝑐})))
Distinct variable groups:   𝑥,𝑐,𝐶   𝐺,𝑐,𝑥   𝜑,𝑐,𝑥   𝑆,𝑐,𝑥   𝐹,𝑐,𝑥   𝑎,𝑏,𝑐,𝑖,𝑥,𝑀   𝑅,𝑐,𝑥   𝑉,𝑐,𝑥
Allowed substitution hints:   𝜑(𝑖,𝑎,𝑏)   𝐶(𝑖,𝑎,𝑏)   𝑅(𝑖,𝑎,𝑏)   𝑆(𝑖,𝑎,𝑏)   𝐹(𝑖,𝑎,𝑏)   𝐺(𝑖,𝑎,𝑏)   𝑉(𝑖,𝑎,𝑏)   𝑊(𝑥,𝑖,𝑎,𝑏,𝑐)

Proof of Theorem rami
Dummy variables 𝑓 𝑛 𝑠 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 cnveq 5434 . . . . . 6 (𝑓 = 𝐺𝑓 = 𝐺)
21imaeq1d 5606 . . . . 5 (𝑓 = 𝐺 → (𝑓 “ {𝑐}) = (𝐺 “ {𝑐}))
32sseq2d 3782 . . . 4 (𝑓 = 𝐺 → ((𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}) ↔ (𝑥𝐶𝑀) ⊆ (𝐺 “ {𝑐})))
43anbi2d 614 . . 3 (𝑓 = 𝐺 → (((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})) ↔ ((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝐺 “ {𝑐}))))
542rexbidv 3205 . 2 (𝑓 = 𝐺 → (∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})) ↔ ∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝐺 “ {𝑐}))))
6 rami.s . . 3 (𝜑𝑆𝑊)
7 rami.x . . . . 5 (𝜑 → (𝑀 Ramsey 𝐹) ∈ ℕ0)
8 rami.m . . . . . 6 (𝜑𝑀 ∈ ℕ0)
9 rami.r . . . . . 6 (𝜑𝑅𝑉)
10 rami.f . . . . . 6 (𝜑𝐹:𝑅⟶ℕ0)
11 rami.c . . . . . . . 8 𝐶 = (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})
12 eqid 2771 . . . . . . . 8 {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))} = {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))}
1311, 12ramtcl2 15922 . . . . . . 7 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → ((𝑀 Ramsey 𝐹) ∈ ℕ0 ↔ {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))} ≠ ∅))
1411, 12ramtcl 15921 . . . . . . 7 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → ((𝑀 Ramsey 𝐹) ∈ {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))} ↔ {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))} ≠ ∅))
1513, 14bitr4d 271 . . . . . 6 ((𝑀 ∈ ℕ0𝑅𝑉𝐹:𝑅⟶ℕ0) → ((𝑀 Ramsey 𝐹) ∈ ℕ0 ↔ (𝑀 Ramsey 𝐹) ∈ {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))}))
168, 9, 10, 15syl3anc 1476 . . . . 5 (𝜑 → ((𝑀 Ramsey 𝐹) ∈ ℕ0 ↔ (𝑀 Ramsey 𝐹) ∈ {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))}))
177, 16mpbid 222 . . . 4 (𝜑 → (𝑀 Ramsey 𝐹) ∈ {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))})
18 breq1 4789 . . . . . . . 8 (𝑛 = (𝑀 Ramsey 𝐹) → (𝑛 ≤ (♯‘𝑠) ↔ (𝑀 Ramsey 𝐹) ≤ (♯‘𝑠)))
1918imbi1d 330 . . . . . . 7 (𝑛 = (𝑀 Ramsey 𝐹) → ((𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))) ↔ ((𝑀 Ramsey 𝐹) ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
2019albidv 2001 . . . . . 6 (𝑛 = (𝑀 Ramsey 𝐹) → (∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))) ↔ ∀𝑠((𝑀 Ramsey 𝐹) ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
2120elrab 3515 . . . . 5 ((𝑀 Ramsey 𝐹) ∈ {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))} ↔ ((𝑀 Ramsey 𝐹) ∈ ℕ0 ∧ ∀𝑠((𝑀 Ramsey 𝐹) ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
2221simprbi 484 . . . 4 ((𝑀 Ramsey 𝐹) ∈ {𝑛 ∈ ℕ0 ∣ ∀𝑠(𝑛 ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))} → ∀𝑠((𝑀 Ramsey 𝐹) ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
2317, 22syl 17 . . 3 (𝜑 → ∀𝑠((𝑀 Ramsey 𝐹) ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
24 rami.l . . 3 (𝜑 → (𝑀 Ramsey 𝐹) ≤ (♯‘𝑆))
25 fveq2 6332 . . . . . 6 (𝑠 = 𝑆 → (♯‘𝑠) = (♯‘𝑆))
2625breq2d 4798 . . . . 5 (𝑠 = 𝑆 → ((𝑀 Ramsey 𝐹) ≤ (♯‘𝑠) ↔ (𝑀 Ramsey 𝐹) ≤ (♯‘𝑆)))
27 oveq1 6800 . . . . . . 7 (𝑠 = 𝑆 → (𝑠𝐶𝑀) = (𝑆𝐶𝑀))
2827oveq2d 6809 . . . . . 6 (𝑠 = 𝑆 → (𝑅𝑚 (𝑠𝐶𝑀)) = (𝑅𝑚 (𝑆𝐶𝑀)))
29 pweq 4300 . . . . . . . 8 (𝑠 = 𝑆 → 𝒫 𝑠 = 𝒫 𝑆)
3029rexeqdv 3294 . . . . . . 7 (𝑠 = 𝑆 → (∃𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})) ↔ ∃𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
3130rexbidv 3200 . . . . . 6 (𝑠 = 𝑆 → (∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})) ↔ ∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
3228, 31raleqbidv 3301 . . . . 5 (𝑠 = 𝑆 → (∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})) ↔ ∀𝑓 ∈ (𝑅𝑚 (𝑆𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))))
3326, 32imbi12d 333 . . . 4 (𝑠 = 𝑆 → (((𝑀 Ramsey 𝐹) ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))) ↔ ((𝑀 Ramsey 𝐹) ≤ (♯‘𝑆) → ∀𝑓 ∈ (𝑅𝑚 (𝑆𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
3433spcgv 3444 . . 3 (𝑆𝑊 → (∀𝑠((𝑀 Ramsey 𝐹) ≤ (♯‘𝑠) → ∀𝑓 ∈ (𝑅𝑚 (𝑠𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐}))) → ((𝑀 Ramsey 𝐹) ≤ (♯‘𝑆) → ∀𝑓 ∈ (𝑅𝑚 (𝑆𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))))
356, 23, 24, 34syl3c 66 . 2 (𝜑 → ∀𝑓 ∈ (𝑅𝑚 (𝑆𝐶𝑀))∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝑓 “ {𝑐})))
36 rami.g . . 3 (𝜑𝐺:(𝑆𝐶𝑀)⟶𝑅)
37 ovex 6823 . . . 4 (𝑆𝐶𝑀) ∈ V
38 elmapg 8022 . . . 4 ((𝑅𝑉 ∧ (𝑆𝐶𝑀) ∈ V) → (𝐺 ∈ (𝑅𝑚 (𝑆𝐶𝑀)) ↔ 𝐺:(𝑆𝐶𝑀)⟶𝑅))
399, 37, 38sylancl 574 . . 3 (𝜑 → (𝐺 ∈ (𝑅𝑚 (𝑆𝐶𝑀)) ↔ 𝐺:(𝑆𝐶𝑀)⟶𝑅))
4036, 39mpbird 247 . 2 (𝜑𝐺 ∈ (𝑅𝑚 (𝑆𝐶𝑀)))
415, 35, 40rspcdva 3466 1 (𝜑 → ∃𝑐𝑅𝑥 ∈ 𝒫 𝑆((𝐹𝑐) ≤ (♯‘𝑥) ∧ (𝑥𝐶𝑀) ⊆ (𝐺 “ {𝑐})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 382  w3a 1071  wal 1629   = wceq 1631  wcel 2145  wne 2943  wral 3061  wrex 3062  {crab 3065  Vcvv 3351  wss 3723  c0 4063  𝒫 cpw 4297  {csn 4316   class class class wbr 4786  ccnv 5248  cima 5252  wf 6027  cfv 6031  (class class class)co 6793  cmpt2 6795  𝑚 cmap 8009  cle 10277  0cn0 11494  chash 13321   Ramsey cram 15910
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-8 2147  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-rep 4904  ax-sep 4915  ax-nul 4923  ax-pow 4974  ax-pr 5034  ax-un 7096  ax-cnex 10194  ax-resscn 10195  ax-1cn 10196  ax-icn 10197  ax-addcl 10198  ax-addrcl 10199  ax-mulcl 10200  ax-mulrcl 10201  ax-mulcom 10202  ax-addass 10203  ax-mulass 10204  ax-distr 10205  ax-i2m1 10206  ax-1ne0 10207  ax-1rid 10208  ax-rnegex 10209  ax-rrecex 10210  ax-cnre 10211  ax-pre-lttri 10212  ax-pre-lttrn 10213  ax-pre-ltadd 10214  ax-pre-mulgt0 10215
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 837  df-3or 1072  df-3an 1073  df-tru 1634  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-nel 3047  df-ral 3066  df-rex 3067  df-reu 3068  df-rmo 3069  df-rab 3070  df-v 3353  df-sbc 3588  df-csb 3683  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-pss 3739  df-nul 4064  df-if 4226  df-pw 4299  df-sn 4317  df-pr 4319  df-tp 4321  df-op 4323  df-uni 4575  df-iun 4656  df-br 4787  df-opab 4847  df-mpt 4864  df-tr 4887  df-id 5157  df-eprel 5162  df-po 5170  df-so 5171  df-fr 5208  df-we 5210  df-xp 5255  df-rel 5256  df-cnv 5257  df-co 5258  df-dm 5259  df-rn 5260  df-res 5261  df-ima 5262  df-pred 5823  df-ord 5869  df-on 5870  df-lim 5871  df-suc 5872  df-iota 5994  df-fun 6033  df-fn 6034  df-f 6035  df-f1 6036  df-fo 6037  df-f1o 6038  df-fv 6039  df-riota 6754  df-ov 6796  df-oprab 6797  df-mpt2 6798  df-om 7213  df-1st 7315  df-2nd 7316  df-wrecs 7559  df-recs 7621  df-rdg 7659  df-er 7896  df-map 8011  df-en 8110  df-dom 8111  df-sdom 8112  df-sup 8504  df-inf 8505  df-pnf 10278  df-mnf 10279  df-xr 10280  df-ltxr 10281  df-le 10282  df-sub 10470  df-neg 10471  df-nn 11223  df-n0 11495  df-z 11580  df-uz 11889  df-ram 15912
This theorem is referenced by:  ramlb  15930  ramub1lem2  15938
  Copyright terms: Public domain W3C validator