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

Theorem phplem1 8680
Description: Lemma for Pigeonhole Principle. If we join a natural number to itself minus an element, we end up with its successor minus the same element. (Contributed by NM, 25-May-1998.)
Assertion
Ref Expression
phplem1 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))

Proof of Theorem phplem1
StepHypRef Expression
1 nnord 7568 . . 3 (𝐴 ∈ ω → Ord 𝐴)
2 nordeq 6178 . . . 4 ((Ord 𝐴𝐵𝐴) → 𝐴𝐵)
3 disjsn2 4608 . . . 4 (𝐴𝐵 → ({𝐴} ∩ {𝐵}) = ∅)
42, 3syl 17 . . 3 ((Ord 𝐴𝐵𝐴) → ({𝐴} ∩ {𝐵}) = ∅)
51, 4sylan 583 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∩ {𝐵}) = ∅)
6 undif4 4374 . . 3 (({𝐴} ∩ {𝐵}) = ∅ → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (({𝐴} ∪ 𝐴) ∖ {𝐵}))
7 df-suc 6165 . . . . 5 suc 𝐴 = (𝐴 ∪ {𝐴})
87equncomi 4082 . . . 4 suc 𝐴 = ({𝐴} ∪ 𝐴)
98difeq1i 4046 . . 3 (suc 𝐴 ∖ {𝐵}) = (({𝐴} ∪ 𝐴) ∖ {𝐵})
106, 9eqtr4di 2851 . 2 (({𝐴} ∩ {𝐵}) = ∅ → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
115, 10syl 17 1 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1538  wcel 2111  wne 2987  cdif 3878  cun 3879  cin 3880  c0 4243  {csn 4525  Ord word 6158  suc csuc 6161  ωcom 7560
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295  ax-un 7441
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-tr 5137  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-om 7561
This theorem is referenced by:  phplem2  8681
  Copyright terms: Public domain W3C validator