Zulip Chat Archive
Stream: mathlib4
Topic: Naming smul vs sMul
Richard Osborn (Dec 06 2022 at 13:16):
Not that it is incredibly important but I am currently working on porting GroupTheory.GroupAction.Units
and noticed that SMul.smul
is named differently that similar classes such as HMul.hMul
. Should this be fixed or are people happier with smul
?
Floris van Doorn (Dec 06 2022 at 18:56):
I guess smul
should be sMul
to be consistent with hMul
. I like smul
better, but I don't know if that is good enough for an exception to the naming conventions: https://github.com/leanprover-community/mathlib4/wiki/Porting-wiki#naming-convention
Richard Osborn (Dec 06 2022 at 19:14):
Yea, part of the reason I asked is that I also like the look of smul
.
There might be one problem with using smul
in that it is not clear when to use SMul
as lowerCamelCase within a name or to use smul
. The issue is avoided with SMul
and sMul
being the same in lowerCamelCase.
Richard Osborn (Dec 06 2022 at 19:15):
Ultimately, sMul
itself is generally hidden behind notation, so it’s primarily a matter or how it looks within theorems
Jireh Loreaux (Dec 06 2022 at 20:03):
I think you might be able to argue this falls under Acronyms like LE are written upper-/lowercase as a group, depending on what the first character would be
, which would imply smul
is the correct form.
Scott Morrison (Dec 06 2022 at 20:38):
I like smul
more.
Mario Carneiro (Dec 06 2022 at 21:49):
yes, part of the reason for that clause in the naming convention is to allow smul
as the lowercased version of SMul
Last updated: Dec 20 2023 at 11:08 UTC