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

Theorem sbcnestgfw 4384
Description: Nest the composition of two substitutions. Version of sbcnestgf 4389 with a disjoint variable condition, which does not require ax-13 2408. (Contributed by Mario Carneiro, 11-Nov-2016.) Avoid ax-13 2408. (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 3746 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [𝐴 / 𝑥][𝐵 / 𝑦]𝜑))
2 csbeq1 3856 . . . . . 6 (𝑧 = 𝐴 → ⦋𝑧 / 𝑥⦌𝐵 = ⦋𝐴 / 𝑥⦌𝐵)
32sbceq1d 3749 . . . . 5 (𝑧 = 𝐴 → ([⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑))
41, 3bibi12d 348 . . . 4 (𝑧 = 𝐴 → (([𝑧 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑) ↔ ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑)))
54imbi2d 343 . . 3 (𝑧 = 𝐴 → ((∀𝑦Ⅎ𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑)) ↔ (∀𝑦Ⅎ𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑))))
6 vex 3460 . . . . 5 𝑧 ∈ V
76a1i 11 . . . 4 (∀𝑦Ⅎ𝑥𝜑 → 𝑧 ∈ V)
8 csbeq1a 3867 . . . . . 6 (𝑥 = 𝑧 → 𝐵 = ⦋𝑧 / 𝑥⦌𝐵)
98sbceq1d 3749 . . . . 5 (𝑥 = 𝑧 → ([𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑))
109adantl 487 . . . 4 ((∀𝑦Ⅎ𝑥𝜑 ∧ 𝑥 = 𝑧) → ([𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑))
11 nfnf1 2198 . . . . 5 Ⅎ𝑥Ⅎ𝑥𝜑
1211nfal 2361 . . . 4 Ⅎ𝑥∀𝑦Ⅎ𝑥𝜑
13 nfa1 2195 . . . . 5 Ⅎ𝑦∀𝑦Ⅎ𝑥𝜑
14 nfcsb1v 3877 . . . . . 6 Ⅎ𝑥⦋𝑧 / 𝑥⦌𝐵
1514a1i 11 . . . . 5 (∀𝑦Ⅎ𝑥𝜑 → Ⅎ𝑥⦋𝑧 / 𝑥⦌𝐵)
16 sp 2227 . . . . 5 (∀𝑦Ⅎ𝑥𝜑 → Ⅎ𝑥𝜑)
1713, 15, 16nfsbcdw 3765 . . . 4 (∀𝑦Ⅎ𝑥𝜑 → Ⅎ𝑥[⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑)
187, 10, 12, 17sbciedf 3786 . . 3 (∀𝑦Ⅎ𝑥𝜑 → ([𝑧 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝑧 / 𝑥⦌𝐵 / 𝑦]𝜑))
195, 18vtoclg 3523 . 2 (𝐴 ∈ 𝑉 → (∀𝑦Ⅎ𝑥𝜑 → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑)))
2019imp 412 1 ((𝐴 ∈ 𝑉 ∧ ∀𝑦Ⅎ𝑥𝜑) → ([𝐴 / 𝑥][𝐵 / 𝑦]𝜑 ↔ [⦋𝐴 / 𝑥⦌𝐵 / 𝑦]𝜑))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1570   = wceq 1572  Ⅎwnf 1818   ∈ wcel 2151  Ⅎwnfc 2917  Vcvv 3456  [wsbc 3744  ⦋csb 3853
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-ex 1815  df-nf 1819  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-v 3458  df-sbc 3745  df-csb 3854
This theorem is used by:  csbnestgfw  4385  sbcnestgw  4386
  Copyright terms: Public domain W3C validator