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

Theorem srcmpltd 4442
Description: If a statement is true for every element of a class and for every element of its complement relative to a second class, then it is true for every element in the second class. (Contributed by BTernaryTau, 27-Sep-2023.)
Hypotheses
Ref Expression
srcmpltd.1 (𝜑 → (𝐶 ∈ 𝐴 → 𝜓))
srcmpltd.2 (𝜑 → (𝐶 ∈ (𝐵 ∖ 𝐴) → 𝜓))
Assertion
Ref Expression
srcmpltd (𝜑 → (𝐶 ∈ 𝐵 → 𝜓))

Proof of Theorem srcmpltd
StepHypRef Expression
1 elun2 4191 . . 3 (𝐶 ∈ 𝐵 → 𝐶 ∈ (𝐴 ∪ 𝐵))
2 undif2 4441 . . 3 (𝐴 ∪ (𝐵 ∖ 𝐴)) = (𝐴 ∪ 𝐵)
31, 2eleqtrrdi 2886 . 2 (𝐶 ∈ 𝐵 → 𝐶 ∈ (𝐴 ∪ (𝐵 ∖ 𝐴)))
4 srcmpltd.1 . . 3 (𝜑 → (𝐶 ∈ 𝐴 → 𝜓))
5 srcmpltd.2 . . 3 (𝜑 → (𝐶 ∈ (𝐵 ∖ 𝐴) → 𝜓))
6 elunant 4192 . . 3 ((𝐶 ∈ (𝐴 ∪ (𝐵 ∖ 𝐴)) → 𝜓) ↔ ((𝐶 ∈ 𝐴 → 𝜓) ∧ (𝐶 ∈ (𝐵 ∖ 𝐴) → 𝜓)))
74, 5, 6sylanbrc 595 . 2 (𝜑 → (𝐶 ∈ (𝐴 ∪ (𝐵 ∖ 𝐴)) → 𝜓))
83, 7syl5 35 1 (𝜑 → (𝐶 ∈ 𝐵 → 𝜓))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∈ wcel 2156   ∖ cdif 4055   ∪ cun 4159
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1575  df-fal 1585  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289
This theorem is used by:  prsrcmpltd  4443
  Copyright terms: Public domain W3C validator