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

Theorem sbcrext 3802
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 3721 . . 3 ([𝐴 / 𝑥]𝑦𝐵 𝜑𝐴 ∈ V)
21a1i 11 . 2 (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑𝐴 ∈ V))
3 nfnfc1 2909 . . 3 𝑦𝑦𝐴
4 id 22 . . . 4 (𝑦𝐴𝑦𝐴)
5 nfcvd 2907 . . . 4 (𝑦𝐴𝑦V)
64, 5nfeld 2917 . . 3 (𝑦𝐴 → Ⅎ𝑦 𝐴 ∈ V)
7 sbcex 3721 . . . 4 ([𝐴 / 𝑥]𝜑𝐴 ∈ V)
872a1i 12 . . 3 (𝑦𝐴 → (𝑦𝐵 → ([𝐴 / 𝑥]𝜑𝐴 ∈ V)))
93, 6, 8rexlimd2 3244 . 2 (𝑦𝐴 → (∃𝑦𝐵 [𝐴 / 𝑥]𝜑𝐴 ∈ V))
10 sbcng 3761 . . . . . 6 (𝐴 ∈ V → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑))
1110adantl 481 . . . . 5 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑))
12 sbcralt 3801 . . . . . . . 8 ((𝐴 ∈ V ∧ 𝑦𝐴) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑))
1312ancoms 458 . . . . . . 7 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑))
143, 6nfan1 2196 . . . . . . . 8 𝑦(𝑦𝐴𝐴 ∈ V)
15 sbcng 3761 . . . . . . . . 9 (𝐴 ∈ V → ([𝐴 / 𝑥] ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝜑))
1615adantl 481 . . . . . . . 8 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝜑))
1714, 16ralbid 3158 . . . . . . 7 ((𝑦𝐴𝐴 ∈ V) → (∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑 ↔ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
1813, 17bitrd 278 . . . . . 6 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
1918notbid 317 . . . . 5 ((𝑦𝐴𝐴 ∈ V) → (¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
2011, 19bitrd 278 . . . 4 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
21 dfrex2 3166 . . . . 5 (∃𝑦𝐵 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ 𝜑)
2221sbcbii 3772 . . . 4 ([𝐴 / 𝑥]𝑦𝐵 𝜑[𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑)
23 dfrex2 3166 . . . 4 (∃𝑦𝐵 [𝐴 / 𝑥]𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑)
2420, 22, 233bitr4g 313 . . 3 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
2524ex 412 . 2 (𝑦𝐴 → (𝐴 ∈ V → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑)))
262, 9, 25pm5.21ndd 380 1 (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wcel 2108  wnfc 2886  wral 3063  wrex 3064  Vcvv 3422  [wsbc 3711
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-v 3424  df-sbc 3712
This theorem is referenced by:  sbcrex  3804
  Copyright terms: Public domain W3C validator