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

Theorem termoval 17454
Description: The value of the terminal object function, i.e. the set of all terminal objects of a category. (Contributed by AV, 3-Apr-2020.)
Hypotheses
Ref Expression
initoval.c (𝜑𝐶 ∈ Cat)
initoval.b 𝐵 = (Base‘𝐶)
initoval.h 𝐻 = (Hom ‘𝐶)
Assertion
Ref Expression
termoval (𝜑 → (TermO‘𝐶) = {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)})
Distinct variable groups:   𝑎,𝑏,   𝐵,𝑎,𝑏   𝐶,𝑎,𝑏,
Allowed substitution hints:   𝜑(,𝑎,𝑏)   𝐵()   𝐻(,𝑎,𝑏)

Proof of Theorem termoval
Dummy variable 𝑐 is distinct from all other variables.
StepHypRef Expression
1 df-termo 17445 . 2 TermO = (𝑐 ∈ Cat ↦ {𝑎 ∈ (Base‘𝑐) ∣ ∀𝑏 ∈ (Base‘𝑐)∃! ∈ (𝑏(Hom ‘𝑐)𝑎)})
2 fveq2 6695 . . . 4 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
3 initoval.b . . . 4 𝐵 = (Base‘𝐶)
42, 3eqtr4di 2789 . . 3 (𝑐 = 𝐶 → (Base‘𝑐) = 𝐵)
5 fveq2 6695 . . . . . . . 8 (𝑐 = 𝐶 → (Hom ‘𝑐) = (Hom ‘𝐶))
6 initoval.h . . . . . . . 8 𝐻 = (Hom ‘𝐶)
75, 6eqtr4di 2789 . . . . . . 7 (𝑐 = 𝐶 → (Hom ‘𝑐) = 𝐻)
87oveqd 7208 . . . . . 6 (𝑐 = 𝐶 → (𝑏(Hom ‘𝑐)𝑎) = (𝑏𝐻𝑎))
98eleq2d 2816 . . . . 5 (𝑐 = 𝐶 → ( ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∈ (𝑏𝐻𝑎)))
109eubidv 2585 . . . 4 (𝑐 = 𝐶 → (∃! ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∃! ∈ (𝑏𝐻𝑎)))
114, 10raleqbidv 3303 . . 3 (𝑐 = 𝐶 → (∀𝑏 ∈ (Base‘𝑐)∃! ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)))
124, 11rabeqbidv 3386 . 2 (𝑐 = 𝐶 → {𝑎 ∈ (Base‘𝑐) ∣ ∀𝑏 ∈ (Base‘𝑐)∃! ∈ (𝑏(Hom ‘𝑐)𝑎)} = {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)})
13 initoval.c . 2 (𝜑𝐶 ∈ Cat)
143fvexi 6709 . . . 4 𝐵 ∈ V
1514rabex 5210 . . 3 {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)} ∈ V
1615a1i 11 . 2 (𝜑 → {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)} ∈ V)
171, 12, 13, 16fvmptd3 6819 1 (𝜑 → (TermO‘𝐶) = {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)})
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1543  wcel 2112  ∃!weu 2567  wral 3051  {crab 3055  Vcvv 3398  cfv 6358  (class class class)co 7191  Basecbs 16666  Hom chom 16760  Catccat 17121  TermOctermo 17442
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-ext 2708  ax-sep 5177  ax-nul 5184  ax-pr 5307
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2728  df-clel 2809  df-nfc 2879  df-ral 3056  df-rex 3057  df-rab 3060  df-v 3400  df-sbc 3684  df-dif 3856  df-un 3858  df-in 3860  df-ss 3870  df-nul 4224  df-if 4426  df-sn 4528  df-pr 4530  df-op 4534  df-uni 4806  df-br 5040  df-opab 5102  df-mpt 5121  df-id 5440  df-xp 5542  df-rel 5543  df-cnv 5544  df-co 5545  df-dm 5546  df-iota 6316  df-fun 6360  df-fv 6366  df-ov 7194  df-termo 17445
This theorem is referenced by:  istermo  17457  istermoi  17460  dfinito2  17463
  Copyright terms: Public domain W3C validator