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

Theorem hashge2el2difr 14680
Description: A set with at least 2 different elements has size at least 2. (Contributed by AV, 14-Oct-2020.)
Assertion
Ref Expression
hashge2el2difr ((𝐷 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦) → 2 ≤ (♯‘𝐷))
Distinct variable groups:   𝑥,𝑦,𝐷   𝑥,𝑉,𝑦

Proof of Theorem hashge2el2difr
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 hashv01gt1 14543 . . 3 (𝐷 ∈ 𝑉 → ((♯‘𝐷) = 0 ∨ (♯‘𝐷) = 1 ∨ 1 < (♯‘𝐷)))
2 hasheq0 14561 . . . . . 6 (𝐷 ∈ 𝑉 → ((♯‘𝐷) = 0 ↔ 𝐷 = ∅))
3 rexeq 3322 . . . . . . 7 (𝐷 = ∅ → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 ↔ ∃𝑥 ∈ ∅ ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦))
4 rex0 4313 . . . . . . . 8 ¬ ∃𝑥 ∈ ∅ ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦
5 pm2.21 124 . . . . . . . 8 (¬ ∃𝑥 ∈ ∅ ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → (∃𝑥 ∈ ∅ ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷)))
64, 5mp1i 14 . . . . . . 7 (𝐷 = ∅ → (∃𝑥 ∈ ∅ ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷)))
73, 6sylbid 243 . . . . . 6 (𝐷 = ∅ → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷)))
82, 7biimtrdi 256 . . . . 5 (𝐷 ∈ 𝑉 → ((♯‘𝐷) = 0 → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷))))
98com12 33 . . . 4 ((♯‘𝐷) = 0 → (𝐷 ∈ 𝑉 → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷))))
10 hash1snb 14618 . . . . . 6 (𝐷 ∈ 𝑉 → ((♯‘𝐷) = 1 ↔ ∃𝑧 𝐷 = {𝑧}))
11 rexeq 3322 . . . . . . . . . 10 (𝐷 = {𝑧} → (∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 ↔ ∃𝑦 ∈ {𝑧}𝑥 ≠ 𝑦))
1211rexeqbi1dv 3337 . . . . . . . . 9 (𝐷 = {𝑧} → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 ↔ ∃𝑥 ∈ {𝑧}∃𝑦 ∈ {𝑧}𝑥 ≠ 𝑦))
13 vex 3460 . . . . . . . . . . 11 𝑧 ∈ V
14 neeq1 3027 . . . . . . . . . . . 12 (𝑥 = 𝑧 → (𝑥 ≠ 𝑦 ↔ 𝑧 ≠ 𝑦))
1514rexbidv 3196 . . . . . . . . . . 11 (𝑥 = 𝑧 → (∃𝑦 ∈ {𝑧}𝑥 ≠ 𝑦 ↔ ∃𝑦 ∈ {𝑧}𝑧 ≠ 𝑦))
1613, 15rexsn 4646 . . . . . . . . . 10 (∃𝑥 ∈ {𝑧}∃𝑦 ∈ {𝑧}𝑥 ≠ 𝑦 ↔ ∃𝑦 ∈ {𝑧}𝑧 ≠ 𝑦)
17 neeq2 3028 . . . . . . . . . . 11 (𝑦 = 𝑧 → (𝑧 ≠ 𝑦 ↔ 𝑧 ≠ 𝑧))
1813, 17rexsn 4646 . . . . . . . . . 10 (∃𝑦 ∈ {𝑧}𝑧 ≠ 𝑦 ↔ 𝑧 ≠ 𝑧)
1916, 18bitri 278 . . . . . . . . 9 (∃𝑥 ∈ {𝑧}∃𝑦 ∈ {𝑧}𝑥 ≠ 𝑦 ↔ 𝑧 ≠ 𝑧)
2012, 19bitrdi 290 . . . . . . . 8 (𝐷 = {𝑧} → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 ↔ 𝑧 ≠ 𝑧))
21 equid 2049 . . . . . . . . 9 𝑧 = 𝑧
22 eqneqall 2976 . . . . . . . . 9 (𝑧 = 𝑧 → (𝑧 ≠ 𝑧 → 2 ≤ (♯‘𝐷)))
2321, 22mp1i 14 . . . . . . . 8 (𝐷 = {𝑧} → (𝑧 ≠ 𝑧 → 2 ≤ (♯‘𝐷)))
2420, 23sylbid 243 . . . . . . 7 (𝐷 = {𝑧} → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷)))
2524exlimiv 1967 . . . . . 6 (∃𝑧 𝐷 = {𝑧} → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷)))
2610, 25biimtrdi 256 . . . . 5 (𝐷 ∈ 𝑉 → ((♯‘𝐷) = 1 → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷))))
2726com12 33 . . . 4 ((♯‘𝐷) = 1 → (𝐷 ∈ 𝑉 → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷))))
28 hashnn0pnf 14540 . . . . . . . 8 (𝐷 ∈ 𝑉 → ((♯‘𝐷) ∈ ℕ0 ∨ (♯‘𝐷) = +∞))
29 1z 12777 . . . . . . . . . . 11 1 ∈ ℤ
30 nn0z 12768 . . . . . . . . . . 11 ((♯‘𝐷) ∈ ℕ0 → (♯‘𝐷) ∈ ℤ)
31 zltp1le 12797 . . . . . . . . . . . 12 ((1 ∈ ℤ ∧ (♯‘𝐷) ∈ ℤ) → (1 < (♯‘𝐷) ↔ (1 + 1) ≤ (♯‘𝐷)))
3231biimpd 232 . . . . . . . . . . 11 ((1 ∈ ℤ ∧ (♯‘𝐷) ∈ ℤ) → (1 < (♯‘𝐷) → (1 + 1) ≤ (♯‘𝐷)))
3329, 30, 32sylancr 599 . . . . . . . . . 10 ((♯‘𝐷) ∈ ℕ0 → (1 < (♯‘𝐷) → (1 + 1) ≤ (♯‘𝐷)))
34 df-2 12456 . . . . . . . . . . 11 2 = (1 + 1)
3534breq1i 5118 . . . . . . . . . 10 (2 ≤ (♯‘𝐷) ↔ (1 + 1) ≤ (♯‘𝐷))
3633, 35imbitrrdi 255 . . . . . . . . 9 ((♯‘𝐷) ∈ ℕ0 → (1 < (♯‘𝐷) → 2 ≤ (♯‘𝐷)))
37 2re 12468 . . . . . . . . . . . . 13 2 ∈ ℝ
3837rexri 11417 . . . . . . . . . . . 12 2 ∈ ℝ*
39 pnfge 13310 . . . . . . . . . . . 12 (2 ∈ ℝ* → 2 ≤ +∞)
4038, 39mp1i 14 . . . . . . . . . . 11 ((♯‘𝐷) = +∞ → 2 ≤ +∞)
41 breq2 5115 . . . . . . . . . . 11 ((♯‘𝐷) = +∞ → (2 ≤ (♯‘𝐷) ↔ 2 ≤ +∞))
4240, 41mpbird 260 . . . . . . . . . 10 ((♯‘𝐷) = +∞ → 2 ≤ (♯‘𝐷))
4342a1d 26 . . . . . . . . 9 ((♯‘𝐷) = +∞ → (1 < (♯‘𝐷) → 2 ≤ (♯‘𝐷)))
4436, 43jaoi 871 . . . . . . . 8 (((♯‘𝐷) ∈ ℕ0 ∨ (♯‘𝐷) = +∞) → (1 < (♯‘𝐷) → 2 ≤ (♯‘𝐷)))
4528, 44syl 18 . . . . . . 7 (𝐷 ∈ 𝑉 → (1 < (♯‘𝐷) → 2 ≤ (♯‘𝐷)))
4645impcom 413 . . . . . 6 ((1 < (♯‘𝐷) ∧ 𝐷 ∈ 𝑉) → 2 ≤ (♯‘𝐷))
4746a1d 26 . . . . 5 ((1 < (♯‘𝐷) ∧ 𝐷 ∈ 𝑉) → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷)))
4847ex 418 . . . 4 (1 < (♯‘𝐷) → (𝐷 ∈ 𝑉 → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷))))
499, 27, 483jaoi 1457 . . 3 (((♯‘𝐷) = 0 ∨ (♯‘𝐷) = 1 ∨ 1 < (♯‘𝐷)) → (𝐷 ∈ 𝑉 → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷))))
501, 49mpcom 39 . 2 (𝐷 ∈ 𝑉 → (∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦 → 2 ≤ (♯‘𝐷)))
5150imp 412 1 ((𝐷 ∈ 𝑉 ∧ ∃𝑥 ∈ 𝐷 ∃𝑦 ∈ 𝐷 𝑥 ≠ 𝑦) → 2 ≤ (♯‘𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   ∨ wo 861   ∨ w3o 1103   = wceq 1572  ∃wex 1814   ∈ wcel 2151   ≠ wne 2965  ∃wrex 3096  ∅c0 4283  {csn 4590   class class class wbr 5111  ‘cfv 6573  (class class class)co 7462  0cc0 11250  1c1 11251   + caddc 11253  +∞cpnf 11390  ℝ*cxr 11392   < clt 11393   ≤ cle 11394  2c2 12448  ℕ0cn0 12657  ℤcz 12744  ♯chash 14528
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 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7794  ax-cnex 11306  ax-resscn 11307  ax-1cn 11308  ax-icn 11309  ax-addcl 11310  ax-addrcl 11311  ax-mulcl 11312  ax-mulrcl 11313  ax-mulcom 11314  ax-addass 11315  ax-mulass 11316  ax-distr 11317  ax-i2m1 11318  ax-1ne0 11319  ax-1rid 11320  ax-rnegex 11321  ax-rrecex 11322  ax-cnre 11323  ax-pre-lttri 11324  ax-pre-lttrn 11325  ax-pre-ltadd 11326  ax-pre-mulgt0 11327
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 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-int 4916  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6337  df-ord 6398  df-on 6399  df-lim 6400  df-suc 6401  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-riota 7418  df-ov 7465  df-oprab 7466  df-mpo 7467  df-om 7923  df-1st 8046  df-2nd 8047  df-frecs 8348  df-wrecs 8379  df-recs 8428  df-rdg 8467  df-1o 8525  df-oadd 8529  df-er 8766  df-en 9023  df-dom 9024  df-sdom 9025  df-fin 9026  df-dju 10030  df-card 10068  df-pnf 11395  df-mnf 11396  df-xr 11397  df-ltxr 11398  df-le 11399  df-sub 11593  df-neg 11594  df-nn 12387  df-2 12456  df-n0 12658  df-xnn0 12731  df-z 12745  df-uz 13017  df-fz 13691  df-hash 14529
This theorem is used by:  hashge2el2difb  14681  hashdmpropge2  14682
  Copyright terms: Public domain W3C validator