Zulip Chat Archive

Stream: mathlib4

Topic: Nat.mul_eq and Nat.mul_def


Alex Meiburg (Jan 16 2024 at 02:16):

Both Nat.mul_eq and Nat.mul_def seem to exist, and they have exactly the same type signature. Is there a reason (besides 'history')?

Yury G. Kudryashov (Jan 16 2024 at 02:35):

I guess, the only reason is history. docs#Nat.mul_eq is in Lean source code while docs#Nat.mul_def is in Mathlib, migrated from mathlib3.

Yury G. Kudryashov (Jan 16 2024 at 02:36):

Feel free to submit a PR that turns Nat.mul_def into a deprecated alias for Nat.mul_eq.

Kim Morrison (Jan 16 2024 at 03:37):

Hmm, maybe careful here. Note that Std adds lemmas like Int.add_def and Int.mul_def, so it's not like there's a consistency before Mathlib arrives!

Yury G. Kudryashov (Jan 16 2024 at 08:26):

So, what should we do?

Yaël Dillies (Jan 16 2024 at 08:36):

Rename the core one to Nat.mul_def?

Eric Wieser (Jan 16 2024 at 09:11):

Or at least upstream Nat.mul_def to Std, since the consistency is with other names there


Last updated: May 02 2025 at 03:31 UTC