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.leanhas the definition ofDFinsuppand all the essential definitions:support,single,update, theAddCommMonoidstructure. (Or should this be renamed toBasic.lean?)Data/DFinsupp/Ext.leanhas an extensionality principle forAddMonoidHoms composed withDFinsupps. Might go intoDefs.leanexcept it needs some heavy imports.Data/DFinsupp/BigOperators.lean: sums and products ofDFinsupps, and sums and products asDFinsuppsData/DFinsupp/FiniteInfinite.lean: instances forFintypeandInfiniteData/DFinsupp/Module.lean: scalar multiplication and module structure; theDFinsuppmaps as linear mapsData/DFinsupp/Sigma.lean:sigmaCurryandsigmaUncurryData/DFinsupp/Submonoid.lean: lemmas involving submonoids, in particular that (additive) submonoids are closed under products (sums) ofDFinsupps The following file no longer exists:Data/DFinsupp/Basic.lean(split completely!)