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

Theorem eldioph 37140
Description: Condition for a set to be Diophantine (unpacking existential quantifier). (Contributed by Stefan O'Rear, 5-Oct-2014.)
Assertion
Ref Expression
eldioph ((𝑁 ∈ ℕ0𝐾 ∈ (ℤ𝑁) ∧ 𝑃 ∈ (mzPoly‘(1...𝐾))) → {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} ∈ (Dioph‘𝑁))
Distinct variable groups:   𝑡,𝑁,𝑢   𝑡,𝐾,𝑢   𝑡,𝑃,𝑢

Proof of Theorem eldioph
Dummy variables 𝑘 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simp1 1059 . 2 ((𝑁 ∈ ℕ0𝐾 ∈ (ℤ𝑁) ∧ 𝑃 ∈ (mzPoly‘(1...𝐾))) → 𝑁 ∈ ℕ0)
2 simp2 1060 . . 3 ((𝑁 ∈ ℕ0𝐾 ∈ (ℤ𝑁) ∧ 𝑃 ∈ (mzPoly‘(1...𝐾))) → 𝐾 ∈ (ℤ𝑁))
3 simp3 1061 . . . 4 ((𝑁 ∈ ℕ0𝐾 ∈ (ℤ𝑁) ∧ 𝑃 ∈ (mzPoly‘(1...𝐾))) → 𝑃 ∈ (mzPoly‘(1...𝐾)))
4 eqidd 2621 . . . 4 ((𝑁 ∈ ℕ0𝐾 ∈ (ℤ𝑁) ∧ 𝑃 ∈ (mzPoly‘(1...𝐾))) → {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)})
5 fveq1 6177 . . . . . . . . . 10 (𝑝 = 𝑃 → (𝑝𝑢) = (𝑃𝑢))
65eqeq1d 2622 . . . . . . . . 9 (𝑝 = 𝑃 → ((𝑝𝑢) = 0 ↔ (𝑃𝑢) = 0))
76anbi2d 739 . . . . . . . 8 (𝑝 = 𝑃 → ((𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0) ↔ (𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)))
87rexbidv 3048 . . . . . . 7 (𝑝 = 𝑃 → (∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0) ↔ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)))
98abbidv 2739 . . . . . 6 (𝑝 = 𝑃 → {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)})
109eqeq2d 2630 . . . . 5 (𝑝 = 𝑃 → ({𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ↔ {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)}))
1110rspcev 3304 . . . 4 ((𝑃 ∈ (mzPoly‘(1...𝐾)) ∧ {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)}) → ∃𝑝 ∈ (mzPoly‘(1...𝐾)){𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})
123, 4, 11syl2anc 692 . . 3 ((𝑁 ∈ ℕ0𝐾 ∈ (ℤ𝑁) ∧ 𝑃 ∈ (mzPoly‘(1...𝐾))) → ∃𝑝 ∈ (mzPoly‘(1...𝐾)){𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})
13 oveq2 6643 . . . . . 6 (𝑘 = 𝐾 → (1...𝑘) = (1...𝐾))
1413fveq2d 6182 . . . . 5 (𝑘 = 𝐾 → (mzPoly‘(1...𝑘)) = (mzPoly‘(1...𝐾)))
1513oveq2d 6651 . . . . . . . 8 (𝑘 = 𝐾 → (ℕ0𝑚 (1...𝑘)) = (ℕ0𝑚 (1...𝐾)))
1615rexeqdv 3140 . . . . . . 7 (𝑘 = 𝐾 → (∃𝑢 ∈ (ℕ0𝑚 (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0) ↔ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)))
1716abbidv 2739 . . . . . 6 (𝑘 = 𝐾 → {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})
1817eqeq2d 2630 . . . . 5 (𝑘 = 𝐾 → ({𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ↔ {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
1914, 18rexeqbidv 3148 . . . 4 (𝑘 = 𝐾 → (∃𝑝 ∈ (mzPoly‘(1...𝑘)){𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)} ↔ ∃𝑝 ∈ (mzPoly‘(1...𝐾)){𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
2019rspcev 3304 . . 3 ((𝐾 ∈ (ℤ𝑁) ∧ ∃𝑝 ∈ (mzPoly‘(1...𝐾)){𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}) → ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘)){𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})
212, 12, 20syl2anc 692 . 2 ((𝑁 ∈ ℕ0𝐾 ∈ (ℤ𝑁) ∧ 𝑃 ∈ (mzPoly‘(1...𝐾))) → ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘)){𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)})
22 eldiophb 37139 . 2 ({𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} ∈ (Dioph‘𝑁) ↔ (𝑁 ∈ ℕ0 ∧ ∃𝑘 ∈ (ℤ𝑁)∃𝑝 ∈ (mzPoly‘(1...𝑘)){𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} = {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝑘))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑝𝑢) = 0)}))
231, 21, 22sylanbrc 697 1 ((𝑁 ∈ ℕ0𝐾 ∈ (ℤ𝑁) ∧ 𝑃 ∈ (mzPoly‘(1...𝐾))) → {𝑡 ∣ ∃𝑢 ∈ (ℕ0𝑚 (1...𝐾))(𝑡 = (𝑢 ↾ (1...𝑁)) ∧ (𝑃𝑢) = 0)} ∈ (Dioph‘𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384  w3a 1036   = wceq 1481  wcel 1988  {cab 2606  wrex 2910  cres 5106  cfv 5876  (class class class)co 6635  𝑚 cmap 7842  0cc0 9921  1c1 9922  0cn0 11277  cuz 11672  ...cfz 12311  mzPolycmzp 37104  Diophcdioph 37137
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1720  ax-4 1735  ax-5 1837  ax-6 1886  ax-7 1933  ax-8 1990  ax-9 1997  ax-10 2017  ax-11 2032  ax-12 2045  ax-13 2244  ax-ext 2600  ax-rep 4762  ax-sep 4772  ax-nul 4780  ax-pow 4834  ax-pr 4897  ax-un 6934  ax-cnex 9977  ax-resscn 9978  ax-1cn 9979  ax-icn 9980  ax-addcl 9981  ax-addrcl 9982  ax-mulcl 9983  ax-mulrcl 9984  ax-i2m1 9989  ax-1ne0 9990  ax-rrecex 9993  ax-cnre 9994  ax-pre-lttri 9995  ax-pre-lttrn 9996
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1484  df-ex 1703  df-nf 1708  df-sb 1879  df-eu 2472  df-mo 2473  df-clab 2607  df-cleq 2613  df-clel 2616  df-nfc 2751  df-ne 2792  df-nel 2895  df-ral 2914  df-rex 2915  df-reu 2916  df-rab 2918  df-v 3197  df-sbc 3430  df-csb 3527  df-dif 3570  df-un 3572  df-in 3574  df-ss 3581  df-pss 3583  df-nul 3908  df-if 4078  df-pw 4151  df-sn 4169  df-pr 4171  df-tp 4173  df-op 4175  df-uni 4428  df-iun 4513  df-br 4645  df-opab 4704  df-mpt 4721  df-tr 4744  df-id 5014  df-eprel 5019  df-po 5025  df-so 5026  df-fr 5063  df-we 5065  df-xp 5110  df-rel 5111  df-cnv 5112  df-co 5113  df-dm 5114  df-rn 5115  df-res 5116  df-ima 5117  df-pred 5668  df-ord 5714  df-on 5715  df-lim 5716  df-suc 5717  df-iota 5839  df-fun 5878  df-fn 5879  df-f 5880  df-f1 5881  df-fo 5882  df-f1o 5883  df-fv 5884  df-ov 6638  df-oprab 6639  df-mpt2 6640  df-om 7051  df-1st 7153  df-2nd 7154  df-wrecs 7392  df-recs 7453  df-rdg 7491  df-er 7727  df-map 7844  df-en 7941  df-dom 7942  df-sdom 7943  df-pnf 10061  df-mnf 10062  df-xr 10063  df-ltxr 10064  df-le 10065  df-neg 10254  df-nn 11006  df-n0 11278  df-z 11363  df-uz 11673  df-fz 12312  df-dioph 37138
This theorem is referenced by:  eldioph2  37144  eq0rabdioph  37159
  Copyright terms: Public domain W3C validator