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

Theorem ssconb 4083
Description: Contraposition law for subsets. (Contributed by NM, 22-Mar-1998.)
Assertion
Ref Expression
ssconb ((𝐴 ⊆ 𝐶 ∧ 𝐵 ⊆ 𝐶) → (𝐴 ⊆ (𝐶 ∖ 𝐵) ↔ 𝐵 ⊆ (𝐶 ∖ 𝐴)))

Proof of Theorem ssconb
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 ssel 3909 . . . . . . 7 (𝐴 ⊆ 𝐶 → (𝑥 ∈ 𝐴 → 𝑥 ∈ 𝐶))
2 ssel 3909 . . . . . . 7 (𝐵 ⊆ 𝐶 → (𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐶))
3 pm5.1 836 . . . . . . 7 (((𝑥 ∈ 𝐴 → 𝑥 ∈ 𝐶) ∧ (𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐶)) → ((𝑥 ∈ 𝐴 → 𝑥 ∈ 𝐶) ↔ (𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐶)))
41, 2, 3syl2an 608 . . . . . 6 ((𝐴 ⊆ 𝐶 ∧ 𝐵 ⊆ 𝐶) → ((𝑥 ∈ 𝐴 → 𝑥 ∈ 𝐶) ↔ (𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐶)))
5 con2b 362 . . . . . . 7 ((𝑥 ∈ 𝐴 → ¬ 𝑥 ∈ 𝐵) ↔ (𝑥 ∈ 𝐵 → ¬ 𝑥 ∈ 𝐴))
65a1i 11 . . . . . 6 ((𝐴 ⊆ 𝐶 ∧ 𝐵 ⊆ 𝐶) → ((𝑥 ∈ 𝐴 → ¬ 𝑥 ∈ 𝐵) ↔ (𝑥 ∈ 𝐵 → ¬ 𝑥 ∈ 𝐴)))
74, 6anbi12d 644 . . . . 5 ((𝐴 ⊆ 𝐶 ∧ 𝐵 ⊆ 𝐶) → (((𝑥 ∈ 𝐴 → 𝑥 ∈ 𝐶) ∧ (𝑥 ∈ 𝐴 → ¬ 𝑥 ∈ 𝐵)) ↔ ((𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐶) ∧ (𝑥 ∈ 𝐵 → ¬ 𝑥 ∈ 𝐴))))
8 jcab 527 . . . . 5 ((𝑥 ∈ 𝐴 → (𝑥 ∈ 𝐶 ∧ ¬ 𝑥 ∈ 𝐵)) ↔ ((𝑥 ∈ 𝐴 → 𝑥 ∈ 𝐶) ∧ (𝑥 ∈ 𝐴 → ¬ 𝑥 ∈ 𝐵)))
9 jcab 527 . . . . 5 ((𝑥 ∈ 𝐵 → (𝑥 ∈ 𝐶 ∧ ¬ 𝑥 ∈ 𝐴)) ↔ ((𝑥 ∈ 𝐵 → 𝑥 ∈ 𝐶) ∧ (𝑥 ∈ 𝐵 → ¬ 𝑥 ∈ 𝐴)))
107, 8, 93bitr4g 317 . . . 4 ((𝐴 ⊆ 𝐶 ∧ 𝐵 ⊆ 𝐶) → ((𝑥 ∈ 𝐴 → (𝑥 ∈ 𝐶 ∧ ¬ 𝑥 ∈ 𝐵)) ↔ (𝑥 ∈ 𝐵 → (𝑥 ∈ 𝐶 ∧ ¬ 𝑥 ∈ 𝐴))))
11 eldif 4054 . . . . 5 (𝑥 ∈ (𝐶 ∖ 𝐵) ↔ (𝑥 ∈ 𝐶 ∧ ¬ 𝑥 ∈ 𝐵))
1211imbi2i 339 . . . 4 ((𝑥 ∈ 𝐴 → 𝑥 ∈ (𝐶 ∖ 𝐵)) ↔ (𝑥 ∈ 𝐴 → (𝑥 ∈ 𝐶 ∧ ¬ 𝑥 ∈ 𝐵)))
13 eldif 4054 . . . . 5 (𝑥 ∈ (𝐶 ∖ 𝐴) ↔ (𝑥 ∈ 𝐶 ∧ ¬ 𝑥 ∈ 𝐴))
1413imbi2i 339 . . . 4 ((𝑥 ∈ 𝐵 → 𝑥 ∈ (𝐶 ∖ 𝐴)) ↔ (𝑥 ∈ 𝐵 → (𝑥 ∈ 𝐶 ∧ ¬ 𝑥 ∈ 𝐴)))
1510, 12, 143bitr4g 317 . . 3 ((𝐴 ⊆ 𝐶 ∧ 𝐵 ⊆ 𝐶) → ((𝑥 ∈ 𝐴 → 𝑥 ∈ (𝐶 ∖ 𝐵)) ↔ (𝑥 ∈ 𝐵 → 𝑥 ∈ (𝐶 ∖ 𝐴))))
1615albidv 1957 . 2 ((𝐴 ⊆ 𝐶 ∧ 𝐵 ⊆ 𝐶) → (∀𝑥(𝑥 ∈ 𝐴 → 𝑥 ∈ (𝐶 ∖ 𝐵)) ↔ ∀𝑥(𝑥 ∈ 𝐵 → 𝑥 ∈ (𝐶 ∖ 𝐴))))
17 df-ss 3903 . 2 (𝐴 ⊆ (𝐶 ∖ 𝐵) ↔ ∀𝑥(𝑥 ∈ 𝐴 → 𝑥 ∈ (𝐶 ∖ 𝐵)))
18 df-ss 3903 . 2 (𝐵 ⊆ (𝐶 ∖ 𝐴) ↔ ∀𝑥(𝑥 ∈ 𝐵 → 𝑥 ∈ (𝐶 ∖ 𝐴)))
1916, 17, 183bitr4g 317 1 ((𝐴 ⊆ 𝐶 ∧ 𝐵 ⊆ 𝐶) → (𝐴 ⊆ (𝐶 ∖ 𝐵) ↔ 𝐵 ⊆ (𝐶 ∖ 𝐴)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1570   ∈ wcel 2151   ⊆ wss 3902   ∖ cdif 4050
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-v 3458  df-ss 3903  df-dif 4052
This theorem is used by:  pssdifcom1  4450  pssdifcom2  4451  sbthlem1  9155  sbthlem2  9156  rpnnen2lem11  16448  setscom  17418  dpjidcl  20348  clsval2  23468  regsep2  23794  cyc3conja  33925  ordtconnlem1  34734  conss2  45819
  Copyright terms: Public domain W3C validator