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: definesFinset.lcmand containsFinset.lcm_dvd/Finset.dvd_lcmMathlib.RingTheory.Coprime.Lemmas: containsFinset.prod_dvd_of_isRelPrimeMathlib.Algebra.BigOperators.Group.Finset.Piecewise: containsFinset.dvd_prod_of_memMathlib.Algebra.GroupWithZero.Associated: definesAssociatedand containsassociated_of_dvd_dvdMathlib.Data.Nat.GCD.Basic: containsNat.coprime_iff_isRelPrimeMathlib.Algebra.GCDMonoid.Nat: contains an instance forNormalizedGCDMonoid ℕ
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