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

Theorem initoid 18182
Description: For an initial object, the identity arrow is the one and only morphism of the object to the object itself. (Contributed by AV, 6-Apr-2020.)
Hypotheses
Ref Expression
isinitoi.b 𝐵 = (Base‘𝐶)
isinitoi.h 𝐻 = (Hom ‘𝐶)
isinitoi.c (𝜑 → 𝐶 ∈ Cat)
Assertion
Ref Expression
initoid ((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)})

Proof of Theorem initoid
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, 3isinitoi 18180 . 2 ((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) → (𝑂 ∈ 𝐵 ∧ ∀𝑜 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑂𝐻𝑜)))
5 oveq2 7429 . . . . . . . 8 (𝑜 = 𝑂 → (𝑂𝐻𝑜) = (𝑂𝐻𝑂))
65eleq2d 2846 . . . . . . 7 (𝑜 = 𝑂 → (ℎ ∈ (𝑂𝐻𝑜) ↔ ℎ ∈ (𝑂𝐻𝑂)))
76eubidv 2611 . . . . . 6 (𝑜 = 𝑂 → (∃!ℎ ℎ ∈ (𝑂𝐻𝑜) ↔ ∃!ℎ ℎ ∈ (𝑂𝐻𝑂)))
87rspcv 3572 . . . . 5 (𝑂 ∈ 𝐵 → (∀𝑜 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑂𝐻𝑜) → ∃!ℎ ℎ ∈ (𝑂𝐻𝑂)))
98adantl 487 . . . 4 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → (∀𝑜 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑂𝐻𝑜) → ∃!ℎ ℎ ∈ (𝑂𝐻𝑂)))
10 eusn 4687 . . . . 5 (∃!ℎ ℎ ∈ (𝑂𝐻𝑂) ↔ ∃ℎ(𝑂𝐻𝑂) = {ℎ})
11 eqid 2760 . . . . . . . . 9 (Id‘𝐶) = (Id‘𝐶)
123ad2antrr 739 . . . . . . . . 9 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → 𝐶 ∈ Cat)
13 simpr 490 . . . . . . . . 9 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → 𝑂 ∈ 𝐵)
141, 2, 11, 12, 13catidcl 17862 . . . . . . . 8 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → ((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂))
15 fvex 6899 . . . . . . . . . . . . 13 ((Id‘𝐶)‘𝑂) ∈ V
1615elsn 4595 . . . . . . . . . . . 12 (((Id‘𝐶)‘𝑂) ∈ {ℎ} ↔ ((Id‘𝐶)‘𝑂) = ℎ)
17 eqcom 2767 . . . . . . . . . . . 12 (((Id‘𝐶)‘𝑂) = ℎ ↔ ℎ = ((Id‘𝐶)‘𝑂))
18 sneqbg 4797 . . . . . . . . . . . . . 14 (ℎ ∈ V → ({ℎ} = {((Id‘𝐶)‘𝑂)} ↔ ℎ = ((Id‘𝐶)‘𝑂)))
1918bicomd 226 . . . . . . . . . . . . 13 (ℎ ∈ V → (ℎ = ((Id‘𝐶)‘𝑂) ↔ {ℎ} = {((Id‘𝐶)‘𝑂)}))
2019elv 3455 . . . . . . . . . . . 12 (ℎ = ((Id‘𝐶)‘𝑂) ↔ {ℎ} = {((Id‘𝐶)‘𝑂)})
2116, 17, 203bitri 300 . . . . . . . . . . 11 (((Id‘𝐶)‘𝑂) ∈ {ℎ} ↔ {ℎ} = {((Id‘𝐶)‘𝑂)})
2221biimpi 219 . . . . . . . . . 10 (((Id‘𝐶)‘𝑂) ∈ {ℎ} → {ℎ} = {((Id‘𝐶)‘𝑂)})
2322a1i 11 . . . . . . . . 9 ((𝑂𝐻𝑂) = {ℎ} → (((Id‘𝐶)‘𝑂) ∈ {ℎ} → {ℎ} = {((Id‘𝐶)‘𝑂)}))
24 eleq2 2849 . . . . . . . . 9 ((𝑂𝐻𝑂) = {ℎ} → (((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂) ↔ ((Id‘𝐶)‘𝑂) ∈ {ℎ}))
25 eqeq1 2764 . . . . . . . . 9 ((𝑂𝐻𝑂) = {ℎ} → ((𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)} ↔ {ℎ} = {((Id‘𝐶)‘𝑂)}))
2623, 24, 253imtr4d 297 . . . . . . . 8 ((𝑂𝐻𝑂) = {ℎ} → (((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2714, 26syl5 35 . . . . . . 7 ((𝑂𝐻𝑂) = {ℎ} → (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2827exlimiv 1962 . . . . . 6 (∃ℎ(𝑂𝐻𝑂) = {ℎ} → (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2928com12 33 . . . . 5 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → (∃ℎ(𝑂𝐻𝑂) = {ℎ} → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
3010, 29biimtrid 245 . . . 4 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → (∃!ℎ ℎ ∈ (𝑂𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
319, 30syld 48 . . 3 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → (∀𝑜 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑂𝐻𝑜) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
3231expimpd 459 . 2 ((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) → ((𝑂 ∈ 𝐵 ∧ ∀𝑜 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑂𝐻𝑜)) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
334, 32mpd 16 1 ((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2144  ∃!weu 2593  ∀wral 3076  Vcvv 3450  {csn 4584  ‘cfv 6539  (class class class)co 7421  Basecbs 17393  Hom chom 17445  Catccat 17844  Idccid 17845  InitOcinito 18162
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-rep 5231  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-rmo 3365  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  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-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6541  df-fn 6542  df-f 6543  df-f1 6544  df-fo 6545  df-f1o 6546  df-fv 6547  df-riota 7378  df-ov 7424  df-cat 17848  df-cid 17849  df-inito 18165
This theorem is used by:  2initoinv  18191
  Copyright terms: Public domain W3C validator