Zulip Chat Archive

Stream: mathlib4

Topic: max_default/min_default


Ruben Van de Velde (Nov 18 2022 at 13:56):

It looks like docs#max_default / docs#min_default don't exist in lean4 - where should they go?

Yaël Dillies (Nov 18 2022 at 14:10):

I think we want to drop them entirely

Yaël Dillies (Nov 18 2022 at 14:12):

My plan is to make linear_order extend lattice. That wasn't possible in Lean 3 because linear_order was in core.

Yaël Dillies (Nov 18 2022 at 14:12):

Would people be happy with me carrying such a refactor even though it could technically wait for after the port?

Eric Wieser (Nov 18 2022 at 14:40):

Refactoring mathlib4 mid-port feels like a bad idea

Scott Morrison (Nov 19 2022 at 01:30):

I think this ship may have sailed, and it's going to be 6 months before we can do this refactor now...

Scott Morrison (Nov 19 2022 at 01:32):

@Ruben Van de Velde, you can add them to Mathlib/Init/Algebra/Order.lean.

Yaël Dillies (Nov 19 2022 at 10:07):

There's also the much more conservative option of copying all fields of lattice over to linear_order without actually extending it. That will only matter for instances of linear_order, and almost none of them references max_default/min_default anyway.


Last updated: Dec 20 2023 at 11:08 UTC