Zulip Chat Archive

Stream: Is there code for X?

Topic: finprod of constant func


Ella Yu (Aug 18 2021 at 14:36):

Hi, I wonder is there code to prove that, the big product of a constant function over a finite set can be written as that constant^(cardinality of the finite set)? My goal is like this, which looks obvious but I'm not sure how to prove
↑a ^ fintype.card ↥set_of_coprime = ∏ᶠ (j : ↥set_of_coprime), ↑a

Thanks in advance!

Yakov Pechersky (Aug 18 2021 at 14:38):

Is your set_of_coprime a set or a finset?

Ella Yu (Aug 18 2021 at 14:39):

it's a finset.

Eric Rodriguez (Aug 18 2021 at 14:39):

btw Ella, if you put your code in `s it gets code formatting, for example:

↑a ^ fintype.card ↥set_of_coprime = ∏ᶠ (j : ↥set_of_coprime), ↑a

(this is done with `↑a ^ fintype.card ↥set_of_coprime = ∏ᶠ (j : ↥set_of_coprime), ↑a` )

Ella Yu (Aug 18 2021 at 14:42):

thanks for your reminder! I'm new to zulip:D

Yakov Pechersky (Aug 18 2021 at 14:44):

Then this is a lemma about finset.card. I'd go through traditional products. There's docs#finprod_eq_prod_of_fintype

Yakov Pechersky (Aug 18 2021 at 14:46):

And docs#finset.prod_const

Yakov Pechersky (Aug 18 2021 at 14:48):

And docs#finset.prod_finset_coe

Ella Yu (Aug 18 2021 at 14:53):

Thanks a lot! It helps!


Last updated: Dec 20 2023 at 11:08 UTC