MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  uzrdgsuci Structured version   Visualization version   GIF version

Theorem uzrdgsuci 12953
Description: Successor value of a recursive definition generator on upper integers. See comment in om2uzrdg 12949. (Contributed by Mario Carneiro, 26-Jun-2013.) (Revised by Mario Carneiro, 13-Sep-2013.)
Hypotheses
Ref Expression
om2uz.1 𝐶 ∈ ℤ
om2uz.2 𝐺 = (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 𝐶) ↾ ω)
uzrdg.1 𝐴 ∈ V
uzrdg.2 𝑅 = (rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)
uzrdg.3 𝑆 = ran 𝑅
Assertion
Ref Expression
uzrdgsuci (𝐵 ∈ (ℤ𝐶) → (𝑆‘(𝐵 + 1)) = (𝐵𝐹(𝑆𝐵)))
Distinct variable groups:   𝑦,𝐴   𝑥,𝑦,𝐶   𝑦,𝐺   𝑥,𝐹,𝑦
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑥,𝑦)   𝑅(𝑥,𝑦)   𝑆(𝑥,𝑦)   𝐺(𝑥)

Proof of Theorem uzrdgsuci
Dummy variables 𝑧 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 om2uz.1 . . . . . 6 𝐶 ∈ ℤ
2 om2uz.2 . . . . . 6 𝐺 = (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 𝐶) ↾ ω)
3 uzrdg.1 . . . . . 6 𝐴 ∈ V
4 uzrdg.2 . . . . . 6 𝑅 = (rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)
5 uzrdg.3 . . . . . 6 𝑆 = ran 𝑅
61, 2, 3, 4, 5uzrdgfni 12951 . . . . 5 𝑆 Fn (ℤ𝐶)
7 fnfun 6149 . . . . 5 (𝑆 Fn (ℤ𝐶) → Fun 𝑆)
86, 7ax-mp 5 . . . 4 Fun 𝑆
9 peano2uz 11934 . . . . . 6 (𝐵 ∈ (ℤ𝐶) → (𝐵 + 1) ∈ (ℤ𝐶))
101, 2, 3, 4uzrdglem 12950 . . . . . 6 ((𝐵 + 1) ∈ (ℤ𝐶) → ⟨(𝐵 + 1), (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))⟩ ∈ ran 𝑅)
119, 10syl 17 . . . . 5 (𝐵 ∈ (ℤ𝐶) → ⟨(𝐵 + 1), (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))⟩ ∈ ran 𝑅)
1211, 5syl6eleqr 2850 . . . 4 (𝐵 ∈ (ℤ𝐶) → ⟨(𝐵 + 1), (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))⟩ ∈ 𝑆)
13 funopfv 6396 . . . 4 (Fun 𝑆 → (⟨(𝐵 + 1), (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))⟩ ∈ 𝑆 → (𝑆‘(𝐵 + 1)) = (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))))
148, 12, 13mpsyl 68 . . 3 (𝐵 ∈ (ℤ𝐶) → (𝑆‘(𝐵 + 1)) = (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1)))))
151, 2om2uzf1oi 12946 . . . . . . . 8 𝐺:ω–1-1-onto→(ℤ𝐶)
16 f1ocnvdm 6703 . . . . . . . 8 ((𝐺:ω–1-1-onto→(ℤ𝐶) ∧ 𝐵 ∈ (ℤ𝐶)) → (𝐺𝐵) ∈ ω)
1715, 16mpan 708 . . . . . . 7 (𝐵 ∈ (ℤ𝐶) → (𝐺𝐵) ∈ ω)
18 peano2 7251 . . . . . . 7 ((𝐺𝐵) ∈ ω → suc (𝐺𝐵) ∈ ω)
1917, 18syl 17 . . . . . 6 (𝐵 ∈ (ℤ𝐶) → suc (𝐺𝐵) ∈ ω)
201, 2om2uzsuci 12941 . . . . . . . 8 ((𝐺𝐵) ∈ ω → (𝐺‘suc (𝐺𝐵)) = ((𝐺‘(𝐺𝐵)) + 1))
2117, 20syl 17 . . . . . . 7 (𝐵 ∈ (ℤ𝐶) → (𝐺‘suc (𝐺𝐵)) = ((𝐺‘(𝐺𝐵)) + 1))
22 f1ocnvfv2 6696 . . . . . . . . 9 ((𝐺:ω–1-1-onto→(ℤ𝐶) ∧ 𝐵 ∈ (ℤ𝐶)) → (𝐺‘(𝐺𝐵)) = 𝐵)
2315, 22mpan 708 . . . . . . . 8 (𝐵 ∈ (ℤ𝐶) → (𝐺‘(𝐺𝐵)) = 𝐵)
2423oveq1d 6828 . . . . . . 7 (𝐵 ∈ (ℤ𝐶) → ((𝐺‘(𝐺𝐵)) + 1) = (𝐵 + 1))
2521, 24eqtrd 2794 . . . . . 6 (𝐵 ∈ (ℤ𝐶) → (𝐺‘suc (𝐺𝐵)) = (𝐵 + 1))
26 f1ocnvfv 6697 . . . . . . 7 ((𝐺:ω–1-1-onto→(ℤ𝐶) ∧ suc (𝐺𝐵) ∈ ω) → ((𝐺‘suc (𝐺𝐵)) = (𝐵 + 1) → (𝐺‘(𝐵 + 1)) = suc (𝐺𝐵)))
2715, 26mpan 708 . . . . . 6 (suc (𝐺𝐵) ∈ ω → ((𝐺‘suc (𝐺𝐵)) = (𝐵 + 1) → (𝐺‘(𝐵 + 1)) = suc (𝐺𝐵)))
2819, 25, 27sylc 65 . . . . 5 (𝐵 ∈ (ℤ𝐶) → (𝐺‘(𝐵 + 1)) = suc (𝐺𝐵))
2928fveq2d 6356 . . . 4 (𝐵 ∈ (ℤ𝐶) → (𝑅‘(𝐺‘(𝐵 + 1))) = (𝑅‘suc (𝐺𝐵)))
3029fveq2d 6356 . . 3 (𝐵 ∈ (ℤ𝐶) → (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1)))) = (2nd ‘(𝑅‘suc (𝐺𝐵))))
3114, 30eqtrd 2794 . 2 (𝐵 ∈ (ℤ𝐶) → (𝑆‘(𝐵 + 1)) = (2nd ‘(𝑅‘suc (𝐺𝐵))))
32 frsuc 7701 . . . . . . . 8 ((𝐺𝐵) ∈ ω → ((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘suc (𝐺𝐵)) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘(𝐺𝐵))))
334fveq1i 6353 . . . . . . . 8 (𝑅‘suc (𝐺𝐵)) = ((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘suc (𝐺𝐵))
344fveq1i 6353 . . . . . . . . 9 (𝑅‘(𝐺𝐵)) = ((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘(𝐺𝐵))
3534fveq2i 6355 . . . . . . . 8 ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅‘(𝐺𝐵))) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘(𝐺𝐵)))
3632, 33, 353eqtr4g 2819 . . . . . . 7 ((𝐺𝐵) ∈ ω → (𝑅‘suc (𝐺𝐵)) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅‘(𝐺𝐵))))
371, 2, 3, 4om2uzrdg 12949 . . . . . . . . 9 ((𝐺𝐵) ∈ ω → (𝑅‘(𝐺𝐵)) = ⟨(𝐺‘(𝐺𝐵)), (2nd ‘(𝑅‘(𝐺𝐵)))⟩)
3837fveq2d 6356 . . . . . . . 8 ((𝐺𝐵) ∈ ω → ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅‘(𝐺𝐵))) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(𝐺‘(𝐺𝐵)), (2nd ‘(𝑅‘(𝐺𝐵)))⟩))
39 df-ov 6816 . . . . . . . 8 ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(𝐺‘(𝐺𝐵)), (2nd ‘(𝑅‘(𝐺𝐵)))⟩)
4038, 39syl6eqr 2812 . . . . . . 7 ((𝐺𝐵) ∈ ω → ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅‘(𝐺𝐵))) = ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))))
4136, 40eqtrd 2794 . . . . . 6 ((𝐺𝐵) ∈ ω → (𝑅‘suc (𝐺𝐵)) = ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))))
42 fvex 6362 . . . . . . 7 (𝐺‘(𝐺𝐵)) ∈ V
43 fvex 6362 . . . . . . 7 (2nd ‘(𝑅‘(𝐺𝐵))) ∈ V
44 oveq1 6820 . . . . . . . . 9 (𝑧 = (𝐺‘(𝐺𝐵)) → (𝑧 + 1) = ((𝐺‘(𝐺𝐵)) + 1))
45 oveq1 6820 . . . . . . . . 9 (𝑧 = (𝐺‘(𝐺𝐵)) → (𝑧𝐹𝑤) = ((𝐺‘(𝐺𝐵))𝐹𝑤))
4644, 45opeq12d 4561 . . . . . . . 8 (𝑧 = (𝐺‘(𝐺𝐵)) → ⟨(𝑧 + 1), (𝑧𝐹𝑤)⟩ = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹𝑤)⟩)
47 oveq2 6821 . . . . . . . . 9 (𝑤 = (2nd ‘(𝑅‘(𝐺𝐵))) → ((𝐺‘(𝐺𝐵))𝐹𝑤) = ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))))
4847opeq2d 4560 . . . . . . . 8 (𝑤 = (2nd ‘(𝑅‘(𝐺𝐵))) → ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹𝑤)⟩ = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩)
49 oveq1 6820 . . . . . . . . . 10 (𝑥 = 𝑧 → (𝑥 + 1) = (𝑧 + 1))
50 oveq1 6820 . . . . . . . . . 10 (𝑥 = 𝑧 → (𝑥𝐹𝑦) = (𝑧𝐹𝑦))
5149, 50opeq12d 4561 . . . . . . . . 9 (𝑥 = 𝑧 → ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩ = ⟨(𝑧 + 1), (𝑧𝐹𝑦)⟩)
52 oveq2 6821 . . . . . . . . . 10 (𝑦 = 𝑤 → (𝑧𝐹𝑦) = (𝑧𝐹𝑤))
5352opeq2d 4560 . . . . . . . . 9 (𝑦 = 𝑤 → ⟨(𝑧 + 1), (𝑧𝐹𝑦)⟩ = ⟨(𝑧 + 1), (𝑧𝐹𝑤)⟩)
5451, 53cbvmpt2v 6900 . . . . . . . 8 (𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩) = (𝑧 ∈ V, 𝑤 ∈ V ↦ ⟨(𝑧 + 1), (𝑧𝐹𝑤)⟩)
55 opex 5081 . . . . . . . 8 ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩ ∈ V
5646, 48, 54, 55ovmpt2 6961 . . . . . . 7 (((𝐺‘(𝐺𝐵)) ∈ V ∧ (2nd ‘(𝑅‘(𝐺𝐵))) ∈ V) → ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))) = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩)
5742, 43, 56mp2an 710 . . . . . 6 ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))) = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩
5841, 57syl6eq 2810 . . . . 5 ((𝐺𝐵) ∈ ω → (𝑅‘suc (𝐺𝐵)) = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩)
5958fveq2d 6356 . . . 4 ((𝐺𝐵) ∈ ω → (2nd ‘(𝑅‘suc (𝐺𝐵))) = (2nd ‘⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩))
60 ovex 6841 . . . . 5 ((𝐺‘(𝐺𝐵)) + 1) ∈ V
61 ovex 6841 . . . . 5 ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))) ∈ V
6260, 61op2nd 7342 . . . 4 (2nd ‘⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩) = ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))
6359, 62syl6eq 2810 . . 3 ((𝐺𝐵) ∈ ω → (2nd ‘(𝑅‘suc (𝐺𝐵))) = ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))))
6417, 63syl 17 . 2 (𝐵 ∈ (ℤ𝐶) → (2nd ‘(𝑅‘suc (𝐺𝐵))) = ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))))
651, 2, 3, 4uzrdglem 12950 . . . . . 6 (𝐵 ∈ (ℤ𝐶) → ⟨𝐵, (2nd ‘(𝑅‘(𝐺𝐵)))⟩ ∈ ran 𝑅)
6665, 5syl6eleqr 2850 . . . . 5 (𝐵 ∈ (ℤ𝐶) → ⟨𝐵, (2nd ‘(𝑅‘(𝐺𝐵)))⟩ ∈ 𝑆)
67 funopfv 6396 . . . . 5 (Fun 𝑆 → (⟨𝐵, (2nd ‘(𝑅‘(𝐺𝐵)))⟩ ∈ 𝑆 → (𝑆𝐵) = (2nd ‘(𝑅‘(𝐺𝐵)))))
688, 66, 67mpsyl 68 . . . 4 (𝐵 ∈ (ℤ𝐶) → (𝑆𝐵) = (2nd ‘(𝑅‘(𝐺𝐵))))
6968eqcomd 2766 . . 3 (𝐵 ∈ (ℤ𝐶) → (2nd ‘(𝑅‘(𝐺𝐵))) = (𝑆𝐵))
7023, 69oveq12d 6831 . 2 (𝐵 ∈ (ℤ𝐶) → ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))) = (𝐵𝐹(𝑆𝐵)))
7131, 64, 703eqtrd 2798 1 (𝐵 ∈ (ℤ𝐶) → (𝑆‘(𝐵 + 1)) = (𝐵𝐹(𝑆𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1632  wcel 2139  Vcvv 3340  cop 4327  cmpt 4881  ccnv 5265  ran crn 5267  cres 5268  suc csuc 5886  Fun wfun 6043   Fn wfn 6044  1-1-ontowf1o 6048  cfv 6049  (class class class)co 6813  cmpt2 6815  ωcom 7230  2nd c2nd 7332  reccrdg 7674  1c1 10129   + caddc 10131  cz 11569  cuz 11879
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1988  ax-6 2054  ax-7 2090  ax-8 2141  ax-9 2148  ax-10 2168  ax-11 2183  ax-12 2196  ax-13 2391  ax-ext 2740  ax-sep 4933  ax-nul 4941  ax-pow 4992  ax-pr 5055  ax-un 7114  ax-cnex 10184  ax-resscn 10185  ax-1cn 10186  ax-icn 10187  ax-addcl 10188  ax-addrcl 10189  ax-mulcl 10190  ax-mulrcl 10191  ax-mulcom 10192  ax-addass 10193  ax-mulass 10194  ax-distr 10195  ax-i2m1 10196  ax-1ne0 10197  ax-1rid 10198  ax-rnegex 10199  ax-rrecex 10200  ax-cnre 10201  ax-pre-lttri 10202  ax-pre-lttrn 10203  ax-pre-ltadd 10204  ax-pre-mulgt0 10205
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-ex 1854  df-nf 1859  df-sb 2047  df-eu 2611  df-mo 2612  df-clab 2747  df-cleq 2753  df-clel 2756  df-nfc 2891  df-ne 2933  df-nel 3036  df-ral 3055  df-rex 3056  df-reu 3057  df-rab 3059  df-v 3342  df-sbc 3577  df-csb 3675  df-dif 3718  df-un 3720  df-in 3722  df-ss 3729  df-pss 3731  df-nul 4059  df-if 4231  df-pw 4304  df-sn 4322  df-pr 4324  df-tp 4326  df-op 4328  df-uni 4589  df-iun 4674  df-br 4805  df-opab 4865  df-mpt 4882  df-tr 4905  df-id 5174  df-eprel 5179  df-po 5187  df-so 5188  df-fr 5225  df-we 5227  df-xp 5272  df-rel 5273  df-cnv 5274  df-co 5275  df-dm 5276  df-rn 5277  df-res 5278  df-ima 5279  df-pred 5841  df-ord 5887  df-on 5888  df-lim 5889  df-suc 5890  df-iota 6012  df-fun 6051  df-fn 6052  df-f 6053  df-f1 6054  df-fo 6055  df-f1o 6056  df-fv 6057  df-riota 6774  df-ov 6816  df-oprab 6817  df-mpt2 6818  df-om 7231  df-2nd 7334  df-wrecs 7576  df-recs 7637  df-rdg 7675  df-er 7911  df-en 8122  df-dom 8123  df-sdom 8124  df-pnf 10268  df-mnf 10269  df-xr 10270  df-ltxr 10271  df-le 10272  df-sub 10460  df-neg 10461  df-nn 11213  df-n0 11485  df-z 11570  df-uz 11880
This theorem is referenced by:  seqp1  13010
  Copyright terms: Public domain W3C validator