Zulip Chat Archive
Stream: Is there code for X?
Topic: WellFoundedLT for Fintype?
Scott Morrison (Jul 14 2023 at 11:56):
Do we have either of:
example [Fintype α] [Preorder α] : WellFoundedLT α := sorry
example [Fintype α] [PartialOrder α] : Nonempty (α ↪o Fin (Fintype.card α)) := sorry
available?
Damiano Testa (Jul 14 2023 at 12:02):
docs#instInhabitedLinearExtension seems to come close...
Kyle Miller (Jul 14 2023 at 12:02):
Great, then docs#monoEquivOfFin should give the rest
Scott Morrison (Jul 14 2023 at 12:03):
Nice, thanks!
Kyle Miller (Jul 14 2023 at 12:03):
Oh, one other ingredient would be the order embedding from a partial order to its linear extension, which is essentially docs#toLinearExtension
Scott Morrison (Jul 14 2023 at 12:05):
I guess I don't immediately need these, just noticed they were missing amongst the basic instances for WellFoundedLT
. I'll star these messages and try to put together the pieces ... someday!
Scott Morrison (Jul 14 2023 at 12:06):
Amazingly it seems the Prod
instance for WellFoundedLT
was missing: #5899. (We already had the Pi
instance, but somewhat obscurely in Mathlib.Data.DFinsupp.WellFounded
.)
Scott Morrison (Jul 14 2023 at 12:07):
Perhaps this is already somewhere as a theorem
rather than an instance
, but I did try exact?
.
Damiano Testa (Jul 14 2023 at 12:11):
Some of these results were useful when Lex
orders were being developed. It might be worth scanning some <prefix>.Lex
files, maybe...
Yaël Dillies (Jul 14 2023 at 14:34):
Yes we have your theorem, Scott, but it's stated using Finite
Yaël Dillies (Jul 14 2023 at 14:36):
Also it will talk about WellFounded
, not WellFoundedLT
.
Yaël Dillies (Jul 14 2023 at 14:38):
Oh in fact we have both. finite.preorder.well_founded_lt
Last updated: Dec 20 2023 at 11:08 UTC