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

Theorem vdwpc 16609
Description: The predicate " The coloring 𝐹 contains a polychromatic 𝑀-tuple of AP's of length 𝐾". A polychromatic 𝑀-tuple of AP's is a set of AP's with the same base point but different step lengths, such that each individual AP is monochromatic, but the AP's all have mutually distinct colors. (The common basepoint is not required to have the same color as any of the AP's.) (Contributed by Mario Carneiro, 18-Aug-2014.)
Hypotheses
Ref Expression
vdwmc.1 𝑋 ∈ V
vdwmc.2 (𝜑𝐾 ∈ ℕ0)
vdwmc.3 (𝜑𝐹:𝑋𝑅)
vdwpc.4 (𝜑𝑀 ∈ ℕ)
vdwpc.5 𝐽 = (1...𝑀)
Assertion
Ref Expression
vdwpc (𝜑 → (⟨𝑀, 𝐾⟩ PolyAP 𝐹 ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
Distinct variable groups:   𝑎,𝑑,𝑖,𝐹   𝐾,𝑎,𝑑,𝑖   𝐽,𝑑,𝑖   𝑀,𝑎,𝑑,𝑖
Allowed substitution hints:   𝜑(𝑖,𝑎,𝑑)   𝑅(𝑖,𝑎,𝑑)   𝐽(𝑎)   𝑋(𝑖,𝑎,𝑑)

Proof of Theorem vdwpc
Dummy variables 𝑓 𝑘 𝑚 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 vdwpc.4 . 2 (𝜑𝑀 ∈ ℕ)
2 vdwmc.2 . 2 (𝜑𝐾 ∈ ℕ0)
3 vdwmc.3 . . 3 (𝜑𝐹:𝑋𝑅)
4 vdwmc.1 . . 3 𝑋 ∈ V
5 fex 7084 . . 3 ((𝐹:𝑋𝑅𝑋 ∈ V) → 𝐹 ∈ V)
63, 4, 5sylancl 585 . 2 (𝜑𝐹 ∈ V)
7 df-br 5071 . . . 4 (⟨𝑀, 𝐾⟩ PolyAP 𝐹 ↔ ⟨⟨𝑀, 𝐾⟩, 𝐹⟩ ∈ PolyAP )
8 df-vdwpc 16599 . . . . 5 PolyAP = {⟨⟨𝑚, 𝑘⟩, 𝑓⟩ ∣ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚)}
98eleq2i 2830 . . . 4 (⟨⟨𝑀, 𝐾⟩, 𝐹⟩ ∈ PolyAP ↔ ⟨⟨𝑀, 𝐾⟩, 𝐹⟩ ∈ {⟨⟨𝑚, 𝑘⟩, 𝑓⟩ ∣ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚)})
107, 9bitri 274 . . 3 (⟨𝑀, 𝐾⟩ PolyAP 𝐹 ↔ ⟨⟨𝑀, 𝐾⟩, 𝐹⟩ ∈ {⟨⟨𝑚, 𝑘⟩, 𝑓⟩ ∣ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚)})
11 simp1 1134 . . . . . . . . 9 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → 𝑚 = 𝑀)
1211oveq2d 7271 . . . . . . . 8 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (1...𝑚) = (1...𝑀))
13 vdwpc.5 . . . . . . . 8 𝐽 = (1...𝑀)
1412, 13eqtr4di 2797 . . . . . . 7 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (1...𝑚) = 𝐽)
1514oveq2d 7271 . . . . . 6 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (ℕ ↑m (1...𝑚)) = (ℕ ↑m 𝐽))
16 simp2 1135 . . . . . . . . . . 11 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → 𝑘 = 𝐾)
1716fveq2d 6760 . . . . . . . . . 10 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (AP‘𝑘) = (AP‘𝐾))
1817oveqd 7272 . . . . . . . . 9 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → ((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) = ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)))
19 simp3 1136 . . . . . . . . . . 11 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → 𝑓 = 𝐹)
2019cnveqd 5773 . . . . . . . . . 10 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → 𝑓 = 𝐹)
2119fveq1d 6758 . . . . . . . . . . 11 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (𝑓‘(𝑎 + (𝑑𝑖))) = (𝐹‘(𝑎 + (𝑑𝑖))))
2221sneqd 4570 . . . . . . . . . 10 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → {(𝑓‘(𝑎 + (𝑑𝑖)))} = {(𝐹‘(𝑎 + (𝑑𝑖)))})
2320, 22imaeq12d 5959 . . . . . . . . 9 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) = (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}))
2418, 23sseq12d 3950 . . . . . . . 8 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ↔ ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))})))
2514, 24raleqbidv 3327 . . . . . . 7 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ↔ ∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))})))
2614, 21mpteq12dv 5161 . . . . . . . . . 10 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖)))) = (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖)))))
2726rneqd 5836 . . . . . . . . 9 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖)))) = ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖)))))
2827fveq2d 6760 . . . . . . . 8 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))))
2928, 11eqeq12d 2754 . . . . . . 7 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → ((♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚 ↔ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀))
3025, 29anbi12d 630 . . . . . 6 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → ((∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚) ↔ (∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
3115, 30rexeqbidv 3328 . . . . 5 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚) ↔ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
3231rexbidv 3225 . . . 4 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚) ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
3332eloprabga 7360 . . 3 ((𝑀 ∈ ℕ ∧ 𝐾 ∈ ℕ0𝐹 ∈ V) → (⟨⟨𝑀, 𝐾⟩, 𝐹⟩ ∈ {⟨⟨𝑚, 𝑘⟩, 𝑓⟩ ∣ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚)} ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
3410, 33syl5bb 282 . 2 ((𝑀 ∈ ℕ ∧ 𝐾 ∈ ℕ0𝐹 ∈ V) → (⟨𝑀, 𝐾⟩ PolyAP 𝐹 ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
351, 2, 6, 34syl3anc 1369 1 (𝜑 → (⟨𝑀, 𝐾⟩ PolyAP 𝐹 ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wral 3063  wrex 3064  Vcvv 3422  wss 3883  {csn 4558  cop 4564   class class class wbr 5070  cmpt 5153  ccnv 5579  ran crn 5581  cima 5583  wf 6414  cfv 6418  (class class class)co 7255  {coprab 7256  m cmap 8573  1c1 10803   + caddc 10805  cn 11903  0cn0 12163  ...cfz 13168  chash 13972  APcvdwa 16594   PolyAP cvdwp 16596
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-vdwpc 16599
This theorem is referenced by:  vdwlem6  16615  vdwlem7  16616  vdwlem8  16617  vdwlem11  16620
  Copyright terms: Public domain W3C validator