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

Theorem termoval 18195
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 18186 . 2 TermO = (𝑐 ∈ Cat ↦ {𝑎 ∈ (Base‘𝑐) ∣ ∀𝑏 ∈ (Base‘𝑐)∃!ℎ ℎ ∈ (𝑏(Hom ‘𝑐)𝑎)})
2 fveq2 6905 . . . 4 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
3 initoval.b . . . 4 𝐵 = (Base‘𝐶)
42, 3eqtr4di 2816 . . 3 (𝑐 = 𝐶 → (Base‘𝑐) = 𝐵)
5 fveq2 6905 . . . . . . . 8 (𝑐 = 𝐶 → (Hom ‘𝑐) = (Hom ‘𝐶))
6 initoval.h . . . . . . . 8 𝐻 = (Hom ‘𝐶)
75, 6eqtr4di 2816 . . . . . . 7 (𝑐 = 𝐶 → (Hom ‘𝑐) = 𝐻)
87oveqd 7457 . . . . . 6 (𝑐 = 𝐶 → (𝑏(Hom ‘𝑐)𝑎) = (𝑏𝐻𝑎))
98eleq2d 2850 . . . . 5 (𝑐 = 𝐶 → (ℎ ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ℎ ∈ (𝑏𝐻𝑎)))
109eubidv 2614 . . . 4 (𝑐 = 𝐶 → (∃!ℎ ℎ ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)))
114, 10raleqbidv 3338 . . 3 (𝑐 = 𝐶 → (∀𝑏 ∈ (Base‘𝑐)∃!ℎ ℎ ∈ (𝑏(Hom ‘𝑐)𝑎) ↔ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)))
124, 11rabeqbidv 3433 . 2 (𝑐 = 𝐶 → {𝑎 ∈ (Base‘𝑐) ∣ ∀𝑏 ∈ (Base‘𝑐)∃!ℎ ℎ ∈ (𝑏(Hom ‘𝑐)𝑎)} = {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)})
13 initoval.c . 2 (𝜑 → 𝐶 ∈ Cat)
143fvexi 6919 . . . 4 𝐵 ∈ V
1514rabex 5304 . . 3 {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)} ∈ V
1615a1i 11 . 2 (𝜑 → {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)} ∈ V)
171, 12, 13, 16fvmptd3 7037 1 (𝜑 → (TermO‘𝐶) = {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1570   ∈ wcel 2147  ∃!weu 2596  ∀wral 3080  {crab 3416  Vcvv 3454  ‘cfv 6555  (class class class)co 7440  Basecbs 17413  Hom chom 17465  Catccat 17864  TermOctermo 18183
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pr 5395
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-iota 6509  df-fun 6557  df-fv 6563  df-ov 7443  df-termo 18186
This theorem is used by:  istermo  18198  istermoi  18201  dfinito2  18204  termopropdlem  50566  termopropd  50569
  Copyright terms: Public domain W3C validator