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

Theorem hash2iun1dif1 15797
Description: The cardinality of a nested disjoint indexed union. (Contributed by AV, 9-Jan-2022.)
Hypotheses
Ref Expression
hash2iun1dif1.a (๐œ‘ โ†’ ๐ด โˆˆ Fin)
hash2iun1dif1.b ๐ต = (๐ด โˆ– {๐‘ฅ})
hash2iun1dif1.c ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด โˆง ๐‘ฆ โˆˆ ๐ต) โ†’ ๐ถ โˆˆ Fin)
hash2iun1dif1.da (๐œ‘ โ†’ Disj ๐‘ฅ โˆˆ ๐ด โˆช ๐‘ฆ โˆˆ ๐ต ๐ถ)
hash2iun1dif1.db ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ Disj ๐‘ฆ โˆˆ ๐ต ๐ถ)
hash2iun1dif1.1 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด โˆง ๐‘ฆ โˆˆ ๐ต) โ†’ (โ™ฏโ€˜๐ถ) = 1)
Assertion
Ref Expression
hash2iun1dif1 (๐œ‘ โ†’ (โ™ฏโ€˜โˆช ๐‘ฅ โˆˆ ๐ด โˆช ๐‘ฆ โˆˆ ๐ต ๐ถ) = ((โ™ฏโ€˜๐ด) ยท ((โ™ฏโ€˜๐ด) โˆ’ 1)))
Distinct variable groups:   ๐‘ฅ,๐ด,๐‘ฆ   ๐‘ฆ,๐ต   ๐œ‘,๐‘ฅ,๐‘ฆ
Allowed substitution hints:   ๐ต(๐‘ฅ)   ๐ถ(๐‘ฅ,๐‘ฆ)

Proof of Theorem hash2iun1dif1
StepHypRef Expression
1 hash2iun1dif1.a . . 3 (๐œ‘ โ†’ ๐ด โˆˆ Fin)
2 hash2iun1dif1.b . . . 4 ๐ต = (๐ด โˆ– {๐‘ฅ})
3 diffi 9197 . . . . . 6 (๐ด โˆˆ Fin โ†’ (๐ด โˆ– {๐‘ฅ}) โˆˆ Fin)
41, 3syl 17 . . . . 5 (๐œ‘ โ†’ (๐ด โˆ– {๐‘ฅ}) โˆˆ Fin)
54adantr 479 . . . 4 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ (๐ด โˆ– {๐‘ฅ}) โˆˆ Fin)
62, 5eqeltrid 2829 . . 3 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ ๐ต โˆˆ Fin)
7 hash2iun1dif1.c . . 3 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด โˆง ๐‘ฆ โˆˆ ๐ต) โ†’ ๐ถ โˆˆ Fin)
8 hash2iun1dif1.da . . 3 (๐œ‘ โ†’ Disj ๐‘ฅ โˆˆ ๐ด โˆช ๐‘ฆ โˆˆ ๐ต ๐ถ)
9 hash2iun1dif1.db . . 3 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ Disj ๐‘ฆ โˆˆ ๐ต ๐ถ)
101, 6, 7, 8, 9hash2iun 15796 . 2 (๐œ‘ โ†’ (โ™ฏโ€˜โˆช ๐‘ฅ โˆˆ ๐ด โˆช ๐‘ฆ โˆˆ ๐ต ๐ถ) = ฮฃ๐‘ฅ โˆˆ ๐ด ฮฃ๐‘ฆ โˆˆ ๐ต (โ™ฏโ€˜๐ถ))
11 hash2iun1dif1.1 . . 3 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด โˆง ๐‘ฆ โˆˆ ๐ต) โ†’ (โ™ฏโ€˜๐ถ) = 1)
12112sumeq2dv 15678 . 2 (๐œ‘ โ†’ ฮฃ๐‘ฅ โˆˆ ๐ด ฮฃ๐‘ฆ โˆˆ ๐ต (โ™ฏโ€˜๐ถ) = ฮฃ๐‘ฅ โˆˆ ๐ด ฮฃ๐‘ฆ โˆˆ ๐ต 1)
13 1cnd 11234 . . . . 5 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ 1 โˆˆ โ„‚)
14 fsumconst 15763 . . . . 5 ((๐ต โˆˆ Fin โˆง 1 โˆˆ โ„‚) โ†’ ฮฃ๐‘ฆ โˆˆ ๐ต 1 = ((โ™ฏโ€˜๐ต) ยท 1))
156, 13, 14syl2anc 582 . . . 4 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ ฮฃ๐‘ฆ โˆˆ ๐ต 1 = ((โ™ฏโ€˜๐ต) ยท 1))
1615sumeq2dv 15676 . . 3 (๐œ‘ โ†’ ฮฃ๐‘ฅ โˆˆ ๐ด ฮฃ๐‘ฆ โˆˆ ๐ต 1 = ฮฃ๐‘ฅ โˆˆ ๐ด ((โ™ฏโ€˜๐ต) ยท 1))
172a1i 11 . . . . . . 7 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ ๐ต = (๐ด โˆ– {๐‘ฅ}))
1817fveq2d 6894 . . . . . 6 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ (โ™ฏโ€˜๐ต) = (โ™ฏโ€˜(๐ด โˆ– {๐‘ฅ})))
19 hashdifsn 14400 . . . . . . 7 ((๐ด โˆˆ Fin โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ (โ™ฏโ€˜(๐ด โˆ– {๐‘ฅ})) = ((โ™ฏโ€˜๐ด) โˆ’ 1))
201, 19sylan 578 . . . . . 6 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ (โ™ฏโ€˜(๐ด โˆ– {๐‘ฅ})) = ((โ™ฏโ€˜๐ด) โˆ’ 1))
2118, 20eqtrd 2765 . . . . 5 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ (โ™ฏโ€˜๐ต) = ((โ™ฏโ€˜๐ด) โˆ’ 1))
2221oveq1d 7428 . . . 4 ((๐œ‘ โˆง ๐‘ฅ โˆˆ ๐ด) โ†’ ((โ™ฏโ€˜๐ต) ยท 1) = (((โ™ฏโ€˜๐ด) โˆ’ 1) ยท 1))
2322sumeq2dv 15676 . . 3 (๐œ‘ โ†’ ฮฃ๐‘ฅ โˆˆ ๐ด ((โ™ฏโ€˜๐ต) ยท 1) = ฮฃ๐‘ฅ โˆˆ ๐ด (((โ™ฏโ€˜๐ด) โˆ’ 1) ยท 1))
24 hashcl 14342 . . . . . . . . 9 (๐ด โˆˆ Fin โ†’ (โ™ฏโ€˜๐ด) โˆˆ โ„•0)
251, 24syl 17 . . . . . . . 8 (๐œ‘ โ†’ (โ™ฏโ€˜๐ด) โˆˆ โ„•0)
2625nn0cnd 12559 . . . . . . 7 (๐œ‘ โ†’ (โ™ฏโ€˜๐ด) โˆˆ โ„‚)
27 peano2cnm 11551 . . . . . . 7 ((โ™ฏโ€˜๐ด) โˆˆ โ„‚ โ†’ ((โ™ฏโ€˜๐ด) โˆ’ 1) โˆˆ โ„‚)
2826, 27syl 17 . . . . . 6 (๐œ‘ โ†’ ((โ™ฏโ€˜๐ด) โˆ’ 1) โˆˆ โ„‚)
2928mulridd 11256 . . . . 5 (๐œ‘ โ†’ (((โ™ฏโ€˜๐ด) โˆ’ 1) ยท 1) = ((โ™ฏโ€˜๐ด) โˆ’ 1))
3029sumeq2sdv 15677 . . . 4 (๐œ‘ โ†’ ฮฃ๐‘ฅ โˆˆ ๐ด (((โ™ฏโ€˜๐ด) โˆ’ 1) ยท 1) = ฮฃ๐‘ฅ โˆˆ ๐ด ((โ™ฏโ€˜๐ด) โˆ’ 1))
31 fsumconst 15763 . . . . 5 ((๐ด โˆˆ Fin โˆง ((โ™ฏโ€˜๐ด) โˆ’ 1) โˆˆ โ„‚) โ†’ ฮฃ๐‘ฅ โˆˆ ๐ด ((โ™ฏโ€˜๐ด) โˆ’ 1) = ((โ™ฏโ€˜๐ด) ยท ((โ™ฏโ€˜๐ด) โˆ’ 1)))
321, 28, 31syl2anc 582 . . . 4 (๐œ‘ โ†’ ฮฃ๐‘ฅ โˆˆ ๐ด ((โ™ฏโ€˜๐ด) โˆ’ 1) = ((โ™ฏโ€˜๐ด) ยท ((โ™ฏโ€˜๐ด) โˆ’ 1)))
3330, 32eqtrd 2765 . . 3 (๐œ‘ โ†’ ฮฃ๐‘ฅ โˆˆ ๐ด (((โ™ฏโ€˜๐ด) โˆ’ 1) ยท 1) = ((โ™ฏโ€˜๐ด) ยท ((โ™ฏโ€˜๐ด) โˆ’ 1)))
3416, 23, 333eqtrd 2769 . 2 (๐œ‘ โ†’ ฮฃ๐‘ฅ โˆˆ ๐ด ฮฃ๐‘ฆ โˆˆ ๐ต 1 = ((โ™ฏโ€˜๐ด) ยท ((โ™ฏโ€˜๐ด) โˆ’ 1)))
3510, 12, 343eqtrd 2769 1 (๐œ‘ โ†’ (โ™ฏโ€˜โˆช ๐‘ฅ โˆˆ ๐ด โˆช ๐‘ฆ โˆˆ ๐ต ๐ถ) = ((โ™ฏโ€˜๐ด) ยท ((โ™ฏโ€˜๐ด) โˆ’ 1)))
Colors of variables: wff setvar class
Syntax hints:   โ†’ wi 4   โˆง wa 394   โˆง w3a 1084   = wceq 1533   โˆˆ wcel 2098   โˆ– cdif 3938  {csn 4625  โˆช ciun 4992  Disj wdisj 5109  โ€˜cfv 6543  (class class class)co 7413  Fincfn 8957  โ„‚cc 11131  1c1 11134   ยท cmul 11138   โˆ’ cmin 11469  โ„•0cn0 12497  โ™ฏchash 14316  ฮฃcsu 15659
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-rep 5281  ax-sep 5295  ax-nul 5302  ax-pow 5360  ax-pr 5424  ax-un 7735  ax-inf2 9659  ax-cnex 11189  ax-resscn 11190  ax-1cn 11191  ax-icn 11192  ax-addcl 11193  ax-addrcl 11194  ax-mulcl 11195  ax-mulrcl 11196  ax-mulcom 11197  ax-addass 11198  ax-mulass 11199  ax-distr 11200  ax-i2m1 11201  ax-1ne0 11202  ax-1rid 11203  ax-rnegex 11204  ax-rrecex 11205  ax-cnre 11206  ax-pre-lttri 11207  ax-pre-lttrn 11208  ax-pre-ltadd 11209  ax-pre-mulgt0 11210  ax-pre-sup 11211
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-rmo 3364  df-reu 3365  df-rab 3420  df-v 3465  df-sbc 3771  df-csb 3887  df-dif 3944  df-un 3946  df-in 3948  df-ss 3958  df-pss 3961  df-nul 4320  df-if 4526  df-pw 4601  df-sn 4626  df-pr 4628  df-op 4632  df-uni 4905  df-int 4946  df-iun 4994  df-disj 5110  df-br 5145  df-opab 5207  df-mpt 5228  df-tr 5262  df-id 5571  df-eprel 5577  df-po 5585  df-so 5586  df-fr 5628  df-se 5629  df-we 5630  df-xp 5679  df-rel 5680  df-cnv 5681  df-co 5682  df-dm 5683  df-rn 5684  df-res 5685  df-ima 5686  df-pred 6301  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-isom 6552  df-riota 7369  df-ov 7416  df-oprab 7417  df-mpo 7418  df-om 7866  df-1st 7987  df-2nd 7988  df-frecs 8280  df-wrecs 8311  df-recs 8385  df-rdg 8424  df-1o 8480  df-oadd 8484  df-er 8718  df-en 8958  df-dom 8959  df-sdom 8960  df-fin 8961  df-sup 9460  df-oi 9528  df-dju 9919  df-card 9957  df-pnf 11275  df-mnf 11276  df-xr 11277  df-ltxr 11278  df-le 11279  df-sub 11471  df-neg 11472  df-div 11897  df-nn 12238  df-2 12300  df-3 12301  df-n0 12498  df-z 12584  df-uz 12848  df-rp 13002  df-fz 13512  df-fzo 13655  df-seq 13994  df-exp 14054  df-hash 14317  df-cj 15073  df-re 15074  df-im 15075  df-sqrt 15209  df-abs 15210  df-clim 15459  df-sum 15660
This theorem is referenced by:  frgrhash2wsp  30181  fusgreghash2wspv  30184
  Copyright terms: Public domain W3C validator