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

Theorem rabxfrd 4815
 Description: Class builder membership after substituting an expression 𝐴 (containing 𝑦) for 𝑥 in the class expression 𝜒. (Contributed by NM, 16-Jan-2012.)
Hypotheses
Ref Expression
rabxfrd.1 𝑦𝐵
rabxfrd.2 𝑦𝐶
rabxfrd.3 ((𝜑𝑦𝐷) → 𝐴𝐷)
rabxfrd.4 (𝑥 = 𝐴 → (𝜓𝜒))
rabxfrd.5 (𝑦 = 𝐵𝐴 = 𝐶)
Assertion
Ref Expression
rabxfrd ((𝜑𝐵𝐷) → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
Distinct variable groups:   𝑥,𝐴   𝑥,𝑦,𝐷   𝜑,𝑦   𝜓,𝑦   𝜒,𝑥
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑥)   𝜒(𝑦)   𝐴(𝑦)   𝐵(𝑥,𝑦)   𝐶(𝑥,𝑦)

Proof of Theorem rabxfrd
StepHypRef Expression
1 rabxfrd.3 . . . . . . . . . . 11 ((𝜑𝑦𝐷) → 𝐴𝐷)
21ex 449 . . . . . . . . . 10 (𝜑 → (𝑦𝐷𝐴𝐷))
3 ibibr 357 . . . . . . . . . 10 ((𝑦𝐷𝐴𝐷) ↔ (𝑦𝐷 → (𝐴𝐷𝑦𝐷)))
42, 3sylib 207 . . . . . . . . 9 (𝜑 → (𝑦𝐷 → (𝐴𝐷𝑦𝐷)))
54imp 444 . . . . . . . 8 ((𝜑𝑦𝐷) → (𝐴𝐷𝑦𝐷))
65anbi1d 737 . . . . . . 7 ((𝜑𝑦𝐷) → ((𝐴𝐷𝜒) ↔ (𝑦𝐷𝜒)))
7 rabxfrd.4 . . . . . . . 8 (𝑥 = 𝐴 → (𝜓𝜒))
87elrab 3331 . . . . . . 7 (𝐴 ∈ {𝑥𝐷𝜓} ↔ (𝐴𝐷𝜒))
9 rabid 3095 . . . . . . 7 (𝑦 ∈ {𝑦𝐷𝜒} ↔ (𝑦𝐷𝜒))
106, 8, 93bitr4g 302 . . . . . 6 ((𝜑𝑦𝐷) → (𝐴 ∈ {𝑥𝐷𝜓} ↔ 𝑦 ∈ {𝑦𝐷𝜒}))
1110rabbidva 3163 . . . . 5 (𝜑 → {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} = {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}})
1211eleq2d 2673 . . . 4 (𝜑 → (𝐵 ∈ {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} ↔ 𝐵 ∈ {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}}))
13 rabxfrd.1 . . . . 5 𝑦𝐵
14 nfcv 2751 . . . . 5 𝑦𝐷
15 rabxfrd.2 . . . . . 6 𝑦𝐶
1615nfel1 2765 . . . . 5 𝑦 𝐶 ∈ {𝑥𝐷𝜓}
17 rabxfrd.5 . . . . . 6 (𝑦 = 𝐵𝐴 = 𝐶)
1817eleq1d 2672 . . . . 5 (𝑦 = 𝐵 → (𝐴 ∈ {𝑥𝐷𝜓} ↔ 𝐶 ∈ {𝑥𝐷𝜓}))
1913, 14, 16, 18elrabf 3329 . . . 4 (𝐵 ∈ {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} ↔ (𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}))
20 nfrab1 3099 . . . . . 6 𝑦{𝑦𝐷𝜒}
2113, 20nfel 2763 . . . . 5 𝑦 𝐵 ∈ {𝑦𝐷𝜒}
22 eleq1 2676 . . . . 5 (𝑦 = 𝐵 → (𝑦 ∈ {𝑦𝐷𝜒} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
2313, 14, 21, 22elrabf 3329 . . . 4 (𝐵 ∈ {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}} ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒}))
2412, 19, 233bitr3g 301 . . 3 (𝜑 → ((𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}) ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒})))
25 pm5.32 666 . . 3 ((𝐵𝐷 → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒})) ↔ ((𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}) ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒})))
2624, 25sylibr 223 . 2 (𝜑 → (𝐵𝐷 → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒})))
2726imp 444 1 ((𝜑𝐵𝐷) → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 195   ∧ wa 383   = wceq 1475   ∈ wcel 1977  Ⅎwnfc 2738  {crab 2900 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590 This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rab 2905  df-v 3175 This theorem is referenced by:  rabxfr  4816  riotaxfrd  6541
 Copyright terms: Public domain W3C validator