ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  rabxfrd GIF version

Theorem rabxfrd 4219
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 113 . . . . . . . . . 10 (𝜑 → (𝑦𝐷𝐴𝐷))
3 ibibr 244 . . . . . . . . . 10 ((𝑦𝐷𝐴𝐷) ↔ (𝑦𝐷 → (𝐴𝐷𝑦𝐷)))
42, 3sylib 120 . . . . . . . . 9 (𝜑 → (𝑦𝐷 → (𝐴𝐷𝑦𝐷)))
54imp 122 . . . . . . . 8 ((𝜑𝑦𝐷) → (𝐴𝐷𝑦𝐷))
65anbi1d 452 . . . . . . 7 ((𝜑𝑦𝐷) → ((𝐴𝐷𝜒) ↔ (𝑦𝐷𝜒)))
7 rabxfrd.4 . . . . . . . 8 (𝑥 = 𝐴 → (𝜓𝜒))
87elrab 2749 . . . . . . 7 (𝐴 ∈ {𝑥𝐷𝜓} ↔ (𝐴𝐷𝜒))
9 rabid 2529 . . . . . . 7 (𝑦 ∈ {𝑦𝐷𝜒} ↔ (𝑦𝐷𝜒))
106, 8, 93bitr4g 221 . . . . . 6 ((𝜑𝑦𝐷) → (𝐴 ∈ {𝑥𝐷𝜓} ↔ 𝑦 ∈ {𝑦𝐷𝜒}))
1110rabbidva 2592 . . . . 5 (𝜑 → {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} = {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}})
1211eleq2d 2148 . . . 4 (𝜑 → (𝐵 ∈ {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} ↔ 𝐵 ∈ {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}}))
13 rabxfrd.1 . . . . 5 𝑦𝐵
14 nfcv 2219 . . . . 5 𝑦𝐷
15 rabxfrd.2 . . . . . 6 𝑦𝐶
1615nfel1 2229 . . . . 5 𝑦 𝐶 ∈ {𝑥𝐷𝜓}
17 rabxfrd.5 . . . . . 6 (𝑦 = 𝐵𝐴 = 𝐶)
1817eleq1d 2147 . . . . 5 (𝑦 = 𝐵 → (𝐴 ∈ {𝑥𝐷𝜓} ↔ 𝐶 ∈ {𝑥𝐷𝜓}))
1913, 14, 16, 18elrabf 2747 . . . 4 (𝐵 ∈ {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} ↔ (𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}))
20 nfrab1 2533 . . . . . 6 𝑦{𝑦𝐷𝜒}
2113, 20nfel 2227 . . . . 5 𝑦 𝐵 ∈ {𝑦𝐷𝜒}
22 eleq1 2141 . . . . 5 (𝑦 = 𝐵 → (𝑦 ∈ {𝑦𝐷𝜒} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
2313, 14, 21, 22elrabf 2747 . . . 4 (𝐵 ∈ {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}} ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒}))
2412, 19, 233bitr3g 220 . . 3 (𝜑 → ((𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}) ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒})))
25 pm5.32 440 . . 3 ((𝐵𝐷 → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒})) ↔ ((𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}) ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒})))
2624, 25sylibr 132 . 2 (𝜑 → (𝐵𝐷 → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒})))
2726imp 122 1 ((𝜑𝐵𝐷) → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 102  wb 103   = wceq 1284  wcel 1433  wnfc 2206  {crab 2352
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-io 662  ax-5 1376  ax-7 1377  ax-gen 1378  ax-ie1 1422  ax-ie2 1423  ax-8 1435  ax-10 1436  ax-11 1437  ax-i12 1438  ax-bndl 1439  ax-4 1440  ax-17 1459  ax-i9 1463  ax-ial 1467  ax-i5r 1468  ax-ext 2063
This theorem depends on definitions:  df-bi 115  df-tru 1287  df-nf 1390  df-sb 1686  df-clab 2068  df-cleq 2074  df-clel 2077  df-nfc 2208  df-ral 2353  df-rab 2357  df-v 2603
This theorem is referenced by:  rabxfr  4220
  Copyright terms: Public domain W3C validator