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

Theorem sbcnestgfw 4363
Description: Nest the composition of two substitutions. Version of sbcnestgf 4368 with a disjoint variable condition, which does not require ax-13 2389. (Contributed by Mario Carneiro, 11-Nov-2016.) (Revised by Gino Giotto, 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 3770 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥][𝐵 / 𝑦]𝜑))
2 csbeq1 3879 . . . . . 6 (𝑧 = 𝐴𝑧 / 𝑥𝐵 = 𝐴 / 𝑥𝐵)
32sbceq1d 3773 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))
41, 3bibi12d 348 . . . 4 (𝑧 = 𝐴 → (([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑) ↔ ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑)))
54imbi2d 343 . . 3 (𝑧 = 𝐴 → ((∀𝑦𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑)) ↔ (∀𝑦𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))))
6 vex 3494 . . . . 5 𝑧 ∈ V
76a1i 11 . . . 4 (∀𝑦𝑥𝜑𝑧 ∈ V)
8 csbeq1a 3890 . . . . . 6 (𝑥 = 𝑧𝐵 = 𝑧 / 𝑥𝐵)
98sbceq1d 3773 . . . . 5 (𝑥 = 𝑧 → ([𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
109adantl 484 . . . 4 ((∀𝑦𝑥𝜑𝑥 = 𝑧) → ([𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
11 nfnf1 2157 . . . . 5 𝑥𝑥𝜑
1211nfal 2341 . . . 4 𝑥𝑦𝑥𝜑
13 nfa1 2154 . . . . 5 𝑦𝑦𝑥𝜑
14 nfcsb1v 3900 . . . . . 6 𝑥𝑧 / 𝑥𝐵
1514a1i 11 . . . . 5 (∀𝑦𝑥𝜑𝑥𝑧 / 𝑥𝐵)
16 sp 2181 . . . . 5 (∀𝑦𝑥𝜑 → Ⅎ𝑥𝜑)
1713, 15, 16nfsbcdw 3789 . . . 4 (∀𝑦𝑥𝜑 → Ⅎ𝑥[𝑧 / 𝑥𝐵 / 𝑦]𝜑)
187, 10, 12, 17sbciedf 3809 . . 3 (∀𝑦𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑[𝑧 / 𝑥𝐵 / 𝑦]𝜑))
195, 18vtoclg 3564 . 2 (𝐴𝑉 → (∀𝑦𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑)))
2019imp 409 1 ((𝐴𝑉 ∧ ∀𝑦𝑥𝜑) → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑[𝐴 / 𝑥𝐵 / 𝑦]𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wal 1534   = wceq 1536  wnf 1783  wcel 2113  wnfc 2960  Vcvv 3491  [wsbc 3768  csb 3876
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2792
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1084  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-clab 2799  df-cleq 2813  df-clel 2892  df-nfc 2962  df-v 3493  df-sbc 3769  df-csb 3877
This theorem is referenced by:  csbnestgfw  4364  sbcnestgw  4365
  Copyright terms: Public domain W3C validator