Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  eldiophb Structured version   Visualization version   GIF version

Theorem eldiophb 40495
Description: Initial expression of Diophantine property of a set. (Contributed by Stefan O'Rear, 5-Oct-2014.) (Revised by Mario Carneiro, 22-Sep-2015.)
Assertion
Ref Expression
eldiophb (𝐷 ∈ (Dioph‘𝑁) ↔ (𝑁 ∈ ℕ0 ∧ ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘))𝐷 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
Distinct variable groups:   𝐷,𝑘,𝑝   𝑘,𝑁,𝑝,𝑡,𝑢
Allowed substitution hints:   𝐷(𝑢,𝑡)

Proof of Theorem eldiophb
Dummy variables 𝑛 𝑑 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-dioph 40494 . . . 4 Dioph = (𝑛 ∈ ℕ0 ↦ ran (𝑘 ∈ (ℤ𝑛), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑛)) ∧ (𝑝𝑢) = 0)}))
21dmmptss 6133 . . 3 dom Dioph ⊆ ℕ0
3 elfvdm 6788 . . 3 (𝐷 ∈ (Dioph‘𝑁) → 𝑁 ∈ dom Dioph)
42, 3sselid 3915 . 2 (𝐷 ∈ (Dioph‘𝑁) → 𝑁 ∈ ℕ0)
5 fveq2 6756 . . . . . . 7 (𝑛 = 𝑁 → (ℤ𝑛) = (ℤ𝑁))
6 eqidd 2739 . . . . . . 7 (𝑛 = 𝑁 → (mzPoly‘(1...𝑘)) = (mzPoly‘(1...𝑘)))
7 oveq2 7263 . . . . . . . . . . . 12 (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁))
87reseq2d 5880 . . . . . . . . . . 11 (𝑛 = 𝑁 → (𝑢 ↾ (1...𝑛)) = (𝑢 ↾ (1...𝑁)))
98eqeq2d 2749 . . . . . . . . . 10 (𝑛 = 𝑁 → (𝑡 = (𝑢 ↾ (1...𝑛)) ↔ 𝑡 = (𝑢 ↾ (1...𝑁))))
109anbi1d 629 . . . . . . . . 9 (𝑛 = 𝑁 → ((𝑡 = (𝑢 ↾ (1...𝑛)) ∧ (𝑝𝑢) = 0) ↔ (𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)))
1110rexbidv 3225 . . . . . . . 8 (𝑛 = 𝑁 → (∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑛)) ∧ (𝑝𝑢) = 0) ↔ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)))
1211abbidv 2808 . . . . . . 7 (𝑛 = 𝑁 → {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑛)) ∧ (𝑝𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})
135, 6, 12mpoeq123dv 7328 . . . . . 6 (𝑛 = 𝑁 → (𝑘 ∈ (ℤ𝑛), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑛)) ∧ (𝑝𝑢) = 0)}) = (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
1413rneqd 5836 . . . . 5 (𝑛 = 𝑁 → ran (𝑘 ∈ (ℤ𝑛), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑛)) ∧ (𝑝𝑢) = 0)}) = ran (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
15 ovex 7288 . . . . . . 7 (ℕ0m (1...𝑁)) ∈ V
1615pwex 5298 . . . . . 6 𝒫 (ℕ0m (1...𝑁)) ∈ V
17 eqid 2738 . . . . . . . 8 (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}) = (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})
1817rnmpo 7385 . . . . . . 7 ran (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}) = {𝑑 ∣ ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘))𝑑 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}}
19 elmapi 8595 . . . . . . . . . . . . . . . . 17 (𝑢 ∈ (ℕ0m (1...𝑘)) → 𝑢:(1...𝑘)⟶ℕ0)
20 fzss2 13225 . . . . . . . . . . . . . . . . 17 (𝑘 ∈ (ℤ𝑁) → (1...𝑁) ⊆ (1...𝑘))
21 fssres 6624 . . . . . . . . . . . . . . . . 17 ((𝑢:(1...𝑘)⟶ℕ0 ∧ (1...𝑁) ⊆ (1...𝑘)) → (𝑢 ↾ (1...𝑁)):(1...𝑁)⟶ℕ0)
2219, 20, 21syl2anr 596 . . . . . . . . . . . . . . . 16 ((𝑘 ∈ (ℤ𝑁) ∧ 𝑢 ∈ (ℕ0m (1...𝑘))) → (𝑢 ↾ (1...𝑁)):(1...𝑁)⟶ℕ0)
23 nn0ex 12169 . . . . . . . . . . . . . . . . 17 0 ∈ V
24 ovex 7288 . . . . . . . . . . . . . . . . 17 (1...𝑁) ∈ V
2523, 24elmap 8617 . . . . . . . . . . . . . . . 16 ((𝑢 ↾ (1...𝑁)) ∈ (ℕ0m (1...𝑁)) ↔ (𝑢 ↾ (1...𝑁)):(1...𝑁)⟶ℕ0)
2622, 25sylibr 233 . . . . . . . . . . . . . . 15 ((𝑘 ∈ (ℤ𝑁) ∧ 𝑢 ∈ (ℕ0m (1...𝑘))) → (𝑢 ↾ (1...𝑁)) ∈ (ℕ0m (1...𝑁)))
27 eleq1 2826 . . . . . . . . . . . . . . . 16 (𝑡 = (𝑢 ↾ (1...𝑁)) → (𝑡 ∈ (ℕ0m (1...𝑁)) ↔ (𝑢 ↾ (1...𝑁)) ∈ (ℕ0m (1...𝑁))))
2827adantr 480 . . . . . . . . . . . . . . 15 ((𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0) → (𝑡 ∈ (ℕ0m (1...𝑁)) ↔ (𝑢 ↾ (1...𝑁)) ∈ (ℕ0m (1...𝑁))))
2926, 28syl5ibrcom 246 . . . . . . . . . . . . . 14 ((𝑘 ∈ (ℤ𝑁) ∧ 𝑢 ∈ (ℕ0m (1...𝑘))) → ((𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0) → 𝑡 ∈ (ℕ0m (1...𝑁))))
3029rexlimdva 3212 . . . . . . . . . . . . 13 (𝑘 ∈ (ℤ𝑁) → (∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0) → 𝑡 ∈ (ℕ0m (1...𝑁))))
3130abssdv 3998 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ𝑁) → {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ⊆ (ℕ0m (1...𝑁)))
3215elpw2 5264 . . . . . . . . . . . 12 ({𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ∈ 𝒫 (ℕ0m (1...𝑁)) ↔ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ⊆ (ℕ0m (1...𝑁)))
3331, 32sylibr 233 . . . . . . . . . . 11 (𝑘 ∈ (ℤ𝑁) → {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ∈ 𝒫 (ℕ0m (1...𝑁)))
34 eleq1 2826 . . . . . . . . . . 11 (𝑑 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} → (𝑑 ∈ 𝒫 (ℕ0m (1...𝑁)) ↔ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ∈ 𝒫 (ℕ0m (1...𝑁))))
3533, 34syl5ibrcom 246 . . . . . . . . . 10 (𝑘 ∈ (ℤ𝑁) → (𝑑 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} → 𝑑 ∈ 𝒫 (ℕ0m (1...𝑁))))
3635rexlimdvw 3218 . . . . . . . . 9 (𝑘 ∈ (ℤ𝑁) → (∃𝑝 ∈ (mzPoly‘(1...𝑘))𝑑 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} → 𝑑 ∈ 𝒫 (ℕ0m (1...𝑁))))
3736rexlimiv 3208 . . . . . . . 8 (∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘))𝑑 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} → 𝑑 ∈ 𝒫 (ℕ0m (1...𝑁)))
3837abssi 3999 . . . . . . 7 {𝑑 ∣ ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘))𝑑 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}} ⊆ 𝒫 (ℕ0m (1...𝑁))
3918, 38eqsstri 3951 . . . . . 6 ran (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}) ⊆ 𝒫 (ℕ0m (1...𝑁))
4016, 39ssexi 5241 . . . . 5 ran (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}) ∈ V
4114, 1, 40fvmpt 6857 . . . 4 (𝑁 ∈ ℕ0 → (Dioph‘𝑁) = ran (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
4241eleq2d 2824 . . 3 (𝑁 ∈ ℕ0 → (𝐷 ∈ (Dioph‘𝑁) ↔ 𝐷 ∈ ran (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})))
43 ovex 7288 . . . . . 6 (ℕ0m (1...𝑘)) ∈ V
4443abrexex 7778 . . . . 5 {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))𝑡 = (𝑢 ↾ (1...𝑁))} ∈ V
45 simpl 482 . . . . . . 7 ((𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0) → 𝑡 = (𝑢 ↾ (1...𝑁)))
4645reximi 3174 . . . . . 6 (∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0) → ∃𝑢 ∈ (ℕ0m (1...𝑘))𝑡 = (𝑢 ↾ (1...𝑁)))
4746ss2abi 3996 . . . . 5 {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ⊆ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))𝑡 = (𝑢 ↾ (1...𝑁))}
4844, 47ssexi 5241 . . . 4 {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ∈ V
4917, 48elrnmpo 7388 . . 3 (𝐷 ∈ ran (𝑘 ∈ (ℤ𝑁), 𝑝 ∈ (mzPoly‘(1...𝑘)) ↦ {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}) ↔ ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘))𝐷 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})
5042, 49bitrdi 286 . 2 (𝑁 ∈ ℕ0 → (𝐷 ∈ (Dioph‘𝑁) ↔ ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘))𝐷 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
514, 50biadanii 818 1 (𝐷 ∈ (Dioph‘𝑁) ↔ (𝑁 ∈ ℕ0 ∧ ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘))𝐷 = {𝑡 ∣ ∃𝑢 ∈ (ℕ0m (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395   = wceq 1539  wcel 2108  {cab 2715  wrex 3064  wss 3883  𝒫 cpw 4530  dom cdm 5580  ran crn 5581  cres 5582  wf 6414  cfv 6418  (class class class)co 7255  cmpo 7257  m cmap 8573  0cc0 10802  1c1 10803  0cn0 12163  cuz 12511  ...cfz 13168  mzPolycmzp 40460  Diophcdioph 40493
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-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-addcl 10862  ax-pre-lttri 10876  ax-pre-lttrn 10877
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  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-nel 3049  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-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  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-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  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-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-map 8575  df-en 8692  df-dom 8693  df-sdom 8694  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-neg 11138  df-nn 11904  df-n0 12164  df-z 12250  df-uz 12512  df-fz 13169  df-dioph 40494
This theorem is referenced by:  eldioph  40496  eldioph2b  40501  eldiophelnn0  40502
  Copyright terms: Public domain W3C validator