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

Theorem ssceq 18013
Description: The subcategory subset relation is antisymmetric. (Contributed by Mario Carneiro, 6-Jan-2017.)
Assertion
Ref Expression
ssceq ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐴 = 𝐵)

Proof of Theorem ssceq
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simpl 488 . . . . . 6 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐴 ⊆cat 𝐵)
2 eqidd 2764 . . . . . 6 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐴 = dom dom 𝐴)
31, 2sscfn1 18004 . . . . 5 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐴 Fn (dom dom 𝐴 × dom dom 𝐴))
4 simpr 490 . . . . . 6 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐵 ⊆cat 𝐴)
5 eqidd 2764 . . . . . 6 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐵 = dom dom 𝐵)
64, 5sscfn1 18004 . . . . 5 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐵 Fn (dom dom 𝐵 × dom dom 𝐵))
73, 6, 1ssc1 18008 . . . 4 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐴 ⊆ dom dom 𝐵)
86, 3, 4ssc1 18008 . . . 4 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐵 ⊆ dom dom 𝐴)
97, 8eqssd 3929 . . 3 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐴 = dom dom 𝐵)
109sqxpeqd 5686 . 2 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → (dom dom 𝐴 × dom dom 𝐴) = (dom dom 𝐵 × dom dom 𝐵))
113adantr 486 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝐴 Fn (dom dom 𝐴 × dom dom 𝐴))
121adantr 486 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝐴 ⊆cat 𝐵)
13 simprl 783 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝑥 ∈ dom dom 𝐴)
14 simprr 785 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝑦 ∈ dom dom 𝐴)
1511, 12, 13, 14ssc2 18009 . . . 4 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → (𝑥𝐴𝑦) ⊆ (𝑥𝐵𝑦))
166adantr 486 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝐵 Fn (dom dom 𝐵 × dom dom 𝐵))
174adantr 486 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝐵 ⊆cat 𝐴)
187adantr 486 . . . . . 6 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → dom dom 𝐴 ⊆ dom dom 𝐵)
1918, 13sseldd 3913 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝑥 ∈ dom dom 𝐵)
2018, 14sseldd 3913 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝑦 ∈ dom dom 𝐵)
2116, 17, 19, 20ssc2 18009 . . . 4 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → (𝑥𝐵𝑦) ⊆ (𝑥𝐴𝑦))
2215, 21eqssd 3929 . . 3 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → (𝑥𝐴𝑦) = (𝑥𝐵𝑦))
2322ralrimivva 3208 . 2 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → ∀𝑥 ∈ dom dom 𝐴∀𝑦 ∈ dom dom 𝐴(𝑥𝐴𝑦) = (𝑥𝐵𝑦))
24 eqfnov 7556 . . 3 ((𝐴 Fn (dom dom 𝐴 × dom dom 𝐴) ∧ 𝐵 Fn (dom dom 𝐵 × dom dom 𝐵)) → (𝐴 = 𝐵 ↔ ((dom dom 𝐴 × dom dom 𝐴) = (dom dom 𝐵 × dom dom 𝐵) ∧ ∀𝑥 ∈ dom dom 𝐴∀𝑦 ∈ dom dom 𝐴(𝑥𝐴𝑦) = (𝑥𝐵𝑦))))
253, 6, 24syl2anc 596 . 2 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → (𝐴 = 𝐵 ↔ ((dom dom 𝐴 × dom dom 𝐴) = (dom dom 𝐵 × dom dom 𝐵) ∧ ∀𝑥 ∈ dom dom 𝐴∀𝑦 ∈ dom dom 𝐴(𝑥𝐴𝑦) = (𝑥𝐵𝑦))))
2610, 23, 25mpbir2and 726 1 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐴 = 𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569   ∈ wcel 2146  ∀wral 3079   ⊆ wss 3899   class class class wbr 5105   × cxp 5652  dom cdm 5654   Fn wfn 6541  (class class class)co 7427   ⊆cat cssc 17994
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-rep 5234  ax-sep 5251  ax-nul 5262  ax-pow 5330  ax-pr 5394  ax-un 7758
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 2838  df-nfc 2912  df-ne 2959  df-ral 3080  df-rex 3090  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4838  df-uni 4870  df-iun 4955  df-br 5106  df-opab 5170  df-mpt 5189  df-id 5549  df-xp 5660  df-rel 5661  df-cnv 5662  df-co 5663  df-dm 5664  df-rn 5665  df-res 5666  df-ima 5667  df-iota 6500  df-fun 6548  df-fn 6549  df-f 6550  df-f1 6551  df-fo 6552  df-f1o 6553  df-fv 6554  df-ov 7430  df-ixp 8937  df-ssc 17997
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator