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

Theorem difjust 4056
Description: Soundness justification theorem for df-dif 4057. (Contributed by Rodolfo Medina, 27-Apr-2010.) (Proof shortened by Andrew Salmon, 9-Jul-2011.)
Assertion
Ref Expression
difjust {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ 𝐵)} = {𝑦 ∣ (𝑦 ∈ 𝐴 ∧ ¬ 𝑦 ∈ 𝐵)}
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑦,𝐴   𝑦,𝐵

Proof of Theorem difjust
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 eleq1w 2858 . . . 4 (𝑥 = 𝑧 → (𝑥 ∈ 𝐴 ↔ 𝑧 ∈ 𝐴))
2 eleq1w 2858 . . . . 5 (𝑥 = 𝑧 → (𝑥 ∈ 𝐵 ↔ 𝑧 ∈ 𝐵))
32notbid 321 . . . 4 (𝑥 = 𝑧 → (¬ 𝑥 ∈ 𝐵 ↔ ¬ 𝑧 ∈ 𝐵))
41, 3anbi12d 644 . . 3 (𝑥 = 𝑧 → ((𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ 𝐵) ↔ (𝑧 ∈ 𝐴 ∧ ¬ 𝑧 ∈ 𝐵)))
54cbvabv 2845 . 2 {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ 𝐵)} = {𝑧 ∣ (𝑧 ∈ 𝐴 ∧ ¬ 𝑧 ∈ 𝐵)}
6 eleq1w 2858 . . . 4 (𝑧 = 𝑦 → (𝑧 ∈ 𝐴 ↔ 𝑦 ∈ 𝐴))
7 eleq1w 2858 . . . . 5 (𝑧 = 𝑦 → (𝑧 ∈ 𝐵 ↔ 𝑦 ∈ 𝐵))
87notbid 321 . . . 4 (𝑧 = 𝑦 → (¬ 𝑧 ∈ 𝐵 ↔ ¬ 𝑦 ∈ 𝐵))
96, 8anbi12d 644 . . 3 (𝑧 = 𝑦 → ((𝑧 ∈ 𝐴 ∧ ¬ 𝑧 ∈ 𝐵) ↔ (𝑦 ∈ 𝐴 ∧ ¬ 𝑦 ∈ 𝐵)))
109cbvabv 2845 . 2 {𝑧 ∣ (𝑧 ∈ 𝐴 ∧ ¬ 𝑧 ∈ 𝐵)} = {𝑦 ∣ (𝑦 ∈ 𝐴 ∧ ¬ 𝑦 ∈ 𝐵)}
115, 10eqtri 2797 1 {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ 𝐵)} = {𝑦 ∣ (𝑦 ∈ 𝐴 ∧ ¬ 𝑦 ∈ 𝐵)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∧ wa 401   = wceq 1572   ∈ wcel 2156  {cab 2752
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-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator