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

Theorem uzrdgfni 13606
Description: The recursive definition generator on upper integers is a function. See comment in om2uzrdg 13604. (Contributed by Mario Carneiro, 26-Jun-2013.) (Revised by Mario Carneiro, 4-May-2015.)
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
uzrdgfni 𝑆 Fn (ℤ𝐶)
Distinct variable groups:   𝑦,𝐴   𝑥,𝑦,𝐶   𝑦,𝐺   𝑥,𝐹,𝑦
Allowed substitution hints:   𝐴(𝑥)   𝑅(𝑥,𝑦)   𝑆(𝑥,𝑦)   𝐺(𝑥)

Proof of Theorem uzrdgfni
Dummy variables 𝑧 𝑤 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 uzrdg.3 . . . . . . . . 9 𝑆 = ran 𝑅
21eleq2i 2830 . . . . . . . 8 (𝑧𝑆𝑧 ∈ ran 𝑅)
3 frfnom 8236 . . . . . . . . . 10 (rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω) Fn ω
4 uzrdg.2 . . . . . . . . . . 11 𝑅 = (rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)
54fneq1i 6514 . . . . . . . . . 10 (𝑅 Fn ω ↔ (rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω) Fn ω)
63, 5mpbir 230 . . . . . . . . 9 𝑅 Fn ω
7 fvelrnb 6812 . . . . . . . . 9 (𝑅 Fn ω → (𝑧 ∈ ran 𝑅 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = 𝑧))
86, 7ax-mp 5 . . . . . . . 8 (𝑧 ∈ ran 𝑅 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = 𝑧)
92, 8bitri 274 . . . . . . 7 (𝑧𝑆 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = 𝑧)
10 om2uz.1 . . . . . . . . . . 11 𝐶 ∈ ℤ
11 om2uz.2 . . . . . . . . . . 11 𝐺 = (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 𝐶) ↾ ω)
12 uzrdg.1 . . . . . . . . . . 11 𝐴 ∈ V
1310, 11, 12, 4om2uzrdg 13604 . . . . . . . . . 10 (𝑤 ∈ ω → (𝑅𝑤) = ⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩)
1410, 11om2uzuzi 13597 . . . . . . . . . . 11 (𝑤 ∈ ω → (𝐺𝑤) ∈ (ℤ𝐶))
15 fvex 6769 . . . . . . . . . . 11 (2nd ‘(𝑅𝑤)) ∈ V
16 opelxpi 5617 . . . . . . . . . . 11 (((𝐺𝑤) ∈ (ℤ𝐶) ∧ (2nd ‘(𝑅𝑤)) ∈ V) → ⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩ ∈ ((ℤ𝐶) × V))
1714, 15, 16sylancl 585 . . . . . . . . . 10 (𝑤 ∈ ω → ⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩ ∈ ((ℤ𝐶) × V))
1813, 17eqeltrd 2839 . . . . . . . . 9 (𝑤 ∈ ω → (𝑅𝑤) ∈ ((ℤ𝐶) × V))
19 eleq1 2826 . . . . . . . . 9 ((𝑅𝑤) = 𝑧 → ((𝑅𝑤) ∈ ((ℤ𝐶) × V) ↔ 𝑧 ∈ ((ℤ𝐶) × V)))
2018, 19syl5ibcom 244 . . . . . . . 8 (𝑤 ∈ ω → ((𝑅𝑤) = 𝑧𝑧 ∈ ((ℤ𝐶) × V)))
2120rexlimiv 3208 . . . . . . 7 (∃𝑤 ∈ ω (𝑅𝑤) = 𝑧𝑧 ∈ ((ℤ𝐶) × V))
229, 21sylbi 216 . . . . . 6 (𝑧𝑆𝑧 ∈ ((ℤ𝐶) × V))
2322ssriv 3921 . . . . 5 𝑆 ⊆ ((ℤ𝐶) × V)
24 xpss 5596 . . . . 5 ((ℤ𝐶) × V) ⊆ (V × V)
2523, 24sstri 3926 . . . 4 𝑆 ⊆ (V × V)
26 df-rel 5587 . . . 4 (Rel 𝑆𝑆 ⊆ (V × V))
2725, 26mpbir 230 . . 3 Rel 𝑆
28 fvex 6769 . . . . . 6 (2nd ‘(𝑅‘(𝐺𝑣))) ∈ V
29 eqeq2 2750 . . . . . . . 8 (𝑤 = (2nd ‘(𝑅‘(𝐺𝑣))) → (𝑧 = 𝑤𝑧 = (2nd ‘(𝑅‘(𝐺𝑣)))))
3029imbi2d 340 . . . . . . 7 (𝑤 = (2nd ‘(𝑅‘(𝐺𝑣))) → ((⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤) ↔ (⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))))
3130albidv 1924 . . . . . 6 (𝑤 = (2nd ‘(𝑅‘(𝐺𝑣))) → (∀𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤) ↔ ∀𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))))
3228, 31spcev 3535 . . . . 5 (∀𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = (2nd ‘(𝑅‘(𝐺𝑣)))) → ∃𝑤𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤))
331eleq2i 2830 . . . . . . 7 (⟨𝑣, 𝑧⟩ ∈ 𝑆 ↔ ⟨𝑣, 𝑧⟩ ∈ ran 𝑅)
34 fvelrnb 6812 . . . . . . . 8 (𝑅 Fn ω → (⟨𝑣, 𝑧⟩ ∈ ran 𝑅 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = ⟨𝑣, 𝑧⟩))
356, 34ax-mp 5 . . . . . . 7 (⟨𝑣, 𝑧⟩ ∈ ran 𝑅 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = ⟨𝑣, 𝑧⟩)
3633, 35bitri 274 . . . . . 6 (⟨𝑣, 𝑧⟩ ∈ 𝑆 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = ⟨𝑣, 𝑧⟩)
3713eqeq1d 2740 . . . . . . . . . . . 12 (𝑤 ∈ ω → ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ ↔ ⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩ = ⟨𝑣, 𝑧⟩))
38 fvex 6769 . . . . . . . . . . . . 13 (𝐺𝑤) ∈ V
3938, 15opth1 5384 . . . . . . . . . . . 12 (⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩ = ⟨𝑣, 𝑧⟩ → (𝐺𝑤) = 𝑣)
4037, 39syl6bi 252 . . . . . . . . . . 11 (𝑤 ∈ ω → ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ → (𝐺𝑤) = 𝑣))
4110, 11om2uzf1oi 13601 . . . . . . . . . . . 12 𝐺:ω–1-1-onto→(ℤ𝐶)
42 f1ocnvfv 7131 . . . . . . . . . . . 12 ((𝐺:ω–1-1-onto→(ℤ𝐶) ∧ 𝑤 ∈ ω) → ((𝐺𝑤) = 𝑣 → (𝐺𝑣) = 𝑤))
4341, 42mpan 686 . . . . . . . . . . 11 (𝑤 ∈ ω → ((𝐺𝑤) = 𝑣 → (𝐺𝑣) = 𝑤))
4440, 43syld 47 . . . . . . . . . 10 (𝑤 ∈ ω → ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ → (𝐺𝑣) = 𝑤))
45 2fveq3 6761 . . . . . . . . . 10 ((𝐺𝑣) = 𝑤 → (2nd ‘(𝑅‘(𝐺𝑣))) = (2nd ‘(𝑅𝑤)))
4644, 45syl6 35 . . . . . . . . 9 (𝑤 ∈ ω → ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ → (2nd ‘(𝑅‘(𝐺𝑣))) = (2nd ‘(𝑅𝑤))))
4746imp 406 . . . . . . . 8 ((𝑤 ∈ ω ∧ (𝑅𝑤) = ⟨𝑣, 𝑧⟩) → (2nd ‘(𝑅‘(𝐺𝑣))) = (2nd ‘(𝑅𝑤)))
48 vex 3426 . . . . . . . . . 10 𝑣 ∈ V
49 vex 3426 . . . . . . . . . 10 𝑧 ∈ V
5048, 49op2ndd 7815 . . . . . . . . 9 ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ → (2nd ‘(𝑅𝑤)) = 𝑧)
5150adantl 481 . . . . . . . 8 ((𝑤 ∈ ω ∧ (𝑅𝑤) = ⟨𝑣, 𝑧⟩) → (2nd ‘(𝑅𝑤)) = 𝑧)
5247, 51eqtr2d 2779 . . . . . . 7 ((𝑤 ∈ ω ∧ (𝑅𝑤) = ⟨𝑣, 𝑧⟩) → 𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))
5352rexlimiva 3209 . . . . . 6 (∃𝑤 ∈ ω (𝑅𝑤) = ⟨𝑣, 𝑧⟩ → 𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))
5436, 53sylbi 216 . . . . 5 (⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))
5532, 54mpg 1801 . . . 4 𝑤𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤)
5655ax-gen 1799 . . 3 𝑣𝑤𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤)
57 dffun5 6431 . . 3 (Fun 𝑆 ↔ (Rel 𝑆 ∧ ∀𝑣𝑤𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤)))
5827, 56, 57mpbir2an 707 . 2 Fun 𝑆
59 dmss 5800 . . . . 5 (𝑆 ⊆ ((ℤ𝐶) × V) → dom 𝑆 ⊆ dom ((ℤ𝐶) × V))
6023, 59ax-mp 5 . . . 4 dom 𝑆 ⊆ dom ((ℤ𝐶) × V)
61 dmxpss 6063 . . . 4 dom ((ℤ𝐶) × V) ⊆ (ℤ𝐶)
6260, 61sstri 3926 . . 3 dom 𝑆 ⊆ (ℤ𝐶)
6310, 11, 12, 4uzrdglem 13605 . . . . . 6 (𝑣 ∈ (ℤ𝐶) → ⟨𝑣, (2nd ‘(𝑅‘(𝐺𝑣)))⟩ ∈ ran 𝑅)
6463, 1eleqtrrdi 2850 . . . . 5 (𝑣 ∈ (ℤ𝐶) → ⟨𝑣, (2nd ‘(𝑅‘(𝐺𝑣)))⟩ ∈ 𝑆)
6548, 28opeldm 5805 . . . . 5 (⟨𝑣, (2nd ‘(𝑅‘(𝐺𝑣)))⟩ ∈ 𝑆𝑣 ∈ dom 𝑆)
6664, 65syl 17 . . . 4 (𝑣 ∈ (ℤ𝐶) → 𝑣 ∈ dom 𝑆)
6766ssriv 3921 . . 3 (ℤ𝐶) ⊆ dom 𝑆
6862, 67eqssi 3933 . 2 dom 𝑆 = (ℤ𝐶)
69 df-fn 6421 . 2 (𝑆 Fn (ℤ𝐶) ↔ (Fun 𝑆 ∧ dom 𝑆 = (ℤ𝐶)))
7058, 68, 69mpbir2an 707 1 𝑆 Fn (ℤ𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wal 1537   = wceq 1539  wex 1783  wcel 2108  wrex 3064  Vcvv 3422  wss 3883  cop 4564  cmpt 5153   × cxp 5578  ccnv 5579  dom cdm 5580  ran crn 5581  cres 5582  Rel wrel 5585  Fun wfun 6412   Fn wfn 6413  1-1-ontowf1o 6417  cfv 6418  (class class class)co 7255  cmpo 7257  ωcom 7687  2nd c2nd 7803  reccrdg 8211  1c1 10803   + caddc 10805  cz 12249  cuz 12511
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-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  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-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-om 7688  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  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
This theorem is referenced by:  uzrdg0i  13607  uzrdgsuci  13608  seqfn  13661
  Copyright terms: Public domain W3C validator