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

Theorem vdwmc 16304
 Description: The predicate " The ⟨𝑅, 𝑁⟩-coloring 𝐹 contains a monochromatic AP of length 𝐾". (Contributed by Mario Carneiro, 18-Aug-2014.)
Hypotheses
Ref Expression
vdwmc.1 𝑋 ∈ V
vdwmc.2 (𝜑𝐾 ∈ ℕ0)
vdwmc.3 (𝜑𝐹:𝑋𝑅)
Assertion
Ref Expression
vdwmc (𝜑 → (𝐾 MonoAP 𝐹 ↔ ∃𝑐𝑎 ∈ ℕ ∃𝑑 ∈ ℕ (𝑎(AP‘𝐾)𝑑) ⊆ (𝐹 “ {𝑐})))
Distinct variable groups:   𝑎,𝑐,𝑑,𝐹   𝐾,𝑎,𝑐,𝑑   𝜑,𝑐
Allowed substitution hints:   𝜑(𝑎,𝑑)   𝑅(𝑎,𝑐,𝑑)   𝑋(𝑎,𝑐,𝑑)

Proof of Theorem vdwmc
Dummy variables 𝑓 𝑘 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 vdwmc.2 . . 3 (𝜑𝐾 ∈ ℕ0)
2 vdwmc.3 . . . 4 (𝜑𝐹:𝑋𝑅)
3 vdwmc.1 . . . 4 𝑋 ∈ V
4 fex 6966 . . . 4 ((𝐹:𝑋𝑅𝑋 ∈ V) → 𝐹 ∈ V)
52, 3, 4sylancl 589 . . 3 (𝜑𝐹 ∈ V)
6 fveq2 6645 . . . . . . . 8 (𝑘 = 𝐾 → (AP‘𝑘) = (AP‘𝐾))
76rneqd 5772 . . . . . . 7 (𝑘 = 𝐾 → ran (AP‘𝑘) = ran (AP‘𝐾))
8 cnveq 5708 . . . . . . . . 9 (𝑓 = 𝐹𝑓 = 𝐹)
98imaeq1d 5895 . . . . . . . 8 (𝑓 = 𝐹 → (𝑓 “ {𝑐}) = (𝐹 “ {𝑐}))
109pweqd 4516 . . . . . . 7 (𝑓 = 𝐹 → 𝒫 (𝑓 “ {𝑐}) = 𝒫 (𝐹 “ {𝑐}))
117, 10ineqan12d 4141 . . . . . 6 ((𝑘 = 𝐾𝑓 = 𝐹) → (ran (AP‘𝑘) ∩ 𝒫 (𝑓 “ {𝑐})) = (ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})))
1211neeq1d 3046 . . . . 5 ((𝑘 = 𝐾𝑓 = 𝐹) → ((ran (AP‘𝑘) ∩ 𝒫 (𝑓 “ {𝑐})) ≠ ∅ ↔ (ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ≠ ∅))
1312exbidv 1922 . . . 4 ((𝑘 = 𝐾𝑓 = 𝐹) → (∃𝑐(ran (AP‘𝑘) ∩ 𝒫 (𝑓 “ {𝑐})) ≠ ∅ ↔ ∃𝑐(ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ≠ ∅))
14 df-vdwmc 16295 . . . 4 MonoAP = {⟨𝑘, 𝑓⟩ ∣ ∃𝑐(ran (AP‘𝑘) ∩ 𝒫 (𝑓 “ {𝑐})) ≠ ∅}
1513, 14brabga 5386 . . 3 ((𝐾 ∈ ℕ0𝐹 ∈ V) → (𝐾 MonoAP 𝐹 ↔ ∃𝑐(ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ≠ ∅))
161, 5, 15syl2anc 587 . 2 (𝜑 → (𝐾 MonoAP 𝐹 ↔ ∃𝑐(ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ≠ ∅))
17 vdwapf 16298 . . . . 5 (𝐾 ∈ ℕ0 → (AP‘𝐾):(ℕ × ℕ)⟶𝒫 ℕ)
18 ffn 6487 . . . . 5 ((AP‘𝐾):(ℕ × ℕ)⟶𝒫 ℕ → (AP‘𝐾) Fn (ℕ × ℕ))
19 velpw 4502 . . . . . . 7 (𝑧 ∈ 𝒫 (𝐹 “ {𝑐}) ↔ 𝑧 ⊆ (𝐹 “ {𝑐}))
20 sseq1 3940 . . . . . . 7 (𝑧 = ((AP‘𝐾)‘𝑤) → (𝑧 ⊆ (𝐹 “ {𝑐}) ↔ ((AP‘𝐾)‘𝑤) ⊆ (𝐹 “ {𝑐})))
2119, 20syl5bb 286 . . . . . 6 (𝑧 = ((AP‘𝐾)‘𝑤) → (𝑧 ∈ 𝒫 (𝐹 “ {𝑐}) ↔ ((AP‘𝐾)‘𝑤) ⊆ (𝐹 “ {𝑐})))
2221rexrn 6830 . . . . 5 ((AP‘𝐾) Fn (ℕ × ℕ) → (∃𝑧 ∈ ran (AP‘𝐾)𝑧 ∈ 𝒫 (𝐹 “ {𝑐}) ↔ ∃𝑤 ∈ (ℕ × ℕ)((AP‘𝐾)‘𝑤) ⊆ (𝐹 “ {𝑐})))
231, 17, 18, 224syl 19 . . . 4 (𝜑 → (∃𝑧 ∈ ran (AP‘𝐾)𝑧 ∈ 𝒫 (𝐹 “ {𝑐}) ↔ ∃𝑤 ∈ (ℕ × ℕ)((AP‘𝐾)‘𝑤) ⊆ (𝐹 “ {𝑐})))
24 elin 3897 . . . . . 6 (𝑧 ∈ (ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ↔ (𝑧 ∈ ran (AP‘𝐾) ∧ 𝑧 ∈ 𝒫 (𝐹 “ {𝑐})))
2524exbii 1849 . . . . 5 (∃𝑧 𝑧 ∈ (ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ↔ ∃𝑧(𝑧 ∈ ran (AP‘𝐾) ∧ 𝑧 ∈ 𝒫 (𝐹 “ {𝑐})))
26 n0 4260 . . . . 5 ((ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ≠ ∅ ↔ ∃𝑧 𝑧 ∈ (ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})))
27 df-rex 3112 . . . . 5 (∃𝑧 ∈ ran (AP‘𝐾)𝑧 ∈ 𝒫 (𝐹 “ {𝑐}) ↔ ∃𝑧(𝑧 ∈ ran (AP‘𝐾) ∧ 𝑧 ∈ 𝒫 (𝐹 “ {𝑐})))
2825, 26, 273bitr4ri 307 . . . 4 (∃𝑧 ∈ ran (AP‘𝐾)𝑧 ∈ 𝒫 (𝐹 “ {𝑐}) ↔ (ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ≠ ∅)
29 fveq2 6645 . . . . . . 7 (𝑤 = ⟨𝑎, 𝑑⟩ → ((AP‘𝐾)‘𝑤) = ((AP‘𝐾)‘⟨𝑎, 𝑑⟩))
30 df-ov 7138 . . . . . . 7 (𝑎(AP‘𝐾)𝑑) = ((AP‘𝐾)‘⟨𝑎, 𝑑⟩)
3129, 30eqtr4di 2851 . . . . . 6 (𝑤 = ⟨𝑎, 𝑑⟩ → ((AP‘𝐾)‘𝑤) = (𝑎(AP‘𝐾)𝑑))
3231sseq1d 3946 . . . . 5 (𝑤 = ⟨𝑎, 𝑑⟩ → (((AP‘𝐾)‘𝑤) ⊆ (𝐹 “ {𝑐}) ↔ (𝑎(AP‘𝐾)𝑑) ⊆ (𝐹 “ {𝑐})))
3332rexxp 5677 . . . 4 (∃𝑤 ∈ (ℕ × ℕ)((AP‘𝐾)‘𝑤) ⊆ (𝐹 “ {𝑐}) ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ ℕ (𝑎(AP‘𝐾)𝑑) ⊆ (𝐹 “ {𝑐}))
3423, 28, 333bitr3g 316 . . 3 (𝜑 → ((ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ≠ ∅ ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ ℕ (𝑎(AP‘𝐾)𝑑) ⊆ (𝐹 “ {𝑐})))
3534exbidv 1922 . 2 (𝜑 → (∃𝑐(ran (AP‘𝐾) ∩ 𝒫 (𝐹 “ {𝑐})) ≠ ∅ ↔ ∃𝑐𝑎 ∈ ℕ ∃𝑑 ∈ ℕ (𝑎(AP‘𝐾)𝑑) ⊆ (𝐹 “ {𝑐})))
3616, 35bitrd 282 1 (𝜑 → (𝐾 MonoAP 𝐹 ↔ ∃𝑐𝑎 ∈ ℕ ∃𝑑 ∈ ℕ (𝑎(AP‘𝐾)𝑑) ⊆ (𝐹 “ {𝑐})))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 209   ∧ wa 399   = wceq 1538  ∃wex 1781   ∈ wcel 2111   ≠ wne 2987  ∃wrex 3107  Vcvv 3441   ∩ cin 3880   ⊆ wss 3881  ∅c0 4243  𝒫 cpw 4497  {csn 4525  ⟨cop 4531   class class class wbr 5030   × cxp 5517  ◡ccnv 5518  ran crn 5520   “ cima 5522   Fn wfn 6319  ⟶wf 6320  ‘cfv 6324  (class class class)co 7135  ℕcn 11625  ℕ0cn0 11885  APcvdwa 16291   MonoAP cvdwm 16292 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-1st 7671  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-nn 11626  df-n0 11886  df-z 11970  df-uz 12232  df-fz 12886  df-vdwap 16294  df-vdwmc 16295 This theorem is referenced by:  vdwmc2  16305  vdwlem1  16307  vdwlem2  16308  vdwlem9  16315  vdwlem10  16316  vdwlem12  16318  vdwlem13  16319
 Copyright terms: Public domain W3C validator