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

Theorem inrab2 4273
Description: Intersection with a restricted class abstraction. (Contributed by NM, 19-Nov-2007.)
Assertion
Ref Expression
inrab2 ({𝑥𝐴𝜑} ∩ 𝐵) = {𝑥 ∈ (𝐴𝐵) ∣ 𝜑}
Distinct variable group:   𝑥,𝐵
Allowed substitution hints:   𝜑(𝑥)   𝐴(𝑥)

Proof of Theorem inrab2
StepHypRef Expression
1 df-rab 3144 . . 3 {𝑥𝐴𝜑} = {𝑥 ∣ (𝑥𝐴𝜑)}
2 abid1 2953 . . 3 𝐵 = {𝑥𝑥𝐵}
31, 2ineq12i 4184 . 2 ({𝑥𝐴𝜑} ∩ 𝐵) = ({𝑥 ∣ (𝑥𝐴𝜑)} ∩ {𝑥𝑥𝐵})
4 df-rab 3144 . . 3 {𝑥 ∈ (𝐴𝐵) ∣ 𝜑} = {𝑥 ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝜑)}
5 inab 4268 . . . 4 ({𝑥 ∣ (𝑥𝐴𝜑)} ∩ {𝑥𝑥𝐵}) = {𝑥 ∣ ((𝑥𝐴𝜑) ∧ 𝑥𝐵)}
6 elin 4166 . . . . . . 7 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴𝑥𝐵))
76anbi1i 623 . . . . . 6 ((𝑥 ∈ (𝐴𝐵) ∧ 𝜑) ↔ ((𝑥𝐴𝑥𝐵) ∧ 𝜑))
8 an32 642 . . . . . 6 (((𝑥𝐴𝑥𝐵) ∧ 𝜑) ↔ ((𝑥𝐴𝜑) ∧ 𝑥𝐵))
97, 8bitri 276 . . . . 5 ((𝑥 ∈ (𝐴𝐵) ∧ 𝜑) ↔ ((𝑥𝐴𝜑) ∧ 𝑥𝐵))
109abbii 2883 . . . 4 {𝑥 ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝜑)} = {𝑥 ∣ ((𝑥𝐴𝜑) ∧ 𝑥𝐵)}
115, 10eqtr4i 2844 . . 3 ({𝑥 ∣ (𝑥𝐴𝜑)} ∩ {𝑥𝑥𝐵}) = {𝑥 ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝜑)}
124, 11eqtr4i 2844 . 2 {𝑥 ∈ (𝐴𝐵) ∣ 𝜑} = ({𝑥 ∣ (𝑥𝐴𝜑)} ∩ {𝑥𝑥𝐵})
133, 12eqtr4i 2844 1 ({𝑥𝐴𝜑} ∩ 𝐵) = {𝑥 ∈ (𝐴𝐵) ∣ 𝜑}
Colors of variables: wff setvar class
Syntax hints:  wa 396   = wceq 1528  wcel 2105  {cab 2796  {crab 3139  cin 3932
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-rab 3144  df-v 3494  df-in 3940
This theorem is referenced by:  iooval2  12759  fzval2  12883  smuval2  15819  smueqlem  15827  dfphi2  16099  ordtrest  21738  ordtrest2lem  21739  ordtrestNEW  31063  ordtrest2NEWlem  31064  itg2addnclem2  34825  dmatALTbas  44384
  Copyright terms: Public domain W3C validator