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

Theorem 2rexfrabdioph 36174
Description: Diophantine set builder for existential quantifier, explicit substitution, two variables. (Contributed by Stefan O'Rear, 11-Oct-2014.) (Revised by Stefan O'Rear, 6-May-2015.)
Hypotheses
Ref Expression
rexfrabdioph.1 𝑀 = (𝑁 + 1)
rexfrabdioph.2 𝐿 = (𝑀 + 1)
Assertion
Ref Expression
2rexfrabdioph ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑} ∈ (Dioph‘𝐿)) → {𝑢 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0𝑤 ∈ ℕ0 𝜑} ∈ (Dioph‘𝑁))
Distinct variable groups:   𝑢,𝑡,𝑣,𝑤,𝐿   𝑡,𝑀,𝑢,𝑣,𝑤   𝑡,𝑁,𝑢,𝑣,𝑤   𝜑,𝑡
Allowed substitution hints:   𝜑(𝑤,𝑣,𝑢)

Proof of Theorem 2rexfrabdioph
Dummy variable 𝑎 is distinct from all other variables.
StepHypRef Expression
1 2sbcrex 36162 . . . . 5 ([(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝑤 ∈ ℕ0 𝜑 ↔ ∃𝑤 ∈ ℕ0 [(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑)
21a1i 11 . . . 4 (𝑎 ∈ (ℕ0𝑚 (1...𝑀)) → ([(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝑤 ∈ ℕ0 𝜑 ↔ ∃𝑤 ∈ ℕ0 [(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑))
32rabbiia 3160 . . 3 {𝑎 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝑤 ∈ ℕ0 𝜑} = {𝑎 ∈ (ℕ0𝑚 (1...𝑀)) ∣ ∃𝑤 ∈ ℕ0 [(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑}
4 rexfrabdioph.1 . . . . . 6 𝑀 = (𝑁 + 1)
5 peano2nn0 11180 . . . . . 6 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ0)
64, 5syl5eqel 2691 . . . . 5 (𝑁 ∈ ℕ0𝑀 ∈ ℕ0)
76adantr 479 . . . 4 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑} ∈ (Dioph‘𝐿)) → 𝑀 ∈ ℕ0)
8 sbcrot3 36169 . . . . . . . . 9 ([(𝑡𝐿) / 𝑤][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑[(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑)
98sbcbii 3457 . . . . . . . 8 ([(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑡𝐿) / 𝑤][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑[(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑)
10 reseq1 5298 . . . . . . . . . 10 (𝑎 = (𝑡 ↾ (1...𝑀)) → (𝑎 ↾ (1...𝑁)) = ((𝑡 ↾ (1...𝑀)) ↾ (1...𝑁)))
1110sbccomieg 36171 . . . . . . . . 9 ([(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[((𝑡 ↾ (1...𝑀)) ↾ (1...𝑁)) / 𝑢][(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑)
12 fzssp1 12210 . . . . . . . . . . . 12 (1...𝑁) ⊆ (1...(𝑁 + 1))
134oveq2i 6538 . . . . . . . . . . . 12 (1...𝑀) = (1...(𝑁 + 1))
1412, 13sseqtr4i 3600 . . . . . . . . . . 11 (1...𝑁) ⊆ (1...𝑀)
15 resabs1 5334 . . . . . . . . . . 11 ((1...𝑁) ⊆ (1...𝑀) → ((𝑡 ↾ (1...𝑀)) ↾ (1...𝑁)) = (𝑡 ↾ (1...𝑁)))
16 dfsbcq 3403 . . . . . . . . . . 11 (((𝑡 ↾ (1...𝑀)) ↾ (1...𝑁)) = (𝑡 ↾ (1...𝑁)) → ([((𝑡 ↾ (1...𝑀)) ↾ (1...𝑁)) / 𝑢][(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑))
1714, 15, 16mp2b 10 . . . . . . . . . 10 ([((𝑡 ↾ (1...𝑀)) ↾ (1...𝑁)) / 𝑢][(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑)
18 vex 3175 . . . . . . . . . . . . . 14 𝑡 ∈ V
1918resex 5350 . . . . . . . . . . . . 13 (𝑡 ↾ (1...𝑀)) ∈ V
20 fveq1 6087 . . . . . . . . . . . . . 14 (𝑎 = (𝑡 ↾ (1...𝑀)) → (𝑎𝑀) = ((𝑡 ↾ (1...𝑀))‘𝑀))
2120sbcco3g 3950 . . . . . . . . . . . . 13 ((𝑡 ↾ (1...𝑀)) ∈ V → ([(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[((𝑡 ↾ (1...𝑀))‘𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑))
2219, 21ax-mp 5 . . . . . . . . . . . 12 ([(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[((𝑡 ↾ (1...𝑀))‘𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑)
23 nn0p1nn 11179 . . . . . . . . . . . . . . 15 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
244, 23syl5eqel 2691 . . . . . . . . . . . . . 14 (𝑁 ∈ ℕ0𝑀 ∈ ℕ)
25 elfz1end 12197 . . . . . . . . . . . . . 14 (𝑀 ∈ ℕ ↔ 𝑀 ∈ (1...𝑀))
2624, 25sylib 206 . . . . . . . . . . . . 13 (𝑁 ∈ ℕ0𝑀 ∈ (1...𝑀))
27 fvres 6102 . . . . . . . . . . . . 13 (𝑀 ∈ (1...𝑀) → ((𝑡 ↾ (1...𝑀))‘𝑀) = (𝑡𝑀))
28 dfsbcq 3403 . . . . . . . . . . . . 13 (((𝑡 ↾ (1...𝑀))‘𝑀) = (𝑡𝑀) → ([((𝑡 ↾ (1...𝑀))‘𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑))
2926, 27, 283syl 18 . . . . . . . . . . . 12 (𝑁 ∈ ℕ0 → ([((𝑡 ↾ (1...𝑀))‘𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑))
3022, 29syl5bb 270 . . . . . . . . . . 11 (𝑁 ∈ ℕ0 → ([(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑))
3130sbcbidv 3456 . . . . . . . . . 10 (𝑁 ∈ ℕ0 → ([(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑))
3217, 31syl5bb 270 . . . . . . . . 9 (𝑁 ∈ ℕ0 → ([((𝑡 ↾ (1...𝑀)) ↾ (1...𝑁)) / 𝑢][(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑))
3311, 32syl5bb 270 . . . . . . . 8 (𝑁 ∈ ℕ0 → ([(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑))
349, 33syl5rbb 271 . . . . . . 7 (𝑁 ∈ ℕ0 → ([(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑[(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑡𝐿) / 𝑤][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑))
3534rabbidv 3163 . . . . . 6 (𝑁 ∈ ℕ0 → {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑} = {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑡𝐿) / 𝑤][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑})
3635eleq1d 2671 . . . . 5 (𝑁 ∈ ℕ0 → ({𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑} ∈ (Dioph‘𝐿) ↔ {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑡𝐿) / 𝑤][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑} ∈ (Dioph‘𝐿)))
3736biimpa 499 . . . 4 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑} ∈ (Dioph‘𝐿)) → {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑡𝐿) / 𝑤][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑} ∈ (Dioph‘𝐿))
38 rexfrabdioph.2 . . . . 5 𝐿 = (𝑀 + 1)
3938rexfrabdioph 36173 . . . 4 ((𝑀 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑀)) / 𝑎][(𝑡𝐿) / 𝑤][(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑} ∈ (Dioph‘𝐿)) → {𝑎 ∈ (ℕ0𝑚 (1...𝑀)) ∣ ∃𝑤 ∈ ℕ0 [(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑} ∈ (Dioph‘𝑀))
407, 37, 39syl2anc 690 . . 3 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑} ∈ (Dioph‘𝐿)) → {𝑎 ∈ (ℕ0𝑚 (1...𝑀)) ∣ ∃𝑤 ∈ ℕ0 [(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝜑} ∈ (Dioph‘𝑀))
413, 40syl5eqel 2691 . 2 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑} ∈ (Dioph‘𝐿)) → {𝑎 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝑤 ∈ ℕ0 𝜑} ∈ (Dioph‘𝑀))
424rexfrabdioph 36173 . 2 ((𝑁 ∈ ℕ0 ∧ {𝑎 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑎 ↾ (1...𝑁)) / 𝑢][(𝑎𝑀) / 𝑣]𝑤 ∈ ℕ0 𝜑} ∈ (Dioph‘𝑀)) → {𝑢 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0𝑤 ∈ ℕ0 𝜑} ∈ (Dioph‘𝑁))
4341, 42syldan 485 1 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝐿)) ∣ [(𝑡 ↾ (1...𝑁)) / 𝑢][(𝑡𝑀) / 𝑣][(𝑡𝐿) / 𝑤]𝜑} ∈ (Dioph‘𝐿)) → {𝑢 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0𝑤 ∈ ℕ0 𝜑} ∈ (Dioph‘𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 194  wa 382   = wceq 1474  wcel 1976  wrex 2896  {crab 2899  Vcvv 3172  [wsbc 3401  wss 3539  cres 5030  cfv 5790  (class class class)co 6527  𝑚 cmap 7721  1c1 9793   + caddc 9795  cn 10867  0cn0 11139  ...cfz 12152  Diophcdioph 36132
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1712  ax-4 1727  ax-5 1826  ax-6 1874  ax-7 1921  ax-8 1978  ax-9 1985  ax-10 2005  ax-11 2020  ax-12 2033  ax-13 2233  ax-ext 2589  ax-rep 4693  ax-sep 4703  ax-nul 4712  ax-pow 4764  ax-pr 4828  ax-un 6824  ax-inf2 8398  ax-cnex 9848  ax-resscn 9849  ax-1cn 9850  ax-icn 9851  ax-addcl 9852  ax-addrcl 9853  ax-mulcl 9854  ax-mulrcl 9855  ax-mulcom 9856  ax-addass 9857  ax-mulass 9858  ax-distr 9859  ax-i2m1 9860  ax-1ne0 9861  ax-1rid 9862  ax-rnegex 9863  ax-rrecex 9864  ax-cnre 9865  ax-pre-lttri 9866  ax-pre-lttrn 9867  ax-pre-ltadd 9868  ax-pre-mulgt0 9869
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1700  df-sb 1867  df-eu 2461  df-mo 2462  df-clab 2596  df-cleq 2602  df-clel 2605  df-nfc 2739  df-ne 2781  df-nel 2782  df-ral 2900  df-rex 2901  df-reu 2902  df-rmo 2903  df-rab 2904  df-v 3174  df-sbc 3402  df-csb 3499  df-dif 3542  df-un 3544  df-in 3546  df-ss 3553  df-pss 3555  df-nul 3874  df-if 4036  df-pw 4109  df-sn 4125  df-pr 4127  df-tp 4129  df-op 4131  df-uni 4367  df-int 4405  df-iun 4451  df-br 4578  df-opab 4638  df-mpt 4639  df-tr 4675  df-eprel 4939  df-id 4943  df-po 4949  df-so 4950  df-fr 4987  df-we 4989  df-xp 5034  df-rel 5035  df-cnv 5036  df-co 5037  df-dm 5038  df-rn 5039  df-res 5040  df-ima 5041  df-pred 5583  df-ord 5629  df-on 5630  df-lim 5631  df-suc 5632  df-iota 5754  df-fun 5792  df-fn 5793  df-f 5794  df-f1 5795  df-fo 5796  df-f1o 5797  df-fv 5798  df-riota 6489  df-ov 6530  df-oprab 6531  df-mpt2 6532  df-of 6772  df-om 6935  df-1st 7036  df-2nd 7037  df-wrecs 7271  df-recs 7332  df-rdg 7370  df-1o 7424  df-oadd 7428  df-er 7606  df-map 7723  df-en 7819  df-dom 7820  df-sdom 7821  df-fin 7822  df-card 8625  df-cda 8850  df-pnf 9932  df-mnf 9933  df-xr 9934  df-ltxr 9935  df-le 9936  df-sub 10119  df-neg 10120  df-nn 10868  df-n0 11140  df-z 11211  df-uz 11520  df-fz 12153  df-hash 12935  df-mzpcl 36100  df-mzp 36101  df-dioph 36133
This theorem is referenced by:  3rexfrabdioph  36175  4rexfrabdioph  36176  6rexfrabdioph  36177
  Copyright terms: Public domain W3C validator