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

Theorem rexxfr 5388
Description: Transfer existence from a variable 𝑥 to another variable 𝑦 contained in expression 𝐴. (Contributed by NM, 10-Jun-2005.) (Revised by Mario Carneiro, 15-Aug-2014.)
Hypotheses
Ref Expression
ralxfr.1 (𝑦 ∈ 𝐶 → 𝐴 ∈ 𝐵)
ralxfr.2 (𝑥 ∈ 𝐵 → ∃𝑦 ∈ 𝐶 𝑥 = 𝐴)
ralxfr.3 (𝑥 = 𝐴 → (𝜑 ↔ 𝜓))
Assertion
Ref Expression
rexxfr (∃𝑥 ∈ 𝐵 𝜑 ↔ ∃𝑦 ∈ 𝐶 𝜓)
Distinct variable groups:   𝜓,𝑥   𝜑,𝑦   𝑥,𝐴   𝑥,𝑦,𝐵   𝑥,𝐶
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑦)   𝐴(𝑦)   𝐶(𝑦)

Proof of Theorem rexxfr
StepHypRef Expression
1 dfrex2 3099 . 2 (∃𝑥 ∈ 𝐵 𝜑 ↔ ¬ ∀𝑥 ∈ 𝐵 ¬ 𝜑)
2 dfrex2 3099 . . 3 (∃𝑦 ∈ 𝐶 𝜓 ↔ ¬ ∀𝑦 ∈ 𝐶 ¬ 𝜓)
3 ralxfr.1 . . . 4 (𝑦 ∈ 𝐶 → 𝐴 ∈ 𝐵)
4 ralxfr.2 . . . 4 (𝑥 ∈ 𝐵 → ∃𝑦 ∈ 𝐶 𝑥 = 𝐴)
5 ralxfr.3 . . . . 5 (𝑥 = 𝐴 → (𝜑 ↔ 𝜓))
65notbid 321 . . . 4 (𝑥 = 𝐴 → (¬ 𝜑 ↔ ¬ 𝜓))
73, 4, 6ralxfr 5386 . . 3 (∀𝑥 ∈ 𝐵 ¬ 𝜑 ↔ ∀𝑦 ∈ 𝐶 ¬ 𝜓)
82, 7xchbinxr 338 . 2 (∃𝑦 ∈ 𝐶 𝜓 ↔ ¬ ∀𝑥 ∈ 𝐵 ¬ 𝜑)
91, 8bitr4i 281 1 (∃𝑥 ∈ 𝐵 𝜑 ↔ ∃𝑦 ∈ 𝐶 𝜓)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   = wceq 1572   ∈ wcel 2151  ∀wral 3086  ∃wrex 3096
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1575  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-ral 3087  df-rex 3097
This theorem is used by:  infm3  12320  reeff1o  26844  moxfr  43985
  Copyright terms: Public domain W3C validator