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

Theorem hashnexinj 41654
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. (Contributed by metakunt, 2-May-2025.)
Hypotheses
Ref Expression
hashnexinj.1 (𝜑𝐴 ∈ Fin)
hashnexinj.2 (𝜑𝐵 ∈ Fin)
hashnexinj.3 (𝜑 → (♯‘𝐵) < (♯‘𝐴))
hashnexinj.4 (𝜑𝐹:𝐴𝐵)
Assertion
Ref Expression
hashnexinj (𝜑 → ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐹,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐵(𝑥,𝑦)

Proof of Theorem hashnexinj
Dummy variable 𝑓 is distinct from all other variables.
StepHypRef Expression
1 hashnexinj.4 . . 3 (𝜑𝐹:𝐴𝐵)
2 hashnexinj.3 . . . . . . . . 9 (𝜑 → (♯‘𝐵) < (♯‘𝐴))
3 hashnexinj.2 . . . . . . . . . . . 12 (𝜑𝐵 ∈ Fin)
4 hashcl 14345 . . . . . . . . . . . 12 (𝐵 ∈ Fin → (♯‘𝐵) ∈ ℕ0)
53, 4syl 17 . . . . . . . . . . 11 (𝜑 → (♯‘𝐵) ∈ ℕ0)
65nn0red 12561 . . . . . . . . . 10 (𝜑 → (♯‘𝐵) ∈ ℝ)
7 hashnexinj.1 . . . . . . . . . . . 12 (𝜑𝐴 ∈ Fin)
8 hashcl 14345 . . . . . . . . . . . 12 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
97, 8syl 17 . . . . . . . . . . 11 (𝜑 → (♯‘𝐴) ∈ ℕ0)
109nn0red 12561 . . . . . . . . . 10 (𝜑 → (♯‘𝐴) ∈ ℝ)
116, 10ltnled 11389 . . . . . . . . 9 (𝜑 → ((♯‘𝐵) < (♯‘𝐴) ↔ ¬ (♯‘𝐴) ≤ (♯‘𝐵)))
122, 11mpbid 231 . . . . . . . 8 (𝜑 → ¬ (♯‘𝐴) ≤ (♯‘𝐵))
13 hashdom 14368 . . . . . . . . . . 11 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → ((♯‘𝐴) ≤ (♯‘𝐵) ↔ 𝐴𝐵))
147, 3, 13syl2anc 582 . . . . . . . . . 10 (𝜑 → ((♯‘𝐴) ≤ (♯‘𝐵) ↔ 𝐴𝐵))
1514notbid 317 . . . . . . . . 9 (𝜑 → (¬ (♯‘𝐴) ≤ (♯‘𝐵) ↔ ¬ 𝐴𝐵))
1615biimpd 228 . . . . . . . 8 (𝜑 → (¬ (♯‘𝐴) ≤ (♯‘𝐵) → ¬ 𝐴𝐵))
1712, 16mpd 15 . . . . . . 7 (𝜑 → ¬ 𝐴𝐵)
18 brdomg 8973 . . . . . . . . . 10 (𝐵 ∈ Fin → (𝐴𝐵 ↔ ∃𝑓 𝑓:𝐴1-1𝐵))
1918notbid 317 . . . . . . . . 9 (𝐵 ∈ Fin → (¬ 𝐴𝐵 ↔ ¬ ∃𝑓 𝑓:𝐴1-1𝐵))
2019biimpd 228 . . . . . . . 8 (𝐵 ∈ Fin → (¬ 𝐴𝐵 → ¬ ∃𝑓 𝑓:𝐴1-1𝐵))
213, 20syl 17 . . . . . . 7 (𝜑 → (¬ 𝐴𝐵 → ¬ ∃𝑓 𝑓:𝐴1-1𝐵))
2217, 21mpd 15 . . . . . 6 (𝜑 → ¬ ∃𝑓 𝑓:𝐴1-1𝐵)
23 alnex 1775 . . . . . 6 (∀𝑓 ¬ 𝑓:𝐴1-1𝐵 ↔ ¬ ∃𝑓 𝑓:𝐴1-1𝐵)
2422, 23sylibr 233 . . . . 5 (𝜑 → ∀𝑓 ¬ 𝑓:𝐴1-1𝐵)
253, 7, 1elmapdd 8856 . . . . . 6 (𝜑𝐹 ∈ (𝐵m 𝐴))
26 f1eq1 6782 . . . . . . . 8 (𝑓 = 𝐹 → (𝑓:𝐴1-1𝐵𝐹:𝐴1-1𝐵))
2726notbid 317 . . . . . . 7 (𝑓 = 𝐹 → (¬ 𝑓:𝐴1-1𝐵 ↔ ¬ 𝐹:𝐴1-1𝐵))
2827spcgv 3576 . . . . . 6 (𝐹 ∈ (𝐵m 𝐴) → (∀𝑓 ¬ 𝑓:𝐴1-1𝐵 → ¬ 𝐹:𝐴1-1𝐵))
2925, 28syl 17 . . . . 5 (𝜑 → (∀𝑓 ¬ 𝑓:𝐴1-1𝐵 → ¬ 𝐹:𝐴1-1𝐵))
3024, 29mpd 15 . . . 4 (𝜑 → ¬ 𝐹:𝐴1-1𝐵)
31 dff13 7260 . . . . . . . 8 (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
32 iman 400 . . . . . . . . . . . 12 (((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ¬ ((𝐹𝑥) = (𝐹𝑦) ∧ ¬ 𝑥 = 𝑦))
33 df-ne 2931 . . . . . . . . . . . . 13 (𝑥𝑦 ↔ ¬ 𝑥 = 𝑦)
3433anbi2i 621 . . . . . . . . . . . 12 (((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦) ↔ ((𝐹𝑥) = (𝐹𝑦) ∧ ¬ 𝑥 = 𝑦))
3532, 34xchbinxr 334 . . . . . . . . . . 11 (((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ¬ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))
36352ralbii 3118 . . . . . . . . . 10 (∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ∀𝑥𝐴𝑦𝐴 ¬ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))
37 ralnex2 3123 . . . . . . . . . 10 (∀𝑥𝐴𝑦𝐴 ¬ ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦) ↔ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))
3836, 37bitri 274 . . . . . . . . 9 (∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))
3938anbi2i 621 . . . . . . . 8 ((𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)) ↔ (𝐹:𝐴𝐵 ∧ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)))
4031, 39bitri 274 . . . . . . 7 (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)))
4140a1i 11 . . . . . 6 (𝜑 → (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))))
4241notbid 317 . . . . 5 (𝜑 → (¬ 𝐹:𝐴1-1𝐵 ↔ ¬ (𝐹:𝐴𝐵 ∧ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))))
4342biimpd 228 . . . 4 (𝜑 → (¬ 𝐹:𝐴1-1𝐵 → ¬ (𝐹:𝐴𝐵 ∧ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))))
4430, 43mpd 15 . . 3 (𝜑 → ¬ (𝐹:𝐴𝐵 ∧ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦)))
451, 44mpnanrd 408 . 2 (𝜑 → ¬ ¬ ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))
4645notnotrd 133 1 (𝜑 → ∃𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) ∧ 𝑥𝑦))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 394  wal 1531   = wceq 1533  wex 1773  wcel 2098  wne 2930  wral 3051  wrex 3060   class class class wbr 5143  wf 6538  1-1wf1 6539  cfv 6542  (class class class)co 7415  m cmap 8841  cdom 8958  Fincfn 8960   < clt 11276  cle 11277  0cn0 12500  chash 14319
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1905  ax-6 1963  ax-7 2003  ax-8 2100  ax-9 2108  ax-10 2129  ax-11 2146  ax-12 2166  ax-ext 2696  ax-sep 5294  ax-nul 5301  ax-pow 5359  ax-pr 5423  ax-un 7737  ax-cnex 11192  ax-resscn 11193  ax-1cn 11194  ax-icn 11195  ax-addcl 11196  ax-addrcl 11197  ax-mulcl 11198  ax-mulrcl 11199  ax-mulcom 11200  ax-addass 11201  ax-mulass 11202  ax-distr 11203  ax-i2m1 11204  ax-1ne0 11205  ax-1rid 11206  ax-rnegex 11207  ax-rrecex 11208  ax-cnre 11209  ax-pre-lttri 11210  ax-pre-lttrn 11211  ax-pre-ltadd 11212  ax-pre-mulgt0 11213
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 846  df-3or 1085  df-3an 1086  df-tru 1536  df-fal 1546  df-ex 1774  df-nf 1778  df-sb 2060  df-mo 2528  df-eu 2557  df-clab 2703  df-cleq 2717  df-clel 2802  df-nfc 2877  df-ne 2931  df-nel 3037  df-ral 3052  df-rex 3061  df-reu 3365  df-rab 3420  df-v 3465  df-sbc 3770  df-csb 3886  df-dif 3943  df-un 3945  df-in 3947  df-ss 3957  df-pss 3960  df-nul 4319  df-if 4525  df-pw 4600  df-sn 4625  df-pr 4627  df-op 4631  df-uni 4904  df-int 4945  df-iun 4993  df-br 5144  df-opab 5206  df-mpt 5227  df-tr 5261  df-id 5570  df-eprel 5576  df-po 5584  df-so 5585  df-fr 5627  df-we 5629  df-xp 5678  df-rel 5679  df-cnv 5680  df-co 5681  df-dm 5682  df-rn 5683  df-res 5684  df-ima 5685  df-pred 6300  df-ord 6367  df-on 6368  df-lim 6369  df-suc 6370  df-iota 6494  df-fun 6544  df-fn 6545  df-f 6546  df-f1 6547  df-fo 6548  df-f1o 6549  df-fv 6550  df-riota 7371  df-ov 7418  df-oprab 7419  df-mpo 7420  df-om 7868  df-1st 7989  df-2nd 7990  df-frecs 8283  df-wrecs 8314  df-recs 8388  df-rdg 8427  df-1o 8483  df-oadd 8487  df-er 8721  df-map 8843  df-en 8961  df-dom 8962  df-sdom 8963  df-fin 8964  df-card 9960  df-pnf 11278  df-mnf 11279  df-xr 11280  df-ltxr 11281  df-le 11282  df-sub 11474  df-neg 11475  df-nn 12241  df-n0 12501  df-xnn0 12573  df-z 12587  df-uz 12851  df-fz 13515  df-hash 14320
This theorem is referenced by:  hashnexinjle  41655
  Copyright terms: Public domain W3C validator
OSZAR »