leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: lean4

Topic: Direction of List.map_toArray vs Array.toList_map


Eric Wieser (Feb 03 2026 at 22:42):

I'm a little surprised that docs#List.map_toArray and docs#Array.toList_map are both simp, yet push their functions in opposite directions. I think in mathlib we almost always push these kinds of functions from the outside in (matching toList_map), and make the user apply toArray_inj or similar iff they want to go the opposite way.


Last updated: Feb 28 2026 at 14:05 UTC

Theme Simple by wildflame © 2016 Powered by jekyll