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

Theorem alexeqg 3581
Description: Two ways to express substitution of 𝐴 for 𝑥 in 𝜑. This is the analogue for classes of sbalex 2235. (Contributed by NM, 2-Mar-1995.) (Revised by BJ, 27-Apr-2019.)
Assertion
Ref Expression
alexeqg (𝐴𝑉 → (∀𝑥(𝑥 = 𝐴𝜑) ↔ ∃𝑥(𝑥 = 𝐴𝜑)))
Distinct variable group:   𝑥,𝐴
Allowed substitution hints:   𝜑(𝑥)   𝑉(𝑥)

Proof of Theorem alexeqg
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 eqeq2 2750 . . . . 5 (𝑦 = 𝐴 → (𝑥 = 𝑦𝑥 = 𝐴))
21anbi1d 630 . . . 4 (𝑦 = 𝐴 → ((𝑥 = 𝑦𝜑) ↔ (𝑥 = 𝐴𝜑)))
32exbidv 1924 . . 3 (𝑦 = 𝐴 → (∃𝑥(𝑥 = 𝑦𝜑) ↔ ∃𝑥(𝑥 = 𝐴𝜑)))
41imbi1d 342 . . . 4 (𝑦 = 𝐴 → ((𝑥 = 𝑦𝜑) ↔ (𝑥 = 𝐴𝜑)))
54albidv 1923 . . 3 (𝑦 = 𝐴 → (∀𝑥(𝑥 = 𝑦𝜑) ↔ ∀𝑥(𝑥 = 𝐴𝜑)))
6 sbalex 2235 . . 3 (∃𝑥(𝑥 = 𝑦𝜑) ↔ ∀𝑥(𝑥 = 𝑦𝜑))
73, 5, 6vtoclbg 3507 . 2 (𝐴𝑉 → (∃𝑥(𝑥 = 𝐴𝜑) ↔ ∀𝑥(𝑥 = 𝐴𝜑)))
87bicomd 222 1 (𝐴𝑉 → (∀𝑥(𝑥 = 𝐴𝜑) ↔ ∃𝑥(𝑥 = 𝐴𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wal 1537   = wceq 1539  wex 1782  wcel 2106
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-12 2171  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816
This theorem is referenced by:  ceqex  3582  sbc6gOLD  3747
  Copyright terms: Public domain W3C validator