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

Theorem uzrdgfni 13001
Description: The recursive definition generator on upper integers is a function. See comment in om2uzrdg 12999. (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 2888 . . . . . . . 8 (𝑧𝑆𝑧 ∈ ran 𝑅)
3 frfnom 7776 . . . . . . . . . 10 (rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω) Fn ω
4 uzrdg.2 . . . . . . . . . . 11 𝑅 = (rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω)
54fneq1i 6206 . . . . . . . . . 10 (𝑅 Fn ω ↔ (rec((𝑥 ∈ V, 𝑦 ∈ V ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩) ↾ ω) Fn ω)
63, 5mpbir 222 . . . . . . . . 9 𝑅 Fn ω
7 fvelrnb 6474 . . . . . . . . 9 (𝑅 Fn ω → (𝑧 ∈ ran 𝑅 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = 𝑧))
86, 7ax-mp 5 . . . . . . . 8 (𝑧 ∈ ran 𝑅 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = 𝑧)
92, 8bitri 266 . . . . . . 7 (𝑧𝑆 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = 𝑧)
10 om2uz.1 . . . . . . . . . . 11 𝐶 ∈ ℤ
11 om2uz.2 . . . . . . . . . . 11 𝐺 = (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 𝐶) ↾ ω)
12 uzrdg.1 . . . . . . . . . . 11 𝐴 ∈ V
1310, 11, 12, 4om2uzrdg 12999 . . . . . . . . . 10 (𝑤 ∈ ω → (𝑅𝑤) = ⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩)
1410, 11om2uzuzi 12992 . . . . . . . . . . 11 (𝑤 ∈ ω → (𝐺𝑤) ∈ (ℤ𝐶))
15 fvex 6431 . . . . . . . . . . 11 (2nd ‘(𝑅𝑤)) ∈ V
16 opelxpi 5360 . . . . . . . . . . 11 (((𝐺𝑤) ∈ (ℤ𝐶) ∧ (2nd ‘(𝑅𝑤)) ∈ V) → ⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩ ∈ ((ℤ𝐶) × V))
1714, 15, 16sylancl 576 . . . . . . . . . 10 (𝑤 ∈ ω → ⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩ ∈ ((ℤ𝐶) × V))
1813, 17eqeltrd 2896 . . . . . . . . 9 (𝑤 ∈ ω → (𝑅𝑤) ∈ ((ℤ𝐶) × V))
19 eleq1 2884 . . . . . . . . 9 ((𝑅𝑤) = 𝑧 → ((𝑅𝑤) ∈ ((ℤ𝐶) × V) ↔ 𝑧 ∈ ((ℤ𝐶) × V)))
2018, 19syl5ibcom 236 . . . . . . . 8 (𝑤 ∈ ω → ((𝑅𝑤) = 𝑧𝑧 ∈ ((ℤ𝐶) × V)))
2120rexlimiv 3226 . . . . . . 7 (∃𝑤 ∈ ω (𝑅𝑤) = 𝑧𝑧 ∈ ((ℤ𝐶) × V))
229, 21sylbi 208 . . . . . 6 (𝑧𝑆𝑧 ∈ ((ℤ𝐶) × V))
2322ssriv 3813 . . . . 5 𝑆 ⊆ ((ℤ𝐶) × V)
24 xpss 5340 . . . . 5 ((ℤ𝐶) × V) ⊆ (V × V)
2523, 24sstri 3818 . . . 4 𝑆 ⊆ (V × V)
26 df-rel 5331 . . . 4 (Rel 𝑆𝑆 ⊆ (V × V))
2725, 26mpbir 222 . . 3 Rel 𝑆
28 fvex 6431 . . . . . 6 (2nd ‘(𝑅‘(𝐺𝑣))) ∈ V
29 eqeq2 2828 . . . . . . . 8 (𝑤 = (2nd ‘(𝑅‘(𝐺𝑣))) → (𝑧 = 𝑤𝑧 = (2nd ‘(𝑅‘(𝐺𝑣)))))
3029imbi2d 331 . . . . . . 7 (𝑤 = (2nd ‘(𝑅‘(𝐺𝑣))) → ((⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤) ↔ (⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))))
3130albidv 2011 . . . . . 6 (𝑤 = (2nd ‘(𝑅‘(𝐺𝑣))) → (∀𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤) ↔ ∀𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))))
3228, 31spcev 3504 . . . . 5 (∀𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = (2nd ‘(𝑅‘(𝐺𝑣)))) → ∃𝑤𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤))
331eleq2i 2888 . . . . . . 7 (⟨𝑣, 𝑧⟩ ∈ 𝑆 ↔ ⟨𝑣, 𝑧⟩ ∈ ran 𝑅)
34 fvelrnb 6474 . . . . . . . 8 (𝑅 Fn ω → (⟨𝑣, 𝑧⟩ ∈ ran 𝑅 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = ⟨𝑣, 𝑧⟩))
356, 34ax-mp 5 . . . . . . 7 (⟨𝑣, 𝑧⟩ ∈ ran 𝑅 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = ⟨𝑣, 𝑧⟩)
3633, 35bitri 266 . . . . . 6 (⟨𝑣, 𝑧⟩ ∈ 𝑆 ↔ ∃𝑤 ∈ ω (𝑅𝑤) = ⟨𝑣, 𝑧⟩)
3713eqeq1d 2819 . . . . . . . . . . . 12 (𝑤 ∈ ω → ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ ↔ ⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩ = ⟨𝑣, 𝑧⟩))
38 fvex 6431 . . . . . . . . . . . . 13 (𝐺𝑤) ∈ V
3938, 15opth1 5146 . . . . . . . . . . . 12 (⟨(𝐺𝑤), (2nd ‘(𝑅𝑤))⟩ = ⟨𝑣, 𝑧⟩ → (𝐺𝑤) = 𝑣)
4037, 39syl6bi 244 . . . . . . . . . . 11 (𝑤 ∈ ω → ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ → (𝐺𝑤) = 𝑣))
4110, 11om2uzf1oi 12996 . . . . . . . . . . . 12 𝐺:ω–1-1-onto→(ℤ𝐶)
42 f1ocnvfv 6768 . . . . . . . . . . . 12 ((𝐺:ω–1-1-onto→(ℤ𝐶) ∧ 𝑤 ∈ ω) → ((𝐺𝑤) = 𝑣 → (𝐺𝑣) = 𝑤))
4341, 42mpan 673 . . . . . . . . . . 11 (𝑤 ∈ ω → ((𝐺𝑤) = 𝑣 → (𝐺𝑣) = 𝑤))
4440, 43syld 47 . . . . . . . . . 10 (𝑤 ∈ ω → ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ → (𝐺𝑣) = 𝑤))
45 2fveq3 6423 . . . . . . . . . 10 ((𝐺𝑣) = 𝑤 → (2nd ‘(𝑅‘(𝐺𝑣))) = (2nd ‘(𝑅𝑤)))
4644, 45syl6 35 . . . . . . . . 9 (𝑤 ∈ ω → ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ → (2nd ‘(𝑅‘(𝐺𝑣))) = (2nd ‘(𝑅𝑤))))
4746imp 395 . . . . . . . 8 ((𝑤 ∈ ω ∧ (𝑅𝑤) = ⟨𝑣, 𝑧⟩) → (2nd ‘(𝑅‘(𝐺𝑣))) = (2nd ‘(𝑅𝑤)))
48 vex 3405 . . . . . . . . . 10 𝑣 ∈ V
49 vex 3405 . . . . . . . . . 10 𝑧 ∈ V
5048, 49op2ndd 7419 . . . . . . . . 9 ((𝑅𝑤) = ⟨𝑣, 𝑧⟩ → (2nd ‘(𝑅𝑤)) = 𝑧)
5150adantl 469 . . . . . . . 8 ((𝑤 ∈ ω ∧ (𝑅𝑤) = ⟨𝑣, 𝑧⟩) → (2nd ‘(𝑅𝑤)) = 𝑧)
5247, 51eqtr2d 2852 . . . . . . 7 ((𝑤 ∈ ω ∧ (𝑅𝑤) = ⟨𝑣, 𝑧⟩) → 𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))
5352rexlimiva 3227 . . . . . 6 (∃𝑤 ∈ ω (𝑅𝑤) = ⟨𝑣, 𝑧⟩ → 𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))
5436, 53sylbi 208 . . . . 5 (⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = (2nd ‘(𝑅‘(𝐺𝑣))))
5532, 54mpg 1879 . . . 4 𝑤𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤)
5655ax-gen 1877 . . 3 𝑣𝑤𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤)
57 dffun5 6124 . . 3 (Fun 𝑆 ↔ (Rel 𝑆 ∧ ∀𝑣𝑤𝑧(⟨𝑣, 𝑧⟩ ∈ 𝑆𝑧 = 𝑤)))
5827, 56, 57mpbir2an 693 . 2 Fun 𝑆
59 dmss 5538 . . . . 5 (𝑆 ⊆ ((ℤ𝐶) × V) → dom 𝑆 ⊆ dom ((ℤ𝐶) × V))
6023, 59ax-mp 5 . . . 4 dom 𝑆 ⊆ dom ((ℤ𝐶) × V)
61 dmxpss 5790 . . . 4 dom ((ℤ𝐶) × V) ⊆ (ℤ𝐶)
6260, 61sstri 3818 . . 3 dom 𝑆 ⊆ (ℤ𝐶)
6310, 11, 12, 4uzrdglem 13000 . . . . . 6 (𝑣 ∈ (ℤ𝐶) → ⟨𝑣, (2nd ‘(𝑅‘(𝐺𝑣)))⟩ ∈ ran 𝑅)
6463, 1syl6eleqr 2907 . . . . 5 (𝑣 ∈ (ℤ𝐶) → ⟨𝑣, (2nd ‘(𝑅‘(𝐺𝑣)))⟩ ∈ 𝑆)
6548, 28opeldm 5543 . . . . 5 (⟨𝑣, (2nd ‘(𝑅‘(𝐺𝑣)))⟩ ∈ 𝑆𝑣 ∈ dom 𝑆)
6664, 65syl 17 . . . 4 (𝑣 ∈ (ℤ𝐶) → 𝑣 ∈ dom 𝑆)
6766ssriv 3813 . . 3 (ℤ𝐶) ⊆ dom 𝑆
6862, 67eqssi 3825 . 2 dom 𝑆 = (ℤ𝐶)
69 df-fn 6114 . 2 (𝑆 Fn (ℤ𝐶) ↔ (Fun 𝑆 ∧ dom 𝑆 = (ℤ𝐶)))
7058, 68, 69mpbir2an 693 1 𝑆 Fn (ℤ𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 197  wa 384  wal 1635   = wceq 1637  wex 1859  wcel 2157  wrex 3108  Vcvv 3402  wss 3780  cop 4387  cmpt 4934   × cxp 5322  ccnv 5323  dom cdm 5324  ran crn 5325  cres 5326  Rel wrel 5329  Fun wfun 6105   Fn wfn 6106  1-1-ontowf1o 6110  cfv 6111  (class class class)co 6884  cmpt2 6886  ωcom 7305  2nd c2nd 7407  reccrdg 7751  1c1 10232   + caddc 10234  cz 11663  cuz 11924
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1877  ax-4 1894  ax-5 2001  ax-6 2069  ax-7 2105  ax-8 2159  ax-9 2166  ax-10 2186  ax-11 2202  ax-12 2215  ax-13 2422  ax-ext 2795  ax-sep 4988  ax-nul 4996  ax-pow 5048  ax-pr 5109  ax-un 7189  ax-cnex 10287  ax-resscn 10288  ax-1cn 10289  ax-icn 10290  ax-addcl 10291  ax-addrcl 10292  ax-mulcl 10293  ax-mulrcl 10294  ax-mulcom 10295  ax-addass 10296  ax-mulass 10297  ax-distr 10298  ax-i2m1 10299  ax-1ne0 10300  ax-1rid 10301  ax-rnegex 10302  ax-rrecex 10303  ax-cnre 10304  ax-pre-lttri 10305  ax-pre-lttrn 10306  ax-pre-ltadd 10307  ax-pre-mulgt0 10308
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 866  df-3or 1101  df-3an 1102  df-tru 1641  df-ex 1860  df-nf 1864  df-sb 2062  df-mo 2635  df-eu 2642  df-clab 2804  df-cleq 2810  df-clel 2813  df-nfc 2948  df-ne 2990  df-nel 3093  df-ral 3112  df-rex 3113  df-reu 3114  df-rab 3116  df-v 3404  df-sbc 3645  df-csb 3740  df-dif 3783  df-un 3785  df-in 3787  df-ss 3794  df-pss 3796  df-nul 4128  df-if 4291  df-pw 4364  df-sn 4382  df-pr 4384  df-tp 4386  df-op 4388  df-uni 4642  df-iun 4725  df-br 4856  df-opab 4918  df-mpt 4935  df-tr 4958  df-id 5232  df-eprel 5237  df-po 5245  df-so 5246  df-fr 5283  df-we 5285  df-xp 5330  df-rel 5331  df-cnv 5332  df-co 5333  df-dm 5334  df-rn 5335  df-res 5336  df-ima 5337  df-pred 5907  df-ord 5953  df-on 5954  df-lim 5955  df-suc 5956  df-iota 6074  df-fun 6113  df-fn 6114  df-f 6115  df-f1 6116  df-fo 6117  df-f1o 6118  df-fv 6119  df-riota 6845  df-ov 6887  df-oprab 6888  df-mpt2 6889  df-om 7306  df-2nd 7409  df-wrecs 7652  df-recs 7714  df-rdg 7752  df-er 7989  df-en 8203  df-dom 8204  df-sdom 8205  df-pnf 10371  df-mnf 10372  df-xr 10373  df-ltxr 10374  df-le 10375  df-sub 10563  df-neg 10564  df-nn 11316  df-n0 11580  df-z 11664  df-uz 11925
This theorem is referenced by:  uzrdg0i  13002  uzrdgsuci  13003  seqfn  13056
  Copyright terms: Public domain W3C validator