Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  elpreq Structured version   Visualization version   GIF version

Theorem elpreq 28744
Description: Equality wihin a pair. (Contributed by Thierry Arnoux, 23-Aug-2017.)
Hypotheses
Ref Expression
elpreq.1 (𝜑𝑋 ∈ {𝐴, 𝐵})
elpreq.2 (𝜑𝑌 ∈ {𝐴, 𝐵})
elpreq.3 (𝜑 → (𝑋 = 𝐴𝑌 = 𝐴))
Assertion
Ref Expression
elpreq (𝜑𝑋 = 𝑌)

Proof of Theorem elpreq
StepHypRef Expression
1 simpr 476 . . 3 ((𝜑𝑋 = 𝐴) → 𝑋 = 𝐴)
2 elpreq.3 . . . 4 (𝜑 → (𝑋 = 𝐴𝑌 = 𝐴))
32biimpa 500 . . 3 ((𝜑𝑋 = 𝐴) → 𝑌 = 𝐴)
41, 3eqtr4d 2647 . 2 ((𝜑𝑋 = 𝐴) → 𝑋 = 𝑌)
5 elpreq.1 . . . . 5 (𝜑𝑋 ∈ {𝐴, 𝐵})
6 elpri 4145 . . . . 5 (𝑋 ∈ {𝐴, 𝐵} → (𝑋 = 𝐴𝑋 = 𝐵))
75, 6syl 17 . . . 4 (𝜑 → (𝑋 = 𝐴𝑋 = 𝐵))
87orcanai 950 . . 3 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑋 = 𝐵)
9 simpl 472 . . . 4 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝜑)
102notbid 307 . . . . 5 (𝜑 → (¬ 𝑋 = 𝐴 ↔ ¬ 𝑌 = 𝐴))
1110biimpa 500 . . . 4 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → ¬ 𝑌 = 𝐴)
12 elpreq.2 . . . . 5 (𝜑𝑌 ∈ {𝐴, 𝐵})
13 elpri 4145 . . . . 5 (𝑌 ∈ {𝐴, 𝐵} → (𝑌 = 𝐴𝑌 = 𝐵))
14 pm2.53 387 . . . . 5 ((𝑌 = 𝐴𝑌 = 𝐵) → (¬ 𝑌 = 𝐴𝑌 = 𝐵))
1512, 13, 143syl 18 . . . 4 (𝜑 → (¬ 𝑌 = 𝐴𝑌 = 𝐵))
169, 11, 15sylc 63 . . 3 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑌 = 𝐵)
178, 16eqtr4d 2647 . 2 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑋 = 𝑌)
184, 17pm2.61dan 828 1 (𝜑𝑋 = 𝑌)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wo 382  wa 383   = wceq 1475  wcel 1977  {cpr 4127
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-v 3175  df-un 3545  df-sn 4126  df-pr 4128
This theorem is referenced by:  indpreima  29414
  Copyright terms: Public domain W3C validator