ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  phplem2 GIF version

Theorem phplem2 6740
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 phplem2.2 . . . . . . . 8 𝐵 ∈ V
2 phplem2.1 . . . . . . . 8 𝐴 ∈ V
31, 2opex 4146 . . . . . . 7 𝐵, 𝐴⟩ ∈ V
43snex 4104 . . . . . 6 {⟨𝐵, 𝐴⟩} ∈ V
51, 2f1osn 5400 . . . . . 6 {⟨𝐵, 𝐴⟩}:{𝐵}–1-1-onto→{𝐴}
6 f1oen3g 6641 . . . . . 6 (({⟨𝐵, 𝐴⟩} ∈ V ∧ {⟨𝐵, 𝐴⟩}:{𝐵}–1-1-onto→{𝐴}) → {𝐵} ≈ {𝐴})
74, 5, 6mp2an 422 . . . . 5 {𝐵} ≈ {𝐴}
8 difss 3197 . . . . . . 7 (𝐴 ∖ {𝐵}) ⊆ 𝐴
92, 8ssexi 4061 . . . . . 6 (𝐴 ∖ {𝐵}) ∈ V
109enref 6652 . . . . 5 (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵})
117, 10pm3.2i 270 . . . 4 ({𝐵} ≈ {𝐴} ∧ (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵}))
12 incom 3263 . . . . . 6 ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ((𝐴 ∖ {𝐵}) ∩ {𝐴})
13 ssrin 3296 . . . . . . . . 9 ((𝐴 ∖ {𝐵}) ⊆ 𝐴 → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ (𝐴 ∩ {𝐴}))
148, 13ax-mp 5 . . . . . . . 8 ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ (𝐴 ∩ {𝐴})
15 nnord 4520 . . . . . . . . 9 (𝐴 ∈ ω → Ord 𝐴)
16 orddisj 4456 . . . . . . . . 9 (Ord 𝐴 → (𝐴 ∩ {𝐴}) = ∅)
1715, 16syl 14 . . . . . . . 8 (𝐴 ∈ ω → (𝐴 ∩ {𝐴}) = ∅)
1814, 17sseqtrid 3142 . . . . . . 7 (𝐴 ∈ ω → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ ∅)
19 ss0 3398 . . . . . . 7 (((𝐴 ∖ {𝐵}) ∩ {𝐴}) ⊆ ∅ → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) = ∅)
2018, 19syl 14 . . . . . 6 (𝐴 ∈ ω → ((𝐴 ∖ {𝐵}) ∩ {𝐴}) = ∅)
2112, 20syl5eq 2182 . . . . 5 (𝐴 ∈ ω → ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅)
22 disjdif 3430 . . . . 5 ({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅
2321, 22jctil 310 . . . 4 (𝐴 ∈ ω → (({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅ ∧ ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅))
24 unen 6703 . . . 4 ((({𝐵} ≈ {𝐴} ∧ (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {𝐵})) ∧ (({𝐵} ∩ (𝐴 ∖ {𝐵})) = ∅ ∧ ({𝐴} ∩ (𝐴 ∖ {𝐵})) = ∅)) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
2511, 23, 24sylancr 410 . . 3 (𝐴 ∈ ω → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
2625adantr 274 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) ≈ ({𝐴} ∪ (𝐴 ∖ {𝐵})))
27 uncom 3215 . . 3 ({𝐵} ∪ (𝐴 ∖ {𝐵})) = ((𝐴 ∖ {𝐵}) ∪ {𝐵})
28 nndifsnid 6396 . . 3 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)
2927, 28syl5eq 2182 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐵} ∪ (𝐴 ∖ {𝐵})) = 𝐴)
30 phplem1 6739 . 2 ((𝐴 ∈ ω ∧ 𝐵𝐴) → ({𝐴} ∪ (𝐴 ∖ {𝐵})) = (suc 𝐴 ∖ {𝐵}))
3126, 29, 303brtr3d 3954 1 ((𝐴 ∈ ω ∧ 𝐵𝐴) → 𝐴 ≈ (suc 𝐴 ∖ {𝐵}))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103   = wceq 1331  wcel 1480  Vcvv 2681  cdif 3063  cun 3064  cin 3065  wss 3066  c0 3358  {csn 3522  cop 3525   class class class wbr 3924  Ord word 4279  suc csuc 4282  ωcom 4499  1-1-ontowf1o 5117  cen 6625
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2119  ax-sep 4041  ax-nul 4049  ax-pow 4093  ax-pr 4126  ax-un 4350  ax-setind 4447  ax-iinf 4497
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2000  df-mo 2001  df-clab 2124  df-cleq 2130  df-clel 2133  df-nfc 2268  df-ne 2307  df-ral 2419  df-rex 2420  df-rab 2423  df-v 2683  df-dif 3068  df-un 3070  df-in 3072  df-ss 3079  df-nul 3359  df-pw 3507  df-sn 3528  df-pr 3529  df-op 3531  df-uni 3732  df-int 3767  df-br 3925  df-opab 3985  df-tr 4022  df-id 4210  df-iord 4283  df-on 4285  df-suc 4288  df-iom 4500  df-xp 4540  df-rel 4541  df-cnv 4542  df-co 4543  df-dm 4544  df-rn 4545  df-res 4546  df-ima 4547  df-fun 5120  df-fn 5121  df-f 5122  df-f1 5123  df-fo 5124  df-f1o 5125  df-en 6628
This theorem is referenced by:  phplem3  6741
  Copyright terms: Public domain W3C validator