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

Theorem rabxfrd 4360
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 460 . . . . . . 7 ((𝜑𝑦𝐷) → ((𝐴𝐷𝜒) ↔ (𝑦𝐷𝜒)))
7 rabxfrd.4 . . . . . . . 8 (𝑥 = 𝐴 → (𝜓𝜒))
87elrab 2813 . . . . . . 7 (𝐴 ∈ {𝑥𝐷𝜓} ↔ (𝐴𝐷𝜒))
9 rabid 2583 . . . . . . 7 (𝑦 ∈ {𝑦𝐷𝜒} ↔ (𝑦𝐷𝜒))
106, 8, 93bitr4g 222 . . . . . 6 ((𝜑𝑦𝐷) → (𝐴 ∈ {𝑥𝐷𝜓} ↔ 𝑦 ∈ {𝑦𝐷𝜒}))
1110rabbidva 2648 . . . . 5 (𝜑 → {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} = {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}})
1211eleq2d 2187 . . . 4 (𝜑 → (𝐵 ∈ {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} ↔ 𝐵 ∈ {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}}))
13 rabxfrd.1 . . . . 5 𝑦𝐵
14 nfcv 2258 . . . . 5 𝑦𝐷
15 rabxfrd.2 . . . . . 6 𝑦𝐶
1615nfel1 2269 . . . . 5 𝑦 𝐶 ∈ {𝑥𝐷𝜓}
17 rabxfrd.5 . . . . . 6 (𝑦 = 𝐵𝐴 = 𝐶)
1817eleq1d 2186 . . . . 5 (𝑦 = 𝐵 → (𝐴 ∈ {𝑥𝐷𝜓} ↔ 𝐶 ∈ {𝑥𝐷𝜓}))
1913, 14, 16, 18elrabf 2811 . . . 4 (𝐵 ∈ {𝑦𝐷𝐴 ∈ {𝑥𝐷𝜓}} ↔ (𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}))
20 nfrab1 2587 . . . . . 6 𝑦{𝑦𝐷𝜒}
2113, 20nfel 2267 . . . . 5 𝑦 𝐵 ∈ {𝑦𝐷𝜒}
22 eleq1 2180 . . . . 5 (𝑦 = 𝐵 → (𝑦 ∈ {𝑦𝐷𝜒} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
2313, 14, 21, 22elrabf 2811 . . . 4 (𝐵 ∈ {𝑦𝐷𝑦 ∈ {𝑦𝐷𝜒}} ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒}))
2412, 19, 233bitr3g 221 . . 3 (𝜑 → ((𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}) ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒})))
25 pm5.32 448 . . 3 ((𝐵𝐷 → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒})) ↔ ((𝐵𝐷𝐶 ∈ {𝑥𝐷𝜓}) ↔ (𝐵𝐷𝐵 ∈ {𝑦𝐷𝜒})))
2624, 25sylibr 133 . 2 (𝜑 → (𝐵𝐷 → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒})))
2726imp 123 1 ((𝜑𝐵𝐷) → (𝐶 ∈ {𝑥𝐷𝜓} ↔ 𝐵 ∈ {𝑦𝐷𝜒}))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104   = wceq 1316  wcel 1465  wnfc 2245  {crab 2397
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 683  ax-5 1408  ax-7 1409  ax-gen 1410  ax-ie1 1454  ax-ie2 1455  ax-8 1467  ax-10 1468  ax-11 1469  ax-i12 1470  ax-bndl 1471  ax-4 1472  ax-17 1491  ax-i9 1495  ax-ial 1499  ax-i5r 1500  ax-ext 2099
This theorem depends on definitions:  df-bi 116  df-tru 1319  df-nf 1422  df-sb 1721  df-clab 2104  df-cleq 2110  df-clel 2113  df-nfc 2247  df-ral 2398  df-rab 2402  df-v 2662
This theorem is referenced by:  rabxfr  4361
  Copyright terms: Public domain W3C validator