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

Theorem sbabel 2954
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 2905 . . . 4 ({𝑧 ∣ 𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)))
21sbbii 2112 . . 3 ([𝑦 / 𝑥]{𝑧 ∣ 𝜑} ∈ 𝐴 ↔ [𝑦 / 𝑥]∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)))
3 sbex 2314 . . 3 ([𝑦 / 𝑥]∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ ∃𝑣[𝑦 / 𝑥](𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)))
4 sban 2116 . . . . 5 ([𝑦 / 𝑥](𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ ([𝑦 / 𝑥]𝑣 ∈ 𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)))
5 sbabel.1 . . . . . . . 8 Ⅎ𝑥𝐴
65nfcri 2914 . . . . . . 7 Ⅎ𝑥 𝑣 ∈ 𝐴
76sbf 2304 . . . . . 6 ([𝑦 / 𝑥]𝑣 ∈ 𝐴 ↔ 𝑣 ∈ 𝐴)
8 sbv 2124 . . . . . . . 8 ([𝑦 / 𝑥]𝑧 ∈ 𝑣 ↔ 𝑧 ∈ 𝑣)
98sbrbis 2342 . . . . . . 7 ([𝑦 / 𝑥](𝑧 ∈ 𝑣 ↔ 𝜑) ↔ (𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑))
109sbalv 2206 . . . . . 6 ([𝑦 / 𝑥]∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑) ↔ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑))
117, 10anbi12i 640 . . . . 5 (([𝑦 / 𝑥]𝑣 ∈ 𝐴 ∧ [𝑦 / 𝑥]∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ (𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
124, 11bitri 278 . . . 4 ([𝑦 / 𝑥](𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ (𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1312exbii 1880 . . 3 (∃𝑣[𝑦 / 𝑥](𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ 𝜑)) ↔ ∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
142, 3, 133bitri 300 . 2 ([𝑦 / 𝑥]{𝑧 ∣ 𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
15 clabel 2905 . 2 ({𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴 ↔ ∃𝑣(𝑣 ∈ 𝐴 ∧ ∀𝑧(𝑧 ∈ 𝑣 ↔ [𝑦 / 𝑥]𝜑)))
1614, 15bitr4i 281 1 ([𝑦 / 𝑥]{𝑧 ∣ 𝜑} ∈ 𝐴 ↔ {𝑧 ∣ [𝑦 / 𝑥]𝜑} ∈ 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401  ∀wal 1567  ∃wex 1811  [wsb 2098   ∈ wcel 2144  {cab 2738  Ⅎwnfc 2907
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-ex 1812  df-nf 1816  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator