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

Theorem sbcrext 3806
Description: Interchange class substitution and restricted existential quantifier. (Contributed by NM, 1-Mar-2008.) (Proof shortened by Mario Carneiro, 13-Oct-2016.) (Revised by NM, 18-Aug-2018.) (Proof shortened by JJ, 7-Jul-2021.)
Assertion
Ref Expression
sbcrext (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
Distinct variable groups:   𝑥,𝑦   𝑥,𝐵
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐴(𝑥,𝑦)   𝐵(𝑦)

Proof of Theorem sbcrext
StepHypRef Expression
1 sbcex 3726 . . 3 ([𝐴 / 𝑥]𝑦𝐵 𝜑𝐴 ∈ V)
21a1i 11 . 2 (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑𝐴 ∈ V))
3 nfnfc1 2910 . . 3 𝑦𝑦𝐴
4 id 22 . . . 4 (𝑦𝐴𝑦𝐴)
5 nfcvd 2908 . . . 4 (𝑦𝐴𝑦V)
64, 5nfeld 2918 . . 3 (𝑦𝐴 → Ⅎ𝑦 𝐴 ∈ V)
7 sbcex 3726 . . . 4 ([𝐴 / 𝑥]𝜑𝐴 ∈ V)
872a1i 12 . . 3 (𝑦𝐴 → (𝑦𝐵 → ([𝐴 / 𝑥]𝜑𝐴 ∈ V)))
93, 6, 8rexlimd2 3249 . 2 (𝑦𝐴 → (∃𝑦𝐵 [𝐴 / 𝑥]𝜑𝐴 ∈ V))
10 sbcng 3766 . . . . . 6 (𝐴 ∈ V → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑))
1110adantl 482 . . . . 5 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑))
12 sbcralt 3805 . . . . . . . 8 ((𝐴 ∈ V ∧ 𝑦𝐴) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑))
1312ancoms 459 . . . . . . 7 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑))
143, 6nfan1 2193 . . . . . . . 8 𝑦(𝑦𝐴𝐴 ∈ V)
15 sbcng 3766 . . . . . . . . 9 (𝐴 ∈ V → ([𝐴 / 𝑥] ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝜑))
1615adantl 482 . . . . . . . 8 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝜑))
1714, 16ralbid 3161 . . . . . . 7 ((𝑦𝐴𝐴 ∈ V) → (∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑 ↔ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
1813, 17bitrd 278 . . . . . 6 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
1918notbid 318 . . . . 5 ((𝑦𝐴𝐴 ∈ V) → (¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
2011, 19bitrd 278 . . . 4 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
21 dfrex2 3170 . . . . 5 (∃𝑦𝐵 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ 𝜑)
2221sbcbii 3776 . . . 4 ([𝐴 / 𝑥]𝑦𝐵 𝜑[𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑)
23 dfrex2 3170 . . . 4 (∃𝑦𝐵 [𝐴 / 𝑥]𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑)
2420, 22, 233bitr4g 314 . . 3 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
2524ex 413 . 2 (𝑦𝐴 → (𝐴 ∈ V → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑)))
262, 9, 25pm5.21ndd 381 1 (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wcel 2106  wnfc 2887  wral 3064  wrex 3065  Vcvv 3432  [wsbc 3716
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
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-nfc 2889  df-ral 3069  df-rex 3070  df-v 3434  df-sbc 3717
This theorem is referenced by:  sbcrex  3808
  Copyright terms: Public domain W3C validator