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

Theorem eupth2lem1 30983
Description: Lemma for eupth2 31004. (Contributed by Mario Carneiro, 8-Apr-2015.)
Assertion
Ref Expression
eupth2lem1 (𝑈 ∈ 𝑉 → (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵))))

Proof of Theorem eupth2lem1
StepHypRef Expression
1 eleq2 2864 . . 3 (∅ = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → (𝑈 ∈ ∅ ↔ 𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵})))
21bibi1d 346 . 2 (∅ = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → ((𝑈 ∈ ∅ ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵))) ↔ (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵)))))
3 eleq2 2864 . . 3 ({𝐴, 𝐵} = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → (𝑈 ∈ {𝐴, 𝐵} ↔ 𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵})))
43bibi1d 346 . 2 ({𝐴, 𝐵} = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → ((𝑈 ∈ {𝐴, 𝐵} ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵))) ↔ (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵)))))
5 noel 4293 . . . 4 ¬ 𝑈 ∈ ∅
65a1i 11 . . 3 ((𝑈 ∈ 𝑉 ∧ 𝐴 = 𝐵) → ¬ 𝑈 ∈ ∅)
7 simpl 488 . . . . 5 ((𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵)) → 𝐴 ≠ 𝐵)
87neneqd 2975 . . . 4 ((𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵)) → ¬ 𝐴 = 𝐵)
9 simpr 490 . . . 4 ((𝑈 ∈ 𝑉 ∧ 𝐴 = 𝐵) → 𝐴 = 𝐵)
108, 9nsyl3 139 . . 3 ((𝑈 ∈ 𝑉 ∧ 𝐴 = 𝐵) → ¬ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵)))
116, 102falsed 379 . 2 ((𝑈 ∈ 𝑉 ∧ 𝐴 = 𝐵) → (𝑈 ∈ ∅ ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵))))
12 elprg 4614 . . 3 (𝑈 ∈ 𝑉 → (𝑈 ∈ {𝐴, 𝐵} ↔ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵)))
13 df-ne 2971 . . . 4 (𝐴 ≠ 𝐵 ↔ ¬ 𝐴 = 𝐵)
14 ibar 538 . . . 4 (𝐴 ≠ 𝐵 → ((𝑈 = 𝐴 ∨ 𝑈 = 𝐵) ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵))))
1513, 14sylbir 238 . . 3 (¬ 𝐴 = 𝐵 → ((𝑈 = 𝐴 ∨ 𝑈 = 𝐵) ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵))))
1612, 15sylan9bb 519 . 2 ((𝑈 ∈ 𝑉 ∧ ¬ 𝐴 = 𝐵) → (𝑈 ∈ {𝐴, 𝐵} ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵))))
172, 4, 11, 16ifbothda 4531 1 (𝑈 ∈ 𝑉 → (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴 ≠ 𝐵 ∧ (𝑈 = 𝐴 ∨ 𝑈 = 𝐵))))
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  ∅c0 4288  ifcif 4492  {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-tru 1575  df-fal 1585  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-ne 2971  df-v 3463  df-dif 4057  df-un 4161  df-nul 4289  df-if 4493  df-sn 4596  df-pr 4598
This theorem is used by:  eupth2lem2  30984  eupth2lem3lem6  30998
  Copyright terms: Public domain W3C validator