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

Theorem termoid 17633
Description: For a terminal object, the identity arrow is the one and only morphism of the object to the object itself. (Contributed by AV, 18-Apr-2020.)
Hypotheses
Ref Expression
isinitoi.b 𝐵 = (Base‘𝐶)
isinitoi.h 𝐻 = (Hom ‘𝐶)
isinitoi.c (𝜑𝐶 ∈ Cat)
Assertion
Ref Expression
termoid ((𝜑𝑂 ∈ (TermO‘𝐶)) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)})

Proof of Theorem termoid
Dummy variables 𝑜 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 isinitoi.b . . 3 𝐵 = (Base‘𝐶)
2 isinitoi.h . . 3 𝐻 = (Hom ‘𝐶)
3 isinitoi.c . . 3 (𝜑𝐶 ∈ Cat)
41, 2, 3istermoi 17631 . 2 ((𝜑𝑂 ∈ (TermO‘𝐶)) → (𝑂𝐵 ∧ ∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂)))
5 oveq1 7262 . . . . . . . 8 (𝑜 = 𝑂 → (𝑜𝐻𝑂) = (𝑂𝐻𝑂))
65eleq2d 2824 . . . . . . 7 (𝑜 = 𝑂 → ( ∈ (𝑜𝐻𝑂) ↔ ∈ (𝑂𝐻𝑂)))
76eubidv 2586 . . . . . 6 (𝑜 = 𝑂 → (∃! ∈ (𝑜𝐻𝑂) ↔ ∃! ∈ (𝑂𝐻𝑂)))
87rspcv 3547 . . . . 5 (𝑂𝐵 → (∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂) → ∃! ∈ (𝑂𝐻𝑂)))
98adantl 481 . . . 4 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂) → ∃! ∈ (𝑂𝐻𝑂)))
10 eusn 4663 . . . . 5 (∃! ∈ (𝑂𝐻𝑂) ↔ ∃(𝑂𝐻𝑂) = {})
11 eqid 2738 . . . . . . . . 9 (Id‘𝐶) = (Id‘𝐶)
123ad2antrr 722 . . . . . . . . 9 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → 𝐶 ∈ Cat)
13 simpr 484 . . . . . . . . 9 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → 𝑂𝐵)
141, 2, 11, 12, 13catidcl 17308 . . . . . . . 8 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → ((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂))
15 fvex 6769 . . . . . . . . . . . . 13 ((Id‘𝐶)‘𝑂) ∈ V
1615elsn 4573 . . . . . . . . . . . 12 (((Id‘𝐶)‘𝑂) ∈ {} ↔ ((Id‘𝐶)‘𝑂) = )
17 eqcom 2745 . . . . . . . . . . . 12 (((Id‘𝐶)‘𝑂) = = ((Id‘𝐶)‘𝑂))
18 sneqbg 4771 . . . . . . . . . . . . . 14 ( ∈ V → ({} = {((Id‘𝐶)‘𝑂)} ↔ = ((Id‘𝐶)‘𝑂)))
1918bicomd 222 . . . . . . . . . . . . 13 ( ∈ V → ( = ((Id‘𝐶)‘𝑂) ↔ {} = {((Id‘𝐶)‘𝑂)}))
2019elv 3428 . . . . . . . . . . . 12 ( = ((Id‘𝐶)‘𝑂) ↔ {} = {((Id‘𝐶)‘𝑂)})
2116, 17, 203bitri 296 . . . . . . . . . . 11 (((Id‘𝐶)‘𝑂) ∈ {} ↔ {} = {((Id‘𝐶)‘𝑂)})
2221biimpi 215 . . . . . . . . . 10 (((Id‘𝐶)‘𝑂) ∈ {} → {} = {((Id‘𝐶)‘𝑂)})
2322a1i 11 . . . . . . . . 9 ((𝑂𝐻𝑂) = {} → (((Id‘𝐶)‘𝑂) ∈ {} → {} = {((Id‘𝐶)‘𝑂)}))
24 eleq2 2827 . . . . . . . . 9 ((𝑂𝐻𝑂) = {} → (((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂) ↔ ((Id‘𝐶)‘𝑂) ∈ {}))
25 eqeq1 2742 . . . . . . . . 9 ((𝑂𝐻𝑂) = {} → ((𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)} ↔ {} = {((Id‘𝐶)‘𝑂)}))
2623, 24, 253imtr4d 293 . . . . . . . 8 ((𝑂𝐻𝑂) = {} → (((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2714, 26syl5 34 . . . . . . 7 ((𝑂𝐻𝑂) = {} → (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2827exlimiv 1934 . . . . . 6 (∃(𝑂𝐻𝑂) = {} → (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2928com12 32 . . . . 5 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (∃(𝑂𝐻𝑂) = {} → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
3010, 29syl5bi 241 . . . 4 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (∃! ∈ (𝑂𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
319, 30syld 47 . . 3 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
3231expimpd 453 . 2 ((𝜑𝑂 ∈ (TermO‘𝐶)) → ((𝑂𝐵 ∧ ∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂)) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
334, 32mpd 15 1 ((𝜑𝑂 ∈ (TermO‘𝐶)) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  ∃!weu 2568  wral 3063  Vcvv 3422  {csn 4558  cfv 6418  (class class class)co 7255  Basecbs 16840  Hom chom 16899  Catccat 17290  Idccid 17291  TermOctermo 17613
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-cat 17294  df-cid 17295  df-termo 17616
This theorem is referenced by:  2termoinv  17648
  Copyright terms: Public domain W3C validator