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 44014
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 9147 . . . 4 (𝐴 ≼ 𝐵 → ¬ 𝐵 ≺ 𝐴)
2 fphpd.a . . . 4 (𝜑 → 𝐵 ≺ 𝐴)
31, 2nsyl3 139 . . 3 (𝜑 → ¬ 𝐴 ≼ 𝐵)
4 relsdom 9005 . . . . . . 7 Rel ≺
54brrelex1i 5711 . . . . . 6 (𝐵 ≺ 𝐴 → 𝐵 ∈ V)
62, 5syl 18 . . . . 5 (𝜑 → 𝐵 ∈ V)
76adantr 486 . . . 4 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → 𝐵 ∈ V)
8 nfv 1949 . . . . . . . . 9 Ⅎ𝑥(𝜑 ∧ 𝑎 ∈ 𝐴)
9 nfcsb1v 3875 . . . . . . . . . 10 Ⅎ𝑥⦋𝑎 / 𝑥⦌𝐶
109nfel1 2942 . . . . . . . . 9 Ⅎ𝑥⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵
118, 10nfim 1931 . . . . . . . 8 Ⅎ𝑥((𝜑 ∧ 𝑎 ∈ 𝐴) → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵)
12 eleq1w 2847 . . . . . . . . . 10 (𝑥 = 𝑎 → (𝑥 ∈ 𝐴 ↔ 𝑎 ∈ 𝐴))
1312anbi2d 642 . . . . . . . . 9 (𝑥 = 𝑎 → ((𝜑 ∧ 𝑥 ∈ 𝐴) ↔ (𝜑 ∧ 𝑎 ∈ 𝐴)))
14 csbeq1a 3865 . . . . . . . . . 10 (𝑥 = 𝑎 → 𝐶 = ⦋𝑎 / 𝑥⦌𝐶)
1514eleq1d 2849 . . . . . . . . 9 (𝑥 = 𝑎 → (𝐶 ∈ 𝐵 ↔ ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵))
1613, 15imbi12d 347 . . . . . . . 8 (𝑥 = 𝑎 → (((𝜑 ∧ 𝑥 ∈ 𝐴) → 𝐶 ∈ 𝐵) ↔ ((𝜑 ∧ 𝑎 ∈ 𝐴) → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵)))
17 fphpd.b . . . . . . . 8 ((𝜑 ∧ 𝑥 ∈ 𝐴) → 𝐶 ∈ 𝐵)
1811, 16, 17chvarfv 2280 . . . . . . 7 ((𝜑 ∧ 𝑎 ∈ 𝐴) → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵)
1918ex 418 . . . . . 6 (𝜑 → (𝑎 ∈ 𝐴 → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵))
2019adantr 486 . . . . 5 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → (𝑎 ∈ 𝐴 → ⦋𝑎 / 𝑥⦌𝐶 ∈ 𝐵))
21 csbid 3864 . . . . . . . . . . 11 ⦋𝑥 / 𝑥⦌𝐶 = 𝐶
22 vex 3458 . . . . . . . . . . . 12 𝑦 ∈ V
23 fphpd.c . . . . . . . . . . . 12 (𝑥 = 𝑦 → 𝐶 = 𝐷)
2422, 23csbie 3886 . . . . . . . . . . 11 ⦋𝑦 / 𝑥⦌𝐶 = 𝐷
2521, 24eqeq12i 2781 . . . . . . . . . 10 (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 ↔ 𝐶 = 𝐷)
2625imbi1i 352 . . . . . . . . 9 ((⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) ↔ (𝐶 = 𝐷 → 𝑥 = 𝑦))
27262ralbii 3141 . . . . . . . 8 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
28 nfcsb1v 3875 . . . . . . . . . . . 12 Ⅎ𝑥⦋𝑦 / 𝑥⦌𝐶
299, 28nfeq 2939 . . . . . . . . . . 11 Ⅎ𝑥⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶
30 nfv 1949 . . . . . . . . . . 11 Ⅎ𝑥 𝑎 = 𝑦
3129, 30nfim 1931 . . . . . . . . . 10 Ⅎ𝑥(⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑎 = 𝑦)
32 nfv 1949 . . . . . . . . . 10 Ⅎ𝑦(⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)
33 csbeq1 3854 . . . . . . . . . . . 12 (𝑥 = 𝑎 → ⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑎 / 𝑥⦌𝐶)
3433eqeq1d 2765 . . . . . . . . . . 11 (𝑥 = 𝑎 → (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 ↔ ⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶))
35 equequ1 2060 . . . . . . . . . . 11 (𝑥 = 𝑎 → (𝑥 = 𝑦 ↔ 𝑎 = 𝑦))
3634, 35imbi12d 347 . . . . . . . . . 10 (𝑥 = 𝑎 → ((⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) ↔ (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑎 = 𝑦)))
37 csbeq1 3854 . . . . . . . . . . . 12 (𝑦 = 𝑏 → ⦋𝑦 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶)
3837eqeq2d 2774 . . . . . . . . . . 11 (𝑦 = 𝑏 → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 ↔ ⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶))
39 equequ2 2061 . . . . . . . . . . 11 (𝑦 = 𝑏 → (𝑎 = 𝑦 ↔ 𝑎 = 𝑏))
4038, 39imbi12d 347 . . . . . . . . . 10 (𝑦 = 𝑏 → ((⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑎 = 𝑦) ↔ (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)))
4131, 32, 36, 40rspc2 3588 . . . . . . . . 9 ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)))
4241com12 33 . . . . . . . 8 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (⦋𝑥 / 𝑥⦌𝐶 = ⦋𝑦 / 𝑥⦌𝐶 → 𝑥 = 𝑦) → ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)))
4327, 42sylbir 238 . . . . . . 7 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦) → ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏)))
44 id 23 . . . . . . . 8 ((⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏))
45 csbeq1 3854 . . . . . . . 8 (𝑎 = 𝑏 → ⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶)
4644, 45impbid1 228 . . . . . . 7 ((⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 → 𝑎 = 𝑏) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 ↔ 𝑎 = 𝑏))
4743, 46syl6 36 . . . . . 6 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦) → ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 ↔ 𝑎 = 𝑏)))
4847adantl 487 . . . . 5 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → ((𝑎 ∈ 𝐴 ∧ 𝑏 ∈ 𝐴) → (⦋𝑎 / 𝑥⦌𝐶 = ⦋𝑏 / 𝑥⦌𝐶 ↔ 𝑎 = 𝑏)))
4920, 48dom2d 9045 . . . 4 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → (𝐵 ∈ V → 𝐴 ≼ 𝐵))
507, 49mpd 16 . . 3 ((𝜑 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦)) → 𝐴 ≼ 𝐵)
513, 50mtand 828 . 2 (𝜑 → ¬ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
52 ancom 466 . . . . . . 7 ((¬ 𝑥 = 𝑦 ∧ 𝐶 = 𝐷) ↔ (𝐶 = 𝐷 ∧ ¬ 𝑥 = 𝑦))
53 df-ne 2960 . . . . . . . 8 (𝑥 ≠ 𝑦 ↔ ¬ 𝑥 = 𝑦)
5453anbi1i 636 . . . . . . 7 ((𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ (¬ 𝑥 = 𝑦 ∧ 𝐶 = 𝐷))
55 pm4.61 410 . . . . . . 7 (¬ (𝐶 = 𝐷 → 𝑥 = 𝑦) ↔ (𝐶 = 𝐷 ∧ ¬ 𝑥 = 𝑦))
5652, 54, 553bitr4i 306 . . . . . 6 ((𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ¬ (𝐶 = 𝐷 → 𝑥 = 𝑦))
5756rexbii 3113 . . . . 5 (∃𝑦 ∈ 𝐴 (𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ∃𝑦 ∈ 𝐴 ¬ (𝐶 = 𝐷 → 𝑥 = 𝑦))
58 rexnal 3118 . . . . 5 (∃𝑦 ∈ 𝐴 ¬ (𝐶 = 𝐷 → 𝑥 = 𝑦) ↔ ¬ ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
5957, 58bitri 278 . . . 4 (∃𝑦 ∈ 𝐴 (𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ¬ ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
6059rexbii 3113 . . 3 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 (𝑥 ≠ 𝑦 ∧ 𝐶 = 𝐷) ↔ ∃𝑥 ∈ 𝐴 ¬ ∀𝑦 ∈ 𝐴 (𝐶 = 𝐷 → 𝑥 = 𝑦))
61 rexnal 3118 . . 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 1570   ∈ wcel 2147   ≠ wne 2959  ∀wral 3080  ∃wrex 3090  Vcvv 3454  ⦋csb 3851   class class class wbr 5106   ≼ cdom 8996   ≺ csdm 8997
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7772
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6509  df-fun 6557  df-fn 6558  df-f 6559  df-f1 6560  df-fo 6561  df-f1o 6562  df-fv 6563  df-er 8742  df-en 8999  df-dom 9000  df-sdom 9001
This theorem is used by:  fphpdo  44015  pellex  44033
  Copyright terms: Public domain W3C validator