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 36877
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 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑢 ∈ (ℕ0𝑚 (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 2917 . . . . . 6 {𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓} = {𝑎 ∣ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓)}
2 dfsbcq 3424 . . . . . . . . . . 11 (𝑏 = 𝑐 → ([𝑏 / 𝑣][𝑎 / 𝑢]𝜓[𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
32cbvrexv 3164 . . . . . . . . . 10 (∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓 ↔ ∃𝑐 ∈ ℕ0 [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)
43anbi2i 729 . . . . . . . . 9 ((𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓) ↔ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ ∃𝑐 ∈ ℕ0 [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
5 r19.42v 3086 . . . . . . . . 9 (∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) ↔ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ ∃𝑐 ∈ ℕ0 [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
64, 5bitr4i 267 . . . . . . . 8 ((𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓) ↔ ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
7 simpll 789 . . . . . . . . . . . . . 14 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → 𝑁 ∈ ℕ0)
8 simpr 477 . . . . . . . . . . . . . 14 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → 𝑎 ∈ (ℕ0𝑚 (1...𝑁)))
9 simplr 791 . . . . . . . . . . . . . 14 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → 𝑐 ∈ ℕ0)
10 rexrabdioph.1 . . . . . . . . . . . . . . 15 𝑀 = (𝑁 + 1)
1110mapfzcons 36798 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ 𝑐 ∈ ℕ0) → (𝑎 ∪ {⟨𝑀, 𝑐⟩}) ∈ (ℕ0𝑚 (1...𝑀)))
127, 8, 9, 11syl3anc 1323 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → (𝑎 ∪ {⟨𝑀, 𝑐⟩}) ∈ (ℕ0𝑚 (1...𝑀)))
1312adantrr 752 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)) → (𝑎 ∪ {⟨𝑀, 𝑐⟩}) ∈ (ℕ0𝑚 (1...𝑀)))
1410mapfzcons2 36801 . . . . . . . . . . . . . . . . 17 ((𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ 𝑐 ∈ ℕ0) → ((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) = 𝑐)
158, 9, 14syl2anc 692 . . . . . . . . . . . . . . . 16 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → ((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) = 𝑐)
1615eqcomd 2627 . . . . . . . . . . . . . . 15 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → 𝑐 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀))
1710mapfzcons1 36799 . . . . . . . . . . . . . . . . . 18 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) → ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) = 𝑎)
1817adantl 482 . . . . . . . . . . . . . . . . 17 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) = 𝑎)
1918eqcomd 2627 . . . . . . . . . . . . . . . 16 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → 𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))
2019sbceq1d 3427 . . . . . . . . . . . . . . 15 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → ([𝑎 / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2116, 20sbceqbid 3429 . . . . . . . . . . . . . 14 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → ([𝑐 / 𝑣][𝑎 / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2221biimpd 219 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ 𝑎 ∈ (ℕ0𝑚 (1...𝑁))) → ([𝑐 / 𝑣][𝑎 / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2322impr 648 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)) → [((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓)
2419adantrr 752 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)) → 𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))
25 fveq1 6157 . . . . . . . . . . . . . . 15 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → (𝑏𝑀) = ((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀))
26 reseq1 5360 . . . . . . . . . . . . . . . 16 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → (𝑏 ↾ (1...𝑁)) = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))
2726sbceq1d 3427 . . . . . . . . . . . . . . 15 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → ([(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2825, 27sbceqbid 3429 . . . . . . . . . . . . . 14 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓[((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓))
2926eqeq2d 2631 . . . . . . . . . . . . . 14 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → (𝑎 = (𝑏 ↾ (1...𝑁)) ↔ 𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁))))
3028, 29anbi12d 746 . . . . . . . . . . . . 13 (𝑏 = (𝑎 ∪ {⟨𝑀, 𝑐⟩}) → (([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))) ↔ ([((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))))
3130rspcev 3299 . . . . . . . . . . . 12 (((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ∈ (ℕ0𝑚 (1...𝑀)) ∧ ([((𝑎 ∪ {⟨𝑀, 𝑐⟩})‘𝑀) / 𝑣][((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = ((𝑎 ∪ {⟨𝑀, 𝑐⟩}) ↾ (1...𝑁)))) → ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))))
3213, 23, 24, 31syl12anc 1321 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) ∧ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)) → ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))))
3332ex 450 . . . . . . . . . 10 ((𝑁 ∈ ℕ0𝑐 ∈ ℕ0) → ((𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) → ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))))
3433rexlimdva 3026 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) → ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))))
35 elmapi 7839 . . . . . . . . . . . . . 14 (𝑏 ∈ (ℕ0𝑚 (1...𝑀)) → 𝑏:(1...𝑀)⟶ℕ0)
36 nn0p1nn 11292 . . . . . . . . . . . . . . . 16 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
3710, 36syl5eqel 2702 . . . . . . . . . . . . . . 15 (𝑁 ∈ ℕ0𝑀 ∈ ℕ)
38 elfz1end 12329 . . . . . . . . . . . . . . 15 (𝑀 ∈ ℕ ↔ 𝑀 ∈ (1...𝑀))
3937, 38sylib 208 . . . . . . . . . . . . . 14 (𝑁 ∈ ℕ0𝑀 ∈ (1...𝑀))
40 ffvelrn 6323 . . . . . . . . . . . . . 14 ((𝑏:(1...𝑀)⟶ℕ0𝑀 ∈ (1...𝑀)) → (𝑏𝑀) ∈ ℕ0)
4135, 39, 40syl2anr 495 . . . . . . . . . . . . 13 ((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) → (𝑏𝑀) ∈ ℕ0)
4241adantr 481 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → (𝑏𝑀) ∈ ℕ0)
43 simprr 795 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → 𝑎 = (𝑏 ↾ (1...𝑁)))
4410mapfzcons1cl 36800 . . . . . . . . . . . . . 14 (𝑏 ∈ (ℕ0𝑚 (1...𝑀)) → (𝑏 ↾ (1...𝑁)) ∈ (ℕ0𝑚 (1...𝑁)))
4544ad2antlr 762 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → (𝑏 ↾ (1...𝑁)) ∈ (ℕ0𝑚 (1...𝑁)))
4643, 45eqeltrd 2698 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → 𝑎 ∈ (ℕ0𝑚 (1...𝑁)))
47 simprl 793 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → [(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓)
48 dfsbcq 3424 . . . . . . . . . . . . . . 15 (𝑎 = (𝑏 ↾ (1...𝑁)) → ([𝑎 / 𝑢]𝜓[(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
4948sbcbidv 3477 . . . . . . . . . . . . . 14 (𝑎 = (𝑏 ↾ (1...𝑁)) → ([(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓[(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
5049ad2antll 764 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → ([(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓[(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
5147, 50mpbird 247 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → [(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓)
52 dfsbcq 3424 . . . . . . . . . . . . . 14 (𝑐 = (𝑏𝑀) → ([𝑐 / 𝑣][𝑎 / 𝑢]𝜓[(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓))
5352anbi2d 739 . . . . . . . . . . . . 13 (𝑐 = (𝑏𝑀) → ((𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) ↔ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓)))
5453rspcev 3299 . . . . . . . . . . . 12 (((𝑏𝑀) ∈ ℕ0 ∧ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [(𝑏𝑀) / 𝑣][𝑎 / 𝑢]𝜓)) → ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
5542, 46, 51, 54syl12anc 1321 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) ∧ ([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))) → ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓))
5655ex 450 . . . . . . . . . 10 ((𝑁 ∈ ℕ0𝑏 ∈ (ℕ0𝑚 (1...𝑀))) → (([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))) → ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)))
5756rexlimdva 3026 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))) → ∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓)))
5834, 57impbid 202 . . . . . . . 8 (𝑁 ∈ ℕ0 → (∃𝑐 ∈ ℕ0 (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ [𝑐 / 𝑣][𝑎 / 𝑢]𝜓) ↔ ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))))
596, 58syl5bb 272 . . . . . . 7 (𝑁 ∈ ℕ0 → ((𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓) ↔ ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))))
6059abbidv 2738 . . . . . 6 (𝑁 ∈ ℕ0 → {𝑎 ∣ (𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∧ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓)} = {𝑎 ∣ ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))})
611, 60syl5eq 2667 . . . . 5 (𝑁 ∈ ℕ0 → {𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓} = {𝑎 ∣ ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))})
62 nfcv 2761 . . . . . 6 𝑢(ℕ0𝑚 (1...𝑁))
63 nfcv 2761 . . . . . 6 𝑎(ℕ0𝑚 (1...𝑁))
64 nfv 1840 . . . . . 6 𝑎𝑣 ∈ ℕ0 𝜓
65 nfcv 2761 . . . . . . 7 𝑢0
66 nfcv 2761 . . . . . . . 8 𝑢𝑏
67 nfsbc1v 3442 . . . . . . . 8 𝑢[𝑎 / 𝑢]𝜓
6866, 67nfsbc 3444 . . . . . . 7 𝑢[𝑏 / 𝑣][𝑎 / 𝑢]𝜓
6965, 68nfrex 3003 . . . . . 6 𝑢𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓
70 sbceq1a 3433 . . . . . . . 8 (𝑢 = 𝑎 → (𝜓[𝑎 / 𝑢]𝜓))
7170rexbidv 3047 . . . . . . 7 (𝑢 = 𝑎 → (∃𝑣 ∈ ℕ0 𝜓 ↔ ∃𝑣 ∈ ℕ0 [𝑎 / 𝑢]𝜓))
72 nfv 1840 . . . . . . . 8 𝑏[𝑎 / 𝑢]𝜓
73 nfsbc1v 3442 . . . . . . . 8 𝑣[𝑏 / 𝑣][𝑎 / 𝑢]𝜓
74 sbceq1a 3433 . . . . . . . 8 (𝑣 = 𝑏 → ([𝑎 / 𝑢]𝜓[𝑏 / 𝑣][𝑎 / 𝑢]𝜓))
7572, 73, 74cbvrex 3160 . . . . . . 7 (∃𝑣 ∈ ℕ0 [𝑎 / 𝑢]𝜓 ↔ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓)
7671, 75syl6bb 276 . . . . . 6 (𝑢 = 𝑎 → (∃𝑣 ∈ ℕ0 𝜓 ↔ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓))
7762, 63, 64, 69, 76cbvrab 3188 . . . . 5 {𝑢 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} = {𝑎 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑏 ∈ ℕ0 [𝑏 / 𝑣][𝑎 / 𝑢]𝜓}
78 fveq1 6157 . . . . . . . 8 (𝑡 = 𝑏 → (𝑡𝑀) = (𝑏𝑀))
79 reseq1 5360 . . . . . . . . 9 (𝑡 = 𝑏 → (𝑡 ↾ (1...𝑁)) = (𝑏 ↾ (1...𝑁)))
8079sbceq1d 3427 . . . . . . . 8 (𝑡 = 𝑏 → ([(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓[(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
8178, 80sbceqbid 3429 . . . . . . 7 (𝑡 = 𝑏 → ([(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓[(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓))
8281rexrab 3357 . . . . . 6 (∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁)) ↔ ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁))))
8382abbii 2736 . . . . 5 {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁))} = {𝑎 ∣ ∃𝑏 ∈ (ℕ0𝑚 (1...𝑀))([(𝑏𝑀) / 𝑣][(𝑏 ↾ (1...𝑁)) / 𝑢]𝜓𝑎 = (𝑏 ↾ (1...𝑁)))}
8461, 77, 833eqtr4g 2680 . . . 4 (𝑁 ∈ ℕ0 → {𝑢 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} = {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁))})
85 fvex 6168 . . . . . . . . 9 (𝑡𝑀) ∈ V
86 vex 3193 . . . . . . . . . 10 𝑡 ∈ V
8786resex 5412 . . . . . . . . 9 (𝑡 ↾ (1...𝑁)) ∈ V
88 rexrabdioph.2 . . . . . . . . . 10 (𝑣 = (𝑡𝑀) → (𝜓𝜒))
89 rexrabdioph.3 . . . . . . . . . 10 (𝑢 = (𝑡 ↾ (1...𝑁)) → (𝜒𝜑))
9088, 89sylan9bb 735 . . . . . . . . 9 ((𝑣 = (𝑡𝑀) ∧ 𝑢 = (𝑡 ↾ (1...𝑁))) → (𝜓𝜑))
9185, 87, 90sbc2ie 3492 . . . . . . . 8 ([(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓𝜑)
9291a1i 11 . . . . . . 7 (𝑡 ∈ (ℕ0𝑚 (1...𝑀)) → ([(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓𝜑))
9392rabbiia 3177 . . . . . 6 {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓} = {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑}
9493rexeqi 3136 . . . . 5 (∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁)) ↔ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁)))
9594abbii 2736 . . . 4 {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ [(𝑡𝑀) / 𝑣][(𝑡 ↾ (1...𝑁)) / 𝑢]𝜓}𝑎 = (𝑏 ↾ (1...𝑁))} = {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))}
9684, 95syl6eq 2671 . . 3 (𝑁 ∈ ℕ0 → {𝑢 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} = {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))})
9796adantr 481 . 2 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑢 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} = {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))})
98 simpl 473 . . 3 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → 𝑁 ∈ ℕ0)
99 nn0z 11360 . . . . . 6 (𝑁 ∈ ℕ0𝑁 ∈ ℤ)
100 uzid 11662 . . . . . 6 (𝑁 ∈ ℤ → 𝑁 ∈ (ℤ𝑁))
101 peano2uz 11701 . . . . . 6 (𝑁 ∈ (ℤ𝑁) → (𝑁 + 1) ∈ (ℤ𝑁))
10299, 100, 1013syl 18 . . . . 5 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ (ℤ𝑁))
10310, 102syl5eqel 2702 . . . 4 (𝑁 ∈ ℕ0𝑀 ∈ (ℤ𝑁))
104103adantr 481 . . 3 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → 𝑀 ∈ (ℤ𝑁))
105 simpr 477 . . 3 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀))
106 diophrex 36858 . . 3 ((𝑁 ∈ ℕ0𝑀 ∈ (ℤ𝑁) ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))} ∈ (Dioph‘𝑁))
10798, 104, 105, 106syl3anc 1323 . 2 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑎 ∣ ∃𝑏 ∈ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑}𝑎 = (𝑏 ↾ (1...𝑁))} ∈ (Dioph‘𝑁))
10897, 107eqeltrd 2698 1 ((𝑁 ∈ ℕ0 ∧ {𝑡 ∈ (ℕ0𝑚 (1...𝑀)) ∣ 𝜑} ∈ (Dioph‘𝑀)) → {𝑢 ∈ (ℕ0𝑚 (1...𝑁)) ∣ ∃𝑣 ∈ ℕ0 𝜓} ∈ (Dioph‘𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384   = wceq 1480  wcel 1987  {cab 2607  wrex 2909  {crab 2912  [wsbc 3422  cun 3558  {csn 4155  cop 4161  cres 5086  wf 5853  cfv 5857  (class class class)co 6615  𝑚 cmap 7817  1c1 9897   + caddc 9899  cn 10980  0cn0 11252  cz 11337  cuz 11647  ...cfz 12284  Diophcdioph 36837
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4741  ax-sep 4751  ax-nul 4759  ax-pow 4813  ax-pr 4877  ax-un 6914  ax-inf2 8498  ax-cnex 9952  ax-resscn 9953  ax-1cn 9954  ax-icn 9955  ax-addcl 9956  ax-addrcl 9957  ax-mulcl 9958  ax-mulrcl 9959  ax-mulcom 9960  ax-addass 9961  ax-mulass 9962  ax-distr 9963  ax-i2m1 9964  ax-1ne0 9965  ax-1rid 9966  ax-rnegex 9967  ax-rrecex 9968  ax-cnre 9969  ax-pre-lttri 9970  ax-pre-lttrn 9971  ax-pre-ltadd 9972  ax-pre-mulgt0 9973
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2913  df-rex 2914  df-reu 2915  df-rmo 2916  df-rab 2917  df-v 3192  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3898  df-if 4065  df-pw 4138  df-sn 4156  df-pr 4158  df-tp 4160  df-op 4162  df-uni 4410  df-int 4448  df-iun 4494  df-br 4624  df-opab 4684  df-mpt 4685  df-tr 4723  df-eprel 4995  df-id 4999  df-po 5005  df-so 5006  df-fr 5043  df-we 5045  df-xp 5090  df-rel 5091  df-cnv 5092  df-co 5093  df-dm 5094  df-rn 5095  df-res 5096  df-ima 5097  df-pred 5649  df-ord 5695  df-on 5696  df-lim 5697  df-suc 5698  df-iota 5820  df-fun 5859  df-fn 5860  df-f 5861  df-f1 5862  df-fo 5863  df-f1o 5864  df-fv 5865  df-riota 6576  df-ov 6618  df-oprab 6619  df-mpt2 6620  df-of 6862  df-om 7028  df-1st 7128  df-2nd 7129  df-wrecs 7367  df-recs 7428  df-rdg 7466  df-1o 7520  df-oadd 7524  df-er 7702  df-map 7819  df-en 7916  df-dom 7917  df-sdom 7918  df-fin 7919  df-card 8725  df-cda 8950  df-pnf 10036  df-mnf 10037  df-xr 10038  df-ltxr 10039  df-le 10040  df-sub 10228  df-neg 10229  df-nn 10981  df-n0 11253  df-z 11338  df-uz 11648  df-fz 12285  df-hash 13074  df-mzpcl 36805  df-mzp 36806  df-dioph 36838
This theorem is referenced by:  rexfrabdioph  36878  elnn0rabdioph  36886  dvdsrabdioph  36893
  Copyright terms: Public domain W3C validator