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

Theorem hash2iun1dif1 15883
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 9157 . . . . . 6 (𝐴 ∈ Fin → (𝐴 ∖ {𝑥}) ∈ Fin)
41, 3syl 18 . . . . 5 (𝜑 → (𝐴 ∖ {𝑥}) ∈ Fin)
54adantr 485 . . . 4 ((𝜑𝑥𝐴) → (𝐴 ∖ {𝑥}) ∈ Fin)
62, 5eqeltrid 2866 . . 3 ((𝜑𝑥𝐴) → 𝐵 ∈ Fin)
7 hash2iun1dif1.c . . 3 ((𝜑𝑥𝐴𝑦𝐵) → 𝐶 ∈ Fin)
8 hash2iun1dif1.da . . 3 (𝜑Disj 𝑥𝐴 𝑦𝐵 𝐶)
9 hash2iun1dif1.db . . 3 ((𝜑𝑥𝐴) → Disj 𝑦𝐵 𝐶)
101, 6, 7, 8, 9hash2iun 15882 . 2 (𝜑 → (♯‘ 𝑥𝐴 𝑦𝐵 𝐶) = Σ𝑥𝐴 Σ𝑦𝐵 (♯‘𝐶))
11 hash2iun1dif1.1 . . 3 ((𝜑𝑥𝐴𝑦𝐵) → (♯‘𝐶) = 1)
12112sumeq2dv 15763 . 2 (𝜑 → Σ𝑥𝐴 Σ𝑦𝐵 (♯‘𝐶) = Σ𝑥𝐴 Σ𝑦𝐵 1)
13 1cnd 11208 . . . . 5 ((𝜑𝑥𝐴) → 1 ∈ ℂ)
14 fsumconst 15848 . . . . 5 ((𝐵 ∈ Fin ∧ 1 ∈ ℂ) → Σ𝑦𝐵 1 = ((♯‘𝐵) · 1))
156, 13, 14syl2anc 595 . . . 4 ((𝜑𝑥𝐴) → Σ𝑦𝐵 1 = ((♯‘𝐵) · 1))
1615sumeq2dv 15760 . . 3 (𝜑 → Σ𝑥𝐴 Σ𝑦𝐵 1 = Σ𝑥𝐴 ((♯‘𝐵) · 1))
172a1i 11 . . . . . . 7 ((𝜑𝑥𝐴) → 𝐵 = (𝐴 ∖ {𝑥}))
1817fveq2d 6885 . . . . . 6 ((𝜑𝑥𝐴) → (♯‘𝐵) = (♯‘(𝐴 ∖ {𝑥})))
19 hashdifsn 14458 . . . . . . 7 ((𝐴 ∈ Fin ∧ 𝑥𝐴) → (♯‘(𝐴 ∖ {𝑥})) = ((♯‘𝐴) − 1))
201, 19sylan 591 . . . . . 6 ((𝜑𝑥𝐴) → (♯‘(𝐴 ∖ {𝑥})) = ((♯‘𝐴) − 1))
2118, 20eqtrd 2797 . . . . 5 ((𝜑𝑥𝐴) → (♯‘𝐵) = ((♯‘𝐴) − 1))
2221oveq1d 7427 . . . 4 ((𝜑𝑥𝐴) → ((♯‘𝐵) · 1) = (((♯‘𝐴) − 1) · 1))
2322sumeq2dv 15760 . . 3 (𝜑 → Σ𝑥𝐴 ((♯‘𝐵) · 1) = Σ𝑥𝐴 (((♯‘𝐴) − 1) · 1))
24 hashcl 14399 . . . . . . . . 9 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
251, 24syl 18 . . . . . . . 8 (𝜑 → (♯‘𝐴) ∈ ℕ0)
2625nn0cnd 12573 . . . . . . 7 (𝜑 → (♯‘𝐴) ∈ ℂ)
27 peano2cnm 11530 . . . . . . 7 ((♯‘𝐴) ∈ ℂ → ((♯‘𝐴) − 1) ∈ ℂ)
2826, 27syl 18 . . . . . 6 (𝜑 → ((♯‘𝐴) − 1) ∈ ℂ)
2928mulridd 11232 . . . . 5 (𝜑 → (((♯‘𝐴) − 1) · 1) = ((♯‘𝐴) − 1))
3029sumeq2sdv 15761 . . . 4 (𝜑 → Σ𝑥𝐴 (((♯‘𝐴) − 1) · 1) = Σ𝑥𝐴 ((♯‘𝐴) − 1))
31 fsumconst 15848 . . . . 5 ((𝐴 ∈ Fin ∧ ((♯‘𝐴) − 1) ∈ ℂ) → Σ𝑥𝐴 ((♯‘𝐴) − 1) = ((♯‘𝐴) · ((♯‘𝐴) − 1)))
321, 28, 31syl2anc 595 . . . 4 (𝜑 → Σ𝑥𝐴 ((♯‘𝐴) − 1) = ((♯‘𝐴) · ((♯‘𝐴) − 1)))
3330, 32eqtrd 2797 . . 3 (𝜑 → Σ𝑥𝐴 (((♯‘𝐴) − 1) · 1) = ((♯‘𝐴) · ((♯‘𝐴) − 1)))
3416, 23, 333eqtrd 2801 . 2 (𝜑 → Σ𝑥𝐴 Σ𝑦𝐵 1 = ((♯‘𝐴) · ((♯‘𝐴) − 1)))
3510, 12, 343eqtrd 2801 1 (𝜑 → (♯‘ 𝑥𝐴 𝑦𝐵 𝐶) = ((♯‘𝐴) · ((♯‘𝐴) − 1)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wa 400  w3a 1102   = wceq 1569  wcel 2142  cdif 3901  {csn 4588   ciun 4955  Disj wdisj 5075  cfv 6536  (class class class)co 7412  Fincfn 8941  cc 11104  1c1 11107   · cmul 11111  cmin 11447  0cn0 12510  chash 14373  Σcsu 15744
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1824  ax-4 1838  ax-5 1939  ax-6 1996  ax-7 2037  ax-8 2144  ax-9 2152  ax-10 2175  ax-11 2191  ax-12 2212  ax-ext 2734  ax-rep 5237  ax-sep 5256  ax-nul 5268  ax-pow 5335  ax-pr 5403  ax-un 7734  ax-inf2 9608  ax-cnex 11162  ax-resscn 11163  ax-1cn 11164  ax-icn 11165  ax-addcl 11166  ax-addrcl 11167  ax-mulcl 11168  ax-mulrcl 11169  ax-mulcom 11170  ax-addass 11171  ax-mulass 11172  ax-distr 11173  ax-i2m1 11174  ax-1ne0 11175  ax-1rid 11176  ax-rnegex 11177  ax-rrecex 11178  ax-cnre 11179  ax-pre-lttri 11180  ax-pre-lttrn 11181  ax-pre-ltadd 11182  ax-pre-mulgt0 11183  ax-pre-sup 11184
This proof depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3or 1103  df-3an 1104  df-tru 1572  df-fal 1582  df-ex 1809  df-nf 1813  df-sb 2096  df-mo 2566  df-eu 2596  df-clab 2741  df-cleq 2754  df-clel 2837  df-nfc 2911  df-ne 2958  df-nel 3064  df-ral 3079  df-rex 3089  df-rmo 3368  df-reu 3369  df-rab 3416  df-v 3456  df-sbc 3744  df-csb 3853  df-dif 3907  df-un 3909  df-in 3911  df-ss 3921  df-pss 3924  df-nul 4286  df-if 4487  df-pw 4563  df-sn 4589  df-pr 4591  df-op 4595  df-uni 4872  df-int 4912  df-iun 4957  df-disj 5076  df-br 5109  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5555  df-eprel 5560  df-po 5568  df-so 5569  df-fr 5613  df-se 5614  df-we 5615  df-xp 5666  df-rel 5667  df-cnv 5668  df-co 5669  df-dm 5670  df-rn 5671  df-res 5672  df-ima 5673  df-pred 6302  df-ord 6363  df-on 6364  df-lim 6365  df-suc 6366  df-iota 6492  df-fun 6538  df-fn 6539  df-f 6540  df-f1 6541  df-fo 6542  df-f1o 6543  df-fv 6544  df-isom 6545  df-riota 7369  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7861  df-1st 7984  df-2nd 7985  df-frecs 8276  df-wrecs 8307  df-recs 8356  df-rdg 8395  df-1o 8451  df-oadd 8455  df-er 8692  df-en 8942  df-dom 8943  df-sdom 8944  df-fin 8945  df-sup 9400  df-oi 9470  df-dju 9894  df-card 9932  df-pnf 11251  df-mnf 11252  df-xr 11253  df-ltxr 11254  df-le 11255  df-sub 11449  df-neg 11450  df-div 11878  df-nn 12240  df-2 12309  df-3 12310  df-n0 12511  df-z 12598  df-uz 12869  df-rp 13023  df-fz 13542  df-fzo 13690  df-seq 14045  df-exp 14105  df-hash 14374  df-cj 15157  df-re 15158  df-im 15159  df-sqrt 15293  df-abs 15294  df-clim 15546  df-sum 15745
This theorem is used by:  frgrhash2wsp  30694  fusgreghash2wspv  30697
  Copyright terms: Public domain W3C validator