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

Theorem 3elpr2eq 4838
Description: If there are three elements in a proper unordered pair, and two of them are different from the third one, the two must be equal. (Contributed by AV, 19-Dec-2021.)
Assertion
Ref Expression
3elpr2eq (((𝑋 ∈ {𝐴, 𝐵} ∧ 𝑌 ∈ {𝐴, 𝐵} ∧ 𝑍 ∈ {𝐴, 𝐵}) ∧ (𝑌𝑋𝑍𝑋)) → 𝑌 = 𝑍)

Proof of Theorem 3elpr2eq
StepHypRef Expression
1 elpri 4583 . . 3 (𝑋 ∈ {𝐴, 𝐵} → (𝑋 = 𝐴𝑋 = 𝐵))
2 elpri 4583 . . 3 (𝑌 ∈ {𝐴, 𝐵} → (𝑌 = 𝐴𝑌 = 𝐵))
3 elpri 4583 . . 3 (𝑍 ∈ {𝐴, 𝐵} → (𝑍 = 𝐴𝑍 = 𝐵))
4 eqtr3 2764 . . . . . . . . . . 11 ((𝑍 = 𝐴𝑋 = 𝐴) → 𝑍 = 𝑋)
5 eqneqall 2954 . . . . . . . . . . 11 (𝑍 = 𝑋 → (𝑍𝑋𝑌 = 𝑍))
64, 5syl 17 . . . . . . . . . 10 ((𝑍 = 𝐴𝑋 = 𝐴) → (𝑍𝑋𝑌 = 𝑍))
76adantld 491 . . . . . . . . 9 ((𝑍 = 𝐴𝑋 = 𝐴) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))
87ex 413 . . . . . . . 8 (𝑍 = 𝐴 → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍)))
98a1d 25 . . . . . . 7 (𝑍 = 𝐴 → ((𝑌 = 𝐴𝑌 = 𝐵) → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
10 eqtr3 2764 . . . . . . . . . . . . 13 ((𝑌 = 𝐴𝑋 = 𝐴) → 𝑌 = 𝑋)
11 eqneqall 2954 . . . . . . . . . . . . 13 (𝑌 = 𝑋 → (𝑌𝑋 → (𝑍𝑋𝑌 = 𝑍)))
1210, 11syl 17 . . . . . . . . . . . 12 ((𝑌 = 𝐴𝑋 = 𝐴) → (𝑌𝑋 → (𝑍𝑋𝑌 = 𝑍)))
1312impd 411 . . . . . . . . . . 11 ((𝑌 = 𝐴𝑋 = 𝐴) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))
1413ex 413 . . . . . . . . . 10 (𝑌 = 𝐴 → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍)))
1514a1d 25 . . . . . . . . 9 (𝑌 = 𝐴 → (𝑍 = 𝐵 → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
16 eqtr3 2764 . . . . . . . . . . 11 ((𝑌 = 𝐵𝑍 = 𝐵) → 𝑌 = 𝑍)
17162a1d 26 . . . . . . . . . 10 ((𝑌 = 𝐵𝑍 = 𝐵) → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍)))
1817ex 413 . . . . . . . . 9 (𝑌 = 𝐵 → (𝑍 = 𝐵 → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
1915, 18jaoi 854 . . . . . . . 8 ((𝑌 = 𝐴𝑌 = 𝐵) → (𝑍 = 𝐵 → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
2019com12 32 . . . . . . 7 (𝑍 = 𝐵 → ((𝑌 = 𝐴𝑌 = 𝐵) → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
219, 20jaoi 854 . . . . . 6 ((𝑍 = 𝐴𝑍 = 𝐵) → ((𝑌 = 𝐴𝑌 = 𝐵) → (𝑋 = 𝐴 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
2221com13 88 . . . . 5 (𝑋 = 𝐴 → ((𝑌 = 𝐴𝑌 = 𝐵) → ((𝑍 = 𝐴𝑍 = 𝐵) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
23 eqtr3 2764 . . . . . . . . . . 11 ((𝑌 = 𝐴𝑍 = 𝐴) → 𝑌 = 𝑍)
24232a1d 26 . . . . . . . . . 10 ((𝑌 = 𝐴𝑍 = 𝐴) → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍)))
2524ex 413 . . . . . . . . 9 (𝑌 = 𝐴 → (𝑍 = 𝐴 → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
26 eqtr3 2764 . . . . . . . . . . . . 13 ((𝑌 = 𝐵𝑋 = 𝐵) → 𝑌 = 𝑋)
2726, 11syl 17 . . . . . . . . . . . 12 ((𝑌 = 𝐵𝑋 = 𝐵) → (𝑌𝑋 → (𝑍𝑋𝑌 = 𝑍)))
2827impd 411 . . . . . . . . . . 11 ((𝑌 = 𝐵𝑋 = 𝐵) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))
2928ex 413 . . . . . . . . . 10 (𝑌 = 𝐵 → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍)))
3029a1d 25 . . . . . . . . 9 (𝑌 = 𝐵 → (𝑍 = 𝐴 → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
3125, 30jaoi 854 . . . . . . . 8 ((𝑌 = 𝐴𝑌 = 𝐵) → (𝑍 = 𝐴 → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
3231com12 32 . . . . . . 7 (𝑍 = 𝐴 → ((𝑌 = 𝐴𝑌 = 𝐵) → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
33 eqtr3 2764 . . . . . . . . . . 11 ((𝑍 = 𝐵𝑋 = 𝐵) → 𝑍 = 𝑋)
3433, 5syl 17 . . . . . . . . . 10 ((𝑍 = 𝐵𝑋 = 𝐵) → (𝑍𝑋𝑌 = 𝑍))
3534adantld 491 . . . . . . . . 9 ((𝑍 = 𝐵𝑋 = 𝐵) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))
3635ex 413 . . . . . . . 8 (𝑍 = 𝐵 → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍)))
3736a1d 25 . . . . . . 7 (𝑍 = 𝐵 → ((𝑌 = 𝐴𝑌 = 𝐵) → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
3832, 37jaoi 854 . . . . . 6 ((𝑍 = 𝐴𝑍 = 𝐵) → ((𝑌 = 𝐴𝑌 = 𝐵) → (𝑋 = 𝐵 → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
3938com13 88 . . . . 5 (𝑋 = 𝐵 → ((𝑌 = 𝐴𝑌 = 𝐵) → ((𝑍 = 𝐴𝑍 = 𝐵) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
4022, 39jaoi 854 . . . 4 ((𝑋 = 𝐴𝑋 = 𝐵) → ((𝑌 = 𝐴𝑌 = 𝐵) → ((𝑍 = 𝐴𝑍 = 𝐵) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))))
41403imp 1110 . . 3 (((𝑋 = 𝐴𝑋 = 𝐵) ∧ (𝑌 = 𝐴𝑌 = 𝐵) ∧ (𝑍 = 𝐴𝑍 = 𝐵)) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))
421, 2, 3, 41syl3an 1159 . 2 ((𝑋 ∈ {𝐴, 𝐵} ∧ 𝑌 ∈ {𝐴, 𝐵} ∧ 𝑍 ∈ {𝐴, 𝐵}) → ((𝑌𝑋𝑍𝑋) → 𝑌 = 𝑍))
4342imp 407 1 (((𝑋 ∈ {𝐴, 𝐵} ∧ 𝑌 ∈ {𝐴, 𝐵} ∧ 𝑍 ∈ {𝐴, 𝐵}) ∧ (𝑌𝑋𝑍𝑋)) → 𝑌 = 𝑍)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  wne 2943  {cpr 4563
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ne 2944  df-v 3434  df-un 3892  df-sn 4562  df-pr 4564
This theorem is referenced by:  numedglnl  27514
  Copyright terms: Public domain W3C validator