Zulip Chat Archive

Stream: mathlib4

Topic: Naming of `n` in lemmas about `a ≡ b [MOD n]`


Yury G. Kudryashov (Oct 10 2025 at 18:49):

In #29072, I'm adding a bunch of lemmas about docs#Nat.ModEq. E.g., one of the lemmas say that a + n ≡ b [MOD n] iff a ≡ b [MOD n]. When I was writing this file for Harmonic, I used self for n in these lemmas, but this may not be a good choice for Mathlib. @Eric Wieser suggests n or period. Any other suggesions?

Kevin Buzzard (Oct 10 2025 at 18:59):

base?

Kevin Buzzard (Oct 10 2025 at 19:00):

moddand :-)

Kevin Buzzard (Oct 10 2025 at 19:04):

modulus?

Yury G. Kudryashov (Oct 10 2025 at 19:04):

/poll How should we call n in these lemmas?
self
n
period
base
moddand
modulus


Last updated: Dec 20 2025 at 21:32 UTC