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

Theorem rexrabdioph 40532
Description: Diophantine set builder for existential quantification. (Contributed by Stefan O'Rear, 10-Oct-2014.)
Hypotheses
Ref Expression
rexrabdioph.1 𝑀 = (𝑁 + 1)
rexrabdioph.2 (𝑣 = (𝑡𝑀) → (𝜓𝜒))
rexrabdioph.3 (𝑢 = (𝑡 ↾ (1...𝑁)) → (𝜒𝜑))
Assertion
Ref Expression
rexrabdioph ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑢 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} ∈ (Dioph‘𝑁))
Distinct variable groups:   𝑡,𝑁,𝑢,𝑣   𝑡,𝑀,𝑢,𝑣   𝜑,𝑢,𝑣   𝜓,𝑡   𝜒,𝑣
Allowed substitution hints:   𝜑(𝑡)   𝜓(𝑣,𝑢)   𝜒(𝑢,𝑡)

Proof of Theorem rexrabdioph
Dummy variables 𝑎 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-rab 3072 . . . . . 6 {𝑎 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓} = {𝑎 ∣ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓)}
2 dfsbcq 3713 . . . . . . . . . . 11 (𝑏 = 𝑐 → ([𝑏 / 𝑣][𝑎 / 𝑢]𝜓[𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
32cbvrexvw 3373 . . . . . . . . . 10 (∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓 ↔ ∃𝑐 ∈ ℕ0 [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)
43anbi2i 622 . . . . . . . . 9 ((𝑎 ∈ (ℕ0m (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓) ↔ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ ∃𝑐 ∈ ℕ0 [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
5 r19.42v 3276 . . . . . . . . 9 (∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) ↔ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ ∃𝑐 ∈ ℕ0 [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
64, 5bitr4i 277 . . . . . . . 8 ((𝑎 ∈ (ℕ0m (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓) ↔ ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
7 simpll 763 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → 𝑁 ∈ ℕ0)
8 simpr 484 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → 𝑎 ∈ (ℕ0m (1...𝑁)))
9 simplr 765 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → 𝑐 ∈ ℕ0)
10 rexrabdioph.1 . . . . . . . . . . . . . 14 𝑀 = (𝑁 + 1)
1110mapfzcons 40454 . . . . . . . . . . . . 13 ((𝑁 ∈ ℕ0𝑎 ∈ (ℕ0m (1...𝑁)) ∧ 𝑐 ∈ ℕ0) → (𝑎 ∪ {⟨𝑀, 𝑐⟩}) ∈ (ℕ0m (1...𝑀)))
127, 8, 9, 11syl3anc 1369 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → (𝑎 ∪ {⟨𝑀, 𝑐⟩}) ∈ (ℕ0m (1...𝑀)))
1312adantrr 713 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)) → (𝑎 ∪ {⟨𝑀, 𝑐⟩}) ∈ (ℕ0m (1...𝑀)))
1410mapfzcons2 40457 . . . . . . . . . . . . . . . 16 ((𝑎 ∈ (ℕ0m (1...𝑁)) ∧ 𝑐 ∈ ℕ0) → ((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) = 𝑐)
158, 9, 14syl2anc 583 . . . . . . . . . . . . . . 15 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → ((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) = 𝑐)
1615eqcomd 2744 . . . . . . . . . . . . . 14 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → 𝑐 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀))
1710mapfzcons1 40455 . . . . . . . . . . . . . . . . 17 (𝑎 ∈ (ℕ0m (1...𝑁)) → ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) = 𝑎)
1817adantl 481 . . . . . . . . . . . . . . . 16 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) = 𝑎)
1918eqcomd 2744 . . . . . . . . . . . . . . 15 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → 𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))
2019sbceq1d 3716 . . . . . . . . . . . . . 14 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → ([𝑎 / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2116, 20sbceqbid 3718 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → ([𝑐 / 𝑣][𝑎 / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2221biimpd 228 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0m (1...𝑁))) → ([𝑐 / 𝑣][𝑎 / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2322impr 454 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)) → [((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓)
2419adantrr 713 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)) → 𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))
25 fveq1 6755 . . . . . . . . . . . . . 14 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → (𝑏𝑀) = ((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀))
26 reseq1 5874 . . . . . . . . . . . . . . 15 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → (𝑏 ↾ (1...𝑁)) = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))
2726sbceq1d 3716 . . . . . . . . . . . . . 14 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → ([(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2825, 27sbceqbid 3718 . . . . . . . . . . . . 13 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2926eqeq2d 2749 . . . . . . . . . . . . 13 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → (𝑎 = (𝑏 ↾ (1...𝑁)) ↔ 𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁))))
3028, 29anbi12d 630 . . . . . . . . . . . 12 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → (([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))) ↔ ([((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))))
3130rspcev 3552 . . . . . . . . . . 11 (((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ∈ (ℕ0m (1...𝑀)) ∧ ([((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))) → ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))))
3213, 23, 24, 31syl12anc 833 . . . . . . . . . 10 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)) → ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))))
3332rexlimdva2 3215 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) → ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))))
34 elmapi 8595 . . . . . . . . . . . . 13 (𝑏 ∈ (ℕ0m (1...𝑀)) → 𝑏:(1...𝑀)⟶ℕ0)
35 nn0p1nn 12202 . . . . . . . . . . . . . . 15 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
3610, 35eqeltrid 2843 . . . . . . . . . . . . . 14 (𝑁 ∈ ℕ0𝑀 ∈ ℕ)
37 elfz1end 13215 . . . . . . . . . . . . . 14 (𝑀 ∈ ℕ ↔ 𝑀 ∈ (1...𝑀))
3836, 37sylib 217 . . . . . . . . . . . . 13 (𝑁 ∈ ℕ0𝑀 ∈ (1...𝑀))
39 ffvelrn 6941 . . . . . . . . . . . . 13 ((𝑏:(1...𝑀)⟶ℕ0𝑀 ∈ (1...𝑀)) → (𝑏𝑀) ∈ ℕ0)
4034, 38, 39syl2anr 596 . . . . . . . . . . . 12 ((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) → (𝑏𝑀) ∈ ℕ0)
4140adantr 480 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → (𝑏𝑀) ∈ ℕ0)
42 simprr 769 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → 𝑎 = (𝑏 ↾ (1...𝑁)))
4310mapfzcons1cl 40456 . . . . . . . . . . . . 13 (𝑏 ∈ (ℕ0m (1...𝑀)) → (𝑏 ↾ (1...𝑁)) ∈ (ℕ0m (1...𝑁)))
4443ad2antlr 723 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → (𝑏 ↾ (1...𝑁)) ∈ (ℕ0m (1...𝑁)))
4542, 44eqeltrd 2839 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → 𝑎 ∈ (ℕ0m (1...𝑁)))
46 simprl 767 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → [(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓)
47 dfsbcq 3713 . . . . . . . . . . . . . 14 (𝑎 = (𝑏 ↾ (1...𝑁)) → ([𝑎 / 𝑢]𝜓[(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
4847sbcbidv 3770 . . . . . . . . . . . . 13 (𝑎 = (𝑏 ↾ (1...𝑁)) → ([(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓[(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
4948ad2antll 725 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → ([(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓[(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
5046, 49mpbird 256 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → [(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓)
51 dfsbcq 3713 . . . . . . . . . . . . 13 (𝑐 = (𝑏𝑀) → ([𝑐 / 𝑣][𝑎 / 𝑢]𝜓[(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓))
5251anbi2d 628 . . . . . . . . . . . 12 (𝑐 = (𝑏𝑀) → ((𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) ↔ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓)))
5352rspcev 3552 . . . . . . . . . . 11 (((𝑏𝑀) ∈ ℕ0 ∧ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓)) → ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
5441, 45, 50, 53syl12anc 833 . . . . . . . . . 10 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0m (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
5554rexlimdva2 3215 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))) → ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)))
5633, 55impbid 211 . . . . . . . 8 (𝑁 ∈ ℕ0 → (∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) ↔ ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))))
576, 56syl5bb 282 . . . . . . 7 (𝑁 ∈ ℕ0 → ((𝑎 ∈ (ℕ0m (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓) ↔ ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))))
5857abbidv 2808 . . . . . 6 (𝑁 ∈ ℕ0 → {𝑎 ∣ (𝑎 ∈ (ℕ0m (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓)} = {𝑎 ∣ ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))})
591, 58syl5eq 2791 . . . . 5 (𝑁 ∈ ℕ0 → {𝑎 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓} = {𝑎 ∣ ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))})
60 nfcv 2906 . . . . . 6 𝑢(ℕ0m (1...𝑁))
61 nfcv 2906 . . . . . 6 𝑎(ℕ0m (1...𝑁))
62 nfv 1918 . . . . . 6 𝑎𝑣 ∈ ℕ0 𝜓
63 nfcv 2906 . . . . . . 7 𝑢0
64 nfcv 2906 . . . . . . . 8 𝑢𝑏
65 nfsbc1v 3731 . . . . . . . 8 𝑢[𝑎 / 𝑢]𝜓
6664, 65nfsbcw 3733 . . . . . . 7 𝑢[𝑏 / 𝑣][𝑎 / 𝑢]𝜓
6763, 66nfrex 3237 . . . . . 6 𝑢𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓
68 sbceq1a 3722 . . . . . . . 8 (𝑢 = 𝑎 → (𝜓[𝑎 / 𝑢]𝜓))
6968rexbidv 3225 . . . . . . 7 (𝑢 = 𝑎 → (∃𝑣 ∈ ℕ0 𝜓 ↔ ∃𝑣 ∈ ℕ0 [𝑎 / 𝑢]𝜓))
70 nfv 1918 . . . . . . . 8 𝑏[𝑎 / 𝑢]𝜓
71 nfsbc1v 3731 . . . . . . . 8 𝑣[𝑏 / 𝑣][𝑎 / 𝑢]𝜓
72 sbceq1a 3722 . . . . . . . 8 (𝑣 = 𝑏 → ([𝑎 / 𝑢]𝜓[𝑏 / 𝑣][𝑎 / 𝑢]𝜓))
7370, 71, 72cbvrexw 3364 . . . . . . 7 (∃𝑣 ∈ ℕ0 [𝑎 / 𝑢]𝜓 ↔ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓)
7469, 73bitrdi 286 . . . . . 6 (𝑢 = 𝑎 → (∃𝑣 ∈ ℕ0 𝜓 ↔ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓))
7560, 61, 62, 67, 74cbvrabw 3414 . . . . 5 {𝑢 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} = {𝑎 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓}
76 fveq1 6755 . . . . . . . 8 (𝑡 = 𝑏 → (𝑡𝑀) = (𝑏𝑀))
77 reseq1 5874 . . . . . . . . 9 (𝑡 = 𝑏 → (𝑡 ↾ (1...𝑁)) = (𝑏 ↾ (1...𝑁)))
7877sbceq1d 3716 . . . . . . . 8 (𝑡 = 𝑏 → ([(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓[(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
7976, 78sbceqbid 3718 . . . . . . 7 (𝑡 = 𝑏 → ([(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓[(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
8079rexrab 3626 . . . . . 6 (∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁)) ↔ ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))))
8180abbii 2809 . . . . 5 {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁))} = {𝑎 ∣ ∃𝑏 ∈ (ℕ0m (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))}
8259, 75, 813eqtr4g 2804 . . . 4 (𝑁 ∈ ℕ0 → {𝑢 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} = {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁))})
83 fvex 6769 . . . . . . . 8 (𝑡𝑀) ∈ V
84 vex 3426 . . . . . . . . 9 𝑡 ∈ V
8584resex 5928 . . . . . . . 8 (𝑡 ↾ (1...𝑁)) ∈ V
86 rexrabdioph.2 . . . . . . . . 9 (𝑣 = (𝑡𝑀) → (𝜓𝜒))
87 rexrabdioph.3 . . . . . . . . 9 (𝑢 = (𝑡 ↾ (1...𝑁)) → (𝜒𝜑))
8886, 87sylan9bb 509 . . . . . . . 8 ((𝑣 = (𝑡𝑀) ∧ 𝑢 = (𝑡 ↾ (1...𝑁))) → (𝜓𝜑))
8983, 85, 88sbc2ie 3795 . . . . . . 7 ([(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓𝜑)
9089rabbii 3397 . . . . . 6 {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓} = {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑}
9190rexeqi 3338 . . . . 5 (∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁)) ↔ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁)))
9291abbii 2809 . . . 4 {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁))} = {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))}
9382, 92eqtrdi 2795 . . 3 (𝑁 ∈ ℕ0 → {𝑢 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} = {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))})
9493adantr 480 . 2 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑢 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} = {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))})
95 simpl 482 . . 3 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → 𝑁 ∈ ℕ0)
96 nn0z 12273 . . . . . 6 (𝑁 ∈ ℕ0𝑁 ∈ ℤ)
97 uzid 12526 . . . . . 6 (𝑁 ∈ ℤ → 𝑁 ∈ (ℤ𝑁))
98 peano2uz 12570 . . . . . 6 (𝑁 ∈ (ℤ𝑁) → (𝑁 + 1) ∈ (ℤ𝑁))
9996, 97, 983syl 18 . . . . 5 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ (ℤ𝑁))
10010, 99eqeltrid 2843 . . . 4 (𝑁 ∈ ℕ0𝑀 ∈ (ℤ𝑁))
101100adantr 480 . . 3 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → 𝑀 ∈ (ℤ𝑁))
102 simpr 484 . . 3 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀))
103 diophrex 40513 . . 3 ((𝑁 ∈ ℕ0𝑀 ∈ (ℤ𝑁) ∧ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))} ∈ (Dioph‘𝑁))
10495, 101, 102, 103syl3anc 1369 . 2 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))} ∈ (Dioph‘𝑁))
10594, 104eqeltrd 2839 1 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0m (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑢 ∈ (ℕ0m (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} ∈ (Dioph‘𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  {cab 2715  wrex 3064  {crab 3067  [wsbc 3711  cun 3881  {csn 4558  cop 4564  cres 5582  wf 6414  cfv 6418  (class class class)co 7255  m cmap 8573  1c1 10803   + caddc 10805  cn 11903  0cn0 12163  cz 12249  cuz 12511  ...cfz 13168  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-inf2 9329  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
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-int 4877  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-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-of 7511  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-er 8456  df-map 8575  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164  df-z 12250  df-uz 12512  df-fz 13169  df-hash 13973  df-mzpcl 40461  df-mzp 40462  df-dioph 40494
This theorem is referenced by:  rexfrabdioph  40533  elnn0rabdioph  40541  dvdsrabdioph  40548
  Copyright terms: Public domain W3C validator