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

Theorem uzrdgsuci 12576
Description: Successor value of a recursive definition generator on upper integers. See comment in om2uzrdg 12572. (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 12574 . . . . 5 𝑆 Fn (ℤ𝐶)
7 fnfun 5888 . . . . 5 (𝑆 Fn (ℤ𝐶) → Fun 𝑆)
86, 7ax-mp 5 . . . 4 Fun 𝑆
9 peano2uz 11573 . . . . . 6 (𝐵 ∈ (ℤ𝐶) → (𝐵 + 1) ∈ (ℤ𝐶))
101, 2, 3, 4uzrdglem 12573 . . . . . 6 ((𝐵 + 1) ∈ (ℤ𝐶) → ⟨(𝐵 + 1), (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))⟩ ∈ ran 𝑅)
119, 10syl 17 . . . . 5 (𝐵 ∈ (ℤ𝐶) → ⟨(𝐵 + 1), (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))⟩ ∈ ran 𝑅)
1211, 5syl6eleqr 2698 . . . 4 (𝐵 ∈ (ℤ𝐶) → ⟨(𝐵 + 1), (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))⟩ ∈ 𝑆)
13 funopfv 6130 . . . 4 (Fun 𝑆 → (⟨(𝐵 + 1), (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))⟩ ∈ 𝑆 → (𝑆‘(𝐵 + 1)) = (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1))))))
148, 12, 13mpsyl 65 . . 3 (𝐵 ∈ (ℤ𝐶) → (𝑆‘(𝐵 + 1)) = (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1)))))
151, 2om2uzf1oi 12569 . . . . . . . 8 𝐺:ω–1-1-onto→(ℤ𝐶)
16 f1ocnvdm 6418 . . . . . . . 8 ((𝐺:ω–1-1-onto→(ℤ𝐶) ∧ 𝐵 ∈ (ℤ𝐶)) → (𝐺𝐵) ∈ ω)
1715, 16mpan 701 . . . . . . 7 (𝐵 ∈ (ℤ𝐶) → (𝐺𝐵) ∈ ω)
18 peano2 6955 . . . . . . 7 ((𝐺𝐵) ∈ ω → suc (𝐺𝐵) ∈ ω)
1917, 18syl 17 . . . . . 6 (𝐵 ∈ (ℤ𝐶) → suc (𝐺𝐵) ∈ ω)
201, 2om2uzsuci 12564 . . . . . . . 8 ((𝐺𝐵) ∈ ω → (𝐺‘suc (𝐺𝐵)) = ((𝐺‘(𝐺𝐵)) + 1))
2117, 20syl 17 . . . . . . 7 (𝐵 ∈ (ℤ𝐶) → (𝐺‘suc (𝐺𝐵)) = ((𝐺‘(𝐺𝐵)) + 1))
22 f1ocnvfv2 6411 . . . . . . . . 9 ((𝐺:ω–1-1-onto→(ℤ𝐶) ∧ 𝐵 ∈ (ℤ𝐶)) → (𝐺‘(𝐺𝐵)) = 𝐵)
2315, 22mpan 701 . . . . . . . 8 (𝐵 ∈ (ℤ𝐶) → (𝐺‘(𝐺𝐵)) = 𝐵)
2423oveq1d 6542 . . . . . . 7 (𝐵 ∈ (ℤ𝐶) → ((𝐺‘(𝐺𝐵)) + 1) = (𝐵 + 1))
2521, 24eqtrd 2643 . . . . . 6 (𝐵 ∈ (ℤ𝐶) → (𝐺‘suc (𝐺𝐵)) = (𝐵 + 1))
26 f1ocnvfv 6412 . . . . . . 7 ((𝐺:ω–1-1-onto→(ℤ𝐶) ∧ suc (𝐺𝐵) ∈ ω) → ((𝐺‘suc (𝐺𝐵)) = (𝐵 + 1) → (𝐺‘(𝐵 + 1)) = suc (𝐺𝐵)))
2715, 26mpan 701 . . . . . 6 (suc (𝐺𝐵) ∈ ω → ((𝐺‘suc (𝐺𝐵)) = (𝐵 + 1) → (𝐺‘(𝐵 + 1)) = suc (𝐺𝐵)))
2819, 25, 27sylc 62 . . . . 5 (𝐵 ∈ (ℤ𝐶) → (𝐺‘(𝐵 + 1)) = suc (𝐺𝐵))
2928fveq2d 6092 . . . 4 (𝐵 ∈ (ℤ𝐶) → (𝑅‘(𝐺‘(𝐵 + 1))) = (𝑅‘suc (𝐺𝐵)))
3029fveq2d 6092 . . 3 (𝐵 ∈ (ℤ𝐶) → (2nd ‘(𝑅‘(𝐺‘(𝐵 + 1)))) = (2nd ‘(𝑅‘suc (𝐺𝐵))))
3114, 30eqtrd 2643 . 2 (𝐵 ∈ (ℤ𝐶) → (𝑆‘(𝐵 + 1)) = (2nd ‘(𝑅‘suc (𝐺𝐵))))
32 frsuc 7396 . . . . . . . 8 ((𝐺𝐵) ∈ ω → ((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘suc (𝐺𝐵)) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘(𝐺𝐵))))
334fveq1i 6089 . . . . . . . 8 (𝑅‘suc (𝐺𝐵)) = ((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘suc (𝐺𝐵))
344fveq1i 6089 . . . . . . . . 9 (𝑅‘(𝐺𝐵)) = ((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘(𝐺𝐵))
3534fveq2i 6091 . . . . . . . 8 ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅‘(𝐺𝐵))) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘((rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)‘(𝐺𝐵)))
3632, 33, 353eqtr4g 2668 . . . . . . 7 ((𝐺𝐵) ∈ ω → (𝑅‘suc (𝐺𝐵)) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅‘(𝐺𝐵))))
371, 2, 3, 4om2uzrdg 12572 . . . . . . . . 9 ((𝐺𝐵) ∈ ω → (𝑅‘(𝐺𝐵)) = ⟨(𝐺‘(𝐺𝐵)), (2nd ‘(𝑅‘(𝐺𝐵)))⟩)
3837fveq2d 6092 . . . . . . . 8 ((𝐺𝐵) ∈ ω → ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅‘(𝐺𝐵))) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(𝐺‘(𝐺𝐵)), (2nd ‘(𝑅‘(𝐺𝐵)))⟩))
39 df-ov 6530 . . . . . . . 8 ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))) = ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(𝐺‘(𝐺𝐵)), (2nd ‘(𝑅‘(𝐺𝐵)))⟩)
4038, 39syl6eqr 2661 . . . . . . 7 ((𝐺𝐵) ∈ ω → ((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅‘(𝐺𝐵))) = ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))))
4136, 40eqtrd 2643 . . . . . 6 ((𝐺𝐵) ∈ ω → (𝑅‘suc (𝐺𝐵)) = ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))))
42 fvex 6098 . . . . . . 7 (𝐺‘(𝐺𝐵)) ∈ V
43 fvex 6098 . . . . . . 7 (2nd ‘(𝑅‘(𝐺𝐵))) ∈ V
44 oveq1 6534 . . . . . . . . 9 (𝑧 = (𝐺‘(𝐺𝐵)) → (𝑧 + 1) = ((𝐺‘(𝐺𝐵)) + 1))
45 oveq1 6534 . . . . . . . . 9 (𝑧 = (𝐺‘(𝐺𝐵)) → (𝑧𝐹𝑤) = ((𝐺‘(𝐺𝐵))𝐹𝑤))
4644, 45opeq12d 4342 . . . . . . . 8 (𝑧 = (𝐺‘(𝐺𝐵)) → ⟨(𝑧 + 1), (𝑧𝐹𝑤)⟩ = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹𝑤)⟩)
47 oveq2 6535 . . . . . . . . 9 (𝑤 = (2nd ‘(𝑅‘(𝐺𝐵))) → ((𝐺‘(𝐺𝐵))𝐹𝑤) = ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))))
4847opeq2d 4341 . . . . . . . 8 (𝑤 = (2nd ‘(𝑅‘(𝐺𝐵))) → ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹𝑤)⟩ = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩)
49 oveq1 6534 . . . . . . . . . 10 (𝑥 = 𝑧 → (𝑥 + 1) = (𝑧 + 1))
50 oveq1 6534 . . . . . . . . . 10 (𝑥 = 𝑧 → (𝑥𝐹𝑦) = (𝑧𝐹𝑦))
5149, 50opeq12d 4342 . . . . . . . . 9 (𝑥 = 𝑧 → ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩ = ⟨(𝑧 + 1), (𝑧𝐹𝑦)⟩)
52 oveq2 6535 . . . . . . . . . 10 (𝑦 = 𝑤 → (𝑧𝐹𝑦) = (𝑧𝐹𝑤))
5352opeq2d 4341 . . . . . . . . 9 (𝑦 = 𝑤 → ⟨(𝑧 + 1), (𝑧𝐹𝑦)⟩ = ⟨(𝑧 + 1), (𝑧𝐹𝑤)⟩)
5451, 53cbvmpt2v 6611 . . . . . . . 8 (𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩) = (𝑧 ∈ V, 𝑤 ∈ V ↦ ⟨(𝑧 + 1), (𝑧𝐹𝑤)⟩)
55 opex 4853 . . . . . . . 8 ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩ ∈ V
5646, 48, 54, 55ovmpt2 6672 . . . . . . 7 (((𝐺‘(𝐺𝐵)) ∈ V ∧ (2nd ‘(𝑅‘(𝐺𝐵))) ∈ V) → ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))) = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩)
5742, 43, 56mp2an 703 . . . . . 6 ((𝐺‘(𝐺𝐵))(𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅‘(𝐺𝐵)))) = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩
5841, 57syl6eq 2659 . . . . 5 ((𝐺𝐵) ∈ ω → (𝑅‘suc (𝐺𝐵)) = ⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩)
5958fveq2d 6092 . . . 4 ((𝐺𝐵) ∈ ω → (2nd ‘(𝑅‘suc (𝐺𝐵))) = (2nd ‘⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩))
60 ovex 6555 . . . . 5 ((𝐺‘(𝐺𝐵)) + 1) ∈ V
61 ovex 6555 . . . . 5 ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))) ∈ V
6260, 61op2nd 7045 . . . 4 (2nd ‘⟨((𝐺‘(𝐺𝐵)) + 1), ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))⟩) = ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵))))
6359, 62syl6eq 2659 . . 3 ((𝐺𝐵) ∈ ω → (2nd ‘(𝑅‘suc (𝐺𝐵))) = ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))))
6417, 63syl 17 . 2 (𝐵 ∈ (ℤ𝐶) → (2nd ‘(𝑅‘suc (𝐺𝐵))) = ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))))
651, 2, 3, 4uzrdglem 12573 . . . . . 6 (𝐵 ∈ (ℤ𝐶) → ⟨𝐵, (2nd ‘(𝑅‘(𝐺𝐵)))⟩ ∈ ran 𝑅)
6665, 5syl6eleqr 2698 . . . . 5 (𝐵 ∈ (ℤ𝐶) → ⟨𝐵, (2nd ‘(𝑅‘(𝐺𝐵)))⟩ ∈ 𝑆)
67 funopfv 6130 . . . . 5 (Fun 𝑆 → (⟨𝐵, (2nd ‘(𝑅‘(𝐺𝐵)))⟩ ∈ 𝑆 → (𝑆𝐵) = (2nd ‘(𝑅‘(𝐺𝐵)))))
688, 66, 67mpsyl 65 . . . 4 (𝐵 ∈ (ℤ𝐶) → (𝑆𝐵) = (2nd ‘(𝑅‘(𝐺𝐵))))
6968eqcomd 2615 . . 3 (𝐵 ∈ (ℤ𝐶) → (2nd ‘(𝑅‘(𝐺𝐵))) = (𝑆𝐵))
7023, 69oveq12d 6545 . 2 (𝐵 ∈ (ℤ𝐶) → ((𝐺‘(𝐺𝐵))𝐹(2nd ‘(𝑅‘(𝐺𝐵)))) = (𝐵𝐹(𝑆𝐵)))
7131, 64, 703eqtrd 2647 1 (𝐵 ∈ (ℤ𝐶) → (𝑆‘(𝐵 + 1)) = (𝐵𝐹(𝑆𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1474  wcel 1976  Vcvv 3172  cop 4130  cmpt 4637  ccnv 5027  ran crn 5029  cres 5030  suc csuc 5628  Fun wfun 5784   Fn wfn 5785  1-1-ontowf1o 5789  cfv 5790  (class class class)co 6527  cmpt2 6529  ωcom 6934  2nd c2nd 7035  reccrdg 7369  1c1 9793   + caddc 9795  cz 11210  cuz 11519
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-sep 4703  ax-nul 4712  ax-pow 4764  ax-pr 4828  ax-un 6824  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-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-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-om 6935  df-2nd 7037  df-wrecs 7271  df-recs 7332  df-rdg 7370  df-er 7606  df-en 7819  df-dom 7820  df-sdom 7821  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
This theorem is referenced by:  seqp1  12633
  Copyright terms: Public domain W3C validator