HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
Unicode version

Theorem difrab 2263
Description: Difference of two restricted class abstractions.
Assertion
Ref Expression
difrab |- ({x e. A | ph} \ {x e. A | ps}) = {x e. A | (ph /\ -. ps)}

Proof of Theorem difrab
StepHypRef Expression
1 difab 2259 . . 3 |- ({x | (x e. A /\ ph)} \ {x | (x e. A /\ ps)}) = {x | ((x e. A /\ ph) /\ -. (x e. A /\ ps))}
2 anass 439 . . . . 5 |- (((x e. A /\ ph) /\ -. ps) <-> (x e. A /\ (ph /\ -. ps)))
3 pm3.27 323 . . . . . . . 8 |- ((x e. A /\ ps) -> ps)
43con3i 98 . . . . . . 7 |- (-. ps -> -. (x e. A /\ ps))
54anim2i 335 . . . . . 6 |- (((x e. A /\ ph) /\ -. ps) -> ((x e. A /\ ph) /\ -. (x e. A /\ ps)))
6 pm3.2 283 . . . . . . . . 9 |- (x e. A -> (ps -> (x e. A /\ ps)))
76adantr 389 . . . . . . . 8 |- ((x e. A /\ ph) -> (ps -> (x e. A /\ ps)))
87con3d 95 . . . . . . 7 |- ((x e. A /\ ph) -> (-. (x e. A /\ ps) -> -. ps))
98imdistani 443 . . . . . 6 |- (((x e. A /\ ph) /\ -. (x e. A /\ ps)) -> ((x e. A /\ ph) /\ -. ps))
105, 9impbi 157 . . . . 5 |- (((x e. A /\ ph) /\ -. ps) <-> ((x e. A /\ ph) /\ -. (x e. A /\ ps)))
112, 10bitr3 175 . . . 4 |- ((x e. A /\ (ph /\ -. ps)) <-> ((x e. A /\ ph) /\ -. (x e. A /\ ps)))
1211abbii 1567 . . 3 |- {x | (x e. A /\ (ph /\ -. ps))} = {x | ((x e. A /\ ph) /\ -. (x e. A /\ ps))}
131, 12eqtr4 1490 . 2 |- ({x | (x e. A /\ ph)} \ {x | (x e. A /\ ps)}) = {x | (x e. A /\ (ph /\ -. ps))}
14 df-rab 1644 . . 3 |- {x e. A | ph} = {x | (x e. A /\ ph)}
15 df-rab 1644 . . 3 |- {x e. A | ps} = {x | (x e. A /\ ps)}
1614, 15difeq12i 2147 . 2 |- ({x e. A | ph} \ {x e. A | ps}) = ({x | (x e. A /\ ph)} \ {x | (x e. A /\ ps)})
17 df-rab 1644 . 2 |- {x e. A | (ph /\ -. ps)} = {x | (x e. A /\ (ph /\ -. ps))}
1813, 16, 173eqtr4 1497 1 |- ({x e. A | ph} \ {x e. A | ps}) = {x e. A | (ph /\ -. ps)}
Colors of variables: wff set class
Syntax hints:  -. wn 2   -> wi 3   /\ wa 223   = wceq 953   e. wcel 955  {cab 1456  {crab 1640   \ cdif 2034
This theorem is referenced by:  alephsuc3 7527
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 959  ax-gen 960  ax-8 961  ax-10 963  ax-12 965  ax-17 968  ax-4 970  ax-5o 972  ax-6o 975  ax-9o 1119  ax-10o 1136  ax-16 1206  ax-11o 1213  ax-ext 1452
This theorem depends on definitions:  df-bi 147  df-an 225  df-ex 978  df-sb 1168  df-clab 1457  df-cleq 1462  df-clel 1465  df-rab 1644  df-v 1803  df-dif 2039  df-in 2041
Copyright terms: Public domain