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

Theorem sbcrext 3478
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 3412 . . 3 ([𝐴 / 𝑥]𝑦𝐵 𝜑𝐴 ∈ V)
21a1i 11 . 2 (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑𝐴 ∈ V))
3 nfnfc1 2754 . . 3 𝑦𝑦𝐴
4 id 22 . . . 4 (𝑦𝐴𝑦𝐴)
5 nfcvd 2752 . . . 4 (𝑦𝐴𝑦V)
64, 5nfeld 2759 . . 3 (𝑦𝐴 → Ⅎ𝑦 𝐴 ∈ V)
7 sbcex 3412 . . . 4 ([𝐴 / 𝑥]𝜑𝐴 ∈ V)
872a1i 12 . . 3 (𝑦𝐴 → (𝑦𝐵 → ([𝐴 / 𝑥]𝜑𝐴 ∈ V)))
93, 6, 8rexlimd2 3007 . 2 (𝑦𝐴 → (∃𝑦𝐵 [𝐴 / 𝑥]𝜑𝐴 ∈ V))
10 sbcng 3443 . . . . . 6 (𝐴 ∈ V → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑))
1110adantl 481 . . . . 5 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑))
12 sbcralt 3477 . . . . . . . 8 ((𝐴 ∈ V ∧ 𝑦𝐴) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑))
1312ancoms 468 . . . . . . 7 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑))
143, 6nfan1 2056 . . . . . . . 8 𝑦(𝑦𝐴𝐴 ∈ V)
15 sbcng 3443 . . . . . . . . 9 (𝐴 ∈ V → ([𝐴 / 𝑥] ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝜑))
1615adantl 481 . . . . . . . 8 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ 𝜑 ↔ ¬ [𝐴 / 𝑥]𝜑))
1714, 16ralbid 2966 . . . . . . 7 ((𝑦𝐴𝐴 ∈ V) → (∀𝑦𝐵 [𝐴 / 𝑥] ¬ 𝜑 ↔ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
1813, 17bitrd 267 . . . . . 6 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
1918notbid 307 . . . . 5 ((𝑦𝐴𝐴 ∈ V) → (¬ [𝐴 / 𝑥]𝑦𝐵 ¬ 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
2011, 19bitrd 267 . . . 4 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑))
21 dfrex2 2979 . . . . 5 (∃𝑦𝐵 𝜑 ↔ ¬ ∀𝑦𝐵 ¬ 𝜑)
2221sbcbii 3458 . . . 4 ([𝐴 / 𝑥]𝑦𝐵 𝜑[𝐴 / 𝑥] ¬ ∀𝑦𝐵 ¬ 𝜑)
23 dfrex2 2979 . . . 4 (∃𝑦𝐵 [𝐴 / 𝑥]𝜑 ↔ ¬ ∀𝑦𝐵 ¬ [𝐴 / 𝑥]𝜑)
2420, 22, 233bitr4g 302 . . 3 ((𝑦𝐴𝐴 ∈ V) → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
2524ex 449 . 2 (𝑦𝐴 → (𝐴 ∈ V → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑)))
262, 9, 25pm5.21ndd 368 1 (𝑦𝐴 → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∃𝑦𝐵 [𝐴 / 𝑥]𝜑))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wa 383  wcel 1977  wnfc 2738  wral 2896  wrex 2897  Vcvv 3173  [wsbc 3402
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rex 2902  df-v 3175  df-sbc 3403
This theorem is referenced by:  sbcrex  3481
  Copyright terms: Public domain W3C validator