Users' Mathboxes Mathbox for metakunt < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  hashnexinjle Structured version   Visualization version   GIF version

Theorem hashnexinjle 42124
Description: If the number of elements of the domain are greater than the number of elements in a codomain, then there are two different values that map to the same. Also we introduce a one sided inequality to simplify a duplicateable proof. (Contributed by metakunt, 2-May-2025.)
Hypotheses
Ref Expression
hashnexinjle.1 (𝜑𝐴 ∈ Fin)
hashnexinjle.2 (𝜑𝐵 ∈ Fin)
hashnexinjle.3 (𝜑 → (♯‘𝐵) < (♯‘𝐴))
hashnexinjle.4 (𝜑𝐹:𝐴𝐵)
hashnexinjle.5 (𝜑𝐴 ⊆ ℝ)
Assertion
Ref Expression
hashnexinjle (𝜑 → ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐹,𝑦   𝜑,𝑥,𝑦
Allowed substitution hints:   𝐵(𝑥,𝑦)

Proof of Theorem hashnexinjle
Dummy variables 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simpr 484 . 2 ((𝜑 ∧ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦)) → ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦))
2 fveq2 6861 . . . . . . . . . 10 (𝑥 = 𝑧 → (𝐹𝑥) = (𝐹𝑧))
32eqeq2d 2741 . . . . . . . . 9 (𝑥 = 𝑧 → ((𝐹𝑦) = (𝐹𝑥) ↔ (𝐹𝑦) = (𝐹𝑧)))
4 breq2 5114 . . . . . . . . 9 (𝑥 = 𝑧 → (𝑦 < 𝑥𝑦 < 𝑧))
53, 4anbi12d 632 . . . . . . . 8 (𝑥 = 𝑧 → (((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥) ↔ ((𝐹𝑦) = (𝐹𝑧) ∧ 𝑦 < 𝑧)))
6 fveqeq2 6870 . . . . . . . . 9 (𝑦 = 𝑤 → ((𝐹𝑦) = (𝐹𝑧) ↔ (𝐹𝑤) = (𝐹𝑧)))
7 breq1 5113 . . . . . . . . 9 (𝑦 = 𝑤 → (𝑦 < 𝑧𝑤 < 𝑧))
86, 7anbi12d 632 . . . . . . . 8 (𝑦 = 𝑤 → (((𝐹𝑦) = (𝐹𝑧) ∧ 𝑦 < 𝑧) ↔ ((𝐹𝑤) = (𝐹𝑧) ∧ 𝑤 < 𝑧)))
95, 8cbvrex2vw 3221 . . . . . . 7 (∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥) ↔ ∃𝑧𝐴𝑤𝐴 ((𝐹𝑤) = (𝐹𝑧) ∧ 𝑤 < 𝑧))
109a1i 11 . . . . . 6 (𝜑 → (∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥) ↔ ∃𝑧𝐴𝑤𝐴 ((𝐹𝑤) = (𝐹𝑧) ∧ 𝑤 < 𝑧)))
1110biimpd 229 . . . . 5 (𝜑 → (∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥) → ∃𝑧𝐴𝑤𝐴 ((𝐹𝑤) = (𝐹𝑧) ∧ 𝑤 < 𝑧)))
1211imp 406 . . . 4 ((𝜑 ∧ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)) → ∃𝑧𝐴𝑤𝐴 ((𝐹𝑤) = (𝐹𝑧) ∧ 𝑤 < 𝑧))
13 fveq2 6861 . . . . . . 7 (𝑧 = 𝑦 → (𝐹𝑧) = (𝐹𝑦))
1413eqeq2d 2741 . . . . . 6 (𝑧 = 𝑦 → ((𝐹𝑤) = (𝐹𝑧) ↔ (𝐹𝑤) = (𝐹𝑦)))
15 breq2 5114 . . . . . 6 (𝑧 = 𝑦 → (𝑤 < 𝑧𝑤 < 𝑦))
1614, 15anbi12d 632 . . . . 5 (𝑧 = 𝑦 → (((𝐹𝑤) = (𝐹𝑧) ∧ 𝑤 < 𝑧) ↔ ((𝐹𝑤) = (𝐹𝑦) ∧ 𝑤 < 𝑦)))
17 fveqeq2 6870 . . . . . 6 (𝑤 = 𝑥 → ((𝐹𝑤) = (𝐹𝑦) ↔ (𝐹𝑥) = (𝐹𝑦)))
18 breq1 5113 . . . . . 6 (𝑤 = 𝑥 → (𝑤 < 𝑦𝑥 < 𝑦))
1917, 18anbi12d 632 . . . . 5 (𝑤 = 𝑥 → (((𝐹𝑤) = (𝐹𝑦) ∧ 𝑤 < 𝑦) ↔ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦)))
2016, 19cbvrex2vw 3221 . . . 4 (∃𝑧𝐴𝑤𝐴 ((𝐹𝑤) = (𝐹𝑧) ∧ 𝑤 < 𝑧) ↔ ∃𝑦𝐴𝑥𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦))
2112, 20sylib 218 . . 3 ((𝜑 ∧ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)) → ∃𝑦𝐴𝑥𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦))
22 rexcom 3267 . . 3 (∃𝑦𝐴𝑥𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ↔ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦))
2321, 22sylib 218 . 2 ((𝜑 ∧ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)) → ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦))
24 hashnexinjle.1 . . . 4 (𝜑𝐴 ∈ Fin)
25 hashnexinjle.2 . . . 4 (𝜑𝐵 ∈ Fin)
26 hashnexinjle.3 . . . 4 (𝜑 → (♯‘𝐵) < (♯‘𝐴))
27 hashnexinjle.4 . . . 4 (𝜑𝐹:𝐴𝐵)
2824, 25, 26, 27hashnexinj 42123 . . 3 (𝜑 → ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))
29 simplrl 776 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑥 < 𝑦) → (𝐹𝑥) = (𝐹𝑦))
30 simpr 484 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑥 < 𝑦) → 𝑥 < 𝑦)
3129, 30jca 511 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑥 < 𝑦) → ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦))
3231orcd 873 . . . . . . . . . 10 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑥 < 𝑦) → (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
33 simplrl 776 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑦 < 𝑥) → (𝐹𝑥) = (𝐹𝑦))
3433eqcomd 2736 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑦 < 𝑥) → (𝐹𝑦) = (𝐹𝑥))
35 simpr 484 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑦 < 𝑥) → 𝑦 < 𝑥)
3634, 35jca 511 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑦 < 𝑥) → ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥))
3736olcd 874 . . . . . . . . . 10 ((((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) ∧ 𝑦 < 𝑥) → (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
38 simprr 772 . . . . . . . . . . 11 (((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → 𝑥𝑦)
39 simpl 482 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → 𝜑)
40 simprl 770 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → 𝑥𝐴)
4139, 40jca 511 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (𝜑𝑥𝐴))
42 hashnexinjle.5 . . . . . . . . . . . . . . 15 (𝜑𝐴 ⊆ ℝ)
4342sselda 3949 . . . . . . . . . . . . . 14 ((𝜑𝑥𝐴) → 𝑥 ∈ ℝ)
4441, 43syl 17 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → 𝑥 ∈ ℝ)
4544adantr 480 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → 𝑥 ∈ ℝ)
46 simprr 772 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → 𝑦𝐴)
4739, 46jca 511 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (𝜑𝑦𝐴))
4842sselda 3949 . . . . . . . . . . . . . 14 ((𝜑𝑦𝐴) → 𝑦 ∈ ℝ)
4947, 48syl 17 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → 𝑦 ∈ ℝ)
5049adantr 480 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → 𝑦 ∈ ℝ)
5145, 50lttri2d 11320 . . . . . . . . . . 11 (((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → (𝑥𝑦 ↔ (𝑥 < 𝑦𝑦 < 𝑥)))
5238, 51mpbid 232 . . . . . . . . . 10 (((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → (𝑥 < 𝑦𝑦 < 𝑥))
5332, 37, 52mpjaodan 960 . . . . . . . . 9 (((𝜑 ∧ (𝑥𝐴𝑦𝐴)) ∧ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
5453ex 412 . . . . . . . 8 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦) → (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥))))
5554reximdvva 3186 . . . . . . 7 (𝜑 → (∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦) → ∃𝑥𝐴𝑦𝐴 (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥))))
5655imp 406 . . . . . 6 ((𝜑 ∧ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → ∃𝑥𝐴𝑦𝐴 (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
57 r19.43 3102 . . . . . . 7 (∃𝑦𝐴 (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)) ↔ (∃𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ∃𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
5857rexbii 3077 . . . . . 6 (∃𝑥𝐴𝑦𝐴 (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)) ↔ ∃𝑥𝐴 (∃𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ∃𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
5956, 58sylib 218 . . . . 5 ((𝜑 ∧ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → ∃𝑥𝐴 (∃𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ∃𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
60 r19.43 3102 . . . . 5 (∃𝑥𝐴 (∃𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ∃𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)) ↔ (∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
6159, 60sylib 218 . . . 4 ((𝜑 ∧ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)) → (∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
6261ex 412 . . 3 (𝜑 → (∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦) → (∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥))))
6328, 62mpd 15 . 2 (𝜑 → (∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦) ∨ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑦) = (𝐹𝑥) ∧ 𝑦 < 𝑥)))
641, 23, 63mpjaodan 960 1 (𝜑 → ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥 < 𝑦))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395  wo 847   = wceq 1540  wcel 2109  wne 2926  wrex 3054  wss 3917   class class class wbr 5110  wf 6510  cfv 6514  Fincfn 8921  cr 11074   < clt 11215  chash 14302
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2008  ax-8 2111  ax-9 2119  ax-10 2142  ax-11 2158  ax-12 2178  ax-ext 2702  ax-sep 5254  ax-nul 5264  ax-pow 5323  ax-pr 5390  ax-un 7714  ax-cnex 11131  ax-resscn 11132  ax-1cn 11133  ax-icn 11134  ax-addcl 11135  ax-addrcl 11136  ax-mulcl 11137  ax-mulrcl 11138  ax-mulcom 11139  ax-addass 11140  ax-mulass 11141  ax-distr 11142  ax-i2m1 11143  ax-1ne0 11144  ax-1rid 11145  ax-rnegex 11146  ax-rrecex 11147  ax-cnre 11148  ax-pre-lttri 11149  ax-pre-lttrn 11150  ax-pre-ltadd 11151  ax-pre-mulgt0 11152
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2534  df-eu 2563  df-clab 2709  df-cleq 2722  df-clel 2804  df-nfc 2879  df-ne 2927  df-nel 3031  df-ral 3046  df-rex 3055  df-reu 3357  df-rab 3409  df-v 3452  df-sbc 3757  df-csb 3866  df-dif 3920  df-un 3922  df-in 3924  df-ss 3934  df-pss 3937  df-nul 4300  df-if 4492  df-pw 4568  df-sn 4593  df-pr 4595  df-op 4599  df-uni 4875  df-int 4914  df-iun 4960  df-br 5111  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5536  df-eprel 5541  df-po 5549  df-so 5550  df-fr 5594  df-we 5596  df-xp 5647  df-rel 5648  df-cnv 5649  df-co 5650  df-dm 5651  df-rn 5652  df-res 5653  df-ima 5654  df-pred 6277  df-ord 6338  df-on 6339  df-lim 6340  df-suc 6341  df-iota 6467  df-fun 6516  df-fn 6517  df-f 6518  df-f1 6519  df-fo 6520  df-f1o 6521  df-fv 6522  df-riota 7347  df-ov 7393  df-oprab 7394  df-mpo 7395  df-om 7846  df-1st 7971  df-2nd 7972  df-frecs 8263  df-wrecs 8294  df-recs 8343  df-rdg 8381  df-1o 8437  df-oadd 8441  df-er 8674  df-map 8804  df-en 8922  df-dom 8923  df-sdom 8924  df-fin 8925  df-card 9899  df-pnf 11217  df-mnf 11218  df-xr 11219  df-ltxr 11220  df-le 11221  df-sub 11414  df-neg 11415  df-nn 12194  df-n0 12450  df-xnn0 12523  df-z 12537  df-uz 12801  df-fz 13476  df-hash 14303
This theorem is referenced by:  aks6d1c2  42125
  Copyright terms: Public domain W3C validator