Zulip Chat Archive

Stream: Is there code for X?

Topic: Well-foundedness of product orders?


Michael Stoll (Sep 09 2023 at 20:47):

Do we have a version of the following?

import Mathlib.Tactic

instance {α β : Type*} [Fintype α] [Preorder β] [IsWellFounded β (· < ·)] :
    IsWellFounded (α  β) (· < ·) := sorry

(In fact, this should hold more generally:

instance {α : Type*} {β : α  Type*} [Fintype α] [ a, Preorder (β a)] [ a, IsWellFounded (β a) (· < ·)] :
    IsWellFounded ((a : α)  β a) (· < ·) := sorry

)

Anatole Dedecker (Sep 09 2023 at 20:53):

docs#Pi.wellFoundedLT ?

Anatole Dedecker (Sep 09 2023 at 20:54):

It's in a weird file though

Anatole Dedecker (Sep 09 2023 at 20:55):

Oh nevermind, it actually does use DFinsupp in the proof :mind_blown:

Michael Stoll (Sep 09 2023 at 20:56):

So I was missing this non-obvious import...

Alex J. Best (Sep 09 2023 at 21:38):

Michael Stoll said:

So I was missing this non-obvious import...

It's actually not so bad these days to develop using import Mathlib or to have a scratch file with that in for the purposes of #synth or apply? queries

Scott Morrison (Sep 10 2023 at 03:19):

I've been caught by this exact same non-obvious import.

Scott Morrison (Sep 10 2023 at 03:19):

I think we should move this result to its own better-named file!

Michael Stoll (Sep 10 2023 at 09:02):

Alex J. Best said:

Michael Stoll said:

So I was missing this non-obvious import...

It's actually not so bad these days to develop using import Mathlib or to have a scratch file with that in for the purposes of #synth or apply? queries

True, but it takes a while to get used to that.


Last updated: Dec 20 2023 at 11:08 UTC