Commit 2022-12-20 05:52 b9e19018
View on Github →fix: Data.List.Defs (#1118)
Fixes some problems surrounding Data.List.Defs that were affecting the ongoing port of Data.List.Basic.
- introduces
takeIas a faithful port oftake'and fixes the aligntake'was previously erroneously aligned withtakeD.takeDuses an explicitly-provided argument as a default whereastakeIusesInhabited'sdefault.
- reverses the dependency
Data.List.Chain→Data.List.DefstoData.List.Defs→Data.List.Chain- This was causing a circular dependency for
Data.List.Basicwhen it attempted to importData.List.Defs. - We move
chain_consfromData.List.ChainintoData.List.Defs. - All of these changes are in keeping mathlib3's original structure.
- We have to supplement
Control.Traversable.Basic's imports, since it was previously relying onData.Option.DefsviaData.List.Defs←Data.List.Chain← ... See this Zulip conversation for more context.
- This was causing a circular dependency for