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 43446
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 14540 . . . . . . . . . . . 12 (𝐵 ∈ Fin → (♯‘𝐵) ∈ ℕ0)
53, 4syl 18 . . . . . . . . . . 11 (𝜑 → (♯‘𝐵) ∈ ℕ0)
65nn0red 12707 . . . . . . . . . 10 (𝜑 → (♯‘𝐵) ∈ ℝ)
7 hashnexinj.1 . . . . . . . . . . . 12 (𝜑 → 𝐴 ∈ Fin)
8 hashcl 14540 . . . . . . . . . . . 12 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
97, 8syl 18 . . . . . . . . . . 11 (𝜑 → (♯‘𝐴) ∈ ℕ0)
109nn0red 12707 . . . . . . . . . 10 (𝜑 → (♯‘𝐴) ∈ ℝ)
116, 10ltnled 11495 . . . . . . . . 9 (𝜑 → ((♯‘𝐵) < (♯‘𝐴) ↔ ¬ (♯‘𝐴) ≤ (♯‘𝐵)))
122, 11mpbid 235 . . . . . . . 8 (𝜑 → ¬ (♯‘𝐴) ≤ (♯‘𝐵))
13 hashdom 14563 . . . . . . . . . . 11 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → ((♯‘𝐴) ≤ (♯‘𝐵) ↔ 𝐴 ≼ 𝐵))
147, 3, 13syl2anc 596 . . . . . . . . . 10 (𝜑 → ((♯‘𝐴) ≤ (♯‘𝐵) ↔ 𝐴 ≼ 𝐵))
1514notbid 321 . . . . . . . . 9 (𝜑 → (¬ (♯‘𝐴) ≤ (♯‘𝐵) ↔ ¬ 𝐴 ≼ 𝐵))
1615biimpd 232 . . . . . . . 8 (𝜑 → (¬ (♯‘𝐴) ≤ (♯‘𝐵) → ¬ 𝐴 ≼ 𝐵))
1712, 16mpd 16 . . . . . . 7 (𝜑 → ¬ 𝐴 ≼ 𝐵)
18 brdomg 9022 . . . . . . . . . 10 (𝐵 ∈ Fin → (𝐴 ≼ 𝐵 ↔ ∃𝑓 𝑓:𝐴⟶1-1𝐵))
1918notbid 321 . . . . . . . . 9 (𝐵 ∈ Fin → (¬ 𝐴 ≼ 𝐵 ↔ ¬ ∃𝑓 𝑓:𝐴⟶1-1𝐵))
2019biimpd 232 . . . . . . . 8 (𝐵 ∈ Fin → (¬ 𝐴 ≼ 𝐵 → ¬ ∃𝑓 𝑓:𝐴⟶1-1𝐵))
213, 20syl 18 . . . . . . 7 (𝜑 → (¬ 𝐴 ≼ 𝐵 → ¬ ∃𝑓 𝑓:𝐴⟶1-1𝐵))
2217, 21mpd 16 . . . . . 6 (𝜑 → ¬ ∃𝑓 𝑓:𝐴⟶1-1𝐵)
23 alnex 1816 . . . . . 6 (∀𝑓 ¬ 𝑓:𝐴⟶1-1𝐵 ↔ ¬ ∃𝑓 𝑓:𝐴⟶1-1𝐵)
2422, 23sylibr 237 . . . . 5 (𝜑 → ∀𝑓 ¬ 𝑓:𝐴⟶1-1𝐵)
253, 7, 1elmapdd 8898 . . . . . 6 (𝜑 → 𝐹 ∈ (𝐵 ↑m 𝐴))
26 f1eq1 6802 . . . . . . . 8 (𝑓 = 𝐹 → (𝑓:𝐴⟶1-1𝐵 ↔ 𝐹:𝐴⟶1-1𝐵))
2726notbid 321 . . . . . . 7 (𝑓 = 𝐹 → (¬ 𝑓:𝐴⟶1-1𝐵 ↔ ¬ 𝐹:𝐴⟶1-1𝐵))
2827spcgv 3553 . . . . . 6 (𝐹 ∈ (𝐵 ↑m 𝐴) → (∀𝑓 ¬ 𝑓:𝐴⟶1-1𝐵 → ¬ 𝐹:𝐴⟶1-1𝐵))
2925, 28syl 18 . . . . 5 (𝜑 → (∀𝑓 ¬ 𝑓:𝐴⟶1-1𝐵 → ¬ 𝐹:𝐴⟶1-1𝐵))
3024, 29mpd 16 . . . 4 (𝜑 → ¬ 𝐹:𝐴⟶1-1𝐵)
31 dff13 7288 . . . . . . . 8 (𝐹:𝐴⟶1-1𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) → 𝑥 = 𝑦)))
32 iman 407 . . . . . . . . . . . 12 (((𝐹‘𝑥) = (𝐹‘𝑦) → 𝑥 = 𝑦) ↔ ¬ ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ ¬ 𝑥 = 𝑦))
33 df-ne 2963 . . . . . . . . . . . . 13 (𝑥 ≠ 𝑦 ↔ ¬ 𝑥 = 𝑦)
3433anbi2i 635 . . . . . . . . . . . 12 (((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦) ↔ ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ ¬ 𝑥 = 𝑦))
3532, 34xchbinxr 338 . . . . . . . . . . 11 (((𝐹‘𝑥) = (𝐹‘𝑦) → 𝑥 = 𝑦) ↔ ¬ ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))
36352ralbii 3144 . . . . . . . . . 10 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) → 𝑥 = 𝑦) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ¬ ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))
37 ralnex2 3149 . . . . . . . . . 10 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ¬ ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦) ↔ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))
3836, 37bitri 278 . . . . . . . . 9 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) → 𝑥 = 𝑦) ↔ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))
3938anbi2i 635 . . . . . . . 8 ((𝐹:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) → 𝑥 = 𝑦)) ↔ (𝐹:𝐴⟶𝐵 ∧ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦)))
4031, 39bitri 278 . . . . . . 7 (𝐹:𝐴⟶1-1𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦)))
4140a1i 11 . . . . . 6 (𝜑 → (𝐹:𝐴⟶1-1𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))))
4241notbid 321 . . . . 5 (𝜑 → (¬ 𝐹:𝐴⟶1-1𝐵 ↔ ¬ (𝐹:𝐴⟶𝐵 ∧ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))))
4342biimpd 232 . . . 4 (𝜑 → (¬ 𝐹:𝐴⟶1-1𝐵 → ¬ (𝐹:𝐴⟶𝐵 ∧ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))))
4430, 43mpd 16 . . 3 (𝜑 → ¬ (𝐹:𝐴⟶𝐵 ∧ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦)))
451, 44mpnanrd 415 . 2 (𝜑 → ¬ ¬ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))
4645notnotrd 134 1 (𝜑 → ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥 ≠ 𝑦))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1570   = wceq 1572  ∃wex 1814   ∈ wcel 2150   ≠ wne 2962  ∀wral 3083  ∃wrex 3093   class class class wbr 5107  ⟶wf 6561  ⟶1-1wf1 6562  ‘cfv 6565  (class class class)co 7450   ↑m cmap 8884   ≼ cdom 9008  Fincfn 9010   < clt 11381   ≤ cle 11382  ℕ0cn0 12645  ♯chash 14514
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-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782  ax-cnex 11294  ax-resscn 11295  ax-1cn 11296  ax-icn 11297  ax-addcl 11298  ax-addrcl 11299  ax-mulcl 11300  ax-mulrcl 11301  ax-mulcom 11302  ax-addass 11303  ax-mulass 11304  ax-distr 11305  ax-i2m1 11306  ax-1ne0 11307  ax-1rid 11308  ax-rnegex 11309  ax-rrecex 11310  ax-cnre 11311  ax-pre-lttri 11312  ax-pre-lttrn 11313  ax-pre-ltadd 11314  ax-pre-mulgt0 11315
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  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-nel 3069  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-pss 4016  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-int 4912  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  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-pred 6329  df-ord 6390  df-on 6391  df-lim 6392  df-suc 6393  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-riota 7407  df-ov 7453  df-oprab 7454  df-mpo 7455  df-om 7911  df-1st 8034  df-2nd 8035  df-frecs 8336  df-wrecs 8367  df-recs 8416  df-rdg 8455  df-1o 8513  df-oadd 8517  df-er 8754  df-map 8886  df-en 9011  df-dom 9012  df-sdom 9013  df-fin 9014  df-card 10056  df-pnf 11383  df-mnf 11384  df-xr 11385  df-ltxr 11386  df-le 11387  df-sub 11581  df-neg 11582  df-nn 12375  df-n0 12646  df-xnn0 12719  df-z 12733  df-uz 13005  df-fz 13679  df-hash 14515
This theorem is used by:  hashnexinjle  43447
  Copyright terms: Public domain W3C validator