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

Theorem sbcnestgfw 4379
Description: Nest the composition of two substitutions. Version of sbcnestgf 4384 with a disjoint variable condition, which does not require ax-13 2402. (Contributed by Mario Carneiro, 11-Nov-2016.) Avoid ax-13 2402. (Revised by GG, 26-Jan-2024.)
Assertion
Ref Expression
sbcnestgfw ((𝐴 ∈ 𝑉 ∧ ∀𝑦Ⅎ𝑥𝜑) → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑))
Distinct variable group:   𝑥,𝑦
Allowed substitution hints:   𝜑(𝑥, 𝑦)   𝐴(𝑥, 𝑦)   𝐵(𝑥, 𝑦)   𝑉(𝑥, 𝑦)

Proof of Theorem sbcnestgfw
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 dfsbcq 3741 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [𝐴 / 𝑥][𝐵 / 𝑦]𝜑))
2 csbeq1 3850 . . . . . 6 (𝑧 = 𝐴 → ⦋𝑧 / 𝑥⦌𝐵 = ⦋𝐴 / 𝑥⦌𝐵)
32sbceq1d 3744 . . . . 5 (𝑧 = 𝐴 → ([⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑))
41, 3bibi12d 348 . . . 4 (𝑧 = 𝐴 → (([𝑧 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑) ↔ ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑)))
54imbi2d 343 . . 3 (𝑧 = 𝐴 → ((∀𝑦Ⅎ𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑)) ↔ (∀𝑦Ⅎ𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑))))
6 vex 3455 . . . . 5 𝑧 ∈ V
76a1i 11 . . . 4 (∀𝑦Ⅎ𝑥𝜑 → 𝑧 ∈ V)
8 csbeq1a 3861 . . . . . 6 (𝑥 = 𝑧 → 𝐵 = ⦋𝑧 / 𝑥⦌𝐵)
98sbceq1d 3744 . . . . 5 (𝑥 = 𝑧 → ([𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑))
109adantl 487 . . . 4 ((∀𝑦Ⅎ𝑥𝜑 ∧ 𝑥 = 𝑧) → ([𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑))
11 nfnf1 2191 . . . . 5 Ⅎ𝑥Ⅎ𝑥𝜑
1211nfal 2354 . . . 4 Ⅎ𝑥∀𝑦Ⅎ𝑥𝜑
13 nfa1 2188 . . . . 5 Ⅎ𝑦∀𝑦Ⅎ𝑥𝜑
14 nfcsb1v 3871 . . . . . 6 Ⅎ𝑥⦋𝑧 / 𝑥⦌𝐵
1514a1i 11 . . . . 5 (∀𝑦Ⅎ𝑥𝜑 → Ⅎ𝑥⦋𝑧 / 𝑥⦌𝐵)
16 sp 2220 . . . . 5 (∀𝑦Ⅎ𝑥𝜑 → Ⅎ𝑥𝜑)
1713, 15, 16nfsbcdw 3760 . . . 4 (∀𝑦Ⅎ𝑥𝜑 → Ⅎ𝑥[⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑)
187, 10, 12, 17sbciedf 3781 . . 3 (∀𝑦Ⅎ𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑))
195, 18vtoclg 3518 . 2 (𝐴 ∈ 𝑉 → (∀𝑦Ⅎ𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑)))
2019imp 412 1 ((𝐴 ∈ 𝑉 ∧ ∀𝑦Ⅎ𝑥𝜑) → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1568   = wceq 1570  Ⅎwnf 1816   ∈ wcel 2145  Ⅎwnfc 2908  Vcvv 3451  [wsbc 3739  ⦋csb 3847
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-ex 1813  df-nf 1817  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-v 3453  df-sbc 3740  df-csb 3848
This theorem is used by:  csbnestgfw  4380  sbcnestgw  4381
  Copyright terms: Public domain W3C validator