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

Theorem rabdif 4276
Description: Move difference in and out of a restricted class abstraction. (Contributed by Steven Nguyen, 6-Jun-2023.)
Assertion
Ref Expression
rabdif ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ 𝐵) = {𝑥 ∈ (𝐴 ∖ 𝐵) ∣ 𝜑}
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵
Allowed substitution hint:   𝜑(𝑥)

Proof of Theorem rabdif
StepHypRef Expression
1 indif2 4236 . 2 ({𝑥 ∣ 𝜑} ∩ (𝐴 ∖ 𝐵)) = (({𝑥 ∣ 𝜑} ∩ 𝐴) ∖ 𝐵)
2 dfrab2 4275 . 2 {𝑥 ∈ (𝐴 ∖ 𝐵) ∣ 𝜑} = ({𝑥 ∣ 𝜑} ∩ (𝐴 ∖ 𝐵))
3 dfrab2 4275 . . 3 {𝑥 ∈ 𝐴 ∣ 𝜑} = ({𝑥 ∣ 𝜑} ∩ 𝐴)
43difeq1i 4069 . 2 ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ 𝐵) = (({𝑥 ∣ 𝜑} ∩ 𝐴) ∖ 𝐵)
51, 2, 43eqtr4ri 2808 1 ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ 𝐵) = {𝑥 ∈ (𝐴 ∖ 𝐵) ∣ 𝜑}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1572  {cab 2752  {crab 3423   ∖ cdif 4055   ∩ cin 4099
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-tru 1575  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-rab 3424  df-v 3463  df-dif 4057  df-in 4101
This theorem is used by:  prjspeclsp  43986  dfclnbgr4  49333  clnbupgr  49342  dfnbgr5  49360  dfnbgr6  49366
  Copyright terms: Public domain W3C validator