Zulip Chat Archive
Stream: mathlib4
Topic: Data.List.Indexes !4#1812
Johan Commelin (Feb 04 2023 at 09:56):
This file has some troubles because a definition changed. So it ports the Lean 3 version as
protected def oldMapIdxCore (f : ℕ → α → β) : ℕ → List α → List β
| _, [] => []
| k, a :: as => f k a :: List.oldMapIdxCore f (k + 1) as
and later proves equality with mapIdxCore
etc...
I think the approach is fine during the port. Should we use the old
prefix for such occasions? Or rather a '
suffix?
Eric Wieser (Feb 04 2023 at 10:12):
docs4#List.mapIdx, docs#list.map_with_idx
Johan Commelin (Feb 11 2023 at 08:18):
I kicked this on the queue
Last updated: Dec 20 2023 at 11:08 UTC