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 33181
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 490 . . 3 ((𝜑 ∧ 𝑋 = 𝐴) → 𝑋 = 𝐴)
2 elpreq.3 . . . 4 (𝜑 → (𝑋 = 𝐴 ↔ 𝑌 = 𝐴))
32biimpa 482 . . 3 ((𝜑 ∧ 𝑋 = 𝐴) → 𝑌 = 𝐴)
41, 3eqtr4d 2801 . 2 ((𝜑 ∧ 𝑋 = 𝐴) → 𝑋 = 𝑌)
5 elpreq.1 . . . . 5 (𝜑 → 𝑋 ∈ {𝐴, 𝐵})
6 elpri 4608 . . . . 5 (𝑋 ∈ {𝐴, 𝐵} → (𝑋 = 𝐴 ∨ 𝑋 = 𝐵))
75, 6syl 18 . . . 4 (𝜑 → (𝑋 = 𝐴 ∨ 𝑋 = 𝐵))
87orcanai 1018 . . 3 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑋 = 𝐵)
9 simpl 488 . . . 4 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝜑)
102notbid 321 . . . . 5 (𝜑 → (¬ 𝑋 = 𝐴 ↔ ¬ 𝑌 = 𝐴))
1110biimpa 482 . . . 4 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → ¬ 𝑌 = 𝐴)
12 elpreq.2 . . . . 5 (𝜑 → 𝑌 ∈ {𝐴, 𝐵})
13 elpri 4608 . . . . 5 (𝑌 ∈ {𝐴, 𝐵} → (𝑌 = 𝐴 ∨ 𝑌 = 𝐵))
14 pm2.53 865 . . . . 5 ((𝑌 = 𝐴 ∨ 𝑌 = 𝐵) → (¬ 𝑌 = 𝐴 → 𝑌 = 𝐵))
1512, 13, 143syl 19 . . . 4 (𝜑 → (¬ 𝑌 = 𝐴 → 𝑌 = 𝐵))
169, 11, 15sylc 66 . . 3 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑌 = 𝐵)
178, 16eqtr4d 2801 . 2 ((𝜑 ∧ ¬ 𝑋 = 𝐴) → 𝑋 = 𝑌)
184, 17pm2.61dan 825 1 (𝜑 → 𝑋 = 𝑌)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1569   ∈ wcel 2146  {cpr 4590
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 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-ex 1812  df-sb 2101  df-clab 2742  df-cleq 2755  df-clel 2839  df-v 3456  df-un 4154  df-sn 4589  df-pr 4591
This theorem is used by:  indpreima  33488
  Copyright terms: Public domain W3C validator