Zulip Chat Archive

Stream: general

Topic: instance assuming AC


FR (Apr 07 2022 at 17:16):

I noticed that the instance src#left_cancel_semigroup.contravariant_mul_le_of_contravariant_mul_lt uses the lemma src#le_iff_eq_or_lt, which needs to assume AC. This leads to some lemmas also assuming AC even for natural numbers.
Is there any good way to make it do not need to assume AC for the types with docs#decidable_eq?

Yaël Dillies (Apr 07 2022 at 17:18):

Are you doing this for yourself or for mathlib? mathlib is resolutely classical so we couldn't care less.

FR (Apr 07 2022 at 17:25):

But mathlib still preserves some lemmas that explicitly attempt to avoid AC in decidable namespace? I suspected that someone might care about it.

Yaël Dillies (Apr 07 2022 at 17:54):

There are 45 such lemmas across all of mathlib, 83760 lemmas in total (although maybe half are autogenerated).


Last updated: Dec 20 2023 at 11:08 UTC