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

Theorem prneimg 4813
Description: Two pairs are not equal if at least one element of the first pair is not contained in the second pair. (Contributed by Alexander van der Vekens, 13-Aug-2017.)
Assertion
Ref Expression
prneimg (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → (((𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷) ∨ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷)) → {𝐴, 𝐵} ≠ {𝐶, 𝐷}))

Proof of Theorem prneimg
StepHypRef Expression
1 preq12bg 4812 . . . . 5 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶))))
2 orddi 1027 . . . . . 6 (((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) ↔ (((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐴 = 𝐶 ∨ 𝐵 = 𝐶)) ∧ ((𝐵 = 𝐷 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐷 ∨ 𝐵 = 𝐶))))
3 simpll 779 . . . . . . 7 ((((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐴 = 𝐶 ∨ 𝐵 = 𝐶)) ∧ ((𝐵 = 𝐷 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐷 ∨ 𝐵 = 𝐶))) → (𝐴 = 𝐶 ∨ 𝐴 = 𝐷))
4 pm1.4 883 . . . . . . . 8 ((𝐵 = 𝐷 ∨ 𝐵 = 𝐶) → (𝐵 = 𝐶 ∨ 𝐵 = 𝐷))
54ad2antll 742 . . . . . . 7 ((((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐴 = 𝐶 ∨ 𝐵 = 𝐶)) ∧ ((𝐵 = 𝐷 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐷 ∨ 𝐵 = 𝐶))) → (𝐵 = 𝐶 ∨ 𝐵 = 𝐷))
63, 5jca 521 . . . . . 6 ((((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐴 = 𝐶 ∨ 𝐵 = 𝐶)) ∧ ((𝐵 = 𝐷 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐷 ∨ 𝐵 = 𝐶))) → ((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)))
72, 6sylbi 220 . . . . 5 (((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) → ((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)))
81, 7biimtrdi 256 . . . 4 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷))))
9 ianor 997 . . . . . 6 (¬ (𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷) ↔ (¬ 𝐴 ≠ 𝐶 ∨ ¬ 𝐴 ≠ 𝐷))
10 nne 2959 . . . . . . 7 (¬ 𝐴 ≠ 𝐶 ↔ 𝐴 = 𝐶)
11 nne 2959 . . . . . . 7 (¬ 𝐴 ≠ 𝐷 ↔ 𝐴 = 𝐷)
1210, 11orbi12i 928 . . . . . 6 ((¬ 𝐴 ≠ 𝐶 ∨ ¬ 𝐴 ≠ 𝐷) ↔ (𝐴 = 𝐶 ∨ 𝐴 = 𝐷))
139, 12bitr2i 279 . . . . 5 ((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ↔ ¬ (𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷))
14 ianor 997 . . . . . 6 (¬ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷) ↔ (¬ 𝐵 ≠ 𝐶 ∨ ¬ 𝐵 ≠ 𝐷))
15 nne 2959 . . . . . . 7 (¬ 𝐵 ≠ 𝐶 ↔ 𝐵 = 𝐶)
16 nne 2959 . . . . . . 7 (¬ 𝐵 ≠ 𝐷 ↔ 𝐵 = 𝐷)
1715, 16orbi12i 928 . . . . . 6 ((¬ 𝐵 ≠ 𝐶 ∨ ¬ 𝐵 ≠ 𝐷) ↔ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷))
1814, 17bitr2i 279 . . . . 5 ((𝐵 = 𝐶 ∨ 𝐵 = 𝐷) ↔ ¬ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷))
1913, 18anbi12i 640 . . . 4 (((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)) ↔ (¬ (𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷) ∧ ¬ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷)))
208, 19imbitrdi 254 . . 3 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → (¬ (𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷) ∧ ¬ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷))))
21 pm4.56 1004 . . 3 ((¬ (𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷) ∧ ¬ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷)) ↔ ¬ ((𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷) ∨ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷)))
2220, 21imbitrdi 254 . 2 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → ({𝐴, 𝐵} = {𝐶, 𝐷} → ¬ ((𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷) ∨ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷))))
2322necon2ad 2970 1 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → (((𝐴 ≠ 𝐶 ∧ 𝐴 ≠ 𝐷) ∨ (𝐵 ≠ 𝐶 ∧ 𝐵 ≠ 𝐷)) → {𝐴, 𝐵} ≠ {𝐶, 𝐷}))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   ∨ wo 861   = wceq 1569   ∈ wcel 2144   ≠ wne 2955  {cpr 4585
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-un 4151  df-sn 4584  df-pr 4586
This theorem is used by:  prnebg  4815  opthhausdorff  5489  symg2bas  19607  m2detleib  22946  umgrvad2edg  29794  usgrexmpldifpr  29839  usgrexmpl1lem  49119  usgrexmpl2lem  49124  usgrexmpl2nb0  49129  usgrexmpl2nb1  49130  usgrexmpl2nb2  49131  usgrexmpl2nb3  49132  usgrexmpl2nb4  49133  usgrexmpl2nb5  49134  gpg5nbgrvtx03starlem1  49166  gpg5nbgrvtx03starlem2  49167  gpg5nbgrvtx03starlem3  49168  gpg5nbgrvtx13starlem1  49169  gpg5nbgrvtx13starlem2  49170  gpg5nbgrvtx13starlem3  49171  gpgprismgr4cycllem2  49194  gpg5edgnedg  49228  zlmodzxzldeplem  49610  line2x  49866  inlinecirc02plem  49898
  Copyright terms: Public domain W3C validator