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

Theorem sbcnestgf 3947
Description: Nest the composition of two substitutions. (Contributed by Mario Carneiro, 11-Nov-2016.)
Assertion
Ref Expression
sbcnestgf ((𝐴𝑉 ∧ ∀𝑦𝑥𝜑) → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))

Proof of Theorem sbcnestgf
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 dfsbcq 3404 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥][𝐵 / 𝑦]𝜑))
2 csbeq1 3502 . . . . . 6 (𝑧 = 𝐴𝑧 / 𝑥𝐵 = 𝐴 / 𝑥𝐵)
32sbceq1d 3407 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))
41, 3bibi12d 334 . . . 4 (𝑧 = 𝐴 → (([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑) ↔ ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑)))
54imbi2d 329 . . 3 (𝑧 = 𝐴 → ((∀𝑦𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑)) ↔ (∀𝑦𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))))
6 vex 3176 . . . . 5 𝑧 ∈ V
76a1i 11 . . . 4 (∀𝑦𝑥𝜑𝑧 ∈ V)
8 csbeq1a 3508 . . . . . 6 (𝑥 = 𝑧𝐵 = 𝑧 / 𝑥𝐵)
98sbceq1d 3407 . . . . 5 (𝑥 = 𝑧 → ([𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
109adantl 481 . . . 4 ((∀𝑦𝑥𝜑𝑥 = 𝑧) → ([𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
11 nfnf1 2018 . . . . 5 𝑥𝑥𝜑
1211nfal 2139 . . . 4 𝑥𝑦𝑥𝜑
13 nfa1 2015 . . . . 5 𝑦𝑦𝑥𝜑
14 nfcsb1v 3515 . . . . . 6 𝑥𝑧 / 𝑥𝐵
1514a1i 11 . . . . 5 (∀𝑦𝑥𝜑𝑥𝑧 / 𝑥𝐵)
16 sp 2041 . . . . 5 (∀𝑦𝑥𝜑 → Ⅎ𝑥𝜑)
1713, 15, 16nfsbcd 3423 . . . 4 (∀𝑦𝑥𝜑 → Ⅎ𝑥[𝑧 / 𝑥𝐵 / 𝑦]𝜑)
187, 10, 12, 17sbciedf 3438 . . 3 (∀𝑦𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
195, 18vtoclg 3239 . 2 (𝐴𝑉 → (∀𝑦𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑)))
2019imp 444 1 ((𝐴𝑉 ∧ ∀𝑦𝑥𝜑) → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wa 383  wal 1473   = wceq 1475  wnf 1699  wcel 1977  wnfc 2738  Vcvv 3173  [wsbc 3402  csb 3499
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-v 3175  df-sbc 3403  df-csb 3500
This theorem is referenced by:  csbnestgf  3948  sbcnestg  3949
  Copyright terms: Public domain W3C validator