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 30290
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 487 . . 3 ((𝜑𝑋 = 𝐴) → 𝑋 = 𝐴)
2 elpreq.3 . . . 4 (𝜑 → (𝑋 = 𝐴𝑌 = 𝐴))
32biimpa 479 . . 3 ((𝜑𝑋 = 𝐴) → 𝑌 = 𝐴)
41, 3eqtr4d 2859 . 2 ((𝜑𝑋 = 𝐴) → 𝑋 = 𝑌)
5 elpreq.1 . . . . 5 (𝜑𝑋 ∈ {𝐴, 𝐵})
6 elpri 4589 . . . . 5 (𝑋 ∈ {𝐴, 𝐵} → (𝑋 = 𝐴𝑋 = 𝐵))
75, 6syl 17 . . . 4 (𝜑 → (𝑋 = 𝐴𝑋 = 𝐵))
87orcanai 999 . . 3 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑋 = 𝐵)
9 simpl 485 . . . 4 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝜑)
102notbid 320 . . . . 5 (𝜑 → (¬ 𝑋 = 𝐴 ↔ ¬ 𝑌 = 𝐴))
1110biimpa 479 . . . 4 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → ¬ 𝑌 = 𝐴)
12 elpreq.2 . . . . 5 (𝜑𝑌 ∈ {𝐴, 𝐵})
13 elpri 4589 . . . . 5 (𝑌 ∈ {𝐴, 𝐵} → (𝑌 = 𝐴𝑌 = 𝐵))
14 pm2.53 847 . . . . 5 ((𝑌 = 𝐴𝑌 = 𝐵) → (¬ 𝑌 = 𝐴𝑌 = 𝐵))
1512, 13, 143syl 18 . . . 4 (𝜑 → (¬ 𝑌 = 𝐴𝑌 = 𝐵))
169, 11, 15sylc 65 . . 3 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑌 = 𝐵)
178, 16eqtr4d 2859 . 2 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑋 = 𝑌)
184, 17pm2.61dan 811 1 (𝜑𝑋 = 𝑌)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843   = wceq 1537  wcel 2114  {cpr 4569
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-v 3496  df-un 3941  df-sn 4568  df-pr 4570
This theorem is referenced by:  indpreima  31284
  Copyright terms: Public domain W3C validator