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

Theorem elrab2w 3653
Description: Membership in a restricted class abstraction. This is to elrab2 3652 what elab2gw 3635 is to elab2g 3637. (Contributed by SN, 2-Sep-2024.)
Hypotheses
Ref Expression
elrab2w.1 (𝑥 = 𝑦 → (𝜑 ↔ 𝜓))
elrab2w.2 (𝑦 = 𝐴 → (𝜓 ↔ 𝜒))
elrab2w.3 𝐶 = {𝑥 ∈ 𝐵 ∣ 𝜑}
Assertion
Ref Expression
elrab2w (𝐴 ∈ 𝐶 ↔ (𝐴 ∈ 𝐵 ∧ 𝜒))
Distinct variable groups:   𝑦,𝐴   𝑥,𝐵,𝑦   𝜑,𝑦   𝜒,𝑦   𝜓,𝑥
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑦)   𝜒(𝑥)   𝐴(𝑥)   𝐶(𝑥, 𝑦)

Proof of Theorem elrab2w
StepHypRef Expression
1 elex 3475 . 2 (𝐴 ∈ 𝐶 → 𝐴 ∈ V)
2 elex 3475 . . 3 (𝐴 ∈ 𝐵 → 𝐴 ∈ V)
32adantr 486 . 2 ((𝐴 ∈ 𝐵 ∧ 𝜒) → 𝐴 ∈ V)
4 eleq1w 2847 . . . 4 (𝑥 = 𝑦 → (𝑥 ∈ 𝐵 ↔ 𝑦 ∈ 𝐵))
5 elrab2w.1 . . . 4 (𝑥 = 𝑦 → (𝜑 ↔ 𝜓))
64, 5anbi12d 644 . . 3 (𝑥 = 𝑦 → ((𝑥 ∈ 𝐵 ∧ 𝜑) ↔ (𝑦 ∈ 𝐵 ∧ 𝜓)))
7 eleq1 2852 . . . 4 (𝑦 = 𝐴 → (𝑦 ∈ 𝐵 ↔ 𝐴 ∈ 𝐵))
8 elrab2w.2 . . . 4 (𝑦 = 𝐴 → (𝜓 ↔ 𝜒))
97, 8anbi12d 644 . . 3 (𝑦 = 𝐴 → ((𝑦 ∈ 𝐵 ∧ 𝜓) ↔ (𝐴 ∈ 𝐵 ∧ 𝜒)))
10 elrab2w.3 . . . 4 𝐶 = {𝑥 ∈ 𝐵 ∣ 𝜑}
11 df-rab 3417 . . . 4 {𝑥 ∈ 𝐵 ∣ 𝜑} = {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ 𝜑)}
1210, 11eqtri 2786 . . 3 𝐶 = {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ 𝜑)}
136, 9, 12elab2gw 3635 . 2 (𝐴 ∈ V → (𝐴 ∈ 𝐶 ↔ (𝐴 ∈ 𝐵 ∧ 𝜒)))
141, 3, 13pm5.21nii 381 1 (𝐴 ∈ 𝐶 ↔ (𝐴 ∈ 𝐵 ∧ 𝜒))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2147  {cab 2741  {crab 3416  Vcvv 3454
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1573  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-rab 3417  df-v 3456
This theorem is used by:  uspgrlimlem2  49292
  Copyright terms: Public domain W3C validator