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
takeI
as a faithful port oftake'
and fixes the aligntake'
was previously erroneously aligned withtakeD
.takeD
uses an explicitly-provided argument as a default whereastakeI
usesInhabited
'sdefault
.
- reverses the dependency
Data.List.Chain
→Data.List.Defs
toData.List.Defs
→Data.List.Chain
- This was causing a circular dependency for
Data.List.Basic
when it attempted to importData.List.Defs
. - We move
chain_cons
fromData.List.Chain
intoData.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.Defs
viaData.List.Defs
←Data.List.Chain
← ... See this Zulip conversation for more context.
- This was causing a circular dependency for