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

Theorem initoid 18169
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 18167 . 2 ((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) → (𝑂 ∈ 𝐵 ∧ ∀𝑜 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑂𝐻𝑜)))
5 oveq2 7426 . . . . . . . 8 (𝑜 = 𝑂 → (𝑂𝐻𝑜) = (𝑂𝐻𝑂))
65eleq2d 2847 . . . . . . 7 (𝑜 = 𝑂 → (ℎ ∈ (𝑂𝐻𝑜) ↔ ℎ ∈ (𝑂𝐻𝑂)))
76eubidv 2612 . . . . . 6 (𝑜 = 𝑂 → (∃!ℎ ℎ ∈ (𝑂𝐻𝑜) ↔ ∃!ℎ ℎ ∈ (𝑂𝐻𝑂)))
87rspcv 3573 . . . . 5 (𝑂 ∈ 𝐵 → (∀𝑜 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑂𝐻𝑜) → ∃!ℎ ℎ ∈ (𝑂𝐻𝑂)))
98adantl 487 . . . 4 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → (∀𝑜 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑂𝐻𝑜) → ∃!ℎ ℎ ∈ (𝑂𝐻𝑂)))
10 eusn 4691 . . . . 5 (∃!ℎ ℎ ∈ (𝑂𝐻𝑂) ↔ ∃ℎ(𝑂𝐻𝑂) = {ℎ})
11 eqid 2761 . . . . . . . . 9 (Id‘𝐶) = (Id‘𝐶)
123ad2antrr 739 . . . . . . . . 9 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → 𝐶 ∈ Cat)
13 simpr 490 . . . . . . . . 9 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → 𝑂 ∈ 𝐵)
141, 2, 11, 12, 13catidcl 17849 . . . . . . . 8 (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → ((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂))
15 fvex 6896 . . . . . . . . . . . . 13 ((Id‘𝐶)‘𝑂) ∈ V
1615elsn 4599 . . . . . . . . . . . 12 (((Id‘𝐶)‘𝑂) ∈ {ℎ} ↔ ((Id‘𝐶)‘𝑂) = ℎ)
17 eqcom 2768 . . . . . . . . . . . 12 (((Id‘𝐶)‘𝑂) = ℎ ↔ ℎ = ((Id‘𝐶)‘𝑂))
18 sneqbg 4803 . . . . . . . . . . . . . 14 (ℎ ∈ V → ({ℎ} = {((Id‘𝐶)‘𝑂)} ↔ ℎ = ((Id‘𝐶)‘𝑂)))
1918bicomd 226 . . . . . . . . . . . . 13 (ℎ ∈ V → (ℎ = ((Id‘𝐶)‘𝑂) ↔ {ℎ} = {((Id‘𝐶)‘𝑂)}))
2019elv 3456 . . . . . . . . . . . 12 (ℎ = ((Id‘𝐶)‘𝑂) ↔ {ℎ} = {((Id‘𝐶)‘𝑂)})
2116, 17, 203bitri 300 . . . . . . . . . . 11 (((Id‘𝐶)‘𝑂) ∈ {ℎ} ↔ {ℎ} = {((Id‘𝐶)‘𝑂)})
2221biimpi 219 . . . . . . . . . 10 (((Id‘𝐶)‘𝑂) ∈ {ℎ} → {ℎ} = {((Id‘𝐶)‘𝑂)})
2322a1i 11 . . . . . . . . 9 ((𝑂𝐻𝑂) = {ℎ} → (((Id‘𝐶)‘𝑂) ∈ {ℎ} → {ℎ} = {((Id‘𝐶)‘𝑂)}))
24 eleq2 2850 . . . . . . . . 9 ((𝑂𝐻𝑂) = {ℎ} → (((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂) ↔ ((Id‘𝐶)‘𝑂) ∈ {ℎ}))
25 eqeq1 2765 . . . . . . . . 9 ((𝑂𝐻𝑂) = {ℎ} → ((𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)} ↔ {ℎ} = {((Id‘𝐶)‘𝑂)}))
2623, 24, 253imtr4d 297 . . . . . . . 8 ((𝑂𝐻𝑂) = {ℎ} → (((Id‘𝐶)‘𝑂) ∈ (𝑂𝐻𝑂) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2714, 26syl5 35 . . . . . . 7 ((𝑂𝐻𝑂) = {ℎ} → (((𝜑 ∧ 𝑂 ∈ (InitO‘𝐶)) ∧ 𝑂 ∈ 𝐵) → (𝑂𝐻𝑂) = {((Id‘𝐶)‘𝑂)}))
2827exlimiv 1963 . . . . . 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 1570  ∃wex 1812   ∈ wcel 2145  ∃!weu 2594  ∀wral 3077  Vcvv 3451  {csn 4584  ‘cfv 6537  (class class class)co 7418  Basecbs 17380  Hom chom 17432  Catccat 17831  Idccid 17832  InitOcinito 18149
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pr 5391
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-riota 7375  df-ov 7421  df-cat 17835  df-cid 17836  df-inito 18152
This theorem is used by:  2initoinv  18178
  Copyright terms: Public domain W3C validator