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

Theorem elnn0rabdioph 40280
Description: Diophantine set builder for nonnegativity constraints. The first builder which uses a witness variable internally; an expression is nonnegative if there is a nonnegative integer equal to it. (Contributed by Stefan O'Rear, 11-Oct-2014.)
Assertion
Ref Expression
elnn0rabdioph ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → {𝑡 ∈ (ℕ0m (1...𝑁)) ∣ 𝐴 ∈ ℕ0} ∈ (Dioph‘𝑁))
Distinct variable group:   𝑡,𝑁
Allowed substitution hint:   𝐴(𝑡)

Proof of Theorem elnn0rabdioph
Dummy variables 𝑎 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 risset 3179 . . . . 5 (𝐴 ∈ ℕ0 ↔ ∃𝑏 ∈ ℕ0 𝑏 = 𝐴)
21rabbii 3376 . . . 4 {𝑡 ∈ (ℕ0m (1...𝑁)) ∣ 𝐴 ∈ ℕ0} = {𝑡 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 𝑏 = 𝐴}
32a1i 11 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → {𝑡 ∈ (ℕ0m (1...𝑁)) ∣ 𝐴 ∈ ℕ0} = {𝑡 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 𝑏 = 𝐴})
4 nfcv 2900 . . . 4 𝑡(ℕ0m (1...𝑁))
5 nfcv 2900 . . . 4 𝑎(ℕ0m (1...𝑁))
6 nfv 1922 . . . 4 𝑎𝑏 ∈ ℕ0 𝑏 = 𝐴
7 nfcv 2900 . . . . 5 𝑡0
8 nfcsb1v 3827 . . . . . 6 𝑡𝑎 / 𝑡𝐴
98nfeq2 2917 . . . . 5 𝑡 𝑏 = 𝑎 / 𝑡𝐴
107, 9nfrex 3221 . . . 4 𝑡𝑏 ∈ ℕ0 𝑏 = 𝑎 / 𝑡𝐴
11 csbeq1a 3816 . . . . . 6 (𝑡 = 𝑎𝐴 = 𝑎 / 𝑡𝐴)
1211eqeq2d 2745 . . . . 5 (𝑡 = 𝑎 → (𝑏 = 𝐴𝑏 = 𝑎 / 𝑡𝐴))
1312rexbidv 3209 . . . 4 (𝑡 = 𝑎 → (∃𝑏 ∈ ℕ0 𝑏 = 𝐴 ↔ ∃𝑏 ∈ ℕ0 𝑏 = 𝑎 / 𝑡𝐴))
144, 5, 6, 10, 13cbvrabw 3393 . . 3 {𝑡 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 𝑏 = 𝐴} = {𝑎 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 𝑏 = 𝑎 / 𝑡𝐴}
153, 14eqtrdi 2790 . 2 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → {𝑡 ∈ (ℕ0m (1...𝑁)) ∣ 𝐴 ∈ ℕ0} = {𝑎 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 𝑏 = 𝑎 / 𝑡𝐴})
16 peano2nn0 12113 . . . . 5 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ0)
1716adantr 484 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → (𝑁 + 1) ∈ ℕ0)
18 ovex 7235 . . . . 5 (1...(𝑁 + 1)) ∈ V
19 nn0p1nn 12112 . . . . . . 7 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
20 elfz1end 13125 . . . . . . 7 ((𝑁 + 1) ∈ ℕ ↔ (𝑁 + 1) ∈ (1...(𝑁 + 1)))
2119, 20sylib 221 . . . . . 6 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ (1...(𝑁 + 1)))
2221adantr 484 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → (𝑁 + 1) ∈ (1...(𝑁 + 1)))
23 mzpproj 40214 . . . . 5 (((1...(𝑁 + 1)) ∈ V ∧ (𝑁 + 1) ∈ (1...(𝑁 + 1))) → (𝑐 ∈ (ℤ ↑m (1...(𝑁 + 1))) ↦ (𝑐‘(𝑁 + 1))) ∈ (mzPoly‘(1...(𝑁 + 1))))
2418, 22, 23sylancr 590 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → (𝑐 ∈ (ℤ ↑m (1...(𝑁 + 1))) ↦ (𝑐‘(𝑁 + 1))) ∈ (mzPoly‘(1...(𝑁 + 1))))
25 eqid 2734 . . . . 5 (𝑁 + 1) = (𝑁 + 1)
2625rabdiophlem2 40279 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → (𝑐 ∈ (ℤ ↑m (1...(𝑁 + 1))) ↦ (𝑐 ↾ (1...𝑁)) / 𝑡𝐴) ∈ (mzPoly‘(1...(𝑁 + 1))))
27 eqrabdioph 40254 . . . 4 (((𝑁 + 1) ∈ ℕ0 ∧ (𝑐 ∈ (ℤ ↑m (1...(𝑁 + 1))) ↦ (𝑐‘(𝑁 + 1))) ∈ (mzPoly‘(1...(𝑁 + 1))) ∧ (𝑐 ∈ (ℤ ↑m (1...(𝑁 + 1))) ↦ (𝑐 ↾ (1...𝑁)) / 𝑡𝐴) ∈ (mzPoly‘(1...(𝑁 + 1)))) → {𝑐 ∈ (ℕ0m (1...(𝑁 + 1))) ∣ (𝑐‘(𝑁 + 1)) = (𝑐 ↾ (1...𝑁)) / 𝑡𝐴} ∈ (Dioph‘(𝑁 + 1)))
2817, 24, 26, 27syl3anc 1373 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → {𝑐 ∈ (ℕ0m (1...(𝑁 + 1))) ∣ (𝑐‘(𝑁 + 1)) = (𝑐 ↾ (1...𝑁)) / 𝑡𝐴} ∈ (Dioph‘(𝑁 + 1)))
29 eqeq1 2738 . . . 4 (𝑏 = (𝑐‘(𝑁 + 1)) → (𝑏 = 𝑎 / 𝑡𝐴 ↔ (𝑐‘(𝑁 + 1)) = 𝑎 / 𝑡𝐴))
30 csbeq1 3805 . . . . 5 (𝑎 = (𝑐 ↾ (1...𝑁)) → 𝑎 / 𝑡𝐴 = (𝑐 ↾ (1...𝑁)) / 𝑡𝐴)
3130eqeq2d 2745 . . . 4 (𝑎 = (𝑐 ↾ (1...𝑁)) → ((𝑐‘(𝑁 + 1)) = 𝑎 / 𝑡𝐴 ↔ (𝑐‘(𝑁 + 1)) = (𝑐 ↾ (1...𝑁)) / 𝑡𝐴))
3225, 29, 31rexrabdioph 40271 . . 3 ((𝑁 ∈ ℕ0 ∧ {𝑐 ∈ (ℕ0m (1...(𝑁 + 1))) ∣ (𝑐‘(𝑁 + 1)) = (𝑐 ↾ (1...𝑁)) / 𝑡𝐴} ∈ (Dioph‘(𝑁 + 1))) → {𝑎 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 𝑏 = 𝑎 / 𝑡𝐴} ∈ (Dioph‘𝑁))
3328, 32syldan 594 . 2 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → {𝑎 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 𝑏 = 𝑎 / 𝑡𝐴} ∈ (Dioph‘𝑁))
3415, 33eqeltrd 2834 1 ((𝑁 ∈ ℕ0 ∧ (𝑡 ∈ (ℤ ↑m (1...𝑁)) ↦ 𝐴) ∈ (mzPoly‘(1...𝑁))) → {𝑡 ∈ (ℕ0m (1...𝑁)) ∣ 𝐴 ∈ ℕ0} ∈ (Dioph‘𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1543  wcel 2110  wrex 3055  {crab 3058  Vcvv 3401  csb 3802  cmpt 5124  cres 5542  cfv 6369  (class class class)co 7202  m cmap 8497  1c1 10713   + caddc 10715  cn 11813  0cn0 12073  cz 12159  ...cfz 13078  mzPolycmzp 40199  Diophcdioph 40232
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2706  ax-rep 5168  ax-sep 5181  ax-nul 5188  ax-pow 5247  ax-pr 5311  ax-un 7512  ax-inf2 9245  ax-cnex 10768  ax-resscn 10769  ax-1cn 10770  ax-icn 10771  ax-addcl 10772  ax-addrcl 10773  ax-mulcl 10774  ax-mulrcl 10775  ax-mulcom 10776  ax-addass 10777  ax-mulass 10778  ax-distr 10779  ax-i2m1 10780  ax-1ne0 10781  ax-1rid 10782  ax-rnegex 10783  ax-rrecex 10784  ax-cnre 10785  ax-pre-lttri 10786  ax-pre-lttrn 10787  ax-pre-ltadd 10788  ax-pre-mulgt0 10789
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2537  df-eu 2566  df-clab 2713  df-cleq 2726  df-clel 2812  df-nfc 2882  df-ne 2936  df-nel 3040  df-ral 3059  df-rex 3060  df-reu 3061  df-rab 3063  df-v 3403  df-sbc 3688  df-csb 3803  df-dif 3860  df-un 3862  df-in 3864  df-ss 3874  df-pss 3876  df-nul 4228  df-if 4430  df-pw 4505  df-sn 4532  df-pr 4534  df-tp 4536  df-op 4538  df-uni 4810  df-int 4850  df-iun 4896  df-br 5044  df-opab 5106  df-mpt 5125  df-tr 5151  df-id 5444  df-eprel 5449  df-po 5457  df-so 5458  df-fr 5498  df-we 5500  df-xp 5546  df-rel 5547  df-cnv 5548  df-co 5549  df-dm 5550  df-rn 5551  df-res 5552  df-ima 5553  df-pred 6149  df-ord 6205  df-on 6206  df-lim 6207  df-suc 6208  df-iota 6327  df-fun 6371  df-fn 6372  df-f 6373  df-f1 6374  df-fo 6375  df-f1o 6376  df-fv 6377  df-riota 7159  df-ov 7205  df-oprab 7206  df-mpo 7207  df-of 7458  df-om 7634  df-1st 7750  df-2nd 7751  df-wrecs 8036  df-recs 8097  df-rdg 8135  df-1o 8191  df-oadd 8195  df-er 8380  df-map 8499  df-en 8616  df-dom 8617  df-sdom 8618  df-fin 8619  df-dju 9500  df-card 9538  df-pnf 10852  df-mnf 10853  df-xr 10854  df-ltxr 10855  df-le 10856  df-sub 11047  df-neg 11048  df-nn 11814  df-n0 12074  df-z 12160  df-uz 12422  df-fz 13079  df-hash 13880  df-mzpcl 40200  df-mzp 40201  df-dioph 40233
This theorem is referenced by:  lerabdioph  40282
  Copyright terms: Public domain W3C validator