-
Notifications
You must be signed in to change notification settings - Fork 112
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: prove Array.toList_erase
#1101
Conversation
awaiting-review |
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.
Looks good! Just a couple of small changes.
Batteries/Data/Array/Lemmas.lean
Outdated
(l.erase a).toList = l.toList.erase a | ||
@[simp] theorem toList_erase [BEq α] {l : Array α} {a : α} : | ||
(l.erase a).toList = l.toList.erase a := by | ||
simp [erase, ← List.eraseIdx_indexOf_eq_erase, List.indexOf_eq_indexOf?] |
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.
Nonterminal simp: please use simp only
instead.
Mathlib CI status (docs):
|
Co-authored-by: François G. Dorais <[email protected]>
awaiting-review |
Thank you! |
61dd720
This is functional, but I don't have much experience, so any review is much appreciated.