MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  hashge2el2dif Structured version   Visualization version   GIF version

Theorem hashge2el2dif 14628
Description: A set with size at least 2 has at least 2 different elements. (Contributed by AV, 18-Mar-2019.)
Assertion
Ref Expression
hashge2el2dif ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦)
Distinct variable groups:   𝑥,𝑦,𝐷   𝑥,𝑉,𝑦

Proof of Theorem hashge2el2dif
StepHypRef Expression
1 fveq2 6885 . . . . . . 7 (𝐷 = {𝑥} → (♯‘𝐷) = (♯‘{𝑥}))
2 hashsng 14516 . . . . . . 7 (𝑥 ∈ 𝐷 → (♯‘{𝑥}) = 1)
31, 2sylan9eqr 2817 . . . . . 6 ((𝑥 ∈ 𝐷 ∧ 𝐷 = {𝑥}) → (♯‘𝐷) = 1)
43ralimiaa 3098 . . . . 5 (∀𝑥 ∈ 𝐷 𝐷 = {𝑥} → ∀𝑥 ∈ 𝐷 (♯‘𝐷) = 1)
5 0re 11313 . . . . . . . . . . . . . 14 0 ∈ ℝ
6 1re 11311 . . . . . . . . . . . . . 14 1 ∈ ℝ
75, 6readdcli 11327 . . . . . . . . . . . . 13 (0 + 1) ∈ ℝ
87a1i 11 . . . . . . . . . . . 12 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → (0 + 1) ∈ ℝ)
9 2re 12420 . . . . . . . . . . . . 13 2 ∈ ℝ
109a1i 11 . . . . . . . . . . . 12 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → 2 ∈ ℝ)
11 hashcl 14503 . . . . . . . . . . . . . 14 (𝐷 ∈ Fin → (♯‘𝐷) ∈ ℕ0)
1211nn0red 12671 . . . . . . . . . . . . 13 (𝐷 ∈ Fin → (♯‘𝐷) ∈ ℝ)
1312adantr 486 . . . . . . . . . . . 12 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → (♯‘𝐷) ∈ ℝ)
148, 10, 133jca 1146 . . . . . . . . . . 11 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → ((0 + 1) ∈ ℝ ∧ 2 ∈ ℝ ∧ (♯‘𝐷) ∈ ℝ))
15 0p1e1 12466 . . . . . . . . . . . . . . 15 (0 + 1) = 1
16 1lt2 12518 . . . . . . . . . . . . . . 15 1 < 2
1715, 16eqbrtri 5125 . . . . . . . . . . . . . 14 (0 + 1) < 2
1817jctl 533 . . . . . . . . . . . . 13 (2 ≤ (♯‘𝐷) → ((0 + 1) < 2 ∧ 2 ≤ (♯‘𝐷)))
1918adantl 487 . . . . . . . . . . . 12 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ((0 + 1) < 2 ∧ 2 ≤ (♯‘𝐷)))
2019adantl 487 . . . . . . . . . . 11 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → ((0 + 1) < 2 ∧ 2 ≤ (♯‘𝐷)))
21 ltleletr 11406 . . . . . . . . . . 11 (((0 + 1) ∈ ℝ ∧ 2 ∈ ℝ ∧ (♯‘𝐷) ∈ ℝ) → (((0 + 1) < 2 ∧ 2 ≤ (♯‘𝐷)) → (0 + 1) ≤ (♯‘𝐷)))
2214, 20, 21sylc 66 . . . . . . . . . 10 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → (0 + 1) ≤ (♯‘𝐷))
2311nn0zd 12721 . . . . . . . . . . . . 13 (𝐷 ∈ Fin → (♯‘𝐷) ∈ ℤ)
24 0z 12707 . . . . . . . . . . . . 13 0 ∈ ℤ
2523, 24jctil 529 . . . . . . . . . . . 12 (𝐷 ∈ Fin → (0 ∈ ℤ ∧ (♯‘𝐷) ∈ ℤ))
2625adantr 486 . . . . . . . . . . 11 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → (0 ∈ ℤ ∧ (♯‘𝐷) ∈ ℤ))
27 zltp1le 12749 . . . . . . . . . . 11 ((0 ∈ ℤ ∧ (♯‘𝐷) ∈ ℤ) → (0 < (♯‘𝐷) ↔ (0 + 1) ≤ (♯‘𝐷)))
2826, 27syl 18 . . . . . . . . . 10 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → (0 < (♯‘𝐷) ↔ (0 + 1) ≤ (♯‘𝐷)))
2922, 28mpbird 260 . . . . . . . . 9 ((𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → 0 < (♯‘𝐷))
30 0ltpnf 13254 . . . . . . . . . 10 0 < +∞
31 simpl 488 . . . . . . . . . . . . 13 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → 𝐷 ∈ 𝑉)
3231anim2i 629 . . . . . . . . . . . 12 ((¬ 𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → (¬ 𝐷 ∈ Fin ∧ 𝐷 ∈ 𝑉))
3332ancomd 467 . . . . . . . . . . 11 ((¬ 𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → (𝐷 ∈ 𝑉 ∧ ¬ 𝐷 ∈ Fin))
34 hashinf 14482 . . . . . . . . . . 11 ((𝐷 ∈ 𝑉 ∧ ¬ 𝐷 ∈ Fin) → (♯‘𝐷) = +∞)
3533, 34syl 18 . . . . . . . . . 10 ((¬ 𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → (♯‘𝐷) = +∞)
3630, 35breqtrrid 5142 . . . . . . . . 9 ((¬ 𝐷 ∈ Fin ∧ (𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷))) → 0 < (♯‘𝐷))
3729, 36pm2.61ian 824 . . . . . . . 8 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → 0 < (♯‘𝐷))
38 hashgt0n0 14512 . . . . . . . 8 ((𝐷 ∈ 𝑉 ∧ 0 < (♯‘𝐷)) → 𝐷 ≠ ∅)
3937, 38syldan 603 . . . . . . 7 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → 𝐷 ≠ ∅)
40 rspn0 4303 . . . . . . 7 (𝐷 ≠ ∅ → (∀𝑥 ∈ 𝐷 (♯‘𝐷) = 1 → (♯‘𝐷) = 1))
4139, 40syl 18 . . . . . 6 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → (∀𝑥 ∈ 𝐷 (♯‘𝐷) = 1 → (♯‘𝐷) = 1))
42 breq2 5106 . . . . . . . . 9 ((♯‘𝐷) = 1 → (2 ≤ (♯‘𝐷) ↔ 2 ≤ 1))
436, 9ltnlei 11434 . . . . . . . . . . 11 (1 < 2 ↔ ¬ 2 ≤ 1)
44 pm2.21 124 . . . . . . . . . . 11 (¬ 2 ≤ 1 → (2 ≤ 1 → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥}))
4543, 44sylbi 220 . . . . . . . . . 10 (1 < 2 → (2 ≤ 1 → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥}))
4616, 45ax-mp 5 . . . . . . . . 9 (2 ≤ 1 → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥})
4742, 46biimtrdi 256 . . . . . . . 8 ((♯‘𝐷) = 1 → (2 ≤ (♯‘𝐷) → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥}))
4847com12 33 . . . . . . 7 (2 ≤ (♯‘𝐷) → ((♯‘𝐷) = 1 → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥}))
4948adantl 487 . . . . . 6 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ((♯‘𝐷) = 1 → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥}))
5041, 49syldc 49 . . . . 5 (∀𝑥 ∈ 𝐷 (♯‘𝐷) = 1 → ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥}))
514, 50syl 18 . . . 4 (∀𝑥 ∈ 𝐷 𝐷 = {𝑥} → ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥}))
52 ax-1 6 . . . 4 (¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥} → ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥}))
5351, 52pm2.61i 184 . . 3 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ¬ ∀𝑥 ∈ 𝐷 𝐷 = {𝑥})
54 eqsn 4784 . . . . . 6 (𝐷 ≠ ∅ → (𝐷 = {𝑥} ↔ ∀𝑦 ∈ 𝐷 𝑦 = 𝑥))
5539, 54syl 18 . . . . 5 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → (𝐷 = {𝑥} ↔ ∀𝑦 ∈ 𝐷 𝑦 = 𝑥))
56 equcom 2050 . . . . . . 7 (𝑦 = 𝑥 ↔ 𝑥 = 𝑦)
5756a1i 11 . . . . . 6 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → (𝑦 = 𝑥 ↔ 𝑥 = 𝑦))
5857ralbidv 3185 . . . . 5 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → (∀𝑦 ∈ 𝐷 𝑦 = 𝑥 ↔ ∀𝑦 ∈ 𝐷 𝑥 = 𝑦))
5955, 58bitrd 282 . . . 4 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → (𝐷 = {𝑥} ↔ ∀𝑦 ∈ 𝐷 𝑥 = 𝑦))
6059ralbidv 3185 . . 3 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → (∀𝑥 ∈ 𝐷 𝐷 = {𝑥} ↔ ∀𝑥 ∈ 𝐷 ∀𝑦 ∈ 𝐷 𝑥 = 𝑦))
6153, 60mtbid 327 . 2 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ¬ ∀𝑥 ∈ 𝐷 ∀𝑦 ∈ 𝐷 𝑥 = 𝑦)
62 df-ne 2956 . . . . . 6 (𝑥 ≠ 𝑦 ↔ ¬ 𝑥 = 𝑦)
6362rexbii 3109 . . . . 5 (∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 ↔ ∃𝑦 ∈ 𝐷 ¬ 𝑥 = 𝑦)
64 rexnal 3114 . . . . 5 (∃𝑦 ∈ 𝐷 ¬ 𝑥 = 𝑦 ↔ ¬ ∀𝑦 ∈ 𝐷 𝑥 = 𝑦)
6563, 64bitri 278 . . . 4 (∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 ↔ ¬ ∀𝑦 ∈ 𝐷 𝑥 = 𝑦)
6665rexbii 3109 . . 3 (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 ↔ ∃𝑥 ∈ 𝐷 ¬ ∀𝑦 ∈ 𝐷 𝑥 = 𝑦)
67 rexnal 3114 . . 3 (∃𝑥 ∈ 𝐷 ¬ ∀𝑦 ∈ 𝐷 𝑥 = 𝑦 ↔ ¬ ∀𝑥 ∈ 𝐷 ∀𝑦 ∈ 𝐷 𝑥 = 𝑦)
6866, 67bitri 278 . 2 (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 ↔ ¬ ∀𝑥 ∈ 𝐷 ∀𝑦 ∈ 𝐷 𝑥 = 𝑦)
6961, 68sylibr 237 1 ((𝐷 ∈ 𝑉 ∧ 2 ≤ (♯‘𝐷)) → ∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144   ≠ wne 2955  ∀wral 3076  ∃wrex 3086  ∅c0 4278  {csn 4584   class class class wbr 5102  ‘cfv 6538  (class class class)co 7420  Fincfn 8976  ℝcr 11202  0cc0 11203  1c1 11204   + caddc 11206  +∞cpnf 11343   < clt 11346   ≤ cle 11347  2c2 12400  ℤcz 12696  ♯chash 14477
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7751  ax-cnex 11259  ax-resscn 11260  ax-1cn 11261  ax-icn 11262  ax-addcl 11263  ax-addrcl 11264  ax-mulcl 11265  ax-mulrcl 11266  ax-mulcom 11267  ax-addass 11268  ax-mulass 11269  ax-distr 11270  ax-i2m1 11271  ax-1ne0 11272  ax-1rid 11273  ax-rnegex 11274  ax-rrecex 11275  ax-cnre 11276  ax-pre-lttri 11277  ax-pre-lttrn 11278  ax-pre-ltadd 11279  ax-pre-mulgt0 11280
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-pss 4014  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-int 4907  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5545  df-eprel 5550  df-po 5558  df-so 5559  df-fr 5603  df-we 5605  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-pred 6304  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-riota 7377  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7878  df-1st 8001  df-2nd 8002  df-frecs 8302  df-wrecs 8333  df-recs 8382  df-rdg 8421  df-1o 8479  df-er 8720  df-en 8977  df-dom 8978  df-sdom 8979  df-fin 8980  df-card 10023  df-pnf 11348  df-mnf 11349  df-xr 11350  df-ltxr 11351  df-le 11352  df-sub 11546  df-neg 11547  df-nn 12339  df-2 12408  df-n0 12610  df-xnn0 12683  df-z 12697  df-uz 12969  df-fz 13643  df-hash 14478
This theorem is used by:  hashge2el2difb  14630  fundmge2nop0  14650  tglowdim1  28968  cyc3conja  33764
  Copyright terms: Public domain W3C validator