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

Theorem elmptrab 22886
Description: Membership in a one-parameter class of sets. (Contributed by Stefan O'Rear, 28-Jul-2015.)
Hypotheses
Ref Expression
elmptrab.f 𝐹 = (𝑥𝐷 ↦ {𝑦𝐵𝜑})
elmptrab.s1 ((𝑥 = 𝑋𝑦 = 𝑌) → (𝜑𝜓))
elmptrab.s2 (𝑥 = 𝑋𝐵 = 𝐶)
elmptrab.ex (𝑥𝐷𝐵𝑉)
Assertion
Ref Expression
elmptrab (𝑌 ∈ (𝐹𝑋) ↔ (𝑋𝐷𝑌𝐶𝜓))
Distinct variable groups:   𝑥,𝑦,𝑋   𝑦,𝐵   𝑥,𝐶,𝑦   𝑥,𝐷   𝑥,𝑉,𝑦   𝑥,𝑌,𝑦   𝜓,𝑥,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐵(𝑥)   𝐷(𝑦)   𝐹(𝑥,𝑦)

Proof of Theorem elmptrab
Dummy variables 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elmptrab.f . . 3 𝐹 = (𝑥𝐷 ↦ {𝑦𝐵𝜑})
21mptrcl 6866 . 2 (𝑌 ∈ (𝐹𝑋) → 𝑋𝐷)
3 simp1 1134 . 2 ((𝑋𝐷𝑌𝐶𝜓) → 𝑋𝐷)
4 csbeq1 3831 . . . . . 6 (𝑧 = 𝑋𝑧 / 𝑥𝐵 = 𝑋 / 𝑥𝐵)
5 dfsbcq 3713 . . . . . 6 (𝑧 = 𝑋 → ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑋 / 𝑥][𝑤 / 𝑦]𝜑))
64, 5rabeqbidv 3410 . . . . 5 (𝑧 = 𝑋 → {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑} = {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑})
7 nfcv 2906 . . . . . . 7 𝑧{𝑦𝐵𝜑}
8 nfsbc1v 3731 . . . . . . . 8 𝑥[𝑧 / 𝑥][𝑤 / 𝑦]𝜑
9 nfcsb1v 3853 . . . . . . . 8 𝑥𝑧 / 𝑥𝐵
108, 9nfrabw 3311 . . . . . . 7 𝑥{𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑}
11 csbeq1a 3842 . . . . . . . . 9 (𝑥 = 𝑧𝐵 = 𝑧 / 𝑥𝐵)
12 sbceq1a 3722 . . . . . . . . 9 (𝑥 = 𝑧 → (𝜑[𝑧 / 𝑥]𝜑))
1311, 12rabeqbidv 3410 . . . . . . . 8 (𝑥 = 𝑧 → {𝑦𝐵𝜑} = {𝑦𝑧 / 𝑥𝐵[𝑧 / 𝑥]𝜑})
14 nfcv 2906 . . . . . . . . 9 𝑤𝑧 / 𝑥𝐵
15 nfcv 2906 . . . . . . . . 9 𝑦𝑧 / 𝑥𝐵
16 nfcv 2906 . . . . . . . . . 10 𝑦𝑧
17 nfsbc1v 3731 . . . . . . . . . 10 𝑦[𝑤 / 𝑦]𝜑
1816, 17nfsbcw 3733 . . . . . . . . 9 𝑦[𝑧 / 𝑥][𝑤 / 𝑦]𝜑
19 nfv 1918 . . . . . . . . 9 𝑤[𝑧 / 𝑥]𝜑
20 sbccom 3800 . . . . . . . . . 10 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑤 / 𝑦][𝑧 / 𝑥]𝜑)
21 sbceq1a 3722 . . . . . . . . . . 11 (𝑦 = 𝑤 → ([𝑧 / 𝑥]𝜑[𝑤 / 𝑦][𝑧 / 𝑥]𝜑))
2221equcoms 2024 . . . . . . . . . 10 (𝑤 = 𝑦 → ([𝑧 / 𝑥]𝜑[𝑤 / 𝑦][𝑧 / 𝑥]𝜑))
2320, 22bitr4id 289 . . . . . . . . 9 (𝑤 = 𝑦 → ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑧 / 𝑥]𝜑))
2414, 15, 18, 19, 23cbvrabw 3414 . . . . . . . 8 {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑} = {𝑦𝑧 / 𝑥𝐵[𝑧 / 𝑥]𝜑}
2513, 24eqtr4di 2797 . . . . . . 7 (𝑥 = 𝑧 → {𝑦𝐵𝜑} = {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑})
267, 10, 25cbvmpt 5181 . . . . . 6 (𝑥𝐷 ↦ {𝑦𝐵𝜑}) = (𝑧𝐷 ↦ {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑})
271, 26eqtri 2766 . . . . 5 𝐹 = (𝑧𝐷 ↦ {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑})
28 nfv 1918 . . . . . . . 8 𝑥 𝑧𝐷
299nfel1 2922 . . . . . . . 8 𝑥𝑧 / 𝑥𝐵𝑉
3028, 29nfim 1900 . . . . . . 7 𝑥(𝑧𝐷𝑧 / 𝑥𝐵𝑉)
31 eleq1w 2821 . . . . . . . 8 (𝑥 = 𝑧 → (𝑥𝐷𝑧𝐷))
3211eleq1d 2823 . . . . . . . 8 (𝑥 = 𝑧 → (𝐵𝑉𝑧 / 𝑥𝐵𝑉))
3331, 32imbi12d 344 . . . . . . 7 (𝑥 = 𝑧 → ((𝑥𝐷𝐵𝑉) ↔ (𝑧𝐷𝑧 / 𝑥𝐵𝑉)))
34 elmptrab.ex . . . . . . 7 (𝑥𝐷𝐵𝑉)
3530, 33, 34chvarfv 2236 . . . . . 6 (𝑧𝐷𝑧 / 𝑥𝐵𝑉)
36 rabexg 5250 . . . . . 6 (𝑧 / 𝑥𝐵𝑉 → {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑} ∈ V)
3735, 36syl 17 . . . . 5 (𝑧𝐷 → {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑} ∈ V)
386, 27, 37fvmpt3 6861 . . . 4 (𝑋𝐷 → (𝐹𝑋) = {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑})
3938eleq2d 2824 . . 3 (𝑋𝐷 → (𝑌 ∈ (𝐹𝑋) ↔ 𝑌 ∈ {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑}))
40 dfsbcq 3713 . . . . . . 7 (𝑤 = 𝑌 → ([𝑤 / 𝑦]𝜑[𝑌 / 𝑦]𝜑))
4140sbcbidv 3770 . . . . . 6 (𝑤 = 𝑌 → ([𝑋 / 𝑥][𝑤 / 𝑦]𝜑[𝑋 / 𝑥][𝑌 / 𝑦]𝜑))
4241elrab 3617 . . . . 5 (𝑌 ∈ {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑} ↔ (𝑌𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑌 / 𝑦]𝜑))
4342a1i 11 . . . 4 (𝑋𝐷 → (𝑌 ∈ {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑} ↔ (𝑌𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑌 / 𝑦]𝜑)))
44 nfcvd 2907 . . . . . . 7 (𝑋𝐷𝑥𝐶)
45 elmptrab.s2 . . . . . . 7 (𝑥 = 𝑋𝐵 = 𝐶)
4644, 45csbiegf 3862 . . . . . 6 (𝑋𝐷𝑋 / 𝑥𝐵 = 𝐶)
4746eleq2d 2824 . . . . 5 (𝑋𝐷 → (𝑌𝑋 / 𝑥𝐵𝑌𝐶))
4847anbi1d 629 . . . 4 (𝑋𝐷 → ((𝑌𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑌 / 𝑦]𝜑) ↔ (𝑌𝐶[𝑋 / 𝑥][𝑌 / 𝑦]𝜑)))
49 nfv 1918 . . . . . 6 𝑥𝜓
50 nfv 1918 . . . . . 6 𝑦𝜓
51 nfv 1918 . . . . . 6 𝑥 𝑌𝐶
52 elmptrab.s1 . . . . . 6 ((𝑥 = 𝑋𝑦 = 𝑌) → (𝜑𝜓))
5349, 50, 51, 52sbc2iegf 3794 . . . . 5 ((𝑋𝐷𝑌𝐶) → ([𝑋 / 𝑥][𝑌 / 𝑦]𝜑𝜓))
5453pm5.32da 578 . . . 4 (𝑋𝐷 → ((𝑌𝐶[𝑋 / 𝑥][𝑌 / 𝑦]𝜑) ↔ (𝑌𝐶𝜓)))
5543, 48, 543bitrd 304 . . 3 (𝑋𝐷 → (𝑌 ∈ {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑} ↔ (𝑌𝐶𝜓)))
56 3anass 1093 . . . 4 ((𝑋𝐷𝑌𝐶𝜓) ↔ (𝑋𝐷 ∧ (𝑌𝐶𝜓)))
5756baibr 536 . . 3 (𝑋𝐷 → ((𝑌𝐶𝜓) ↔ (𝑋𝐷𝑌𝐶𝜓)))
5839, 55, 573bitrd 304 . 2 (𝑋𝐷 → (𝑌 ∈ (𝐹𝑋) ↔ (𝑋𝐷𝑌𝐶𝜓)))
592, 3, 58pm5.21nii 379 1 (𝑌 ∈ (𝐹𝑋) ↔ (𝑋𝐷𝑌𝐶𝜓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  {crab 3067  Vcvv 3422  [wsbc 3711  csb 3828  cmpt 5153  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fv 6426
This theorem is referenced by:  elmptrab2  22887  isfbas  22888
  Copyright terms: Public domain W3C validator