Zulip Chat Archive

Stream: mathlib4

Topic: Bounded Fintype


Gareth Ma (Oct 16 2023 at 01:39):

Hi, I am trying to express the set of k-tuples on a n-element ordered alphabet. I want to count stuff like "how many tuples are strictly increasing?". Can someone provide guidance on how concretely?
I got advice to represent it as functions from Fin k \to \iota, where \iota is a Fintype with a linear order, but I am not sure how to correspond the n-element ordered alphabet with a Fintype.

Kevin Buzzard (Oct 16 2023 at 04:32):

So is the question "I have a linearly ordered Fintype, can someone produce an order isomorphism with fin n for some n"? If not, can you post code which asks your actual question rather than asking it in words? Asking to fill in a sorry in a #mwe is the best way to ask questions here.

Yaël Dillies (Oct 16 2023 at 09:10):

Yeah, it sounds like you could just use Fin k → Fin n here.

Gareth Ma (Oct 16 2023 at 10:06):

A0AC44F5-4AEE-4215-8D53-D6A26397256A.png

Gareth Ma (Oct 16 2023 at 10:06):

Here it is: the number of 3-tuple of alphabets such that the final one is Z and they’re strictly increasing

Gareth Ma (Oct 16 2023 at 10:07):

Yaël Dillies said:

Yeah, it sounds like you could just use Fin k → Fin n here.

I assume I add a LinearOrder to the fin n too?

Eric Wieser (Oct 16 2023 at 10:08):

No, Fin n already has one

Gareth Ma (Oct 16 2023 at 10:17):

I see, okay thanks!

Gareth Ma (Oct 16 2023 at 10:18):

I think this is what Bhavik recommended me too (the original suggestion) but I misunderstood it


Last updated: Dec 20 2023 at 11:08 UTC