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

Theorem rabxfrd 4447
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 114 . . . . . . . . . 10 (𝜑 → (𝑦𝐷𝐴𝐷))
3 ibibr 245 . . . . . . . . . 10 ((𝑦𝐷𝐴𝐷) ↔ (𝑦𝐷 → (𝐴𝐷𝑦𝐷)))
42, 3sylib 121 . . . . . . . . 9 (𝜑 → (𝑦𝐷 → (𝐴𝐷𝑦𝐷)))
54imp 123 . . . . . . . 8 ((𝜑𝑦𝐷) → (𝐴𝐷𝑦𝐷))
65anbi1d 461 . . . . . . 7 ((𝜑𝑦𝐷) → ((𝐴𝐷𝜒) ↔ (𝑦𝐷𝜒)))
7 rabxfrd.4 . . . . . . . 8 (𝑥 = 𝐴 → (𝜓𝜒))
87elrab 2882 . . . . . . 7 (𝐴 ∈ {𝑥𝐷𝜓} ↔ (𝐴𝐷𝜒))
9 rabid 2641 . . . . . . 7 (𝑦 ∈ {𝑦𝐷𝜒} ↔ (𝑦𝐷𝜒))
106, 8, 93bitr4g 222 . . . . . 6 ((𝜑𝑦𝐷) → (𝐴 ∈ {𝑥𝐷𝜓} ↔ 𝑦 ∈ {𝑦𝐷𝜒}))
1110rabbidva 2714 . . . . 5 (𝜑 → {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} = {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}})
1211eleq2d 2236 . . . 4 (𝜑 → (𝐵 ∈ {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} ↔ 𝐵 ∈ {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}}))
13 rabxfrd.1 . . . . 5 𝑦𝐵
14 nfcv 2308 . . . . 5 𝑦𝐷
15 rabxfrd.2 . . . . . 6 𝑦𝐶
1615nfel1 2319 . . . . 5 𝑦 𝐶 ∈ {𝑥𝐷𝜓}
17 rabxfrd.5 . . . . . 6 (𝑦 = 𝐵𝐴 = 𝐶)
1817eleq1d 2235 . . . . 5 (𝑦 = 𝐵 → (𝐴 ∈ {𝑥𝐷𝜓} ↔ 𝐶 ∈ {𝑥𝐷𝜓}))
1913, 14, 16, 18elrabf 2880 . . . 4 (𝐵 ∈ {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} ↔ (𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}))
20 nfrab1 2645 . . . . . 6 𝑦{𝑦𝐷𝜒}
2113, 20nfel 2317 . . . . 5 𝑦 𝐵 ∈ {𝑦𝐷𝜒}
22 eleq1 2229 . . . . 5 (𝑦 = 𝐵 → (𝑦 ∈ {𝑦𝐷𝜒} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
2313, 14, 21, 22elrabf 2880 . . . 4 (𝐵 ∈ {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}} ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒}))
2412, 19, 233bitr3g 221 . . 3 (𝜑 → ((𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}) ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒})))
25 pm5.32 449 . . 3 ((𝐵𝐷 → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒})) ↔ ((𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}) ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒})))
2624, 25sylibr 133 . 2 (𝜑 → (𝐵𝐷 → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒})))
2726imp 123 1 ((𝜑𝐵𝐷) → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104   = wceq 1343  wcel 2136  wnfc 2295  {crab 2448
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-ext 2147
This theorem depends on definitions:  df-bi 116  df-tru 1346  df-nf 1449  df-sb 1751  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rab 2453  df-v 2728
This theorem is referenced by:  rabxfr  4448
  Copyright terms: Public domain W3C validator