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

Theorem hashge2el2difr 14492
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 14354 . . 3 (𝐷𝑉 → ((♯‘𝐷) = 0 ∨ (♯‘𝐷) = 1 ∨ 1 < (♯‘𝐷)))
2 hasheq0 14372 . . . . . 6 (𝐷𝑉 → ((♯‘𝐷) = 0 ↔ 𝐷 = ∅))
3 rexeq 3311 . . . . . . 7 (𝐷 = ∅ → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 ↔ ∃𝑥 ∈ ∅ ∃𝑦𝐷 𝑥𝑦))
4 rex0 4353 . . . . . . . 8 ¬ ∃𝑥 ∈ ∅ ∃𝑦𝐷 𝑥𝑦
5 pm2.21 123 . . . . . . . 8 (¬ ∃𝑥 ∈ ∅ ∃𝑦𝐷 𝑥𝑦 → (∃𝑥 ∈ ∅ ∃𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷)))
64, 5mp1i 13 . . . . . . 7 (𝐷 = ∅ → (∃𝑥 ∈ ∅ ∃𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷)))
73, 6sylbid 239 . . . . . 6 (𝐷 = ∅ → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷)))
82, 7biimtrdi 252 . . . . 5 (𝐷𝑉 → ((♯‘𝐷) = 0 → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷))))
98com12 32 . . . 4 ((♯‘𝐷) = 0 → (𝐷𝑉 → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷))))
10 hash1snb 14428 . . . . . 6 (𝐷𝑉 → ((♯‘𝐷) = 1 ↔ ∃𝑧 𝐷 = {𝑧}))
11 rexeq 3311 . . . . . . . . . 10 (𝐷 = {𝑧} → (∃𝑦𝐷 𝑥𝑦 ↔ ∃𝑦 ∈ {𝑧}𝑥𝑦))
1211rexeqbi1dv 3324 . . . . . . . . 9 (𝐷 = {𝑧} → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 ↔ ∃𝑥 ∈ {𝑧}∃𝑦 ∈ {𝑧}𝑥𝑦))
13 vex 3466 . . . . . . . . . . 11 𝑧 ∈ V
14 neeq1 2993 . . . . . . . . . . . 12 (𝑥 = 𝑧 → (𝑥𝑦𝑧𝑦))
1514rexbidv 3169 . . . . . . . . . . 11 (𝑥 = 𝑧 → (∃𝑦 ∈ {𝑧}𝑥𝑦 ↔ ∃𝑦 ∈ {𝑧}𝑧𝑦))
1613, 15rexsn 4681 . . . . . . . . . 10 (∃𝑥 ∈ {𝑧}∃𝑦 ∈ {𝑧}𝑥𝑦 ↔ ∃𝑦 ∈ {𝑧}𝑧𝑦)
17 neeq2 2994 . . . . . . . . . . 11 (𝑦 = 𝑧 → (𝑧𝑦𝑧𝑧))
1813, 17rexsn 4681 . . . . . . . . . 10 (∃𝑦 ∈ {𝑧}𝑧𝑦𝑧𝑧)
1916, 18bitri 274 . . . . . . . . 9 (∃𝑥 ∈ {𝑧}∃𝑦 ∈ {𝑧}𝑥𝑦𝑧𝑧)
2012, 19bitrdi 286 . . . . . . . 8 (𝐷 = {𝑧} → (∃𝑥𝐷𝑦𝐷 𝑥𝑦𝑧𝑧))
21 equid 2008 . . . . . . . . 9 𝑧 = 𝑧
22 eqneqall 2941 . . . . . . . . 9 (𝑧 = 𝑧 → (𝑧𝑧 → 2 ≤ (♯‘𝐷)))
2321, 22mp1i 13 . . . . . . . 8 (𝐷 = {𝑧} → (𝑧𝑧 → 2 ≤ (♯‘𝐷)))
2420, 23sylbid 239 . . . . . . 7 (𝐷 = {𝑧} → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷)))
2524exlimiv 1926 . . . . . 6 (∃𝑧 𝐷 = {𝑧} → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷)))
2610, 25biimtrdi 252 . . . . 5 (𝐷𝑉 → ((♯‘𝐷) = 1 → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷))))
2726com12 32 . . . 4 ((♯‘𝐷) = 1 → (𝐷𝑉 → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷))))
28 hashnn0pnf 14351 . . . . . . . 8 (𝐷𝑉 → ((♯‘𝐷) ∈ ℕ0 ∨ (♯‘𝐷) = +∞))
29 1z 12635 . . . . . . . . . . 11 1 ∈ ℤ
30 nn0z 12626 . . . . . . . . . . 11 ((♯‘𝐷) ∈ ℕ0 → (♯‘𝐷) ∈ ℤ)
31 zltp1le 12655 . . . . . . . . . . . 12 ((1 ∈ ℤ ∧ (♯‘𝐷) ∈ ℤ) → (1 < (♯‘𝐷) ↔ (1 + 1) ≤ (♯‘𝐷)))
3231biimpd 228 . . . . . . . . . . 11 ((1 ∈ ℤ ∧ (♯‘𝐷) ∈ ℤ) → (1 < (♯‘𝐷) → (1 + 1) ≤ (♯‘𝐷)))
3329, 30, 32sylancr 585 . . . . . . . . . 10 ((♯‘𝐷) ∈ ℕ0 → (1 < (♯‘𝐷) → (1 + 1) ≤ (♯‘𝐷)))
34 df-2 12318 . . . . . . . . . . 11 2 = (1 + 1)
3534breq1i 5150 . . . . . . . . . 10 (2 ≤ (♯‘𝐷) ↔ (1 + 1) ≤ (♯‘𝐷))
3633, 35imbitrrdi 251 . . . . . . . . 9 ((♯‘𝐷) ∈ ℕ0 → (1 < (♯‘𝐷) → 2 ≤ (♯‘𝐷)))
37 2re 12329 . . . . . . . . . . . . 13 2 ∈ ℝ
3837rexri 11310 . . . . . . . . . . . 12 2 ∈ ℝ*
39 pnfge 13155 . . . . . . . . . . . 12 (2 ∈ ℝ* → 2 ≤ +∞)
4038, 39mp1i 13 . . . . . . . . . . 11 ((♯‘𝐷) = +∞ → 2 ≤ +∞)
41 breq2 5147 . . . . . . . . . . 11 ((♯‘𝐷) = +∞ → (2 ≤ (♯‘𝐷) ↔ 2 ≤ +∞))
4240, 41mpbird 256 . . . . . . . . . 10 ((♯‘𝐷) = +∞ → 2 ≤ (♯‘𝐷))
4342a1d 25 . . . . . . . . 9 ((♯‘𝐷) = +∞ → (1 < (♯‘𝐷) → 2 ≤ (♯‘𝐷)))
4436, 43jaoi 855 . . . . . . . 8 (((♯‘𝐷) ∈ ℕ0 ∨ (♯‘𝐷) = +∞) → (1 < (♯‘𝐷) → 2 ≤ (♯‘𝐷)))
4528, 44syl 17 . . . . . . 7 (𝐷𝑉 → (1 < (♯‘𝐷) → 2 ≤ (♯‘𝐷)))
4645impcom 406 . . . . . 6 ((1 < (♯‘𝐷) ∧ 𝐷𝑉) → 2 ≤ (♯‘𝐷))
4746a1d 25 . . . . 5 ((1 < (♯‘𝐷) ∧ 𝐷𝑉) → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷)))
4847ex 411 . . . 4 (1 < (♯‘𝐷) → (𝐷𝑉 → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷))))
499, 27, 483jaoi 1425 . . 3 (((♯‘𝐷) = 0 ∨ (♯‘𝐷) = 1 ∨ 1 < (♯‘𝐷)) → (𝐷𝑉 → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷))))
501, 49mpcom 38 . 2 (𝐷𝑉 → (∃𝑥𝐷𝑦𝐷 𝑥𝑦 → 2 ≤ (♯‘𝐷)))
5150imp 405 1 ((𝐷𝑉 ∧ ∃𝑥𝐷𝑦𝐷 𝑥𝑦) → 2 ≤ (♯‘𝐷))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 394  wo 845  w3o 1083   = wceq 1534  wex 1774  wcel 2099  wne 2930  wrex 3060  c0 4322  {csn 4623   class class class wbr 5143  cfv 6543  (class class class)co 7413  0cc0 11146  1c1 11147   + caddc 11149  +∞cpnf 11283  *cxr 11285   < clt 11286  cle 11287  2c2 12310  0cn0 12515  cz 12601  chash 14339
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1790  ax-4 1804  ax-5 1906  ax-6 1964  ax-7 2004  ax-8 2101  ax-9 2109  ax-10 2130  ax-11 2147  ax-12 2167  ax-ext 2697  ax-sep 5294  ax-nul 5301  ax-pow 5359  ax-pr 5423  ax-un 7735  ax-cnex 11202  ax-resscn 11203  ax-1cn 11204  ax-icn 11205  ax-addcl 11206  ax-addrcl 11207  ax-mulcl 11208  ax-mulrcl 11209  ax-mulcom 11210  ax-addass 11211  ax-mulass 11212  ax-distr 11213  ax-i2m1 11214  ax-1ne0 11215  ax-1rid 11216  ax-rnegex 11217  ax-rrecex 11218  ax-cnre 11219  ax-pre-lttri 11220  ax-pre-lttrn 11221  ax-pre-ltadd 11222  ax-pre-mulgt0 11223
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 846  df-3or 1085  df-3an 1086  df-tru 1537  df-fal 1547  df-ex 1775  df-nf 1779  df-sb 2061  df-mo 2529  df-eu 2558  df-clab 2704  df-cleq 2718  df-clel 2803  df-nfc 2878  df-ne 2931  df-nel 3037  df-ral 3052  df-rex 3061  df-reu 3365  df-rab 3420  df-v 3464  df-sbc 3776  df-csb 3892  df-dif 3949  df-un 3951  df-in 3953  df-ss 3963  df-pss 3966  df-nul 4323  df-if 4524  df-pw 4599  df-sn 4624  df-pr 4626  df-op 4630  df-uni 4906  df-int 4947  df-iun 4995  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 6302  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6495  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7369  df-ov 7416  df-oprab 7417  df-mpo 7418  df-om 7866  df-1st 7992  df-2nd 7993  df-frecs 8285  df-wrecs 8316  df-recs 8390  df-rdg 8429  df-1o 8485  df-oadd 8489  df-er 8723  df-en 8964  df-dom 8965  df-sdom 8966  df-fin 8967  df-dju 9934  df-card 9972  df-pnf 11288  df-mnf 11289  df-xr 11290  df-ltxr 11291  df-le 11292  df-sub 11484  df-neg 11485  df-nn 12256  df-2 12318  df-n0 12516  df-xnn0 12588  df-z 12602  df-uz 12866  df-fz 13530  df-hash 14340
This theorem is referenced by:  hashge2el2difb  14493  hashdmpropge2  14494
  Copyright terms: Public domain W3C validator