Zulip Chat Archive

Stream: mathlib4

Topic: Some `Smul`s in code


Jihoon Hyun (Jan 14 2023 at 06:38):

The current master branch contains Smul in following files:
Mathlib/Data/Set/Pointwise/SMul.lean
Mathlib/Data/Rat/Cast.lean
Mathlib/Algebra/Module/Basic.lean
Mathlib/Tactic/ToAdditive.lean -- This seems irrelevant
If these Smuls should be changed to SMul, I'll make a pull request for that.
Also, I'd like to check, if SMul appears in front of the theorem, which of sMul_xx or smul_xx is correct?

Mario Carneiro (Jan 14 2023 at 06:57):

SMul is the correct name, and smul is how it is spelled in theorems

Mario Carneiro (Jan 14 2023 at 06:58):

(the rule is that if there is a cluster of capitals at the beginning of the name, they are all lowercased together)


Last updated: Dec 20 2023 at 11:08 UTC