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

Theorem phplem2 8681
Description: Lemma for Pigeonhole Principle. A natural number is equinumerous to its successor minus one of its elements. (Contributed by NM, 11-Jun-1998.) (Revised by Mario Carneiro, 16-Nov-2014.)
Hypotheses
Ref Expression
phplem2.1 𝐴 ∈ V
phplem2.2 𝐵 ∈ V
Assertion
Ref Expression
phplem2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → 𝐴 ≈ (suc 𝐴 ∖ {𝐵}))

Proof of Theorem phplem2
StepHypRef Expression
1 snex 5297 . . . . . 6 {⟨𝐵, 𝐴⟩} ∈ V
2 phplem2.2 . . . . . . 7 𝐵 ∈ V
3 phplem2.1 . . . . . . 7 𝐴 ∈ V
42, 3f1osn 6629 . . . . . 6 {⟨𝐵, 𝐴⟩}:{𝐵}–1-1-onto→{𝐴}
5 f1oen3g 8508 . . . . . 6 (({⟨𝐵, 𝐴⟩} ∈ V ∧ {⟨𝐵, 𝐴⟩}:{𝐵}–1-1-onto→{𝐴}) → {𝐵} ≈ {𝐴})
61, 4, 5mp2an 691 . . . . 5 {𝐵} ≈ {𝐴}
73difexi 5196 . . . . . 6 (𝐴 ∖ {𝐵}) ∈ V
87enref 8525 . . . . 5 (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵})
96, 8pm3.2i 474 . . . 4 ({𝐵} ≈ {𝐴} ∧ (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵}))
10 incom 4128 . . . . . 6 ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ((𝐴 ∖ {𝐵}) ∩ {𝐴})
11 difss 4059 . . . . . . . . 9 (𝐴 ∖ {𝐵}) ⊆ 𝐴
12 ssrin 4160 . . . . . . . . 9 ((𝐴 ∖ {𝐵}) ⊆ 𝐴 → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ (𝐴 ∩ {𝐴}))
1311, 12ax-mp 5 . . . . . . . 8 ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ (𝐴 ∩ {𝐴})
14 nnord 7568 . . . . . . . . 9 (𝐴 ∈ ω → Ord 𝐴)
15 orddisj 6197 . . . . . . . . 9 (Ord 𝐴 → (𝐴 ∩ {𝐴}) = ∅)
1614, 15syl 17 . . . . . . . 8 (𝐴 ∈ ω → (𝐴 ∩ {𝐴}) = ∅)
1713, 16sseqtrid 3967 . . . . . . 7 (𝐴 ∈ ω → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ ∅)
18 ss0 4306 . . . . . . 7 (((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ ∅ → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) = ∅)
1917, 18syl 17 . . . . . 6 (𝐴 ∈ ω → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) = ∅)
2010, 19syl5eq 2845 . . . . 5 (𝐴 ∈ ω → ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅)
21 disjdif 4379 . . . . 5 ({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅
2220, 21jctil 523 . . . 4 (𝐴 ∈ ω → (({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅ ∧ ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅))
23 unen 8579 . . . 4 ((({𝐵} ≈ {𝐴} ∧ (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵})) ∧ (({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅ ∧ ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅)) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
249, 22, 23sylancr 590 . . 3 (𝐴 ∈ ω → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
2524adantr 484 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
26 uncom 4080 . . . 4 ({𝐵} ∪ (𝐴 ∖ {𝐵})) = ((𝐴 ∖ {𝐵}) ∪ {𝐵})
27 difsnid 4703 . . . 4 (𝐵𝐴 → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)
2826, 27syl5eq 2845 . . 3 (𝐵𝐴 → ({𝐵} ∪ (𝐴 ∖ {𝐵})) = 𝐴)
2928adantl 485 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) = 𝐴)
30 phplem1 8680 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
3125, 29, 303brtr3d 5061 1 ((𝐴 ∈ ω ∧ 𝐵𝐴) → 𝐴 ≈ (suc 𝐴 ∖ {𝐵}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1538  wcel 2111  Vcvv 3441  cdif 3878  cun 3879  cin 3880  wss 3881  c0 4243  {csn 4525  cop 4531   class class class wbr 5030  Ord word 6158  suc csuc 6161  1-1-ontowf1o 6323  ωcom 7560  cen 8489
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-pow 5231  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-pw 4499  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-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-om 7561  df-en 8493
This theorem is referenced by:  phplem3  8682
  Copyright terms: Public domain W3C validator