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

Theorem sbabel 2986
Description: Theorem to move a substitution in and out of a class abstraction. (Contributed by NM, 27-Sep-2003.) (Revised by Mario Carneiro, 7-Oct-2016.) (Proof shortened by Wolf Lammen, 26-Dec-2019.)
Hypothesis
Ref Expression
sbabel.1 𝑥𝐴
Assertion
Ref Expression
sbabel ([𝑦 / 𝑥]{𝑧𝜑} ∈ 𝐴 ↔ {𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴)
Distinct variable groups:   𝑥,𝑧   𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)   𝐴(𝑥,𝑦,𝑧)

Proof of Theorem sbabel
Dummy variable 𝑣 is distinct from all other variables.
StepHypRef Expression
1 sbex 2284 . . 3 ([𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣[𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
2 sban 2085 . . . . 5 ([𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ([𝑦 / 𝑥]𝑣𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑)))
3 sbabel.1 . . . . . . . 8 𝑥𝐴
43nfcri 2943 . . . . . . 7 𝑥 𝑣𝐴
54sbf 2268 . . . . . 6 ([𝑦 / 𝑥]𝑣𝐴𝑣𝐴)
6 nfv 1915 . . . . . . . . 9 𝑥 𝑧𝑣
76sbf 2268 . . . . . . . 8 ([𝑦 / 𝑥]𝑧𝑣𝑧𝑣)
87sbrbis 2315 . . . . . . 7 ([𝑦 / 𝑥](𝑧𝑣𝜑) ↔ (𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑))
98sbalv 2164 . . . . . 6 ([𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑) ↔ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑))
105, 9anbi12i 629 . . . . 5 (([𝑦 / 𝑥]𝑣𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑)) ↔ (𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
112, 10bitri 278 . . . 4 ([𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ (𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1211exbii 1849 . . 3 (∃𝑣[𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
131, 12bitri 278 . 2 ([𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
14 clabel 2934 . . 3 ({𝑧𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
1514sbbii 2081 . 2 ([𝑦 / 𝑥]{𝑧𝜑} ∈ 𝐴 ↔ [𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
16 clabel 2934 . 2 ({𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1713, 15, 163bitr4i 306 1 ([𝑦 / 𝑥]{𝑧𝜑} ∈ 𝐴 ↔ {𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wb 209  wa 399  wal 1536  wex 1781  [wsb 2069  wcel 2111  {cab 2776  wnfc 2936
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator