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

Theorem termoval 18169
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 18160 . 2 TermO = (𝑐 ∈ Cat ↦ {𝑎 ∈ (Base‘𝑐) ∣ ∀𝑏 ∈ (Base‘𝑐)∃!ℎ ℎ ∈ (𝑏(Hom ‘𝑐)𝑎)})
2 fveq2 6885 . . . 4 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
3 initoval.b . . . 4 𝐵 = (Base‘𝐶)
42, 3eqtr4di 2813 . . 3 (𝑐 = 𝐶 → (Base‘𝑐) = 𝐵)
5 fveq2 6885 . . . . . . . 8 (𝑐 = 𝐶 → (Hom ‘𝑐) = (Hom ‘𝐶))
6 initoval.h . . . . . . . 8 𝐻 = (Hom ‘𝐶)
75, 6eqtr4di 2813 . . . . . . 7 (𝑐 = 𝐶 → (Hom ‘𝑐) = 𝐻)
87oveqd 7437 . . . . . 6 (𝑐 = 𝐶 → (𝑏(Hom ‘𝑐)𝑎) = (𝑏𝐻𝑎))
98eleq2d 2846 . . . . 5 (𝑐 = 𝐶 → (ℎ ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ℎ ∈ (𝑏𝐻𝑎)))
109eubidv 2611 . . . 4 (𝑐 = 𝐶 → (∃!ℎ ℎ ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)))
114, 10raleqbidv 3334 . . 3 (𝑐 = 𝐶 → (∀𝑏 ∈ (Base‘𝑐)∃!ℎ ℎ ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)))
124, 11rabeqbidv 3429 . 2 (𝑐 = 𝐶 → {𝑎 ∈ (Base‘𝑐) ∣ ∀𝑏 ∈ (Base‘𝑐)∃!ℎ ℎ ∈ (𝑏(Hom ‘𝑐)𝑎)} = {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)})
13 initoval.c . 2 (𝜑 → 𝐶 ∈ Cat)
143fvexi 6899 . . . 4 𝐵 ∈ V
1514rabex 5299 . . 3 {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)} ∈ V
1615a1i 11 . 2 (𝜑 → {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)} ∈ V)
171, 12, 13, 16fvmptd3 7017 1 (𝜑 → (TermO‘𝐶) = {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1569   ∈ wcel 2144  ∃!weu 2593  ∀wral 3076  {crab 3412  Vcvv 3450  ‘cfv 6538  (class class class)co 7420  Basecbs 17387  Hom chom 17439  Catccat 17838  TermOctermo 18157
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-iota 6494  df-fun 6540  df-fv 6546  df-ov 7423  df-termo 18160
This theorem is used by:  istermo  18172  istermoi  18175  dfinito2  18178  termopropdlem  50349  termopropd  50352
  Copyright terms: Public domain W3C validator