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

Theorem sbabel 2955
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, 28-Oct-2024.)
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 clabel 2906 . . . 4 ({𝑧 ∣ 𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)))
21sbbii 2113 . . 3 ([𝑦 / 𝑥]{𝑧 ∣ 𝜑} ∈ 𝐴 ↔ [𝑦 / 𝑥]∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)))
3 sbex 2315 . . 3 ([𝑦 / 𝑥]∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ ∃𝑣[𝑦 / 𝑥](𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)))
4 sban 2117 . . . . 5 ([𝑦 / 𝑥](𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ ([𝑦 / 𝑥]𝑣 ∈ 𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)))
5 sbabel.1 . . . . . . . 8 Ⅎ𝑥𝐴
65nfcri 2915 . . . . . . 7 Ⅎ𝑥 𝑣 ∈ 𝐴
76sbf 2305 . . . . . 6 ([𝑦 / 𝑥]𝑣 ∈ 𝐴 ↔ 𝑣 ∈ 𝐴)
8 sbv 2125 . . . . . . . 8 ([𝑦 / 𝑥]𝑧 ∈ 𝑣 ↔ 𝑧 ∈ 𝑣)
98sbrbis 2343 . . . . . . 7 ([𝑦 / 𝑥](𝑧 ∈ 𝑣 ↔ 𝜑) ↔ (𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑))
109sbalv 2207 . . . . . 6 ([𝑦 / 𝑥]∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑) ↔ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑))
117, 10anbi12i 640 . . . . 5 (([𝑦 / 𝑥]𝑣 ∈ 𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ (𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
124, 11bitri 278 . . . 4 ([𝑦 / 𝑥](𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ (𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1312exbii 1881 . . 3 (∃𝑣[𝑦 / 𝑥](𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ ∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
142, 3, 133bitri 300 . 2 ([𝑦 / 𝑥]{𝑧 ∣ 𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
15 clabel 2906 . 2 ({𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1614, 15bitr4i 281 1 ([𝑦 / 𝑥]{𝑧 ∣ 𝜑} ∈ 𝐴 ↔ {𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401  ∀wal 1568  ∃wex 1812  [wsb 2099   ∈ wcel 2145  {cab 2739  Ⅎwnfc 2908
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator