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

Theorem ssceq 18001
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 2762 . . . . . 6 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐴 = dom dom 𝐴)
31, 2sscfn1 17992 . . . . 5 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐴 Fn (dom dom 𝐴 × dom dom 𝐴))
4 simpr 490 . . . . . 6 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐵 ⊆cat 𝐴)
5 eqidd 2762 . . . . . 6 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐵 = dom dom 𝐵)
64, 5sscfn1 17992 . . . . 5 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐵 Fn (dom dom 𝐵 × dom dom 𝐵))
73, 6, 1ssc1 17996 . . . 4 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐴 ⊆ dom dom 𝐵)
86, 3, 4ssc1 17996 . . . 4 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐵 ⊆ dom dom 𝐴)
97, 8eqssd 3948 . . 3 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐴 = dom dom 𝐵)
109sqxpeqd 5683 . 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 17997 . . . 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 3932 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝑥 ∈ dom dom 𝐵)
2018, 14sseldd 3932 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝑦 ∈ dom dom 𝐵)
2116, 17, 19, 20ssc2 17997 . . . 4 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → (𝑥𝐵𝑦) ⊆ (𝑥𝐴𝑦))
2215, 21eqssd 3948 . . 3 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → (𝑥𝐴𝑦) = (𝑥𝐵𝑦))
2322ralrimivva 3206 . 2 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → ∀𝑥 ∈ dom dom 𝐴∀𝑦 ∈ dom dom 𝐴(𝑥𝐴𝑦) = (𝑥𝐵𝑦))
24 eqfnov 7549 . . 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 1570   ∈ wcel 2145  ∀wral 3077   ⊆ wss 3899   class class class wbr 5103   × cxp 5649  dom cdm 5651   Fn wfn 6533  (class class class)co 7420   ⊆cat cssc 17982
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-pow 5327  ax-pr 5391  ax-un 7751
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-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 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-ixp 8926  df-ssc 17985
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator