Users' Mathboxes Mathbox for Zhi Wang < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  catprs Structured version   Visualization version   GIF version

Theorem catprs 46350
Description: A preorder can be extracted from a category. See catprs2 46351 for more details. (Contributed by Zhi Wang, 18-Sep-2024.)
Hypotheses
Ref Expression
catprs.1 (𝜑 → ∀𝑥𝐵𝑦𝐵 (𝑥 𝑦 ↔ (𝑥𝐻𝑦) ≠ ∅))
catprs.b (𝜑𝐵 = (Base‘𝐶))
catprs.h (𝜑𝐻 = (Hom ‘𝐶))
catprs.c (𝜑𝐶 ∈ Cat)
Assertion
Ref Expression
catprs ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → (𝑋 𝑋 ∧ ((𝑋 𝑌𝑌 𝑍) → 𝑋 𝑍)))
Distinct variable groups:   𝑥, ,𝑦   𝑥,𝐵,𝑦   𝑥,𝐻,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐶(𝑥,𝑦)   𝑋(𝑥,𝑦)   𝑌(𝑥,𝑦)   𝑍(𝑥,𝑦)

Proof of Theorem catprs
StepHypRef Expression
1 eqid 2736 . . . . . 6 (Base‘𝐶) = (Base‘𝐶)
2 eqid 2736 . . . . . 6 (Hom ‘𝐶) = (Hom ‘𝐶)
3 eqid 2736 . . . . . 6 (Id‘𝐶) = (Id‘𝐶)
4 catprs.c . . . . . . 7 (𝜑𝐶 ∈ Cat)
54adantr 482 . . . . . 6 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → 𝐶 ∈ Cat)
6 simpr1 1194 . . . . . . 7 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → 𝑋𝐵)
7 catprs.b . . . . . . . 8 (𝜑𝐵 = (Base‘𝐶))
87adantr 482 . . . . . . 7 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → 𝐵 = (Base‘𝐶))
96, 8eleqtrd 2839 . . . . . 6 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → 𝑋 ∈ (Base‘𝐶))
101, 2, 3, 5, 9catidcl 17436 . . . . 5 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → ((Id‘𝐶)‘𝑋) ∈ (𝑋(Hom ‘𝐶)𝑋))
11 catprs.h . . . . . . 7 (𝜑𝐻 = (Hom ‘𝐶))
1211adantr 482 . . . . . 6 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → 𝐻 = (Hom ‘𝐶))
1312oveqd 7324 . . . . 5 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → (𝑋𝐻𝑋) = (𝑋(Hom ‘𝐶)𝑋))
1410, 13eleqtrrd 2840 . . . 4 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → ((Id‘𝐶)‘𝑋) ∈ (𝑋𝐻𝑋))
1514ne0d 4275 . . 3 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → (𝑋𝐻𝑋) ≠ ∅)
16 catprs.1 . . . . 5 (𝜑 → ∀𝑥𝐵𝑦𝐵 (𝑥 𝑦 ↔ (𝑥𝐻𝑦) ≠ ∅))
1716adantr 482 . . . 4 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → ∀𝑥𝐵𝑦𝐵 (𝑥 𝑦 ↔ (𝑥𝐻𝑦) ≠ ∅))
1817, 6, 6catprslem 46349 . . 3 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → (𝑋 𝑋 ↔ (𝑋𝐻𝑋) ≠ ∅))
1915, 18mpbird 257 . 2 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → 𝑋 𝑋)
2011ad2antrr 724 . . . . . 6 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → 𝐻 = (Hom ‘𝐶))
2120oveqd 7324 . . . . 5 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋𝐻𝑍) = (𝑋(Hom ‘𝐶)𝑍))
227eleq2d 2822 . . . . . . . 8 (𝜑 → (𝑋𝐵𝑋 ∈ (Base‘𝐶)))
237eleq2d 2822 . . . . . . . 8 (𝜑 → (𝑌𝐵𝑌 ∈ (Base‘𝐶)))
247eleq2d 2822 . . . . . . . 8 (𝜑 → (𝑍𝐵𝑍 ∈ (Base‘𝐶)))
2522, 23, 243anbi123d 1436 . . . . . . 7 (𝜑 → ((𝑋𝐵𝑌𝐵𝑍𝐵) ↔ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))))
2625pm5.32i 576 . . . . . 6 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ↔ (𝜑 ∧ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))))
27 eqid 2736 . . . . . . 7 (comp‘𝐶) = (comp‘𝐶)
284ad2antrr 724 . . . . . . 7 (((𝜑 ∧ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))) ∧ (𝑋 𝑌𝑌 𝑍)) → 𝐶 ∈ Cat)
29 simplr1 1215 . . . . . . 7 (((𝜑 ∧ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))) ∧ (𝑋 𝑌𝑌 𝑍)) → 𝑋 ∈ (Base‘𝐶))
30 simplr2 1216 . . . . . . 7 (((𝜑 ∧ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))) ∧ (𝑋 𝑌𝑌 𝑍)) → 𝑌 ∈ (Base‘𝐶))
31 simplr3 1217 . . . . . . 7 (((𝜑 ∧ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))) ∧ (𝑋 𝑌𝑌 𝑍)) → 𝑍 ∈ (Base‘𝐶))
3220oveqd 7324 . . . . . . . . 9 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋𝐻𝑌) = (𝑋(Hom ‘𝐶)𝑌))
33 simpr2 1195 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → 𝑌𝐵)
3417, 6, 33catprslem 46349 . . . . . . . . . . 11 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → (𝑋 𝑌 ↔ (𝑋𝐻𝑌) ≠ ∅))
3534biimpa 478 . . . . . . . . . 10 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ 𝑋 𝑌) → (𝑋𝐻𝑌) ≠ ∅)
3635adantrr 715 . . . . . . . . 9 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋𝐻𝑌) ≠ ∅)
3732, 36eqnetrrd 3010 . . . . . . . 8 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋(Hom ‘𝐶)𝑌) ≠ ∅)
3826, 37sylanbr 583 . . . . . . 7 (((𝜑 ∧ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋(Hom ‘𝐶)𝑌) ≠ ∅)
3920oveqd 7324 . . . . . . . . 9 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑌𝐻𝑍) = (𝑌(Hom ‘𝐶)𝑍))
40 simpr3 1196 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → 𝑍𝐵)
4117, 33, 40catprslem 46349 . . . . . . . . . . 11 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → (𝑌 𝑍 ↔ (𝑌𝐻𝑍) ≠ ∅))
4241biimpa 478 . . . . . . . . . 10 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ 𝑌 𝑍) → (𝑌𝐻𝑍) ≠ ∅)
4342adantrl 714 . . . . . . . . 9 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑌𝐻𝑍) ≠ ∅)
4439, 43eqnetrrd 3010 . . . . . . . 8 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑌(Hom ‘𝐶)𝑍) ≠ ∅)
4526, 44sylanbr 583 . . . . . . 7 (((𝜑 ∧ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑌(Hom ‘𝐶)𝑍) ≠ ∅)
461, 2, 27, 28, 29, 30, 31, 38, 45catcone0 17441 . . . . . 6 (((𝜑 ∧ (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶) ∧ 𝑍 ∈ (Base‘𝐶))) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋(Hom ‘𝐶)𝑍) ≠ ∅)
4726, 46sylanb 582 . . . . 5 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋(Hom ‘𝐶)𝑍) ≠ ∅)
4821, 47eqnetrd 3009 . . . 4 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋𝐻𝑍) ≠ ∅)
4917, 6, 40catprslem 46349 . . . . 5 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → (𝑋 𝑍 ↔ (𝑋𝐻𝑍) ≠ ∅))
5049adantr 482 . . . 4 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → (𝑋 𝑍 ↔ (𝑋𝐻𝑍) ≠ ∅))
5148, 50mpbird 257 . . 3 (((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) ∧ (𝑋 𝑌𝑌 𝑍)) → 𝑋 𝑍)
5251ex 414 . 2 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → ((𝑋 𝑌𝑌 𝑍) → 𝑋 𝑍))
5319, 52jca 513 1 ((𝜑 ∧ (𝑋𝐵𝑌𝐵𝑍𝐵)) → (𝑋 𝑋 ∧ ((𝑋 𝑌𝑌 𝑍) → 𝑋 𝑍)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 397  w3a 1087   = wceq 1539  wcel 2104  wne 2941  wral 3062  c0 4262   class class class wbr 5081  cfv 6458  (class class class)co 7307  Basecbs 16957  Hom chom 17018  compcco 17019  Catccat 17418  Idccid 17419
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-11 2152  ax-12 2169  ax-ext 2707  ax-rep 5218  ax-sep 5232  ax-nul 5239  ax-pr 5361
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2887  df-ne 2942  df-ral 3063  df-rex 3072  df-rmo 3285  df-reu 3286  df-rab 3287  df-v 3439  df-sbc 3722  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-sn 4566  df-pr 4568  df-op 4572  df-uni 4845  df-iun 4933  df-br 5082  df-opab 5144  df-mpt 5165  df-id 5500  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-ima 5613  df-iota 6410  df-fun 6460  df-fn 6461  df-f 6462  df-f1 6463  df-fo 6464  df-f1o 6465  df-fv 6466  df-riota 7264  df-ov 7310  df-cat 17422  df-cid 17423
This theorem is referenced by:  catprs2  46351
  Copyright terms: Public domain W3C validator