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

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

Proof of Theorem eupth2lem1
StepHypRef Expression
1 eleq2 2878 . . 3 (∅ = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → (𝑈 ∈ ∅ ↔ 𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵})))
21bibi1d 347 . 2 (∅ = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → ((𝑈 ∈ ∅ ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))) ↔ (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)))))
3 eleq2 2878 . . 3 ({𝐴, 𝐵} = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → (𝑈 ∈ {𝐴, 𝐵} ↔ 𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵})))
43bibi1d 347 . 2 ({𝐴, 𝐵} = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → ((𝑈 ∈ {𝐴, 𝐵} ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))) ↔ (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)))))
5 noel 4247 . . . 4 ¬ 𝑈 ∈ ∅
65a1i 11 . . 3 ((𝑈𝑉𝐴 = 𝐵) → ¬ 𝑈 ∈ ∅)
7 simpl 486 . . . . 5 ((𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)) → 𝐴𝐵)
87neneqd 2992 . . . 4 ((𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)) → ¬ 𝐴 = 𝐵)
9 simpr 488 . . . 4 ((𝑈𝑉𝐴 = 𝐵) → 𝐴 = 𝐵)
108, 9nsyl3 140 . . 3 ((𝑈𝑉𝐴 = 𝐵) → ¬ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)))
116, 102falsed 380 . 2 ((𝑈𝑉𝐴 = 𝐵) → (𝑈 ∈ ∅ ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
12 elprg 4546 . . 3 (𝑈𝑉 → (𝑈 ∈ {𝐴, 𝐵} ↔ (𝑈 = 𝐴𝑈 = 𝐵)))
13 df-ne 2988 . . . 4 (𝐴𝐵 ↔ ¬ 𝐴 = 𝐵)
14 ibar 532 . . . 4 (𝐴𝐵 → ((𝑈 = 𝐴𝑈 = 𝐵) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
1513, 14sylbir 238 . . 3 𝐴 = 𝐵 → ((𝑈 = 𝐴𝑈 = 𝐵) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
1612, 15sylan9bb 513 . 2 ((𝑈𝑉 ∧ ¬ 𝐴 = 𝐵) → (𝑈 ∈ {𝐴, 𝐵} ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
172, 4, 11, 16ifbothda 4462 1 (𝑈𝑉 → (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 844   = wceq 1538  wcel 2111  wne 2987  c0 4243  ifcif 4425  {cpr 4527
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-tru 1541  df-ex 1782  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-ne 2988  df-v 3443  df-dif 3884  df-un 3886  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528
This theorem is referenced by:  eupth2lem2  28004  eupth2lem3lem6  28018
  Copyright terms: Public domain W3C validator