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

Theorem sbcralt 3477
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 sbcco 3425 . 2 ([𝐴 / 𝑧][𝑧 / 𝑥]𝑦𝐵 𝜑[𝐴 / 𝑥]𝑦𝐵 𝜑)
2 simpl 472 . . 3 ((𝐴𝑉𝑦𝐴) → 𝐴𝑉)
3 sbsbc 3406 . . . . 5 ([𝑧 / 𝑥]∀𝑦𝐵 𝜑[𝑧 / 𝑥]𝑦𝐵 𝜑)
4 nfcv 2751 . . . . . . 7 𝑥𝐵
5 nfs1v 2425 . . . . . . 7 𝑥[𝑧 / 𝑥]𝜑
64, 5nfral 2929 . . . . . 6 𝑥𝑦𝐵 [𝑧 / 𝑥]𝜑
7 sbequ12 2097 . . . . . . 7 (𝑥 = 𝑧 → (𝜑 ↔ [𝑧 / 𝑥]𝜑))
87ralbidv 2969 . . . . . 6 (𝑥 = 𝑧 → (∀𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑))
96, 8sbie 2396 . . . . 5 ([𝑧 / 𝑥]∀𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑)
103, 9bitr3i 265 . . . 4 ([𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑)
11 nfnfc1 2754 . . . . . . 7 𝑦𝑦𝐴
12 nfcvd 2752 . . . . . . . 8 (𝑦𝐴𝑦𝑧)
13 id 22 . . . . . . . 8 (𝑦𝐴𝑦𝐴)
1412, 13nfeqd 2758 . . . . . . 7 (𝑦𝐴 → Ⅎ𝑦 𝑧 = 𝐴)
1511, 14nfan1 2056 . . . . . 6 𝑦(𝑦𝐴𝑧 = 𝐴)
16 dfsbcq2 3405 . . . . . . 7 (𝑧 = 𝐴 → ([𝑧 / 𝑥]𝜑[𝐴 / 𝑥]𝜑))
1716adantl 481 . . . . . 6 ((𝑦𝐴𝑧 = 𝐴) → ([𝑧 / 𝑥]𝜑[𝐴 / 𝑥]𝜑))
1815, 17ralbid 2966 . . . . 5 ((𝑦𝐴𝑧 = 𝐴) → (∀𝑦𝐵 [𝑧 / 𝑥]𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
1918adantll 746 . . . 4 (((𝐴𝑉𝑦𝐴) ∧ 𝑧 = 𝐴) → (∀𝑦𝐵 [𝑧 / 𝑥]𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
2010, 19syl5bb 271 . . 3 (((𝐴𝑉𝑦𝐴) ∧ 𝑧 = 𝐴) → ([𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
212, 20sbcied 3439 . 2 ((𝐴𝑉𝑦𝐴) → ([𝐴 / 𝑧][𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
221, 21syl5bbr 273 1 ((𝐴𝑉𝑦𝐴) → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wa 383   = wceq 1475  [wsb 1867  wcel 1977  wnfc 2738  wral 2896  [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-v 3175  df-sbc 3403
This theorem is referenced by:  sbcrext  3478  sbcrextOLD  3479  sbcralg  3480
  Copyright terms: Public domain W3C validator