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

Theorem rexab2 3696
Description: Existential quantification over a class abstraction. (Contributed by Mario Carneiro, 3-Sep-2015.) Drop ax-8 2106. (Revised by Gino Giotto, 1-Dec-2023.)
Hypothesis
Ref Expression
ralab2.1 (𝑥 = 𝑦 → (𝜓𝜒))
Assertion
Ref Expression
rexab2 (∃𝑥 ∈ {𝑦𝜑}𝜓 ↔ ∃𝑦(𝜑𝜒))
Distinct variable groups:   𝑥,𝑦   𝜒,𝑥   𝜑,𝑥   𝜓,𝑦
Allowed substitution hints:   𝜑(𝑦)   𝜓(𝑥)   𝜒(𝑦)

Proof of Theorem rexab2
StepHypRef Expression
1 df-rex 3069 . 2 (∃𝑥 ∈ {𝑦𝜑}𝜓 ↔ ∃𝑥(𝑥 ∈ {𝑦𝜑} ∧ 𝜓))
2 nfsab1 2715 . . . 4 𝑦 𝑥 ∈ {𝑦𝜑}
3 nfv 1915 . . . 4 𝑦𝜓
42, 3nfan 1900 . . 3 𝑦(𝑥 ∈ {𝑦𝜑} ∧ 𝜓)
5 nfv 1915 . . 3 𝑥(𝜑𝜒)
6 eleq1ab 2709 . . . . 5 (𝑥 = 𝑦 → (𝑥 ∈ {𝑦𝜑} ↔ 𝑦 ∈ {𝑦𝜑}))
7 abid 2711 . . . . 5 (𝑦 ∈ {𝑦𝜑} ↔ 𝜑)
86, 7bitrdi 286 . . . 4 (𝑥 = 𝑦 → (𝑥 ∈ {𝑦𝜑} ↔ 𝜑))
9 ralab2.1 . . . 4 (𝑥 = 𝑦 → (𝜓𝜒))
108, 9anbi12d 629 . . 3 (𝑥 = 𝑦 → ((𝑥 ∈ {𝑦𝜑} ∧ 𝜓) ↔ (𝜑𝜒)))
114, 5, 10cbvexv1 2336 . 2 (∃𝑥(𝑥 ∈ {𝑦𝜑} ∧ 𝜓) ↔ ∃𝑦(𝜑𝜒))
121, 11bitri 274 1 (∃𝑥 ∈ {𝑦𝜑}𝜓 ↔ ∃𝑦(𝜑𝜒))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 394  wex 1779  wcel 2104  {cab 2707  wrex 3068
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-10 2135  ax-11 2152  ax-12 2169
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 844  df-tru 1542  df-ex 1780  df-nf 1784  df-sb 2066  df-clab 2708  df-rex 3069
This theorem is referenced by:  rexrab2  3697  tmdgsum2  23822  clrellem  42677  brtrclfv2  42782
  Copyright terms: Public domain W3C validator