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

Theorem sbcralt 3855
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 3795 . 2 ([𝐴 / 𝑧][𝑧 / 𝑥]𝑦𝐵 𝜑[𝐴 / 𝑥]𝑦𝐵 𝜑)
2 simpl 485 . . 3 ((𝐴𝑉𝑦𝐴) → 𝐴𝑉)
3 sbsbc 3776 . . . . 5 ([𝑧 / 𝑥]∀𝑦𝐵 𝜑[𝑧 / 𝑥]𝑦𝐵 𝜑)
4 nfcv 2977 . . . . . . 7 𝑥𝐵
5 nfs1v 2269 . . . . . . 7 𝑥[𝑧 / 𝑥]𝜑
64, 5nfralw 3225 . . . . . 6 𝑥𝑦𝐵 [𝑧 / 𝑥]𝜑
7 sbequ12 2248 . . . . . . 7 (𝑥 = 𝑧 → (𝜑 ↔ [𝑧 / 𝑥]𝜑))
87ralbidv 3197 . . . . . 6 (𝑥 = 𝑧 → (∀𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑))
96, 8sbiev 2326 . . . . 5 ([𝑧 / 𝑥]∀𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑)
103, 9bitr3i 279 . . . 4 ([𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝑧 / 𝑥]𝜑)
11 nfnfc1 2980 . . . . . . 7 𝑦𝑦𝐴
12 nfcvd 2978 . . . . . . . 8 (𝑦𝐴𝑦𝑧)
13 id 22 . . . . . . . 8 (𝑦𝐴𝑦𝐴)
1412, 13nfeqd 2988 . . . . . . 7 (𝑦𝐴 → Ⅎ𝑦 𝑧 = 𝐴)
1511, 14nfan1 2195 . . . . . 6 𝑦(𝑦𝐴𝑧 = 𝐴)
16 dfsbcq2 3775 . . . . . . 7 (𝑧 = 𝐴 → ([𝑧 / 𝑥]𝜑[𝐴 / 𝑥]𝜑))
1716adantl 484 . . . . . 6 ((𝑦𝐴𝑧 = 𝐴) → ([𝑧 / 𝑥]𝜑[𝐴 / 𝑥]𝜑))
1815, 17ralbid 3231 . . . . 5 ((𝑦𝐴𝑧 = 𝐴) → (∀𝑦𝐵 [𝑧 / 𝑥]𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
1918adantll 712 . . . 4 (((𝐴𝑉𝑦𝐴) ∧ 𝑧 = 𝐴) → (∀𝑦𝐵 [𝑧 / 𝑥]𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
2010, 19syl5bb 285 . . 3 (((𝐴𝑉𝑦𝐴) ∧ 𝑧 = 𝐴) → ([𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
212, 20sbcied 3814 . 2 ((𝐴𝑉𝑦𝐴) → ([𝐴 / 𝑧][𝑧 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
221, 21syl5bbr 287 1 ((𝐴𝑉𝑦𝐴) → ([𝐴 / 𝑥]𝑦𝐵 𝜑 ↔ ∀𝑦𝐵 [𝐴 / 𝑥]𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1533  [wsb 2065  wcel 2110  wnfc 2961  wral 3138  [wsbc 3772
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 2156  ax-12 2172  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-v 3497  df-sbc 3773
This theorem is referenced by:  sbcrext  3856  sbcralg  3857
  Copyright terms: Public domain W3C validator