Commit 2024-11-11 13:54 19ffdd50
View on Github →chore(Data/DFinsupp): split Basic.lean
into many smaller files (#18656)
This PR splits Data/DFinsupp/Basic.lean
into a collection of smaller files. The goal here is to keep the structure somewhat intact. Thankfully a somewhat clean split was possible while keeping imports reasonably small.
The following new files were made:
Data/DFinsupp/Defs.lean
has the definition ofDFinsupp
and all the essential definitions:support
,single
,update
, theAddCommMonoid
structure. (Or should this be renamed toBasic.lean
?)Data/DFinsupp/Ext.lean
has an extensionality principle forAddMonoidHom
s composed withDFinsupp
s. Might go intoDefs.lean
except it needs some heavy imports.Data/DFinsupp/BigOperators.lean
: sums and products ofDFinsupp
s, and sums and products asDFinsupp
sData/DFinsupp/FiniteInfinite.lean
: instances forFintype
andInfinite
Data/DFinsupp/Module.lean
: scalar multiplication and module structure; theDFinsupp
maps as linear mapsData/DFinsupp/Sigma.lean
:sigmaCurry
andsigmaUncurry
Data/DFinsupp/Submonoid.lean
: lemmas involving submonoids, in particular that (additive) submonoids are closed under products (sums) ofDFinsupp
s The following file no longer exists:Data/DFinsupp/Basic.lean
(split completely!)