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

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

Proof of Theorem eupth2lem1
StepHypRef Expression
1 eleq2 2690 . . 3 (∅ = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → (𝑈 ∈ ∅ ↔ 𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵})))
21bibi1d 333 . 2 (∅ = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → ((𝑈 ∈ ∅ ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))) ↔ (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)))))
3 eleq2 2690 . . 3 ({𝐴, 𝐵} = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → (𝑈 ∈ {𝐴, 𝐵} ↔ 𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵})))
43bibi1d 333 . 2 ({𝐴, 𝐵} = if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) → ((𝑈 ∈ {𝐴, 𝐵} ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))) ↔ (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)))))
5 noel 3919 . . . 4 ¬ 𝑈 ∈ ∅
65a1i 11 . . 3 ((𝑈𝑉𝐴 = 𝐵) → ¬ 𝑈 ∈ ∅)
7 simpl 473 . . . . 5 ((𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)) → 𝐴𝐵)
87neneqd 2799 . . . 4 ((𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)) → ¬ 𝐴 = 𝐵)
9 simpr 477 . . . 4 ((𝑈𝑉𝐴 = 𝐵) → 𝐴 = 𝐵)
108, 9nsyl3 133 . . 3 ((𝑈𝑉𝐴 = 𝐵) → ¬ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵)))
116, 102falsed 366 . 2 ((𝑈𝑉𝐴 = 𝐵) → (𝑈 ∈ ∅ ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
12 elprg 4196 . . 3 (𝑈𝑉 → (𝑈 ∈ {𝐴, 𝐵} ↔ (𝑈 = 𝐴𝑈 = 𝐵)))
13 df-ne 2795 . . . 4 (𝐴𝐵 ↔ ¬ 𝐴 = 𝐵)
14 ibar 525 . . . 4 (𝐴𝐵 → ((𝑈 = 𝐴𝑈 = 𝐵) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
1513, 14sylbir 225 . . 3 𝐴 = 𝐵 → ((𝑈 = 𝐴𝑈 = 𝐵) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
1612, 15sylan9bb 736 . 2 ((𝑈𝑉 ∧ ¬ 𝐴 = 𝐵) → (𝑈 ∈ {𝐴, 𝐵} ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
172, 4, 11, 16ifbothda 4123 1 (𝑈𝑉 → (𝑈 ∈ if(𝐴 = 𝐵, ∅, {𝐴, 𝐵}) ↔ (𝐴𝐵 ∧ (𝑈 = 𝐴𝑈 = 𝐵))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 383  wa 384   = wceq 1483  wcel 1990  wne 2794  c0 3915  ifcif 4086  {cpr 4179
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-v 3202  df-dif 3577  df-un 3579  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180
This theorem is referenced by:  eupth2lem2  27079  eupth2lem3lem6  27093
  Copyright terms: Public domain W3C validator