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

Theorem prneimg2 4823
Description: Two pairs are not equal if their counterparts are not equal. (Contributed by AV, 5-Sep-2025.)
Assertion
Ref Expression
prneimg2 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → ({𝐴, 𝐵} ≠ {𝐶, 𝐷} ↔ ((𝐴 ≠ 𝐶 ∨ 𝐵 ≠ 𝐷) ∧ (𝐴 ≠ 𝐷 ∨ 𝐵 ≠ 𝐶))))

Proof of Theorem prneimg2
StepHypRef Expression
1 preq12bg 4821 . . 3 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶))))
21necon3abid 3006 . 2 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → ({𝐴, 𝐵} ≠ {𝐶, 𝐷} ↔ ¬ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶))))
3 ioran 1000 . . 3 (¬ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) ↔ (¬ (𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∧ ¬ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))
4 ianor 998 . . . . 5 (¬ (𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ↔ (¬ 𝐴 = 𝐶 ∨ ¬ 𝐵 = 𝐷))
5 df-ne 2971 . . . . . 6 (𝐴 ≠ 𝐶 ↔ ¬ 𝐴 = 𝐶)
6 df-ne 2971 . . . . . 6 (𝐵 ≠ 𝐷 ↔ ¬ 𝐵 = 𝐷)
75, 6orbi12i 928 . . . . 5 ((𝐴 ≠ 𝐶 ∨ 𝐵 ≠ 𝐷) ↔ (¬ 𝐴 = 𝐶 ∨ ¬ 𝐵 = 𝐷))
84, 7bitr4i 281 . . . 4 (¬ (𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ↔ (𝐴 ≠ 𝐶 ∨ 𝐵 ≠ 𝐷))
9 ianor 998 . . . . 5 (¬ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶) ↔ (¬ 𝐴 = 𝐷 ∨ ¬ 𝐵 = 𝐶))
10 df-ne 2971 . . . . . 6 (𝐴 ≠ 𝐷 ↔ ¬ 𝐴 = 𝐷)
11 df-ne 2971 . . . . . 6 (𝐵 ≠ 𝐶 ↔ ¬ 𝐵 = 𝐶)
1210, 11orbi12i 928 . . . . 5 ((𝐴 ≠ 𝐷 ∨ 𝐵 ≠ 𝐶) ↔ (¬ 𝐴 = 𝐷 ∨ ¬ 𝐵 = 𝐶))
139, 12bitr4i 281 . . . 4 (¬ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶) ↔ (𝐴 ≠ 𝐷 ∨ 𝐵 ≠ 𝐶))
148, 13anbi12i 640 . . 3 ((¬ (𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∧ ¬ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) ↔ ((𝐴 ≠ 𝐶 ∨ 𝐵 ≠ 𝐷) ∧ (𝐴 ≠ 𝐷 ∨ 𝐵 ≠ 𝐶)))
153, 14bitri 278 . 2 (¬ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) ↔ ((𝐴 ≠ 𝐶 ∨ 𝐵 ≠ 𝐷) ∧ (𝐴 ≠ 𝐷 ∨ 𝐵 ≠ 𝐶)))
162, 15bitrdi 290 1 (((𝐴 ∈ 𝑈 ∧ 𝐵 ∈ 𝑉) ∧ (𝐶 ∈ 𝑋 ∧ 𝐷 ∈ 𝑌)) → ({𝐴, 𝐵} ≠ {𝐶, 𝐷} ↔ ((𝐴 ≠ 𝐶 ∨ 𝐵 ≠ 𝐷) ∧ (𝐴 ≠ 𝐷 ∨ 𝐵 ≠ 𝐶))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1572   ∈ wcel 2156   ≠ wne 2970  {cpr 4597
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-ne 2971  df-v 3463  df-un 4161  df-sn 4596  df-pr 4598
This theorem is used by:  gpg5nbgrvtx03starlem1  49577  gpg5nbgrvtx03starlem2  49578  gpg5nbgrvtx03starlem3  49579  gpg5nbgrvtx13starlem1  49580  gpg5nbgrvtx13starlem2  49581  gpg5nbgrvtx13starlem3  49582  gpg5edgnedg  49639
  Copyright terms: Public domain W3C validator