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

Theorem rexdifi 4097
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 3088 . . 3 (∃𝑥 ∈ 𝐴 𝜑 ↔ ∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑))
2 df-ral 3078 . . 3 (∀𝑥 ∈ 𝐵 ¬ 𝜑 ↔ ∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑))
3 nfa1 2188 . . . . 5 Ⅎ𝑥∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑)
4 simprl 783 . . . . . . . 8 ((∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) ∧ (𝑥 ∈ 𝐴 ∧ 𝜑)) → 𝑥 ∈ 𝐴)
5 con2 136 . . . . . . . . . . . 12 ((𝑥 ∈ 𝐵 → ¬ 𝜑) → (𝜑 → ¬ 𝑥 ∈ 𝐵))
65sps 2222 . . . . . . . . . . 11 (∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) → (𝜑 → ¬ 𝑥 ∈ 𝐵))
76com12 33 . . . . . . . . . 10 (𝜑 → (∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) → ¬ 𝑥 ∈ 𝐵))
87adantl 487 . . . . . . . . 9 ((𝑥 ∈ 𝐴 ∧ 𝜑) → (∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) → ¬ 𝑥 ∈ 𝐵))
98impcom 413 . . . . . . . 8 ((∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) ∧ (𝑥 ∈ 𝐴 ∧ 𝜑)) → ¬ 𝑥 ∈ 𝐵)
104, 9eldifd 3910 . . . . . . 7 ((∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) ∧ (𝑥 ∈ 𝐴 ∧ 𝜑)) → 𝑥 ∈ (𝐴 ∖ 𝐵))
11 simprr 785 . . . . . . 7 ((∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) ∧ (𝑥 ∈ 𝐴 ∧ 𝜑)) → 𝜑)
1210, 11jca 521 . . . . . 6 ((∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) ∧ (𝑥 ∈ 𝐴 ∧ 𝜑)) → (𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑))
1312ex 418 . . . . 5 (∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) → ((𝑥 ∈ 𝐴 ∧ 𝜑) → (𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑)))
143, 13eximd 2253 . . . 4 (∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑) → (∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑) → ∃𝑥(𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑)))
1514impcom 413 . . 3 ((∃𝑥(𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ∀𝑥(𝑥 ∈ 𝐵 → ¬ 𝜑)) → ∃𝑥(𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑))
161, 2, 15syl2anb 610 . 2 ((∃𝑥 ∈ 𝐴 𝜑 ∧ ∀𝑥 ∈ 𝐵 ¬ 𝜑) → ∃𝑥(𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑))
17 df-rex 3088 . 2 (∃𝑥 ∈ (𝐴 ∖ 𝐵)𝜑 ↔ ∃𝑥(𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑))
1816, 17sylibr 237 1 ((∃𝑥 ∈ 𝐴 𝜑 ∧ ∀𝑥 ∈ 𝐵 ¬ 𝜑) → ∃𝑥 ∈ (𝐴 ∖ 𝐵)𝜑)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401  ∀wal 1568  ∃wex 1812   ∈ wcel 2145  ∀wral 3077  ∃wrex 3087   ∖ cdif 3896
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-12 2213  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-ral 3078  df-rex 3088  df-v 3453  df-dif 3902
This theorem is used by:  releldmdifi  8056
  Copyright terms: Public domain W3C validator