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

Theorem termoval 17798
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 17789 . 2 TermO = (𝑐 ∈ Cat ↦ {𝑎 ∈ (Base‘𝑐) ∣ ∀𝑏 ∈ (Base‘𝑐)∃! ∈ (𝑏(Hom ‘𝑐)𝑎)})
2 fveq2 6819 . . . 4 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
3 initoval.b . . . 4 𝐵 = (Base‘𝐶)
42, 3eqtr4di 2794 . . 3 (𝑐 = 𝐶 → (Base‘𝑐) = 𝐵)
5 fveq2 6819 . . . . . . . 8 (𝑐 = 𝐶 → (Hom ‘𝑐) = (Hom ‘𝐶))
6 initoval.h . . . . . . . 8 𝐻 = (Hom ‘𝐶)
75, 6eqtr4di 2794 . . . . . . 7 (𝑐 = 𝐶 → (Hom ‘𝑐) = 𝐻)
87oveqd 7346 . . . . . 6 (𝑐 = 𝐶 → (𝑏(Hom ‘𝑐)𝑎) = (𝑏𝐻𝑎))
98eleq2d 2822 . . . . 5 (𝑐 = 𝐶 → ( ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∈ (𝑏𝐻𝑎)))
109eubidv 2584 . . . 4 (𝑐 = 𝐶 → (∃! ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∃! ∈ (𝑏𝐻𝑎)))
114, 10raleqbidv 3315 . . 3 (𝑐 = 𝐶 → (∀𝑏 ∈ (Base‘𝑐)∃! ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)))
124, 11rabeqbidv 3420 . 2 (𝑐 = 𝐶 → {𝑎 ∈ (Base‘𝑐) ∣ ∀𝑏 ∈ (Base‘𝑐)∃! ∈ (𝑏(Hom ‘𝑐)𝑎)} = {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)})
13 initoval.c . 2 (𝜑𝐶 ∈ Cat)
143fvexi 6833 . . . 4 𝐵 ∈ V
1514rabex 5273 . . 3 {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)} ∈ V
1615a1i 11 . 2 (𝜑 → {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)} ∈ V)
171, 12, 13, 16fvmptd3 6948 1 (𝜑 → (TermO‘𝐶) = {𝑎𝐵 ∣ ∀𝑏𝐵 ∃! ∈ (𝑏𝐻𝑎)})
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1540  wcel 2105  ∃!weu 2566  wral 3061  {crab 3403  Vcvv 3441  cfv 6473  (class class class)co 7329  Basecbs 17001  Hom chom 17062  Catccat 17462  TermOctermo 17786
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 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2707  ax-sep 5240  ax-nul 5247  ax-pr 5369
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2886  df-ne 2941  df-ral 3062  df-rex 3071  df-rab 3404  df-v 3443  df-dif 3900  df-un 3902  df-in 3904  df-ss 3914  df-nul 4269  df-if 4473  df-sn 4573  df-pr 4575  df-op 4579  df-uni 4852  df-br 5090  df-opab 5152  df-mpt 5173  df-id 5512  df-xp 5620  df-rel 5621  df-cnv 5622  df-co 5623  df-dm 5624  df-iota 6425  df-fun 6475  df-fv 6481  df-ov 7332  df-termo 17789
This theorem is referenced by:  istermo  17801  istermoi  17804  dfinito2  17807
  Copyright terms: Public domain W3C validator