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

Theorem elrab3t 3643
Description: Membership in a restricted class abstraction, using implicit substitution. (Closed theorem version of elrab3 3645.) (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 3413 . . 3 {𝑥 ∈ 𝐵 ∣ 𝜑} = {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ 𝜑)}
21eleq2i 2852 . 2 (𝐴 ∈ {𝑥 ∈ 𝐵 ∣ 𝜑} ↔ 𝐴 ∈ {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ 𝜑)})
3 id 23 . . 3 (𝐴 ∈ 𝐵 → 𝐴 ∈ 𝐵)
4 nfa1 2187 . . . . 5 Ⅎ𝑥∀𝑥(𝑥 = 𝐴 → (𝜑 ↔ 𝜓))
5 nfv 1946 . . . . 5 Ⅎ𝑥 𝐴 ∈ 𝐵
64, 5nfan 1931 . . . 4 Ⅎ𝑥(∀𝑥(𝑥 = 𝐴 → (𝜑 ↔ 𝜓)) ∧ 𝐴 ∈ 𝐵)
7 sp 2219 . . . . . 6 (∀𝑥(𝑥 = 𝐴 → (𝜑 ↔ 𝜓)) → (𝑥 = 𝐴 → (𝜑 ↔ 𝜓)))
8 eleq1 2848 . . . . . . . . . 10 (𝑥 = 𝐴 → (𝑥 ∈ 𝐵 ↔ 𝐴 ∈ 𝐵))
98biimparc 485 . . . . . . . . 9 ((𝐴 ∈ 𝐵 ∧ 𝑥 = 𝐴) → 𝑥 ∈ 𝐵)
109biantrurd 542 . . . . . . . 8 ((𝐴 ∈ 𝐵 ∧ 𝑥 = 𝐴) → (𝜑 ↔ (𝑥 ∈ 𝐵 ∧ 𝜑)))
1110bibi1d 346 . . . . . . 7 ((𝐴 ∈ 𝐵 ∧ 𝑥 = 𝐴) → ((𝜑 ↔ 𝜓) ↔ ((𝑥 ∈ 𝐵 ∧ 𝜑) ↔ 𝜓)))
1211pm5.74da 816 . . . . . 6 (𝐴 ∈ 𝐵 → ((𝑥 = 𝐴 → (𝜑 ↔ 𝜓)) ↔ (𝑥 = 𝐴 → ((𝑥 ∈ 𝐵 ∧ 𝜑) ↔ 𝜓))))
137, 12syl5ibcom 248 . . . . 5 (∀𝑥(𝑥 = 𝐴 → (𝜑 ↔ 𝜓)) → (𝐴 ∈ 𝐵 → (𝑥 = 𝐴 → ((𝑥 ∈ 𝐵 ∧ 𝜑) ↔ 𝜓))))
1413imp 412 . . . 4 ((∀𝑥(𝑥 = 𝐴 → (𝜑 ↔ 𝜓)) ∧ 𝐴 ∈ 𝐵) → (𝑥 = 𝐴 → ((𝑥 ∈ 𝐵 ∧ 𝜑) ↔ 𝜓)))
156, 14alrimi 2249 . . 3 ((∀𝑥(𝑥 = 𝐴 → (𝜑 ↔ 𝜓)) ∧ 𝐴 ∈ 𝐵) → ∀𝑥(𝑥 = 𝐴 → ((𝑥 ∈ 𝐵 ∧ 𝜑) ↔ 𝜓)))
16 elabgt 3625 . . 3 ((𝐴 ∈ 𝐵 ∧ ∀𝑥(𝑥 = 𝐴 → ((𝑥 ∈ 𝐵 ∧ 𝜑) ↔ 𝜓))) → (𝐴 ∈ {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ 𝜑)} ↔ 𝜓))
173, 15, 16syl2an2 699 . 2 ((∀𝑥(𝑥 = 𝐴 → (𝜑 ↔ 𝜓)) ∧ 𝐴 ∈ 𝐵) → (𝐴 ∈ {𝑥 ∣ (𝑥 ∈ 𝐵 ∧ 𝜑)} ↔ 𝜓))
182, 17bitrid 286 1 ((∀𝑥(𝑥 = 𝐴 → (𝜑 ↔ 𝜓)) ∧ 𝐴 ∈ 𝐵) → (𝐴 ∈ {𝑥 ∈ 𝐵 ∣ 𝜑} ↔ 𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1567   = wceq 1569   ∈ wcel 2144  {cab 2738  {crab 3412
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-12 2212  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-ex 1812  df-nf 1816  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-rab 3413
This theorem is used by:  f1oresrab  7128  poimirlem17  38556
  Copyright terms: Public domain W3C validator