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

Theorem phplem2 8697
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 5332 . . . . . 6 {⟨𝐵, 𝐴⟩} ∈ V
2 phplem2.2 . . . . . . 7 𝐵 ∈ V
3 phplem2.1 . . . . . . 7 𝐴 ∈ V
42, 3f1osn 6654 . . . . . 6 {⟨𝐵, 𝐴⟩}:{𝐵}–1-1-onto→{𝐴}
5 f1oen3g 8525 . . . . . 6 (({⟨𝐵, 𝐴⟩} ∈ V ∧ {⟨𝐵, 𝐴⟩}:{𝐵}–1-1-onto→{𝐴}) → {𝐵} ≈ {𝐴})
61, 4, 5mp2an 690 . . . . 5 {𝐵} ≈ {𝐴}
73difexi 5232 . . . . . 6 (𝐴 ∖ {𝐵}) ∈ V
87enref 8542 . . . . 5 (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵})
96, 8pm3.2i 473 . . . 4 ({𝐵} ≈ {𝐴} ∧ (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵}))
10 incom 4178 . . . . . 6 ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ((𝐴 ∖ {𝐵}) ∩ {𝐴})
11 difss 4108 . . . . . . . . 9 (𝐴 ∖ {𝐵}) ⊆ 𝐴
12 ssrin 4210 . . . . . . . . 9 ((𝐴 ∖ {𝐵}) ⊆ 𝐴 → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ (𝐴 ∩ {𝐴}))
1311, 12ax-mp 5 . . . . . . . 8 ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ (𝐴 ∩ {𝐴})
14 nnord 7588 . . . . . . . . 9 (𝐴 ∈ ω → Ord 𝐴)
15 orddisj 6229 . . . . . . . . 9 (Ord 𝐴 → (𝐴 ∩ {𝐴}) = ∅)
1614, 15syl 17 . . . . . . . 8 (𝐴 ∈ ω → (𝐴 ∩ {𝐴}) = ∅)
1713, 16sseqtrid 4019 . . . . . . 7 (𝐴 ∈ ω → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ ∅)
18 ss0 4352 . . . . . . 7 (((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ ∅ → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) = ∅)
1917, 18syl 17 . . . . . 6 (𝐴 ∈ ω → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) = ∅)
2010, 19syl5eq 2868 . . . . 5 (𝐴 ∈ ω → ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅)
21 disjdif 4421 . . . . 5 ({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅
2220, 21jctil 522 . . . 4 (𝐴 ∈ ω → (({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅ ∧ ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅))
23 unen 8596 . . . 4 ((({𝐵} ≈ {𝐴} ∧ (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵})) ∧ (({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅ ∧ ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅)) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
249, 22, 23sylancr 589 . . 3 (𝐴 ∈ ω → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
2524adantr 483 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
26 uncom 4129 . . . 4 ({𝐵} ∪ (𝐴 ∖ {𝐵})) = ((𝐴 ∖ {𝐵}) ∪ {𝐵})
27 difsnid 4743 . . . 4 (𝐵𝐴 → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)
2826, 27syl5eq 2868 . . 3 (𝐵𝐴 → ({𝐵} ∪ (𝐴 ∖ {𝐵})) = 𝐴)
2928adantl 484 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) = 𝐴)
30 phplem1 8696 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
3125, 29, 303brtr3d 5097 1 ((𝐴 ∈ ω ∧ 𝐵𝐴) → 𝐴 ≈ (suc 𝐴 ∖ {𝐵}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1537  wcel 2114  Vcvv 3494  cdif 3933  cun 3934  cin 3935  wss 3936  c0 4291  {csn 4567  cop 4573   class class class wbr 5066  Ord word 6190  suc csuc 6193  1-1-ontowf1o 6354  ωcom 7580  cen 8506
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  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 3773  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-pss 3954  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4568  df-pr 4570  df-tp 4572  df-op 4574  df-uni 4839  df-br 5067  df-opab 5129  df-tr 5173  df-id 5460  df-eprel 5465  df-po 5474  df-so 5475  df-fr 5514  df-we 5516  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-ord 6194  df-on 6195  df-lim 6196  df-suc 6197  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362  df-om 7581  df-en 8510
This theorem is referenced by:  phplem3  8698
  Copyright terms: Public domain W3C validator