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

Theorem rexdifi 4076
Description: Restricted existential quantification over a difference. (Contributed by AV, 25-Oct-2023.)
Assertion
Ref Expression
rexdifi ((∃𝑥𝐴 𝜑 ∧ ∀𝑥𝐵 ¬ 𝜑) → ∃𝑥 ∈ (𝐴𝐵)𝜑)

Proof of Theorem rexdifi
StepHypRef Expression
1 df-rex 3069 . . 3 (∃𝑥𝐴 𝜑 ↔ ∃𝑥(𝑥𝐴𝜑))
2 df-ral 3068 . . 3 (∀𝑥𝐵 ¬ 𝜑 ↔ ∀𝑥(𝑥𝐵 → ¬ 𝜑))
3 nfa1 2150 . . . . 5 𝑥𝑥(𝑥𝐵 → ¬ 𝜑)
4 simprl 767 . . . . . . . 8 ((∀𝑥(𝑥𝐵 → ¬ 𝜑) ∧ (𝑥𝐴𝜑)) → 𝑥𝐴)
5 con2 135 . . . . . . . . . . . 12 ((𝑥𝐵 → ¬ 𝜑) → (𝜑 → ¬ 𝑥𝐵))
65sps 2180 . . . . . . . . . . 11 (∀𝑥(𝑥𝐵 → ¬ 𝜑) → (𝜑 → ¬ 𝑥𝐵))
76com12 32 . . . . . . . . . 10 (𝜑 → (∀𝑥(𝑥𝐵 → ¬ 𝜑) → ¬ 𝑥𝐵))
87adantl 481 . . . . . . . . 9 ((𝑥𝐴𝜑) → (∀𝑥(𝑥𝐵 → ¬ 𝜑) → ¬ 𝑥𝐵))
98impcom 407 . . . . . . . 8 ((∀𝑥(𝑥𝐵 → ¬ 𝜑) ∧ (𝑥𝐴𝜑)) → ¬ 𝑥𝐵)
104, 9eldifd 3894 . . . . . . 7 ((∀𝑥(𝑥𝐵 → ¬ 𝜑) ∧ (𝑥𝐴𝜑)) → 𝑥 ∈ (𝐴𝐵))
11 simprr 769 . . . . . . 7 ((∀𝑥(𝑥𝐵 → ¬ 𝜑) ∧ (𝑥𝐴𝜑)) → 𝜑)
1210, 11jca 511 . . . . . 6 ((∀𝑥(𝑥𝐵 → ¬ 𝜑) ∧ (𝑥𝐴𝜑)) → (𝑥 ∈ (𝐴𝐵) ∧ 𝜑))
1312ex 412 . . . . 5 (∀𝑥(𝑥𝐵 → ¬ 𝜑) → ((𝑥𝐴𝜑) → (𝑥 ∈ (𝐴𝐵) ∧ 𝜑)))
143, 13eximd 2212 . . . 4 (∀𝑥(𝑥𝐵 → ¬ 𝜑) → (∃𝑥(𝑥𝐴𝜑) → ∃𝑥(𝑥 ∈ (𝐴𝐵) ∧ 𝜑)))
1514impcom 407 . . 3 ((∃𝑥(𝑥𝐴𝜑) ∧ ∀𝑥(𝑥𝐵 → ¬ 𝜑)) → ∃𝑥(𝑥 ∈ (𝐴𝐵) ∧ 𝜑))
161, 2, 15syl2anb 597 . 2 ((∃𝑥𝐴 𝜑 ∧ ∀𝑥𝐵 ¬ 𝜑) → ∃𝑥(𝑥 ∈ (𝐴𝐵) ∧ 𝜑))
17 df-rex 3069 . 2 (∃𝑥 ∈ (𝐴𝐵)𝜑 ↔ ∃𝑥(𝑥 ∈ (𝐴𝐵) ∧ 𝜑))
1816, 17sylibr 233 1 ((∃𝑥𝐴 𝜑 ∧ ∀𝑥𝐵 ¬ 𝜑) → ∃𝑥 ∈ (𝐴𝐵)𝜑)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  wal 1537  wex 1783  wcel 2108  wral 3063  wrex 3064  cdif 3880
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-12 2173  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-v 3424  df-dif 3886
This theorem is referenced by:  releldmdifi  7859
  Copyright terms: Public domain W3C validator