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

Theorem sbcralt 3830
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 3772 . 2 ([𝐴 / 𝑧][𝑧 / 𝑥]∀𝑦 ∈ 𝐵 𝜑 ↔ [𝐴 / 𝑥]∀𝑦 ∈ 𝐵 𝜑)
2 simpl 488 . . 3 ((𝐴 ∈ 𝑉 ∧ Ⅎ𝑦𝐴) → 𝐴 ∈ 𝑉)
3 sbsbc 3753 . . . . 5 ([𝑧 / 𝑥]∀𝑦 ∈ 𝐵 𝜑 ↔ [𝑧 / 𝑥]∀𝑦 ∈ 𝐵 𝜑)
4 nfcv 2937 . . . . . . 7 Ⅎ𝑥𝐵
5 nfs1v 2205 . . . . . . 7 Ⅎ𝑥[𝑧 / 𝑥]𝜑
64, 5nfralw 3321 . . . . . 6 Ⅎ𝑥∀𝑦 ∈ 𝐵 [𝑧 / 𝑥]𝜑
7 sbequ12 2299 . . . . . . 7 (𝑥 = 𝑧 → (𝜑 ↔ [𝑧 / 𝑥]𝜑))
87ralbidv 3200 . . . . . 6 (𝑥 = 𝑧 → (∀𝑦 ∈ 𝐵 𝜑 ↔ ∀𝑦 ∈ 𝐵 [𝑧 / 𝑥]𝜑))
96, 8sbiev 2358 . . . . 5 ([𝑧 / 𝑥]∀𝑦 ∈ 𝐵 𝜑 ↔ ∀𝑦 ∈ 𝐵 [𝑧 / 𝑥]𝜑)
103, 9bitr3i 280 . . . 4 ([𝑧 / 𝑥]∀𝑦 ∈ 𝐵 𝜑 ↔ ∀𝑦 ∈ 𝐵 [𝑧 / 𝑥]𝜑)
11 nfnfc1 2940 . . . . . . 7 Ⅎ𝑦Ⅎ𝑦𝐴
12 nfcvd 2938 . . . . . . . 8 (Ⅎ𝑦𝐴 → Ⅎ𝑦𝑧)
13 id 23 . . . . . . . 8 (Ⅎ𝑦𝐴 → Ⅎ𝑦𝐴)
1412, 13nfeqd 2947 . . . . . . 7 (Ⅎ𝑦𝐴 → Ⅎ𝑦 𝑧 = 𝐴)
1511, 14nfan1 2249 . . . . . 6 Ⅎ𝑦(Ⅎ𝑦𝐴 ∧ 𝑧 = 𝐴)
16 dfsbcq2 3752 . . . . . . 7 (𝑧 = 𝐴 → ([𝑧 / 𝑥]𝜑 ↔ [𝐴 / 𝑥]𝜑))
1716adantl 487 . . . . . 6 ((Ⅎ𝑦𝐴 ∧ 𝑧 = 𝐴) → ([𝑧 / 𝑥]𝜑 ↔ [𝐴 / 𝑥]𝜑))
1815, 17ralbid 3287 . . . . 5 ((Ⅎ𝑦𝐴 ∧ 𝑧 = 𝐴) → (∀𝑦 ∈ 𝐵 [𝑧 / 𝑥]𝜑 ↔ ∀𝑦 ∈ 𝐵 [𝐴 / 𝑥]𝜑))
1918adantll 727 . . . 4 (((𝐴 ∈ 𝑉 ∧ Ⅎ𝑦𝐴) ∧ 𝑧 = 𝐴) → (∀𝑦 ∈ 𝐵 [𝑧 / 𝑥]𝜑 ↔ ∀𝑦 ∈ 𝐵 [𝐴 / 𝑥]𝜑))
2010, 19bitrid 286 . . 3 (((𝐴 ∈ 𝑉 ∧ Ⅎ𝑦𝐴) ∧ 𝑧 = 𝐴) → ([𝑧 / 𝑥]∀𝑦 ∈ 𝐵 𝜑 ↔ ∀𝑦 ∈ 𝐵 [𝐴 / 𝑥]𝜑))
212, 20sbcied 3792 . 2 ((𝐴 ∈ 𝑉 ∧ Ⅎ𝑦𝐴) → ([𝐴 / 𝑧][𝑧 / 𝑥]∀𝑦 ∈ 𝐵 𝜑 ↔ ∀𝑦 ∈ 𝐵 [𝐴 / 𝑥]𝜑))
221, 21bitr3id 288 1 ((𝐴 ∈ 𝑉 ∧ Ⅎ𝑦𝐴) → ([𝐴 / 𝑥]∀𝑦 ∈ 𝐵 𝜑 ↔ ∀𝑦 ∈ 𝐵 [𝐴 / 𝑥]𝜑))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572  [wsb 2109   ∈ wcel 2156  Ⅎwnfc 2922  ∀wral 3091  [wsbc 3749
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1575  df-ex 1819  df-nf 1823  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ral 3092  df-v 3463  df-sbc 3750
This theorem is used by:  sbcrext  3831  sbcralg  3832  modelaxreplem3  46374
  Copyright terms: Public domain W3C validator