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

Theorem phplem1 8695
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 7587 . . 3 (𝐴 ∈ ω → Ord 𝐴)
2 nordeq 6209 . . . 4 ((Ord 𝐴𝐵𝐴) → 𝐴𝐵)
3 disjsn2 4647 . . . 4 (𝐴𝐵 → ({𝐴} ∩ {𝐵}) = ∅)
42, 3syl 17 . . 3 ((Ord 𝐴𝐵𝐴) → ({𝐴} ∩ {𝐵}) = ∅)
51, 4sylan 582 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∩ {𝐵}) = ∅)
6 undif4 4415 . . 3 (({𝐴} ∩ {𝐵}) = ∅ → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (({𝐴} ∪ 𝐴) ∖ {𝐵}))
7 df-suc 6196 . . . . 5 suc 𝐴 = (𝐴 ∪ {𝐴})
87equncomi 4130 . . . 4 suc 𝐴 = ({𝐴} ∪ 𝐴)
98difeq1i 4094 . . 3 (suc 𝐴 ∖ {𝐵}) = (({𝐴} ∪ 𝐴) ∖ {𝐵})
106, 9syl6eqr 2874 . 2 (({𝐴} ∩ {𝐵}) = ∅ → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
115, 10syl 17 1 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1533  wcel 2110  wne 3016  cdif 3932  cun 3933  cin 3934  c0 4290  {csn 4566  Ord word 6189  suc csuc 6192  ωcom 7579
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5202  ax-nul 5209  ax-pr 5329  ax-un 7460
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-pss 3953  df-nul 4291  df-if 4467  df-sn 4567  df-pr 4569  df-tp 4571  df-op 4573  df-uni 4838  df-br 5066  df-opab 5128  df-tr 5172  df-eprel 5464  df-po 5473  df-so 5474  df-fr 5513  df-we 5515  df-ord 6193  df-on 6194  df-lim 6195  df-suc 6196  df-om 7580
This theorem is referenced by:  phplem2  8696
  Copyright terms: Public domain W3C validator