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

Theorem termoid 17268
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 17266 . 2 ((𝜑𝑂 ∈ (TermO‘𝐶)) → (𝑂𝐵 ∧ ∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂)))
5 oveq1 7165 . . . . . . . 8 (𝑜 = 𝑂 → (𝑜𝐻𝑂) = (𝑂𝐻𝑂))
65eleq2d 2900 . . . . . . 7 (𝑜 = 𝑂 → ( ∈ (𝑜𝐻𝑂) ↔ ∈ (𝑂𝐻𝑂)))
76eubidv 2672 . . . . . 6 (𝑜 = 𝑂 → (∃! ∈ (𝑜𝐻𝑂) ↔ ∃! ∈ (𝑂𝐻𝑂)))
87rspcv 3620 . . . . 5 (𝑂𝐵 → (∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂) → ∃! ∈ (𝑂𝐻𝑂)))
98adantl 484 . . . 4 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂) → ∃! ∈ (𝑂𝐻𝑂)))
10 eusn 4668 . . . . 5 (∃! ∈ (𝑂𝐻𝑂) ↔ ∃(𝑂𝐻𝑂) = {})
11 eqid 2823 . . . . . . . . 9 (Id‘𝐶) = (Id‘𝐶)
123ad2antrr 724 . . . . . . . . 9 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → 𝐶 ∈ Cat)
13 simpr 487 . . . . . . . . 9 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → 𝑂𝐵)
141, 2, 11, 12, 13catidcl 16955 . . . . . . . 8 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → ((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂))
15 fvex 6685 . . . . . . . . . . . . 13 ((Id‘𝐶)‘𝑂) ∈ V
1615elsn 4584 . . . . . . . . . . . 12 (((Id‘𝐶)‘𝑂) ∈ {} ↔ ((Id‘𝐶)‘𝑂) = )
17 eqcom 2830 . . . . . . . . . . . 12 (((Id‘𝐶)‘𝑂) = = ((Id‘𝐶)‘𝑂))
18 sneqbg 4776 . . . . . . . . . . . . . 14 ( ∈ V → ({} = {((Id‘𝐶)‘𝑂)} ↔ = ((Id‘𝐶)‘𝑂)))
1918bicomd 225 . . . . . . . . . . . . 13 ( ∈ V → ( = ((Id‘𝐶)‘𝑂) ↔ {} = {((Id‘𝐶)‘𝑂)}))
2019elv 3501 . . . . . . . . . . . 12 ( = ((Id‘𝐶)‘𝑂) ↔ {} = {((Id‘𝐶)‘𝑂)})
2116, 17, 203bitri 299 . . . . . . . . . . 11 (((Id‘𝐶)‘𝑂) ∈ {} ↔ {} = {((Id‘𝐶)‘𝑂)})
2221biimpi 218 . . . . . . . . . 10 (((Id‘𝐶)‘𝑂) ∈ {} → {} = {((Id‘𝐶)‘𝑂)})
2322a1i 11 . . . . . . . . 9 ((𝑂𝐻𝑂) = {} → (((Id‘𝐶)‘𝑂) ∈ {} → {} = {((Id‘𝐶)‘𝑂)}))
24 eleq2 2903 . . . . . . . . 9 ((𝑂𝐻𝑂) = {} → (((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂) ↔ ((Id‘𝐶)‘𝑂) ∈ {}))
25 eqeq1 2827 . . . . . . . . 9 ((𝑂𝐻𝑂) = {} → ((𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)} ↔ {} = {((Id‘𝐶)‘𝑂)}))
2623, 24, 253imtr4d 296 . . . . . . . 8 ((𝑂𝐻𝑂) = {} → (((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2714, 26syl5 34 . . . . . . 7 ((𝑂𝐻𝑂) = {} → (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2827exlimiv 1931 . . . . . 6 (∃(𝑂𝐻𝑂) = {} → (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2928com12 32 . . . . 5 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (∃(𝑂𝐻𝑂) = {} → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
3010, 29syl5bi 244 . . . 4 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (∃! ∈ (𝑂𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
319, 30syld 47 . . 3 (((𝜑𝑂 ∈ (TermO‘𝐶)) ∧ 𝑂𝐵) → (∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
3231expimpd 456 . 2 ((𝜑𝑂 ∈ (TermO‘𝐶)) → ((𝑂𝐵 ∧ ∀𝑜𝐵 ∃! ∈ (𝑜𝐻𝑂)) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
334, 32mpd 15 1 ((𝜑𝑂 ∈ (TermO‘𝐶)) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1537  wex 1780  wcel 2114  ∃!weu 2653  wral 3140  Vcvv 3496  {csn 4569  cfv 6357  (class class class)co 7158  Basecbs 16485  Hom chom 16578  Catccat 16937  Idccid 16938  TermOctermo 17251
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 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-rep 5192  ax-sep 5205  ax-nul 5212  ax-pr 5332
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-ral 3145  df-rex 3146  df-reu 3147  df-rmo 3148  df-rab 3149  df-v 3498  df-sbc 3775  df-csb 3886  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4841  df-iun 4923  df-br 5069  df-opab 5131  df-mpt 5149  df-id 5462  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-f1 6362  df-fo 6363  df-f1o 6364  df-fv 6365  df-riota 7116  df-ov 7161  df-cat 16941  df-cid 16942  df-termo 17254
This theorem is referenced by:  2termoinv  17279
  Copyright terms: Public domain W3C validator