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

Theorem elrab3t 3623
Description: Membership in a restricted class abstraction, using implicit substitution. (Closed theorem version of elrab3 3625.) (Contributed by Thierry Arnoux, 31-Aug-2017.)
Assertion
Ref Expression
elrab3t ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → (𝐴 ∈ {𝑥𝐵𝜑} ↔ 𝜓))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝜓,𝑥
Allowed substitution hint:   𝜑(𝑥)

Proof of Theorem elrab3t
StepHypRef Expression
1 df-rab 3073 . . 3 {𝑥𝐵𝜑} = {𝑥 ∣ (𝑥𝐵𝜑)}
21eleq2i 2830 . 2 (𝐴 ∈ {𝑥𝐵𝜑} ↔ 𝐴 ∈ {𝑥 ∣ (𝑥𝐵𝜑)})
3 id 22 . . 3 (𝐴𝐵𝐴𝐵)
4 nfa1 2148 . . . . 5 𝑥𝑥(𝑥 = 𝐴 → (𝜑𝜓))
5 nfv 1917 . . . . 5 𝑥 𝐴𝐵
64, 5nfan 1902 . . . 4 𝑥(∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵)
7 sp 2176 . . . . . 6 (∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) → (𝑥 = 𝐴 → (𝜑𝜓)))
8 eleq1 2826 . . . . . . . . . 10 (𝑥 = 𝐴 → (𝑥𝐵𝐴𝐵))
98biimparc 480 . . . . . . . . 9 ((𝐴𝐵𝑥 = 𝐴) → 𝑥𝐵)
109biantrurd 533 . . . . . . . 8 ((𝐴𝐵𝑥 = 𝐴) → (𝜑 ↔ (𝑥𝐵𝜑)))
1110bibi1d 344 . . . . . . 7 ((𝐴𝐵𝑥 = 𝐴) → ((𝜑𝜓) ↔ ((𝑥𝐵𝜑) ↔ 𝜓)))
1211pm5.74da 801 . . . . . 6 (𝐴𝐵 → ((𝑥 = 𝐴 → (𝜑𝜓)) ↔ (𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓))))
137, 12syl5ibcom 244 . . . . 5 (∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) → (𝐴𝐵 → (𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓))))
1413imp 407 . . . 4 ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → (𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓)))
156, 14alrimi 2206 . . 3 ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → ∀𝑥(𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓)))
16 elabgt 3603 . . 3 ((𝐴𝐵 ∧ ∀𝑥(𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓))) → (𝐴 ∈ {𝑥 ∣ (𝑥𝐵𝜑)} ↔ 𝜓))
173, 15, 16syl2an2 683 . 2 ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → (𝐴 ∈ {𝑥 ∣ (𝑥𝐵𝜑)} ↔ 𝜓))
182, 17bitrid 282 1 ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → (𝐴 ∈ {𝑥𝐵𝜑} ↔ 𝜓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wal 1537   = wceq 1539  wcel 2106  {cab 2715  {crab 3068
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-12 2171  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-rab 3073
This theorem is referenced by:  f1oresrab  6999  poimirlem17  35794
  Copyright terms: Public domain W3C validator