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

Theorem irinitoringc 21414
Description: The ring of integers is an initial object in the category of unital rings (within a universe containing the ring of integers). Example 7.2 (6) of [Adamek] p. 101 , and example in [Lang] p. 58. (Contributed by AV, 3-Apr-2020.)
Hypotheses
Ref Expression
irinitoringc.u (𝜑𝑈𝑉)
irinitoringc.z (𝜑 → ℤring𝑈)
irinitoringc.c 𝐶 = (RingCat‘𝑈)
Assertion
Ref Expression
irinitoringc (𝜑 → ℤring ∈ (InitO‘𝐶))

Proof of Theorem irinitoringc
Dummy variables 𝑓 𝑟 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 zex 12474 . . . . . 6 ℤ ∈ V
21mptex 7157 . . . . 5 (𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟))) ∈ V
3 irinitoringc.c . . . . . . . . 9 𝐶 = (RingCat‘𝑈)
4 eqid 2731 . . . . . . . . 9 (Base‘𝐶) = (Base‘𝐶)
5 irinitoringc.u . . . . . . . . 9 (𝜑𝑈𝑉)
6 eqid 2731 . . . . . . . . 9 (Hom ‘𝐶) = (Hom ‘𝐶)
73, 4, 5, 6ringchomfval 20564 . . . . . . . 8 (𝜑 → (Hom ‘𝐶) = ( RingHom ↾ ((Base‘𝐶) × (Base‘𝐶))))
87adantr 480 . . . . . . 7 ((𝜑𝑟 ∈ (Base‘𝐶)) → (Hom ‘𝐶) = ( RingHom ↾ ((Base‘𝐶) × (Base‘𝐶))))
98oveqd 7363 . . . . . 6 ((𝜑𝑟 ∈ (Base‘𝐶)) → (ℤring(Hom ‘𝐶)𝑟) = (ℤring( RingHom ↾ ((Base‘𝐶) × (Base‘𝐶)))𝑟))
10 irinitoringc.z . . . . . . . . . 10 (𝜑 → ℤring𝑈)
11 id 22 . . . . . . . . . . 11 (ℤring𝑈 → ℤring𝑈)
12 zringring 21384 . . . . . . . . . . . 12 ring ∈ Ring
1312a1i 11 . . . . . . . . . . 11 (ℤring𝑈 → ℤring ∈ Ring)
1411, 13elind 4150 . . . . . . . . . 10 (ℤring𝑈 → ℤring ∈ (𝑈 ∩ Ring))
1510, 14syl 17 . . . . . . . . 9 (𝜑 → ℤring ∈ (𝑈 ∩ Ring))
163, 4, 5ringcbas 20563 . . . . . . . . 9 (𝜑 → (Base‘𝐶) = (𝑈 ∩ Ring))
1715, 16eleqtrrd 2834 . . . . . . . 8 (𝜑 → ℤring ∈ (Base‘𝐶))
1817adantr 480 . . . . . . 7 ((𝜑𝑟 ∈ (Base‘𝐶)) → ℤring ∈ (Base‘𝐶))
19 simpr 484 . . . . . . 7 ((𝜑𝑟 ∈ (Base‘𝐶)) → 𝑟 ∈ (Base‘𝐶))
2018, 19ovresd 7513 . . . . . 6 ((𝜑𝑟 ∈ (Base‘𝐶)) → (ℤring( RingHom ↾ ((Base‘𝐶) × (Base‘𝐶)))𝑟) = (ℤring RingHom 𝑟))
2116eleq2d 2817 . . . . . . . . 9 (𝜑 → (𝑟 ∈ (Base‘𝐶) ↔ 𝑟 ∈ (𝑈 ∩ Ring)))
22 elin 3918 . . . . . . . . . 10 (𝑟 ∈ (𝑈 ∩ Ring) ↔ (𝑟𝑈𝑟 ∈ Ring))
2322simprbi 496 . . . . . . . . 9 (𝑟 ∈ (𝑈 ∩ Ring) → 𝑟 ∈ Ring)
2421, 23biimtrdi 253 . . . . . . . 8 (𝜑 → (𝑟 ∈ (Base‘𝐶) → 𝑟 ∈ Ring))
2524imp 406 . . . . . . 7 ((𝜑𝑟 ∈ (Base‘𝐶)) → 𝑟 ∈ Ring)
26 eqid 2731 . . . . . . . 8 (.g𝑟) = (.g𝑟)
27 eqid 2731 . . . . . . . 8 (𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟))) = (𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟)))
28 eqid 2731 . . . . . . . 8 (1r𝑟) = (1r𝑟)
2926, 27, 28mulgrhm2 21413 . . . . . . 7 (𝑟 ∈ Ring → (ℤring RingHom 𝑟) = {(𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟)))})
3025, 29syl 17 . . . . . 6 ((𝜑𝑟 ∈ (Base‘𝐶)) → (ℤring RingHom 𝑟) = {(𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟)))})
319, 20, 303eqtrd 2770 . . . . 5 ((𝜑𝑟 ∈ (Base‘𝐶)) → (ℤring(Hom ‘𝐶)𝑟) = {(𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟)))})
32 sneq 4586 . . . . . . 7 (𝑓 = (𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟))) → {𝑓} = {(𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟)))})
3332eqeq2d 2742 . . . . . 6 (𝑓 = (𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟))) → ((ℤring(Hom ‘𝐶)𝑟) = {𝑓} ↔ (ℤring(Hom ‘𝐶)𝑟) = {(𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟)))}))
3433spcegv 3552 . . . . 5 ((𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟))) ∈ V → ((ℤring(Hom ‘𝐶)𝑟) = {(𝑧 ∈ ℤ ↦ (𝑧(.g𝑟)(1r𝑟)))} → ∃𝑓(ℤring(Hom ‘𝐶)𝑟) = {𝑓}))
352, 31, 34mpsyl 68 . . . 4 ((𝜑𝑟 ∈ (Base‘𝐶)) → ∃𝑓(ℤring(Hom ‘𝐶)𝑟) = {𝑓})
36 eusn 4683 . . . 4 (∃!𝑓 𝑓 ∈ (ℤring(Hom ‘𝐶)𝑟) ↔ ∃𝑓(ℤring(Hom ‘𝐶)𝑟) = {𝑓})
3735, 36sylibr 234 . . 3 ((𝜑𝑟 ∈ (Base‘𝐶)) → ∃!𝑓 𝑓 ∈ (ℤring(Hom ‘𝐶)𝑟))
3837ralrimiva 3124 . 2 (𝜑 → ∀𝑟 ∈ (Base‘𝐶)∃!𝑓 𝑓 ∈ (ℤring(Hom ‘𝐶)𝑟))
393ringccat 20576 . . . 4 (𝑈𝑉𝐶 ∈ Cat)
405, 39syl 17 . . 3 (𝜑𝐶 ∈ Cat)
4112a1i 11 . . . . 5 (𝜑 → ℤring ∈ Ring)
4210, 41elind 4150 . . . 4 (𝜑 → ℤring ∈ (𝑈 ∩ Ring))
4342, 16eleqtrrd 2834 . . 3 (𝜑 → ℤring ∈ (Base‘𝐶))
444, 6, 40, 43isinito 17900 . 2 (𝜑 → (ℤring ∈ (InitO‘𝐶) ↔ ∀𝑟 ∈ (Base‘𝐶)∃!𝑓 𝑓 ∈ (ℤring(Hom ‘𝐶)𝑟)))
4538, 44mpbird 257 1 (𝜑 → ℤring ∈ (InitO‘𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1541  wex 1780  wcel 2111  ∃!weu 2563  wral 3047  Vcvv 3436  cin 3901  {csn 4576  cmpt 5172   × cxp 5614  cres 5618  cfv 6481  (class class class)co 7346  cz 12465  Basecbs 17117  Hom chom 17169  Catccat 17567  InitOcinito 17885  .gcmg 18977  1rcur 20097  Ringcrg 20149   RingHom crh 20385  RingCatcringc 20558  ringczring 21381
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2113  ax-9 2121  ax-10 2144  ax-11 2160  ax-12 2180  ax-ext 2703  ax-rep 5217  ax-sep 5234  ax-nul 5244  ax-pow 5303  ax-pr 5370  ax-un 7668  ax-cnex 11059  ax-resscn 11060  ax-1cn 11061  ax-icn 11062  ax-addcl 11063  ax-addrcl 11064  ax-mulcl 11065  ax-mulrcl 11066  ax-mulcom 11067  ax-addass 11068  ax-mulass 11069  ax-distr 11070  ax-i2m1 11071  ax-1ne0 11072  ax-1rid 11073  ax-rnegex 11074  ax-rrecex 11075  ax-cnre 11076  ax-pre-lttri 11077  ax-pre-lttrn 11078  ax-pre-ltadd 11079  ax-pre-mulgt0 11080  ax-addf 11082  ax-mulf 11083
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-nf 1785  df-sb 2068  df-mo 2535  df-eu 2564  df-clab 2710  df-cleq 2723  df-clel 2806  df-nfc 2881  df-ne 2929  df-nel 3033  df-ral 3048  df-rex 3057  df-rmo 3346  df-reu 3347  df-rab 3396  df-v 3438  df-sbc 3742  df-csb 3851  df-dif 3905  df-un 3907  df-in 3909  df-ss 3919  df-pss 3922  df-nul 4284  df-if 4476  df-pw 4552  df-sn 4577  df-pr 4579  df-tp 4581  df-op 4583  df-uni 4860  df-iun 4943  df-br 5092  df-opab 5154  df-mpt 5173  df-tr 5199  df-id 5511  df-eprel 5516  df-po 5524  df-so 5525  df-fr 5569  df-we 5571  df-xp 5622  df-rel 5623  df-cnv 5624  df-co 5625  df-dm 5626  df-rn 5627  df-res 5628  df-ima 5629  df-pred 6248  df-ord 6309  df-on 6310  df-lim 6311  df-suc 6312  df-iota 6437  df-fun 6483  df-fn 6484  df-f 6485  df-f1 6486  df-fo 6487  df-f1o 6488  df-fv 6489  df-riota 7303  df-ov 7349  df-oprab 7350  df-mpo 7351  df-om 7797  df-1st 7921  df-2nd 7922  df-frecs 8211  df-wrecs 8242  df-recs 8291  df-rdg 8329  df-1o 8385  df-er 8622  df-map 8752  df-pm 8753  df-ixp 8822  df-en 8870  df-dom 8871  df-sdom 8872  df-fin 8873  df-pnf 11145  df-mnf 11146  df-xr 11147  df-ltxr 11148  df-le 11149  df-sub 11343  df-neg 11344  df-nn 12123  df-2 12185  df-3 12186  df-4 12187  df-5 12188  df-6 12189  df-7 12190  df-8 12191  df-9 12192  df-n0 12379  df-z 12466  df-dec 12586  df-uz 12730  df-fz 13405  df-seq 13906  df-struct 17055  df-sets 17072  df-slot 17090  df-ndx 17102  df-base 17118  df-ress 17139  df-plusg 17171  df-mulr 17172  df-starv 17173  df-tset 17177  df-ple 17178  df-ds 17180  df-unif 17181  df-hom 17182  df-cco 17183  df-0g 17342  df-cat 17571  df-cid 17572  df-homf 17573  df-ssc 17714  df-resc 17715  df-subc 17716  df-inito 17888  df-estrc 18026  df-mgm 18545  df-sgrp 18624  df-mnd 18640  df-mhm 18688  df-grp 18846  df-minusg 18847  df-mulg 18978  df-subg 19033  df-ghm 19123  df-cmn 19692  df-abl 19693  df-mgp 20057  df-rng 20069  df-ur 20098  df-ring 20151  df-cring 20152  df-rhm 20388  df-subrng 20459  df-subrg 20483  df-ringc 20559  df-cnfld 21290  df-zring 21382
This theorem is referenced by:  nzerooringczr  21415
  Copyright terms: Public domain W3C validator