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

Theorem sbcralt 3858
Description: Interchange class substitution and restricted quantifier. (Contributed by NM, 1-Mar-2008.) (Revised by David Abernethy, 22-Feb-2010.)
Assertion
Ref Expression
sbcralt ((𝐴𝑉𝑦𝐴) → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
Distinct variable groups:   𝑥,𝑦   𝑥,𝐵
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐴(𝑥,𝑦)   𝐵(𝑦)   𝑉(𝑥,𝑦)

Proof of Theorem sbcralt
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 sbccow 3798 . 2 ([𝐴 / 𝑧][𝑧 / 𝑥]𝑦𝐵 𝜑[𝐴 / 𝑥]𝑦𝐵 𝜑)
2 simpl 485 . . 3 ((𝐴𝑉𝑦𝐴) → 𝐴𝑉)
3 sbsbc 3779 . . . . 5 ([𝑧 / 𝑥]∀𝑦𝐵 𝜑[𝑧 / 𝑥]𝑦𝐵 𝜑)
4 nfcv 2980 . . . . . . 7 𝑥𝐵
5 nfs1v 2159 . . . . . . 7 𝑥[𝑧 / 𝑥]𝜑
64, 5nfralw 3228 . . . . . 6 𝑥𝑦𝐵 [𝑧 / 𝑥]𝜑
7 sbequ12 2252 . . . . . . 7 (𝑥 = 𝑧 → (𝜑 ↔ [𝑧 / 𝑥]𝜑))
87ralbidv 3200 . . . . . 6 (𝑥 = 𝑧 → (∀𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑))
96, 8sbiev 2329 . . . . 5 ([𝑧 / 𝑥]∀𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑)
103, 9bitr3i 279 . . . 4 ([𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑)
11 nfnfc1 2983 . . . . . . 7 𝑦𝑦𝐴
12 nfcvd 2981 . . . . . . . 8 (𝑦𝐴𝑦𝑧)
13 id 22 . . . . . . . 8 (𝑦𝐴𝑦𝐴)
1412, 13nfeqd 2991 . . . . . . 7 (𝑦𝐴 → Ⅎ𝑦 𝑧 = 𝐴)
1511, 14nfan1 2199 . . . . . 6 𝑦(𝑦𝐴𝑧 = 𝐴)
16 dfsbcq2 3778 . . . . . . 7 (𝑧 = 𝐴 → ([𝑧 / 𝑥]𝜑[𝐴 / 𝑥]𝜑))
1716adantl 484 . . . . . 6 ((𝑦𝐴𝑧 = 𝐴) → ([𝑧 / 𝑥]𝜑[𝐴 / 𝑥]𝜑))
1815, 17ralbid 3234 . . . . 5 ((𝑦𝐴𝑧 = 𝐴) → (∀𝑦𝐵 [𝑧 / 𝑥]𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
1918adantll 712 . . . 4 (((𝐴𝑉𝑦𝐴) ∧ 𝑧 = 𝐴) → (∀𝑦𝐵 [𝑧 / 𝑥]𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
2010, 19syl5bb 285 . . 3 (((𝐴𝑉𝑦𝐴) ∧ 𝑧 = 𝐴) → ([𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
212, 20sbcied 3817 . 2 ((𝐴𝑉𝑦𝐴) → ([𝐴 / 𝑧][𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
221, 21syl5bbr 287 1 ((𝐴𝑉𝑦𝐴) → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1536  [wsb 2068  wcel 2113  wnfc 2964  wral 3141  [wsbc 3775
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2796
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2966  df-ral 3146  df-v 3499  df-sbc 3776
This theorem is referenced by:  sbcrext  3859  sbcralg  3860
  Copyright terms: Public domain W3C validator