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

Theorem elrab3t 3678
Description: Membership in a restricted class abstraction, using implicit substitution. (Closed theorem version of elrab3 3680.) (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 3147 . . 3 {𝑥𝐵𝜑} = {𝑥 ∣ (𝑥𝐵𝜑)}
21eleq2i 2904 . 2 (𝐴 ∈ {𝑥𝐵𝜑} ↔ 𝐴 ∈ {𝑥 ∣ (𝑥𝐵𝜑)})
3 id 22 . . 3 (𝐴𝐵𝐴𝐵)
4 nfa1 2151 . . . . 5 𝑥𝑥(𝑥 = 𝐴 → (𝜑𝜓))
5 nfv 1911 . . . . 5 𝑥 𝐴𝐵
64, 5nfan 1896 . . . 4 𝑥(∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵)
7 sp 2178 . . . . . 6 (∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) → (𝑥 = 𝐴 → (𝜑𝜓)))
8 eleq1 2900 . . . . . . . . . 10 (𝑥 = 𝐴 → (𝑥𝐵𝐴𝐵))
98biimparc 482 . . . . . . . . 9 ((𝐴𝐵𝑥 = 𝐴) → 𝑥𝐵)
109biantrurd 535 . . . . . . . 8 ((𝐴𝐵𝑥 = 𝐴) → (𝜑 ↔ (𝑥𝐵𝜑)))
1110bibi1d 346 . . . . . . 7 ((𝐴𝐵𝑥 = 𝐴) → ((𝜑𝜓) ↔ ((𝑥𝐵𝜑) ↔ 𝜓)))
1211pm5.74da 802 . . . . . 6 (𝐴𝐵 → ((𝑥 = 𝐴 → (𝜑𝜓)) ↔ (𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓))))
137, 12syl5ibcom 247 . . . . 5 (∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) → (𝐴𝐵 → (𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓))))
1413imp 409 . . . 4 ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → (𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓)))
156, 14alrimi 2209 . . 3 ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → ∀𝑥(𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓)))
16 elabgt 3662 . . 3 ((𝐴𝐵 ∧ ∀𝑥(𝑥 = 𝐴 → ((𝑥𝐵𝜑) ↔ 𝜓))) → (𝐴 ∈ {𝑥 ∣ (𝑥𝐵𝜑)} ↔ 𝜓))
173, 15, 16syl2an2 684 . 2 ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → (𝐴 ∈ {𝑥 ∣ (𝑥𝐵𝜑)} ↔ 𝜓))
182, 17syl5bb 285 1 ((∀𝑥(𝑥 = 𝐴 → (𝜑𝜓)) ∧ 𝐴𝐵) → (𝐴 ∈ {𝑥𝐵𝜑} ↔ 𝜓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wal 1531   = wceq 1533  wcel 2110  {cab 2799  {crab 3142
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-rab 3147  df-v 3496
This theorem is referenced by:  f1oresrab  6883  poimirlem17  34903
  Copyright terms: Public domain W3C validator