Zulip Chat Archive

Stream: mathlib4

Topic: Finding a home for lemmas about Finset.lcm/Finset.prod


Snir Broshi (Dec 03 2025 at 06:05):

I'm not sure where to place these lemmas, and #find_home doesn't give any sensible output (it might be confused since Mathlib moved to the module system):

Finset.lcm/Finset.prod lemmas

Snir Broshi (Dec 03 2025 at 06:05):

Where should I place these? The relevant files are:

  • Mathlib.Algebra.GCDMonoid.Finset: defines Finset.lcm and contains Finset.lcm_dvd/Finset.dvd_lcm
  • Mathlib.RingTheory.Coprime.Lemmas: contains Finset.prod_dvd_of_isRelPrime
  • Mathlib.Algebra.BigOperators.Group.Finset.Piecewise: contains Finset.dvd_prod_of_mem
  • Mathlib.Algebra.GroupWithZero.Associated: defines Associated and contains associated_of_dvd_dvd
  • Mathlib.Data.Nat.GCD.Basic: contains Nat.coprime_iff_isRelPrime
  • Mathlib.Algebra.GCDMonoid.Nat: contains an instance for NormalizedGCDMonoid ℕ

The min imports for them is:

import Mathlib.Algebra.GCDMonoid.Finset
import Mathlib.Algebra.GCDMonoid.Nat
import Mathlib.Data.Nat.GCD.Basic
import Mathlib.RingTheory.Coprime.Lemmas

There are ~1000 files in mathlib that include all of these requirements, but none of them are very related to these lemmas.

Snir Broshi (Dec 03 2025 at 06:06):

So the question is: should I create a new file for these or can I add imports in an existing file?
The modules I mentioned seem to be pretty popular so I'm worried about adding imports.

Snir Broshi (Dec 03 2025 at 17:18):

Does anyone have ideas? Otherwise, can an admin please move this to the mathlib channel?

Notification Bot (Dec 03 2025 at 17:31):

This topic was moved here from #new members > Finding a home for lemmas about Finset.lcm/Finset.prod by Kevin Buzzard.


Last updated: Dec 20 2025 at 21:32 UTC