Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  fphpd Structured version   Visualization version   GIF version

Theorem fphpd 40554
Description: Pigeonhole principle expressed with implicit substitution. If the range is smaller than the domain, two inputs must be mapped to the same output. (Contributed by Stefan O'Rear, 19-Oct-2014.) (Revised by Stefan O'Rear, 6-May-2015.)
Hypotheses
Ref Expression
fphpd.a (𝜑𝐵𝐴)
fphpd.b ((𝜑𝑥𝐴) → 𝐶𝐵)
fphpd.c (𝑥 = 𝑦𝐶 = 𝐷)
Assertion
Ref Expression
fphpd (𝜑 → ∃𝑥𝐴𝑦𝐴 (𝑥𝑦𝐶 = 𝐷))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑦,𝐶   𝑥,𝐷   𝜑,𝑥,𝑦
Allowed substitution hints:   𝐶(𝑥)   𝐷(𝑦)

Proof of Theorem fphpd
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 domnsym 8839 . . . 4 (𝐴𝐵 → ¬ 𝐵𝐴)
2 fphpd.a . . . 4 (𝜑𝐵𝐴)
31, 2nsyl3 138 . . 3 (𝜑 → ¬ 𝐴𝐵)
4 relsdom 8698 . . . . . . 7 Rel ≺
54brrelex1i 5634 . . . . . 6 (𝐵𝐴𝐵 ∈ V)
62, 5syl 17 . . . . 5 (𝜑𝐵 ∈ V)
76adantr 480 . . . 4 ((𝜑 ∧ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦)) → 𝐵 ∈ V)
8 nfv 1918 . . . . . . . . 9 𝑥(𝜑𝑎𝐴)
9 nfcsb1v 3853 . . . . . . . . . 10 𝑥𝑎 / 𝑥𝐶
109nfel1 2922 . . . . . . . . 9 𝑥𝑎 / 𝑥𝐶𝐵
118, 10nfim 1900 . . . . . . . 8 𝑥((𝜑𝑎𝐴) → 𝑎 / 𝑥𝐶𝐵)
12 eleq1w 2821 . . . . . . . . . 10 (𝑥 = 𝑎 → (𝑥𝐴𝑎𝐴))
1312anbi2d 628 . . . . . . . . 9 (𝑥 = 𝑎 → ((𝜑𝑥𝐴) ↔ (𝜑𝑎𝐴)))
14 csbeq1a 3842 . . . . . . . . . 10 (𝑥 = 𝑎𝐶 = 𝑎 / 𝑥𝐶)
1514eleq1d 2823 . . . . . . . . 9 (𝑥 = 𝑎 → (𝐶𝐵𝑎 / 𝑥𝐶𝐵))
1613, 15imbi12d 344 . . . . . . . 8 (𝑥 = 𝑎 → (((𝜑𝑥𝐴) → 𝐶𝐵) ↔ ((𝜑𝑎𝐴) → 𝑎 / 𝑥𝐶𝐵)))
17 fphpd.b . . . . . . . 8 ((𝜑𝑥𝐴) → 𝐶𝐵)
1811, 16, 17chvarfv 2236 . . . . . . 7 ((𝜑𝑎𝐴) → 𝑎 / 𝑥𝐶𝐵)
1918ex 412 . . . . . 6 (𝜑 → (𝑎𝐴𝑎 / 𝑥𝐶𝐵))
2019adantr 480 . . . . 5 ((𝜑 ∧ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦)) → (𝑎𝐴𝑎 / 𝑥𝐶𝐵))
21 csbid 3841 . . . . . . . . . . 11 𝑥 / 𝑥𝐶 = 𝐶
22 vex 3426 . . . . . . . . . . . 12 𝑦 ∈ V
23 fphpd.c . . . . . . . . . . . 12 (𝑥 = 𝑦𝐶 = 𝐷)
2422, 23csbie 3864 . . . . . . . . . . 11 𝑦 / 𝑥𝐶 = 𝐷
2521, 24eqeq12i 2756 . . . . . . . . . 10 (𝑥 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝐶 = 𝐷)
2625imbi1i 349 . . . . . . . . 9 ((𝑥 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑥 = 𝑦) ↔ (𝐶 = 𝐷𝑥 = 𝑦))
27262ralbii 3091 . . . . . . . 8 (∀𝑥𝐴𝑦𝐴 (𝑥 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑥 = 𝑦) ↔ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦))
28 nfcsb1v 3853 . . . . . . . . . . . 12 𝑥𝑦 / 𝑥𝐶
299, 28nfeq 2919 . . . . . . . . . . 11 𝑥𝑎 / 𝑥𝐶 = 𝑦 / 𝑥𝐶
30 nfv 1918 . . . . . . . . . . 11 𝑥 𝑎 = 𝑦
3129, 30nfim 1900 . . . . . . . . . 10 𝑥(𝑎 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑎 = 𝑦)
32 nfv 1918 . . . . . . . . . 10 𝑦(𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏)
33 csbeq1 3831 . . . . . . . . . . . 12 (𝑥 = 𝑎𝑥 / 𝑥𝐶 = 𝑎 / 𝑥𝐶)
3433eqeq1d 2740 . . . . . . . . . . 11 (𝑥 = 𝑎 → (𝑥 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑎 / 𝑥𝐶 = 𝑦 / 𝑥𝐶))
35 equequ1 2029 . . . . . . . . . . 11 (𝑥 = 𝑎 → (𝑥 = 𝑦𝑎 = 𝑦))
3634, 35imbi12d 344 . . . . . . . . . 10 (𝑥 = 𝑎 → ((𝑥 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑥 = 𝑦) ↔ (𝑎 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑎 = 𝑦)))
37 csbeq1 3831 . . . . . . . . . . . 12 (𝑦 = 𝑏𝑦 / 𝑥𝐶 = 𝑏 / 𝑥𝐶)
3837eqeq2d 2749 . . . . . . . . . . 11 (𝑦 = 𝑏 → (𝑎 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶))
39 equequ2 2030 . . . . . . . . . . 11 (𝑦 = 𝑏 → (𝑎 = 𝑦𝑎 = 𝑏))
4038, 39imbi12d 344 . . . . . . . . . 10 (𝑦 = 𝑏 → ((𝑎 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑎 = 𝑦) ↔ (𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏)))
4131, 32, 36, 40rspc2 3560 . . . . . . . . 9 ((𝑎𝐴𝑏𝐴) → (∀𝑥𝐴𝑦𝐴 (𝑥 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑥 = 𝑦) → (𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏)))
4241com12 32 . . . . . . . 8 (∀𝑥𝐴𝑦𝐴 (𝑥 / 𝑥𝐶 = 𝑦 / 𝑥𝐶𝑥 = 𝑦) → ((𝑎𝐴𝑏𝐴) → (𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏)))
4327, 42sylbir 234 . . . . . . 7 (∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦) → ((𝑎𝐴𝑏𝐴) → (𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏)))
44 id 22 . . . . . . . 8 ((𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏) → (𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏))
45 csbeq1 3831 . . . . . . . 8 (𝑎 = 𝑏𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶)
4644, 45impbid1 224 . . . . . . 7 ((𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏) → (𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏))
4743, 46syl6 35 . . . . . 6 (∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦) → ((𝑎𝐴𝑏𝐴) → (𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏)))
4847adantl 481 . . . . 5 ((𝜑 ∧ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦)) → ((𝑎𝐴𝑏𝐴) → (𝑎 / 𝑥𝐶 = 𝑏 / 𝑥𝐶𝑎 = 𝑏)))
4920, 48dom2d 8736 . . . 4 ((𝜑 ∧ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦)) → (𝐵 ∈ V → 𝐴𝐵))
507, 49mpd 15 . . 3 ((𝜑 ∧ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦)) → 𝐴𝐵)
513, 50mtand 812 . 2 (𝜑 → ¬ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦))
52 ancom 460 . . . . . . 7 ((¬ 𝑥 = 𝑦𝐶 = 𝐷) ↔ (𝐶 = 𝐷 ∧ ¬ 𝑥 = 𝑦))
53 df-ne 2943 . . . . . . . 8 (𝑥𝑦 ↔ ¬ 𝑥 = 𝑦)
5453anbi1i 623 . . . . . . 7 ((𝑥𝑦𝐶 = 𝐷) ↔ (¬ 𝑥 = 𝑦𝐶 = 𝐷))
55 pm4.61 404 . . . . . . 7 (¬ (𝐶 = 𝐷𝑥 = 𝑦) ↔ (𝐶 = 𝐷 ∧ ¬ 𝑥 = 𝑦))
5652, 54, 553bitr4i 302 . . . . . 6 ((𝑥𝑦𝐶 = 𝐷) ↔ ¬ (𝐶 = 𝐷𝑥 = 𝑦))
5756rexbii 3177 . . . . 5 (∃𝑦𝐴 (𝑥𝑦𝐶 = 𝐷) ↔ ∃𝑦𝐴 ¬ (𝐶 = 𝐷𝑥 = 𝑦))
58 rexnal 3165 . . . . 5 (∃𝑦𝐴 ¬ (𝐶 = 𝐷𝑥 = 𝑦) ↔ ¬ ∀𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦))
5957, 58bitri 274 . . . 4 (∃𝑦𝐴 (𝑥𝑦𝐶 = 𝐷) ↔ ¬ ∀𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦))
6059rexbii 3177 . . 3 (∃𝑥𝐴𝑦𝐴 (𝑥𝑦𝐶 = 𝐷) ↔ ∃𝑥𝐴 ¬ ∀𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦))
61 rexnal 3165 . . 3 (∃𝑥𝐴 ¬ ∀𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦) ↔ ¬ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦))
6260, 61bitri 274 . 2 (∃𝑥𝐴𝑦𝐴 (𝑥𝑦𝐶 = 𝐷) ↔ ¬ ∀𝑥𝐴𝑦𝐴 (𝐶 = 𝐷𝑥 = 𝑦))
6351, 62sylibr 233 1 (𝜑 → ∃𝑥𝐴𝑦𝐴 (𝑥𝑦𝐶 = 𝐷))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wne 2942  wral 3063  wrex 3064  Vcvv 3422  csb 3828   class class class wbr 5070  cdom 8689  csdm 8690
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694
This theorem is referenced by:  fphpdo  40555  pellex  40573
  Copyright terms: Public domain W3C validator