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

Theorem elmptrab 22978
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 6884 . 2 (𝑌 ∈ (𝐹𝑋) → 𝑋𝐷)
3 simp1 1135 . 2 ((𝑋𝐷𝑌𝐶𝜓) → 𝑋𝐷)
4 csbeq1 3835 . . . . . 6 (𝑧 = 𝑋𝑧 / 𝑥𝐵 = 𝑋 / 𝑥𝐵)
5 dfsbcq 3718 . . . . . 6 (𝑧 = 𝑋 → ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑋 / 𝑥][𝑤 / 𝑦]𝜑))
64, 5rabeqbidv 3420 . . . . 5 (𝑧 = 𝑋 → {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑} = {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑})
7 nfcv 2907 . . . . . . 7 𝑧{𝑦𝐵𝜑}
8 nfsbc1v 3736 . . . . . . . 8 𝑥[𝑧 / 𝑥][𝑤 / 𝑦]𝜑
9 nfcsb1v 3857 . . . . . . . 8 𝑥𝑧 / 𝑥𝐵
108, 9nfrabw 3318 . . . . . . 7 𝑥{𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑}
11 csbeq1a 3846 . . . . . . . . 9 (𝑥 = 𝑧𝐵 = 𝑧 / 𝑥𝐵)
12 sbceq1a 3727 . . . . . . . . 9 (𝑥 = 𝑧 → (𝜑[𝑧 / 𝑥]𝜑))
1311, 12rabeqbidv 3420 . . . . . . . 8 (𝑥 = 𝑧 → {𝑦𝐵𝜑} = {𝑦𝑧 / 𝑥𝐵[𝑧 / 𝑥]𝜑})
14 nfcv 2907 . . . . . . . . 9 𝑤𝑧 / 𝑥𝐵
15 nfcv 2907 . . . . . . . . 9 𝑦𝑧 / 𝑥𝐵
16 nfcv 2907 . . . . . . . . . 10 𝑦𝑧
17 nfsbc1v 3736 . . . . . . . . . 10 𝑦[𝑤 / 𝑦]𝜑
1816, 17nfsbcw 3738 . . . . . . . . 9 𝑦[𝑧 / 𝑥][𝑤 / 𝑦]𝜑
19 nfv 1917 . . . . . . . . 9 𝑤[𝑧 / 𝑥]𝜑
20 sbccom 3804 . . . . . . . . . 10 ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑤 / 𝑦][𝑧 / 𝑥]𝜑)
21 sbceq1a 3727 . . . . . . . . . . 11 (𝑦 = 𝑤 → ([𝑧 / 𝑥]𝜑[𝑤 / 𝑦][𝑧 / 𝑥]𝜑))
2221equcoms 2023 . . . . . . . . . 10 (𝑤 = 𝑦 → ([𝑧 / 𝑥]𝜑[𝑤 / 𝑦][𝑧 / 𝑥]𝜑))
2320, 22bitr4id 290 . . . . . . . . 9 (𝑤 = 𝑦 → ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑧 / 𝑥]𝜑))
2414, 15, 18, 19, 23cbvrabw 3424 . . . . . . . 8 {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑} = {𝑦𝑧 / 𝑥𝐵[𝑧 / 𝑥]𝜑}
2513, 24eqtr4di 2796 . . . . . . 7 (𝑥 = 𝑧 → {𝑦𝐵𝜑} = {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑})
267, 10, 25cbvmpt 5185 . . . . . 6 (𝑥𝐷 ↦ {𝑦𝐵𝜑}) = (𝑧𝐷 ↦ {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑})
271, 26eqtri 2766 . . . . 5 𝐹 = (𝑧𝐷 ↦ {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑})
28 nfv 1917 . . . . . . . 8 𝑥 𝑧𝐷
299nfel1 2923 . . . . . . . 8 𝑥𝑧 / 𝑥𝐵𝑉
3028, 29nfim 1899 . . . . . . 7 𝑥(𝑧𝐷𝑧 / 𝑥𝐵𝑉)
31 eleq1w 2821 . . . . . . . 8 (𝑥 = 𝑧 → (𝑥𝐷𝑧𝐷))
3211eleq1d 2823 . . . . . . . 8 (𝑥 = 𝑧 → (𝐵𝑉𝑧 / 𝑥𝐵𝑉))
3331, 32imbi12d 345 . . . . . . 7 (𝑥 = 𝑧 → ((𝑥𝐷𝐵𝑉) ↔ (𝑧𝐷𝑧 / 𝑥𝐵𝑉)))
34 elmptrab.ex . . . . . . 7 (𝑥𝐷𝐵𝑉)
3530, 33, 34chvarfv 2233 . . . . . 6 (𝑧𝐷𝑧 / 𝑥𝐵𝑉)
36 rabexg 5255 . . . . . 6 (𝑧 / 𝑥𝐵𝑉 → {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑} ∈ V)
3735, 36syl 17 . . . . 5 (𝑧𝐷 → {𝑤𝑧 / 𝑥𝐵[𝑧 / 𝑥][𝑤 / 𝑦]𝜑} ∈ V)
386, 27, 37fvmpt3 6879 . . . 4 (𝑋𝐷 → (𝐹𝑋) = {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑})
3938eleq2d 2824 . . 3 (𝑋𝐷 → (𝑌 ∈ (𝐹𝑋) ↔ 𝑌 ∈ {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑}))
40 dfsbcq 3718 . . . . . . 7 (𝑤 = 𝑌 → ([𝑤 / 𝑦]𝜑[𝑌 / 𝑦]𝜑))
4140sbcbidv 3775 . . . . . 6 (𝑤 = 𝑌 → ([𝑋 / 𝑥][𝑤 / 𝑦]𝜑[𝑋 / 𝑥][𝑌 / 𝑦]𝜑))
4241elrab 3624 . . . . 5 (𝑌 ∈ {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑} ↔ (𝑌𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑌 / 𝑦]𝜑))
4342a1i 11 . . . 4 (𝑋𝐷 → (𝑌 ∈ {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑} ↔ (𝑌𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑌 / 𝑦]𝜑)))
44 nfcvd 2908 . . . . . . 7 (𝑋𝐷𝑥𝐶)
45 elmptrab.s2 . . . . . . 7 (𝑥 = 𝑋𝐵 = 𝐶)
4644, 45csbiegf 3866 . . . . . 6 (𝑋𝐷𝑋 / 𝑥𝐵 = 𝐶)
4746eleq2d 2824 . . . . 5 (𝑋𝐷 → (𝑌𝑋 / 𝑥𝐵𝑌𝐶))
4847anbi1d 630 . . . 4 (𝑋𝐷 → ((𝑌𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑌 / 𝑦]𝜑) ↔ (𝑌𝐶[𝑋 / 𝑥][𝑌 / 𝑦]𝜑)))
49 nfv 1917 . . . . . 6 𝑥𝜓
50 nfv 1917 . . . . . 6 𝑦𝜓
51 nfv 1917 . . . . . 6 𝑥 𝑌𝐶
52 elmptrab.s1 . . . . . 6 ((𝑥 = 𝑋𝑦 = 𝑌) → (𝜑𝜓))
5349, 50, 51, 52sbc2iegf 3798 . . . . 5 ((𝑋𝐷𝑌𝐶) → ([𝑋 / 𝑥][𝑌 / 𝑦]𝜑𝜓))
5453pm5.32da 579 . . . 4 (𝑋𝐷 → ((𝑌𝐶[𝑋 / 𝑥][𝑌 / 𝑦]𝜑) ↔ (𝑌𝐶𝜓)))
5543, 48, 543bitrd 305 . . 3 (𝑋𝐷 → (𝑌 ∈ {𝑤𝑋 / 𝑥𝐵[𝑋 / 𝑥][𝑤 / 𝑦]𝜑} ↔ (𝑌𝐶𝜓)))
56 3anass 1094 . . . 4 ((𝑋𝐷𝑌𝐶𝜓) ↔ (𝑋𝐷 ∧ (𝑌𝐶𝜓)))
5756baibr 537 . . 3 (𝑋𝐷 → ((𝑌𝐶𝜓) ↔ (𝑋𝐷𝑌𝐶𝜓)))
5839, 55, 573bitrd 305 . 2 (𝑋𝐷 → (𝑌 ∈ (𝐹𝑋) ↔ (𝑋𝐷𝑌𝐶𝜓)))
592, 3, 58pm5.21nii 380 1 (𝑌 ∈ (𝐹𝑋) ↔ (𝑋𝐷𝑌𝐶𝜓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  {crab 3068  Vcvv 3432  [wsbc 3716  csb 3832  cmpt 5157  cfv 6433
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fv 6441
This theorem is referenced by:  elmptrab2  22979  isfbas  22980
  Copyright terms: Public domain W3C validator