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 44088
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 9159 . . . 4 (𝐴 ≼ 𝐵 → ¬ 𝐵 ≺ 𝐴)
2 fphpd.a . . . 4 (𝜑 → 𝐵 ≺ 𝐴)
31, 2nsyl3 139 . . 3 (𝜑 → ¬ 𝐴 ≼ 𝐵)
4 relsdom 9017 . . . . . . 7 Rel ≺
54brrelex1i 5713 . . . . . 6 (𝐵 ≺ 𝐴 → 𝐵 ∈ V)
62, 5syl 18 . . . . 5 (𝜑 → 𝐵 ∈ V)
76adantr 486 . . . 4 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → 𝐵 ∈ V)
8 nfv 1951 . . . . . . . . 9 Ⅎ𝑥(𝜑 ∧ 𝑎 ∈ 𝐴)
9 nfcsb1v 3874 . . . . . . . . . 10 Ⅎ𝑥⦋𝑎 / 𝑥⦌𝐶
109nfel1 2945 . . . . . . . . 9 Ⅎ𝑥⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵
118, 10nfim 1933 . . . . . . . 8 Ⅎ𝑥((𝜑 ∧ 𝑎 ∈ 𝐴) → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵)
12 eleq1w 2850 . . . . . . . . . 10 (𝑥 = 𝑎 → (𝑥 ∈ 𝐴 ↔ 𝑎 ∈ 𝐴))
1312anbi2d 642 . . . . . . . . 9 (𝑥 = 𝑎 → ((𝜑 ∧ 𝑥 ∈ 𝐴) ↔ (𝜑 ∧ 𝑎 ∈ 𝐴)))
14 csbeq1a 3864 . . . . . . . . . 10 (𝑥 = 𝑎 → 𝐶 = ⦋𝑎 / 𝑥⦌𝐶)
1514eleq1d 2852 . . . . . . . . 9 (𝑥 = 𝑎 → (𝐶 ∈ 𝐵 ↔ ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵))
1613, 15imbi12d 347 . . . . . . . 8 (𝑥 = 𝑎 → (((𝜑 ∧ 𝑥 ∈ 𝐴) → 𝐶 ∈ 𝐵) ↔ ((𝜑 ∧ 𝑎 ∈ 𝐴) → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵)))
17 fphpd.b . . . . . . . 8 ((𝜑 ∧ 𝑥 ∈ 𝐴) → 𝐶 ∈ 𝐵)
1811, 16, 17chvarfv 2283 . . . . . . 7 ((𝜑 ∧ 𝑎 ∈ 𝐴) → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵)
1918ex 418 . . . . . 6 (𝜑 → (𝑎 ∈ 𝐴 → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵))
2019adantr 486 . . . . 5 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → (𝑎 ∈ 𝐴 → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵))
21 csbid 3863 . . . . . . . . . . 11 ⦋𝑥 / 𝑥⦌𝐶 = 𝐶
22 vex 3457 . . . . . . . . . . . 12 𝑦 ∈ V
23 fphpd.c . . . . . . . . . . . 12 (𝑥 = 𝑦 → 𝐶 = 𝐷)
2422, 23csbie 3885 . . . . . . . . . . 11 ⦋𝑦 / 𝑥⦌𝐶 = 𝐷
2521, 24eqeq12i 2784 . . . . . . . . . 10 (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 ↔ 𝐶 = 𝐷)
2625imbi1i 352 . . . . . . . . 9 ((⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) ↔ (𝐶 = 𝐷 → 𝑥 = 𝑦))
27262ralbii 3144 . . . . . . . 8 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
28 nfcsb1v 3874 . . . . . . . . . . . 12 Ⅎ𝑥⦋𝑦 / 𝑥⦌𝐶
299, 28nfeq 2942 . . . . . . . . . . 11 Ⅎ𝑥⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶
30 nfv 1951 . . . . . . . . . . 11 Ⅎ𝑥 𝑎 = 𝑦
3129, 30nfim 1933 . . . . . . . . . 10 Ⅎ𝑥(⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑎 = 𝑦)
32 nfv 1951 . . . . . . . . . 10 Ⅎ𝑦(⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)
33 csbeq1 3853 . . . . . . . . . . . 12 (𝑥 = 𝑎 → ⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑎 / 𝑥⦌𝐶)
3433eqeq1d 2768 . . . . . . . . . . 11 (𝑥 = 𝑎 → (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 ↔ ⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶))
35 equequ1 2062 . . . . . . . . . . 11 (𝑥 = 𝑎 → (𝑥 = 𝑦 ↔ 𝑎 = 𝑦))
3634, 35imbi12d 347 . . . . . . . . . 10 (𝑥 = 𝑎 → ((⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) ↔ (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑎 = 𝑦)))
37 csbeq1 3853 . . . . . . . . . . . 12 (𝑦 = 𝑏 → ⦋𝑦 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶)
3837eqeq2d 2777 . . . . . . . . . . 11 (𝑦 = 𝑏 → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 ↔ ⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶))
39 equequ2 2063 . . . . . . . . . . 11 (𝑦 = 𝑏 → (𝑎 = 𝑦 ↔ 𝑎 = 𝑏))
4038, 39imbi12d 347 . . . . . . . . . 10 (𝑦 = 𝑏 → ((⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑎 = 𝑦) ↔ (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)))
4131, 32, 36, 40rspc2 3587 . . . . . . . . 9 ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)))
4241com12 33 . . . . . . . 8 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) → ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)))
4327, 42sylbir 238 . . . . . . 7 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦) → ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)))
44 id 23 . . . . . . . 8 ((⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏))
45 csbeq1 3853 . . . . . . . 8 (𝑎 = 𝑏 → ⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶)
4644, 45impbid1 228 . . . . . . 7 ((⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 ↔ 𝑎 = 𝑏))
4743, 46syl6 36 . . . . . 6 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦) → ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 ↔ 𝑎 = 𝑏)))
4847adantl 487 . . . . 5 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 ↔ 𝑎 = 𝑏)))
4920, 48dom2d 9057 . . . 4 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → (𝐵 ∈ V → 𝐴 ≼ 𝐵))
507, 49mpd 16 . . 3 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → 𝐴 ≼ 𝐵)
513, 50mtand 828 . 2 (𝜑 → ¬ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
52 ancom 466 . . . . . . 7 ((¬ 𝑥 = 𝑦 ∧ 𝐶 = 𝐷) ↔ (𝐶 = 𝐷 ∧ ¬ 𝑥 = 𝑦))
53 df-ne 2963 . . . . . . . 8 (𝑥 ≠ 𝑦 ↔ ¬ 𝑥 = 𝑦)
5453anbi1i 636 . . . . . . 7 ((𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ (¬ 𝑥 = 𝑦 ∧ 𝐶 = 𝐷))
55 pm4.61 410 . . . . . . 7 (¬ (𝐶 = 𝐷 → 𝑥 = 𝑦) ↔ (𝐶 = 𝐷 ∧ ¬ 𝑥 = 𝑦))
5652, 54, 553bitr4i 306 . . . . . 6 ((𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ¬ (𝐶 = 𝐷 → 𝑥 = 𝑦))
5756rexbii 3116 . . . . 5 (∃𝑦 ∈ 𝐴 (𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ∃𝑦 ∈ 𝐴 ¬ (𝐶 = 𝐷 → 𝑥 = 𝑦))
58 rexnal 3121 . . . . 5 (∃𝑦 ∈ 𝐴 ¬ (𝐶 = 𝐷 → 𝑥 = 𝑦) ↔ ¬ ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
5957, 58bitri 278 . . . 4 (∃𝑦 ∈ 𝐴 (𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ¬ ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
6059rexbii 3116 . . 3 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 (𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ∃𝑥 ∈ 𝐴 ¬ ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
61 rexnal 3121 . . 3 (∃𝑥 ∈ 𝐴 ¬ ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦) ↔ ¬ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
6260, 61bitri 278 . 2 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 (𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ¬ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
6351, 62sylibr 237 1 (𝜑 → ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 (𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572   ∈ wcel 2150   ≠ wne 2962  ∀wral 3083  ∃wrex 3093  Vcvv 3453  ⦋csb 3850   class class class wbr 5107   ≼ cdom 9008   ≺ csdm 9009
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-ral 3084  df-rex 3094  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-id 5552  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-er 8754  df-en 9011  df-dom 9012  df-sdom 9013
This theorem is used by:  fphpdo  44089  pellex  44107
  Copyright terms: Public domain W3C validator