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

Theorem ssctr 17582
Description: The subcategory subset relation is transitive. (Contributed by Mario Carneiro, 6-Jan-2017.)
Assertion
Ref Expression
ssctr ((𝐴cat 𝐵𝐵cat 𝐶) → 𝐴cat 𝐶)

Proof of Theorem ssctr
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simpl 484 . . . . 5 ((𝐴cat 𝐵𝐵cat 𝐶) → 𝐴cat 𝐵)
2 eqidd 2737 . . . . 5 ((𝐴cat 𝐵𝐵cat 𝐶) → dom dom 𝐴 = dom dom 𝐴)
31, 2sscfn1 17574 . . . 4 ((𝐴cat 𝐵𝐵cat 𝐶) → 𝐴 Fn (dom dom 𝐴 × dom dom 𝐴))
4 eqidd 2737 . . . . 5 ((𝐴cat 𝐵𝐵cat 𝐶) → dom dom 𝐵 = dom dom 𝐵)
51, 4sscfn2 17575 . . . 4 ((𝐴cat 𝐵𝐵cat 𝐶) → 𝐵 Fn (dom dom 𝐵 × dom dom 𝐵))
63, 5, 1ssc1 17578 . . 3 ((𝐴cat 𝐵𝐵cat 𝐶) → dom dom 𝐴 ⊆ dom dom 𝐵)
7 simpr 486 . . . . 5 ((𝐴cat 𝐵𝐵cat 𝐶) → 𝐵cat 𝐶)
8 eqidd 2737 . . . . 5 ((𝐴cat 𝐵𝐵cat 𝐶) → dom dom 𝐶 = dom dom 𝐶)
97, 8sscfn2 17575 . . . 4 ((𝐴cat 𝐵𝐵cat 𝐶) → 𝐶 Fn (dom dom 𝐶 × dom dom 𝐶))
105, 9, 7ssc1 17578 . . 3 ((𝐴cat 𝐵𝐵cat 𝐶) → dom dom 𝐵 ⊆ dom dom 𝐶)
116, 10sstrd 3936 . 2 ((𝐴cat 𝐵𝐵cat 𝐶) → dom dom 𝐴 ⊆ dom dom 𝐶)
123adantr 482 . . . . 5 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → 𝐴 Fn (dom dom 𝐴 × dom dom 𝐴))
131adantr 482 . . . . 5 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → 𝐴cat 𝐵)
14 simprl 769 . . . . 5 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → 𝑥 ∈ dom dom 𝐴)
15 simprr 771 . . . . 5 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → 𝑦 ∈ dom dom 𝐴)
1612, 13, 14, 15ssc2 17579 . . . 4 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → (𝑥𝐴𝑦) ⊆ (𝑥𝐵𝑦))
175adantr 482 . . . . 5 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → 𝐵 Fn (dom dom 𝐵 × dom dom 𝐵))
187adantr 482 . . . . 5 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → 𝐵cat 𝐶)
196adantr 482 . . . . . 6 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → dom dom 𝐴 ⊆ dom dom 𝐵)
2019, 14sseldd 3927 . . . . 5 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → 𝑥 ∈ dom dom 𝐵)
2119, 15sseldd 3927 . . . . 5 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → 𝑦 ∈ dom dom 𝐵)
2217, 18, 20, 21ssc2 17579 . . . 4 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → (𝑥𝐵𝑦) ⊆ (𝑥𝐶𝑦))
2316, 22sstrd 3936 . . 3 (((𝐴cat 𝐵𝐵cat 𝐶) ∧ (𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴)) → (𝑥𝐴𝑦) ⊆ (𝑥𝐶𝑦))
2423ralrimivva 3194 . 2 ((𝐴cat 𝐵𝐵cat 𝐶) → ∀𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴(𝑥𝐴𝑦) ⊆ (𝑥𝐶𝑦))
25 sscrel 17570 . . . . . 6 Rel ⊆cat
2625brrelex2i 5655 . . . . 5 (𝐵cat 𝐶𝐶 ∈ V)
2726adantl 483 . . . 4 ((𝐴cat 𝐵𝐵cat 𝐶) → 𝐶 ∈ V)
28 dmexg 7782 . . . 4 (𝐶 ∈ V → dom 𝐶 ∈ V)
29 dmexg 7782 . . . 4 (dom 𝐶 ∈ V → dom dom 𝐶 ∈ V)
3027, 28, 293syl 18 . . 3 ((𝐴cat 𝐵𝐵cat 𝐶) → dom dom 𝐶 ∈ V)
313, 9, 30isssc 17577 . 2 ((𝐴cat 𝐵𝐵cat 𝐶) → (𝐴cat 𝐶 ↔ (dom dom 𝐴 ⊆ dom dom 𝐶 ∧ ∀𝑥 ∈ dom dom 𝐴𝑦 ∈ dom dom 𝐴(𝑥𝐴𝑦) ⊆ (𝑥𝐶𝑦))))
3211, 24, 31mpbir2and 711 1 ((𝐴cat 𝐵𝐵cat 𝐶) → 𝐴cat 𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397  wcel 2104  wral 3062  Vcvv 3437  wss 3892   class class class wbr 5081   × cxp 5598  dom cdm 5600   Fn wfn 6453  (class class class)co 7307  cat cssc 17564
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-pow 5297  ax-pr 5361  ax-un 7620
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-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-pw 4541  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-ov 7310  df-ixp 8717  df-ssc 17567
This theorem is referenced by:  subsubc  17613
  Copyright terms: Public domain W3C validator