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

Theorem istermoi 18190
Description: Implication of a class being a terminal object. (Contributed by AV, 18-Apr-2020.)
Hypotheses
Ref Expression
isinitoi.b 𝐵 = (Base‘𝐶)
isinitoi.h 𝐻 = (Hom ‘𝐶)
isinitoi.c (𝜑 → 𝐶 ∈ Cat)
Assertion
Ref Expression
istermoi ((𝜑 ∧ 𝑂 ∈ (TermO‘𝐶)) → (𝑂 ∈ 𝐵 ∧ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑂)))
Distinct variable groups:   𝐵,𝑏   𝐶,𝑏,ℎ   𝑂,𝑏,ℎ
Allowed substitution hints:   𝜑(ℎ, 𝑏)   𝐵(ℎ)   𝐻(ℎ, 𝑏)

Proof of Theorem istermoi
Dummy variable 𝑎 is distinct from all other variables.
StepHypRef Expression
1 isinitoi.c . . . . . 6 (𝜑 → 𝐶 ∈ Cat)
2 isinitoi.b . . . . . 6 𝐵 = (Base‘𝐶)
3 isinitoi.h . . . . . 6 𝐻 = (Hom ‘𝐶)
41, 2, 3termoval 18184 . . . . 5 (𝜑 → (TermO‘𝐶) = {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)})
54eleq2d 2850 . . . 4 (𝜑 → (𝑂 ∈ (TermO‘𝐶) ↔ 𝑂 ∈ {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)}))
6 elrabi 3644 . . . 4 (𝑂 ∈ {𝑎 ∈ 𝐵 ∣ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑎)} → 𝑂 ∈ 𝐵)
75, 6biimtrdi 256 . . 3 (𝜑 → (𝑂 ∈ (TermO‘𝐶) → 𝑂 ∈ 𝐵))
87imp 412 . 2 ((𝜑 ∧ 𝑂 ∈ (TermO‘𝐶)) → 𝑂 ∈ 𝐵)
91adantr 486 . . . . 5 ((𝜑 ∧ 𝑂 ∈ 𝐵) → 𝐶 ∈ Cat)
10 simpr 490 . . . . 5 ((𝜑 ∧ 𝑂 ∈ 𝐵) → 𝑂 ∈ 𝐵)
112, 3, 9, 10istermo 18187 . . . 4 ((𝜑 ∧ 𝑂 ∈ 𝐵) → (𝑂 ∈ (TermO‘𝐶) ↔ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑂)))
1211biimpd 232 . . 3 ((𝜑 ∧ 𝑂 ∈ 𝐵) → (𝑂 ∈ (TermO‘𝐶) → ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑂)))
1312impancom 457 . 2 ((𝜑 ∧ 𝑂 ∈ (TermO‘𝐶)) → (𝑂 ∈ 𝐵 → ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑂)))
148, 13jcai 526 1 ((𝜑 ∧ 𝑂 ∈ (TermO‘𝐶)) → (𝑂 ∈ 𝐵 ∧ ∀𝑏 ∈ 𝐵 ∃!ℎ ℎ ∈ (𝑏𝐻𝑂)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2146  ∃!weu 2596  ∀wral 3080  {crab 3416  ‘cfv 6547  (class class class)co 7430  Basecbs 17402  Hom chom 17454  Catccat 17853  TermOctermo 18172
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 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  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 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  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 6501  df-fun 6549  df-fv 6555  df-ov 7433  df-termo 18175
This theorem is used by:  termoid  18192  termoo  18198  termoeu1  18208  termoo2  50497
  Copyright terms: Public domain W3C validator