Zulip Chat Archive

Stream: general

Topic: Naming convention for function smul


Yury G. Kudryashov (Jul 31 2023 at 19:13):

We have 2 SMuls on functions: ((f : α → M) • (g : α → β)) x = f x • g x and ((c : M) • (g : α → β)) x = c • g x. Lemmas about both smuls use smul in the name. Should we use some other string in the lemmas about the first smul?

Yury G. Kudryashov (Jul 31 2023 at 19:15):

Or use const_smul for the latter one as in docs#Set.indicator_smul and docs#Set.indicator_const_smul ?

Eric Wieser (Jul 31 2023 at 20:11):

pointwiseSmul?

Eric Wieser (Jul 31 2023 at 20:11):

It's a pretty bad instance generally, that causes non-eq diamonds

Eric Wieser (Jul 31 2023 at 20:12):

If we removed it then we wouldn't need to name it any more!

Anatole Dedecker (Jul 31 2023 at 20:53):

Which instance do you want to remove?

Eric Wieser (Jul 31 2023 at 21:00):

docs#Pi.smul' is the one that I consider bad, which I explain here.

Yury G. Kudryashov (Jul 31 2023 at 23:32):

As I explained there, we want this instance for add_torsors but moving it to a scope LGTM.

Yury G. Kudryashov (Aug 01 2023 at 00:19):

Do you want to move it?


Last updated: Dec 20 2023 at 11:08 UTC