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

Theorem sbcnestgf 4354
Description: Nest the composition of two substitutions. Usage of this theorem is discouraged because it depends on ax-13 2372. Use the weaker sbcnestgfw 4349 when possible. (Contributed by Mario Carneiro, 11-Nov-2016.) (New usage is discouraged.)
Assertion
Ref Expression
sbcnestgf ((𝐴𝑉 ∧ ∀𝑦𝑥𝜑) → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))

Proof of Theorem sbcnestgf
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 dfsbcq 3713 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥][𝐵 / 𝑦]𝜑))
2 csbeq1 3831 . . . . . 6 (𝑧 = 𝐴𝑧 / 𝑥𝐵 = 𝐴 / 𝑥𝐵)
32sbceq1d 3716 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))
41, 3bibi12d 345 . . . 4 (𝑧 = 𝐴 → (([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑) ↔ ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑)))
54imbi2d 340 . . 3 (𝑧 = 𝐴 → ((∀𝑦𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑)) ↔ (∀𝑦𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))))
6 vex 3426 . . . . 5 𝑧 ∈ V
76a1i 11 . . . 4 (∀𝑦𝑥𝜑𝑧 ∈ V)
8 csbeq1a 3842 . . . . . 6 (𝑥 = 𝑧𝐵 = 𝑧 / 𝑥𝐵)
98sbceq1d 3716 . . . . 5 (𝑥 = 𝑧 → ([𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
109adantl 481 . . . 4 ((∀𝑦𝑥𝜑𝑥 = 𝑧) → ([𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
11 nfnf1 2153 . . . . 5 𝑥𝑥𝜑
1211nfal 2321 . . . 4 𝑥𝑦𝑥𝜑
13 nfa1 2150 . . . . 5 𝑦𝑦𝑥𝜑
14 nfcsb1v 3853 . . . . . 6 𝑥𝑧 / 𝑥𝐵
1514a1i 11 . . . . 5 (∀𝑦𝑥𝜑𝑥𝑧 / 𝑥𝐵)
16 sp 2178 . . . . 5 (∀𝑦𝑥𝜑 → Ⅎ𝑥𝜑)
1713, 15, 16nfsbcd 3735 . . . 4 (∀𝑦𝑥𝜑 → Ⅎ𝑥[𝑧 / 𝑥𝐵 / 𝑦]𝜑)
187, 10, 12, 17sbciedf 3755 . . 3 (∀𝑦𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
195, 18vtoclg 3495 . 2 (𝐴𝑉 → (∀𝑦𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑)))
2019imp 406 1 ((𝐴𝑉 ∧ ∀𝑦𝑥𝜑) → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wal 1537   = wceq 1539  wnf 1787  wcel 2108  wnfc 2886  Vcvv 3422  [wsbc 3711  csb 3828
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-13 2372  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-v 3424  df-sbc 3712  df-csb 3829
This theorem is referenced by:  csbnestgf  4355  sbcnestg  4356
  Copyright terms: Public domain W3C validator