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

Theorem difrab 2284
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 2280 . . 3 |- ({x | (x e. A /\ ph)} \ {x | (x e. A /\ ps)}) = {x | ((x e. A /\ ph) /\ -. (x e. A /\ ps))}
2 anass 442 . . . . 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 391 . . . . . . . 8 |- ((x e. A /\ ph) -> (ps -> (x e. A /\ ps)))
87con3d 95 . . . . . . 7 |- ((x e. A /\ ph) -> (-. (x e. A /\ ps) -> -. ps))
98imdistani 446 . . . . . 6 |- (((x e. A /\ ph) /\ -. (x e. A /\ ps)) -> ((x e. A /\ ph) /\ -. ps))
105, 9impbii 157 . . . . 5 |- (((x e. A /\ ph) /\ -. ps) <-> ((x e. A /\ ph) /\ -. (x e. A /\ ps)))
112, 10bitr3i 175 . . . 4 |- ((x e. A /\ (ph /\ -. ps)) <-> ((x e. A /\ ph) /\ -. (x e. A /\ ps)))
1211abbii 1582 . . 3 |- {x | (x e. A /\ (ph /\ -. ps))} = {x | ((x e. A /\ ph) /\ -. (x e. A /\ ps))}
131, 12eqtr4i 1505 . 2 |- ({x | (x e. A /\ ph)} \ {x | (x e. A /\ ps)}) = {x | (x e. A /\ (ph /\ -. ps))}
14 df-rab 1659 . . 3 |- {x e. A | ph} = {x | (x e. A /\ ph)}
15 df-rab 1659 . . 3 |- {x e. A | ps} = {x | (x e. A /\ ps)}
1614, 15difeq12i 2168 . 2 |- ({x e. A | ph} \ {x e. A | ps}) = ({x | (x e. A /\ ph)} \ {x | (x e. A /\ ps)})
17 df-rab 1659 . 2 |- {x e. A | (ph /\ -. ps)} = {x | (x e. A /\ (ph /\ -. ps))}
1813, 16, 173eqtr4i 1512 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 960   e. wcel 962  {cab 1469  {crab 1655   \ cdif 2055
This theorem is referenced by:  alephsuc3 7618
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 966  ax-gen 967  ax-8 968  ax-10 970  ax-12 972  ax-17 975  ax-4 977  ax-5o 979  ax-6o 982  ax-9o 1127  ax-10o 1144  ax-16 1214  ax-11o 1222  ax-ext 1464
This theorem depends on definitions:  df-bi 147  df-an 225  df-ex 985  df-sb 1176  df-clab 1470  df-cleq 1475  df-clel 1478  df-rab 1659  df-v 1819  df-dif 2060  df-in 2062
Copyright terms: Public domain