-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: List.insertP
and lemmas
#569
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a specific objection to insertP
, but we are working on triaging what parts of Std can and should be moved to Lean core (with further polishing) to provide a good new user experience.
As such I'd like to hold off introducing new operations unless they enhance existing capabilities or are needed for high-priority tactics.
The |
List.insertP
is a generalized, tail-recursive version of the insert step in insertion-sort. Sample use:It will be useful to streamline and optimize
ac_rfl
once moved to Std.PS: Perhaps someone has a better name?