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

Theorem ssceq 18051
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 18042 . . . . 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 18042 . . . . 5 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → 𝐵 Fn (dom dom 𝐵 × dom dom 𝐵))
73, 6, 1ssc1 18046 . . . 4 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐴 ⊆ dom dom 𝐵)
86, 3, 4ssc1 18046 . . . 4 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐵 ⊆ dom dom 𝐴)
97, 8eqssd 3930 . . 3 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → dom dom 𝐴 = dom dom 𝐵)
109sqxpeqd 5690 . 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 18047 . . . 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 3914 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝑥 ∈ dom dom 𝐵)
2018, 14sseldd 3914 . . . . 5 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → 𝑦 ∈ dom dom 𝐵)
2116, 17, 19, 20ssc2 18047 . . . 4 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → (𝑥𝐵𝑦) ⊆ (𝑥𝐴𝑦))
2215, 21eqssd 3930 . . 3 (((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) ∧ (𝑥 ∈ dom dom 𝐴 ∧ 𝑦 ∈ dom dom 𝐴)) → (𝑥𝐴𝑦) = (𝑥𝐵𝑦))
2322ralrimivva 3209 . 2 ((𝐴 ⊆cat 𝐵 ∧ 𝐵 ⊆cat 𝐴) → ∀𝑥 ∈ dom dom 𝐴∀𝑦 ∈ dom dom 𝐴(𝑥𝐴𝑦) = (𝑥𝐵𝑦))
24 eqfnov 7580 . . 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 2147  ∀wral 3080   ⊆ wss 3900   class class class wbr 5108   × cxp 5656  dom cdm 5658   Fn wfn 6561  (class class class)co 7451   ⊆cat cssc 18032
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
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 2102  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-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  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 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-ov 7454  df-ixp 8964  df-ssc 18035
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator