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

Theorem sbabel 2779
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 2451 . . 3 ([𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣[𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
2 sban 2387 . . . . 5 ([𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ([𝑦 / 𝑥]𝑣𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑)))
3 sbabel.1 . . . . . . . 8 𝑥𝐴
43nfcri 2745 . . . . . . 7 𝑥 𝑣𝐴
54sbf 2368 . . . . . 6 ([𝑦 / 𝑥]𝑣𝐴𝑣𝐴)
6 nfv 1830 . . . . . . . . 9 𝑥 𝑧𝑣
76sbf 2368 . . . . . . . 8 ([𝑦 / 𝑥]𝑧𝑣𝑧𝑣)
87sbrbis 2393 . . . . . . 7 ([𝑦 / 𝑥](𝑧𝑣𝜑) ↔ (𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑))
98sbalv 2452 . . . . . 6 ([𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑) ↔ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑))
105, 9anbi12i 729 . . . . 5 (([𝑦 / 𝑥]𝑣𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑)) ↔ (𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
112, 10bitri 263 . . . 4 ([𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ (𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1211exbii 1764 . . 3 (∃𝑣[𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
131, 12bitri 263 . 2 ([𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
14 clabel 2736 . . 3 ({𝑧𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
1514sbbii 1874 . 2 ([𝑦 / 𝑥]{𝑧𝜑} ∈ 𝐴 ↔ [𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
16 clabel 2736 . 2 ({𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1713, 15, 163bitr4i 291 1 ([𝑦 / 𝑥]{𝑧𝜑} ∈ 𝐴 ↔ {𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wb 195  wa 383  wal 1473  wex 1695  [wsb 1867  wcel 1977  {cab 2596  wnfc 2738
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-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator