Zulip Chat Archive
Stream: Is there code for X?
Topic: Cardinality of the type of linear orders on a fintype
Sophie Morel (May 31 2023 at 13:10):
I am using the fact that the cardinality of the type of linear orders on a Fintype
V is the factorial of Fintype.card V
. Is this or a related statement somewhere in mathlib ?
To be totally honest, I only really need the statement when Fintype.card V
is equal to 2, so of course I can just easily prove it by hand, but (1) yuck and (2) I am curious.
Yaël Dillies (May 31 2023 at 13:11):
Yes, but it is stated in terms of docs#equiv.perm: docs#fintype.card_perm
Sophie Morel (May 31 2023 at 13:14):
Yaël Dillies said:
Yes, but it is stated in terms of docs#equiv.perm: docs#fintype.card_perm
Thanks ! Hmm, that's what I feared, I would still have to prove the equivalence between linear orders on a fintype and permutations... I think that I am going to count by hand in my particular case, as I already did in the Lean3 version.
Sophie Morel (May 31 2023 at 13:27):
Well, we'll see... I think that I found all the necessary lemmas about finite ordinals to prove the more general statement less suffering than expected, so now I am tempted. :big_smile:
Yaël Dillies (May 31 2023 at 14:14):
I have the transitive action of perm α
on linear_order α
and its faithfulness when α
is finite, which is enough to get the equivalence. I needed those to formalise the Alon proof of Turán.
Yaël Dillies (May 31 2023 at 14:14):
However, it's exam season, so ask me again in 10 days...
Sophie Morel (May 31 2023 at 14:15):
Yaël Dillies said:
However, it's exam season, so ask me again in 10 days...
Okay, I am starring this message so I don't forget.
Last updated: Dec 20 2023 at 11:08 UTC