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

Theorem ssprsseq 4780
Description: A proper pair is a subset of a pair iff it is equal to the superset. (Contributed by AV, 26-Oct-2020.)
Assertion
Ref Expression
ssprsseq ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({𝐴, 𝐵} ⊆ {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐶, 𝐷}))

Proof of Theorem ssprsseq
StepHypRef Expression
1 ssprss 4779 . . . 4 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → ({𝐴, 𝐵} ⊆ {𝐶, 𝐷} ↔ ((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷))))
213adant3 1150 . . 3 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({𝐴, 𝐵} ⊆ {𝐶, 𝐷} ↔ ((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷))))
3 eqneqall 2966 . . . . . . . 8 (𝐴 = 𝐵 → (𝐴 ≠ 𝐵 → {𝐴, 𝐵} = {𝐶, 𝐷}))
4 eqtr3 2782 . . . . . . . 8 ((𝐴 = 𝐶 ∧ 𝐵 = 𝐶) → 𝐴 = 𝐵)
53, 4syl11 34 . . . . . . 7 (𝐴 ≠ 𝐵 → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷}))
653ad2ant3 1153 . . . . . 6 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷}))
76com12 33 . . . . 5 ((𝐴 = 𝐶 ∧ 𝐵 = 𝐶) → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} = {𝐶, 𝐷}))
8 preq12 4692 . . . . . . 7 ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐷, 𝐶})
9 prcom 4689 . . . . . . 7 {𝐷, 𝐶} = {𝐶, 𝐷}
108, 9eqtrdi 2811 . . . . . 6 ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → {𝐴, 𝐵} = {𝐶, 𝐷})
1110a1d 26 . . . . 5 ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} = {𝐶, 𝐷}))
12 preq12 4692 . . . . . 6 ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷})
1312a1d 26 . . . . 5 ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} = {𝐶, 𝐷}))
14 eqtr3 2782 . . . . . . . 8 ((𝐴 = 𝐷 ∧ 𝐵 = 𝐷) → 𝐴 = 𝐵)
153, 14syl11 34 . . . . . . 7 (𝐴 ≠ 𝐵 → ((𝐴 = 𝐷 ∧ 𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷}))
16153ad2ant3 1153 . . . . . 6 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ((𝐴 = 𝐷 ∧ 𝐵 = 𝐷) → {𝐴, 𝐵} = {𝐶, 𝐷}))
1716com12 33 . . . . 5 ((𝐴 = 𝐷 ∧ 𝐵 = 𝐷) → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} = {𝐶, 𝐷}))
187, 11, 13, 17ccase 1053 . . . 4 (((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)) → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} = {𝐶, 𝐷}))
1918com12 33 . . 3 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)) → {𝐴, 𝐵} = {𝐶, 𝐷}))
202, 19sylbid 243 . 2 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({𝐴, 𝐵} ⊆ {𝐶, 𝐷} → {𝐴, 𝐵} = {𝐶, 𝐷}))
21 eqimss 3966 . 2 ({𝐴, 𝐵} = {𝐶, 𝐷} → {𝐴, 𝐵} ⊆ {𝐶, 𝐷})
2220, 21impbid1 228 1 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({𝐴, 𝐵} ⊆ {𝐶, 𝐷} ↔ {𝐴, 𝐵} = {𝐶, 𝐷}))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144   ≠ wne 2955   ⊆ wss 3895  {cpr 4586
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 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-v 3452  df-ss 3896  df-un 4151  df-sn 4585  df-pr 4587
This theorem is used by:  upgredgpr  29726  cyc3genpmlem  33759
  Copyright terms: Public domain W3C validator