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

Theorem sbcrext 3855
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 3781 . . 3 ([𝐴 / 𝑥]𝑦𝐵 𝜑𝐴 ∈ V)
21a1i 11 . 2 (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑𝐴 ∈ V))
3 nfnfc1 2980 . . 3 𝑦𝑦𝐴
4 id 22 . . . 4 (𝑦𝐴𝑦𝐴)
5 nfcvd 2978 . . . 4 (𝑦𝐴𝑦V)
64, 5nfeld 2989 . . 3 (𝑦𝐴 → Ⅎ𝑦 𝐴 ∈ V)
7 sbcex 3781 . . . 4 ([𝐴 / 𝑥]𝜑𝐴 ∈ V)
872a1i 12 . . 3 (𝑦𝐴 → (𝑦𝐵 → ([𝐴 / 𝑥]𝜑𝐴 ∈ V)))
93, 6, 8rexlimd2 3316 . 2 (𝑦𝐴 → (∃𝑦𝐵 [𝐴 / 𝑥]𝜑𝐴 ∈ V))
10 sbcng 3818 . . . . . 6 (𝐴 ∈ V → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑))
1110adantl 484 . . . . 5 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑))
12 sbcralt 3854 . . . . . . . 8 ((𝐴 ∈ V ∧ 𝑦𝐴) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑))
1312ancoms 461 . . . . . . 7 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑))
143, 6nfan1 2196 . . . . . . . 8 𝑦(𝑦𝐴𝐴 ∈ V)
15 sbcng 3818 . . . . . . . . 9 (𝐴 ∈ V → ([𝐴 / 𝑥] ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝜑))
1615adantl 484 . . . . . . . 8 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝜑))
1714, 16ralbid 3231 . . . . . . 7 ((𝑦𝐴𝐴 ∈ V) → (∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑 ↔ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
1813, 17bitrd 281 . . . . . 6 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
1918notbid 320 . . . . 5 ((𝑦𝐴𝐴 ∈ V) → (¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
2011, 19bitrd 281 . . . 4 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
21 dfrex2 3239 . . . . 5 (∃𝑦𝐵 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ 𝜑)
2221sbcbii 3828 . . . 4 ([𝐴 / 𝑥]𝑦𝐵 𝜑[𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑)
23 dfrex2 3239 . . . 4 (∃𝑦𝐵 [𝐴 / 𝑥]𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑)
2420, 22, 233bitr4g 316 . . 3 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
2524ex 415 . 2 (𝑦𝐴 → (𝐴 ∈ V → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑)))
262, 9, 25pm5.21ndd 383 1 (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wcel 2110  wnfc 2961  wral 3138  wrex 3139  Vcvv 3494  [wsbc 3771
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-3an 1085  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-ral 3143  df-rex 3144  df-v 3496  df-sbc 3772
This theorem is referenced by:  sbcrex  3857
  Copyright terms: Public domain W3C validator