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

Theorem phplem1 7900
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 6841 . . 3 (𝐴 ∈ ω → Ord 𝐴)
2 nordeq 5549 . . . 4 ((Ord 𝐴𝐵𝐴) → 𝐴𝐵)
3 disjsn2 4096 . . . 4 (𝐴𝐵 → ({𝐴} ∩ {𝐵}) = ∅)
42, 3syl 17 . . 3 ((Ord 𝐴𝐵𝐴) → ({𝐴} ∩ {𝐵}) = ∅)
51, 4sylan 486 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∩ {𝐵}) = ∅)
6 undif4 3890 . . 3 (({𝐴} ∩ {𝐵}) = ∅ → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (({𝐴} ∪ 𝐴) ∖ {𝐵}))
7 df-suc 5536 . . . . 5 suc 𝐴 = (𝐴 ∪ {𝐴})
87equncomi 3625 . . . 4 suc 𝐴 = ({𝐴} ∪ 𝐴)
98difeq1i 3590 . . 3 (suc 𝐴 ∖ {𝐵}) = (({𝐴} ∪ 𝐴) ∖ {𝐵})
106, 9syl6eqr 2566 . 2 (({𝐴} ∩ {𝐵}) = ∅ → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
115, 10syl 17 1 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 382   = wceq 1474  wcel 1938  wne 2684  cdif 3441  cun 3442  cin 3443  c0 3777  {csn 4028  Ord word 5529  suc csuc 5532  ωcom 6833
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1700  ax-4 1713  ax-5 1793  ax-6 1838  ax-7 1885  ax-8 1940  ax-9 1947  ax-10 1966  ax-11 1971  ax-12 1983  ax-13 2137  ax-ext 2494  ax-sep 4607  ax-nul 4616  ax-pr 4732  ax-un 6723
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1699  df-sb 1831  df-eu 2366  df-mo 2367  df-clab 2501  df-cleq 2507  df-clel 2510  df-nfc 2644  df-ne 2686  df-ral 2805  df-rex 2806  df-rab 2809  df-v 3079  df-sbc 3307  df-dif 3447  df-un 3449  df-in 3451  df-ss 3458  df-pss 3460  df-nul 3778  df-if 3940  df-sn 4029  df-pr 4031  df-tp 4033  df-op 4035  df-uni 4271  df-br 4482  df-opab 4542  df-tr 4579  df-eprel 4843  df-po 4853  df-so 4854  df-fr 4891  df-we 4893  df-ord 5533  df-on 5534  df-lim 5535  df-suc 5536  df-om 6834
This theorem is referenced by:  phplem2  7901
  Copyright terms: Public domain W3C validator