Zulip Chat Archive

Stream: general

Topic: decidable_lt_of_decidable_le


Yaël Dillies (Apr 07 2022 at 09:58):

Why is docs#decidable_lt_of_decidable_le still an instance? This messes up with the decidability coming from docs#linear_order.

Eric Rodriguez (Apr 07 2022 at 10:36):

I mean, if this is an instance then why can't we just yeet the decidable_le from linear_order? It doesn't even need decidable_eq

Yaël Dillies (Apr 07 2022 at 10:38):

Because deriving decidability instances is bad.

Eric Rodriguez (Apr 07 2022 at 10:44):

why? the argument is that it causes diamonds, but if we exclusively use this one then I don't see the real problem

Eric Rodriguez (Apr 07 2022 at 10:44):

urgh, I guess it still causes diamonds

Eric Rodriguez (Apr 07 2022 at 10:45):

i pray for typeclass inference to look at subsingleton issues or at least give special support for subsingleton instances <3

Reid Barton (Apr 07 2022 at 11:12):

FWIW linear_order used to not contain decidability instances

Yaël Dillies (Apr 07 2022 at 11:31):

You mean that decidable_lt_of_decidable_le should have been made an instance when linear_order was refactored?

Eric Rodriguez (Apr 07 2022 at 11:34):

that's what I meant, yes, but I'm not so sure that's sufficient

Eric Rodriguez (Apr 07 2022 at 11:34):

I think you'd still get issues with classical etc


Last updated: Dec 20 2023 at 11:08 UTC