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

Theorem vdwpc 16681
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 7102 . . 3 ((𝐹:𝑋𝑅𝑋 ∈ V) → 𝐹 ∈ V)
63, 4, 5sylancl 586 . 2 (𝜑𝐹 ∈ V)
7 df-br 5075 . . . 4 (⟨𝑀, 𝐾⟩ PolyAP 𝐹 ↔ ⟨⟨𝑀, 𝐾⟩, 𝐹⟩ ∈ PolyAP )
8 df-vdwpc 16671 . . . . 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 1135 . . . . . . . . 9 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → 𝑚 = 𝑀)
1211oveq2d 7291 . . . . . . . 8 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (1...𝑚) = (1...𝑀))
13 vdwpc.5 . . . . . . . 8 𝐽 = (1...𝑀)
1412, 13eqtr4di 2796 . . . . . . 7 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (1...𝑚) = 𝐽)
1514oveq2d 7291 . . . . . 6 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (ℕ ↑m (1...𝑚)) = (ℕ ↑m 𝐽))
16 simp2 1136 . . . . . . . . . . 11 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → 𝑘 = 𝐾)
1716fveq2d 6778 . . . . . . . . . 10 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (AP‘𝑘) = (AP‘𝐾))
1817oveqd 7292 . . . . . . . . 9 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → ((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) = ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)))
19 simp3 1137 . . . . . . . . . . 11 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → 𝑓 = 𝐹)
2019cnveqd 5784 . . . . . . . . . 10 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → 𝑓 = 𝐹)
2119fveq1d 6776 . . . . . . . . . . 11 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (𝑓‘(𝑎 + (𝑑𝑖))) = (𝐹‘(𝑎 + (𝑑𝑖))))
2221sneqd 4573 . . . . . . . . . 10 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → {(𝑓‘(𝑎 + (𝑑𝑖)))} = {(𝐹‘(𝑎 + (𝑑𝑖)))})
2320, 22imaeq12d 5970 . . . . . . . . 9 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) = (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}))
2418, 23sseq12d 3954 . . . . . . . 8 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ↔ ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))})))
2514, 24raleqbidv 3336 . . . . . . 7 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ↔ ∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))})))
2614, 21mpteq12dv 5165 . . . . . . . . . 10 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖)))) = (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖)))))
2726rneqd 5847 . . . . . . . . 9 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖)))) = ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖)))))
2827fveq2d 6778 . . . . . . . 8 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))))
2928, 11eqeq12d 2754 . . . . . . 7 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → ((♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚 ↔ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀))
3025, 29anbi12d 631 . . . . . 6 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → ((∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚) ↔ (∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
3115, 30rexeqbidv 3337 . . . . 5 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚) ↔ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
3231rexbidv 3226 . . . 4 ((𝑚 = 𝑀𝑘 = 𝐾𝑓 = 𝐹) → (∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚) ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
3332eloprabga 7382 . . 3 ((𝑀 ∈ ℕ ∧ 𝐾 ∈ ℕ0𝐹 ∈ V) → (⟨⟨𝑀, 𝐾⟩, 𝐹⟩ ∈ {⟨⟨𝑚, 𝑘⟩, 𝑓⟩ ∣ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m (1...𝑚))(∀𝑖 ∈ (1...𝑚)((𝑎 + (𝑑𝑖))(AP‘𝑘)(𝑑𝑖)) ⊆ (𝑓 “ {(𝑓‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖 ∈ (1...𝑚) ↦ (𝑓‘(𝑎 + (𝑑𝑖))))) = 𝑚)} ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
3410, 33bitrid 282 . 2 ((𝑀 ∈ ℕ ∧ 𝐾 ∈ ℕ0𝐹 ∈ V) → (⟨𝑀, 𝐾⟩ PolyAP 𝐹 ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
351, 2, 6, 34syl3anc 1370 1 (𝜑 → (⟨𝑀, 𝐾⟩ PolyAP 𝐹 ↔ ∃𝑎 ∈ ℕ ∃𝑑 ∈ (ℕ ↑m 𝐽)(∀𝑖𝐽 ((𝑎 + (𝑑𝑖))(AP‘𝐾)(𝑑𝑖)) ⊆ (𝐹 “ {(𝐹‘(𝑎 + (𝑑𝑖)))}) ∧ (♯‘ran (𝑖𝐽 ↦ (𝐹‘(𝑎 + (𝑑𝑖))))) = 𝑀)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  wral 3064  wrex 3065  Vcvv 3432  wss 3887  {csn 4561  cop 4567   class class class wbr 5074  cmpt 5157  ccnv 5588  ran crn 5590  cima 5592  wf 6429  cfv 6433  (class class class)co 7275  {coprab 7276  m cmap 8615  1c1 10872   + caddc 10874  cn 11973  0cn0 12233  ...cfz 13239  chash 14044  APcvdwa 16666   PolyAP cvdwp 16668
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-oprab 7279  df-vdwpc 16671
This theorem is referenced by:  vdwlem6  16687  vdwlem7  16688  vdwlem8  16689  vdwlem11  16692
  Copyright terms: Public domain W3C validator