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

Theorem sbabel 2793
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 2463 . . 3 ([𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣[𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
2 sban 2399 . . . . 5 ([𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ([𝑦 / 𝑥]𝑣𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑)))
3 sbabel.1 . . . . . . . 8 𝑥𝐴
43nfcri 2758 . . . . . . 7 𝑥 𝑣𝐴
54sbf 2380 . . . . . 6 ([𝑦 / 𝑥]𝑣𝐴𝑣𝐴)
6 nfv 1843 . . . . . . . . 9 𝑥 𝑧𝑣
76sbf 2380 . . . . . . . 8 ([𝑦 / 𝑥]𝑧𝑣𝑧𝑣)
87sbrbis 2405 . . . . . . 7 ([𝑦 / 𝑥](𝑧𝑣𝜑) ↔ (𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑))
98sbalv 2464 . . . . . 6 ([𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑) ↔ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑))
105, 9anbi12i 733 . . . . 5 (([𝑦 / 𝑥]𝑣𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧𝑣𝜑)) ↔ (𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
112, 10bitri 264 . . . 4 ([𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ (𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1211exbii 1774 . . 3 (∃𝑣[𝑦 / 𝑥](𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
131, 12bitri 264 . 2 ([𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)) ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
14 clabel 2749 . . 3 ({𝑧𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
1514sbbii 1887 . 2 ([𝑦 / 𝑥]{𝑧𝜑} ∈ 𝐴 ↔ [𝑦 / 𝑥]∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣𝜑)))
16 clabel 2749 . 2 ({𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣𝐴 ∧ ∀𝑧(𝑧𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1713, 15, 163bitr4i 292 1 ([𝑦 / 𝑥]{𝑧𝜑} ∈ 𝐴 ↔ {𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wb 196  wa 384  wal 1481  wex 1704  [wsb 1880  wcel 1990  {cab 2608  wnfc 2751
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator