Users' Mathboxes Mathbox for metakunt < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  sticksstones21 Structured version   Visualization version   GIF version

Theorem sticksstones21 43485
Description: Lift sticks and stones to arbitrary finite non-empty sets. (Contributed by metakunt, 24-Oct-2024.)
Hypotheses
Ref Expression
sticksstones21.1 (𝜑 → 𝑁 ∈ ℕ0)
sticksstones21.2 (𝜑 → 𝑆 ∈ Fin)
sticksstones21.3 (𝜑 → 𝑆 ≠ ∅)
sticksstones21.4 𝐴 = {𝑓 ∣ (𝑓:𝑆⟶ℕ0 ∧ Σ𝑖 ∈ 𝑆 (𝑓‘𝑖) = 𝑁)}
Assertion
Ref Expression
sticksstones21 (𝜑 → (♯‘𝐴) = ((𝑁 + ((♯‘𝑆) − 1))C((♯‘𝑆) − 1)))
Distinct variable groups:   𝑓,𝑁   𝑆,𝑓,𝑖
Allowed substitution hints:   𝜑(𝑓, 𝑖)   𝐴(𝑓, 𝑖)   𝑁(𝑖)

Proof of Theorem sticksstones21
Dummy variables 𝑘 𝑔 𝑗 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 sticksstones21.1 . 2 (𝜑 → 𝑁 ∈ ℕ0)
2 sticksstones21.2 . 2 (𝜑 → 𝑆 ∈ Fin)
3 sticksstones21.3 . . 3 (𝜑 → 𝑆 ≠ ∅)
4 hashnncl 14550 . . . 4 (𝑆 ∈ Fin → ((♯‘𝑆) ∈ ℕ ↔ 𝑆 ≠ ∅))
52, 4syl 18 . . 3 (𝜑 → ((♯‘𝑆) ∈ ℕ ↔ 𝑆 ≠ ∅))
63, 5mpbird 260 . 2 (𝜑 → (♯‘𝑆) ∈ ℕ)
7 fveq2 6915 . . . . . 6 (𝑗 = 𝑘 → (𝑔‘𝑗) = (𝑔‘𝑘))
87cbvsumv 15906 . . . . 5 Σ𝑗 ∈ (1...(♯‘𝑆))(𝑔‘𝑗) = Σ𝑘 ∈ (1...(♯‘𝑆))(𝑔‘𝑘)
98eqeq1i 2771 . . . 4 (Σ𝑗 ∈ (1...(♯‘𝑆))(𝑔‘𝑗) = 𝑁 ↔ Σ𝑘 ∈ (1...(♯‘𝑆))(𝑔‘𝑘) = 𝑁)
109anbi2i 635 . . 3 ((𝑔:(1...(♯‘𝑆))⟶ℕ0 ∧ Σ𝑗 ∈ (1...(♯‘𝑆))(𝑔‘𝑗) = 𝑁) ↔ (𝑔:(1...(♯‘𝑆))⟶ℕ0 ∧ Σ𝑘 ∈ (1...(♯‘𝑆))(𝑔‘𝑘) = 𝑁))
1110abbii 2833 . 2 {𝑔 ∣ (𝑔:(1...(♯‘𝑆))⟶ℕ0 ∧ Σ𝑗 ∈ (1...(♯‘𝑆))(𝑔‘𝑗) = 𝑁)} = {𝑔 ∣ (𝑔:(1...(♯‘𝑆))⟶ℕ0 ∧ Σ𝑘 ∈ (1...(♯‘𝑆))(𝑔‘𝑘) = 𝑁)}
12 sticksstones21.4 . . 3 𝐴 = {𝑓 ∣ (𝑓:𝑆⟶ℕ0 ∧ Σ𝑖 ∈ 𝑆 (𝑓‘𝑖) = 𝑁)}
13 fveq2 6915 . . . . . . 7 (𝑖 = 𝑘 → (𝑓‘𝑖) = (𝑓‘𝑘))
1413cbvsumv 15906 . . . . . 6 Σ𝑖 ∈ 𝑆 (𝑓‘𝑖) = Σ𝑘 ∈ 𝑆 (𝑓‘𝑘)
1514eqeq1i 2771 . . . . 5 (Σ𝑖 ∈ 𝑆 (𝑓‘𝑖) = 𝑁 ↔ Σ𝑘 ∈ 𝑆 (𝑓‘𝑘) = 𝑁)
1615anbi2i 635 . . . 4 ((𝑓:𝑆⟶ℕ0 ∧ Σ𝑖 ∈ 𝑆 (𝑓‘𝑖) = 𝑁) ↔ (𝑓:𝑆⟶ℕ0 ∧ Σ𝑘 ∈ 𝑆 (𝑓‘𝑘) = 𝑁))
1716abbii 2833 . . 3 {𝑓 ∣ (𝑓:𝑆⟶ℕ0 ∧ Σ𝑖 ∈ 𝑆 (𝑓‘𝑖) = 𝑁)} = {𝑓 ∣ (𝑓:𝑆⟶ℕ0 ∧ Σ𝑘 ∈ 𝑆 (𝑓‘𝑘) = 𝑁)}
1812, 17eqtri 2789 . 2 𝐴 = {𝑓 ∣ (𝑓:𝑆⟶ℕ0 ∧ Σ𝑘 ∈ 𝑆 (𝑓‘𝑘) = 𝑁)}
19 eqidd 2767 . 2 (𝜑 → (♯‘𝑆) = (♯‘𝑆))
201, 2, 6, 11, 18, 19sticksstones20 43484 1 (𝜑 → (♯‘𝐴) = ((𝑁 + ((♯‘𝑆) − 1))C((♯‘𝑆) − 1)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572   ∈ wcel 2150  {cab 2744   ≠ wne 2962  ∅c0 4280  ⟶wf 6561  ‘cfv 6565  (class class class)co 7450  Fincfn 9010  1c1 11239   + caddc 11241   − cmin 11579  ℕcn 12374  ℕ0cn0 12645  ...cfz 13678  Ccbc 14486  ♯chash 14514  Σcsu 15896
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 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782  ax-inf2 9678  ax-cnex 11294  ax-resscn 11295  ax-1cn 11296  ax-icn 11297  ax-addcl 11298  ax-addrcl 11299  ax-mulcl 11300  ax-mulrcl 11301  ax-mulcom 11302  ax-addass 11303  ax-mulass 11304  ax-distr 11305  ax-i2m1 11306  ax-1ne0 11307  ax-1rid 11308  ax-rnegex 11309  ax-rrecex 11310  ax-cnre 11311  ax-pre-lttri 11312  ax-pre-lttrn 11313  ax-pre-ltadd 11314  ax-pre-mulgt0 11315  ax-pre-sup 11316
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 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-rmo 3368  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-int 4912  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-se 5611  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6329  df-ord 6390  df-on 6391  df-lim 6392  df-suc 6393  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-isom 6574  df-riota 7407  df-ov 7453  df-oprab 7454  df-mpo 7455  df-om 7911  df-1st 8034  df-2nd 8035  df-frecs 8336  df-wrecs 8367  df-recs 8416  df-rdg 8455  df-1o 8513  df-oadd 8517  df-er 8754  df-en 9011  df-dom 9012  df-sdom 9013  df-fin 9014  df-sup 9470  df-inf 9471  df-oi 9540  df-dju 10018  df-card 10056  df-pnf 11383  df-mnf 11384  df-xr 11385  df-ltxr 11386  df-le 11387  df-sub 11581  df-neg 11582  df-div 12013  df-nn 12375  df-2 12444  df-3 12445  df-n0 12646  df-z 12733  df-uz 13005  df-rp 13160  df-ico 13521  df-fz 13679  df-fzo 13828  df-seq 14184  df-exp 14244  df-fac 14458  df-bc 14487  df-hash 14515  df-cj 15308  df-re 15309  df-im 15310  df-sqrt 15444  df-abs 15445  df-clim 15698  df-sum 15897
This theorem is used by:  sticksstones22  43486
  Copyright terms: Public domain W3C validator