-
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: migrate List lemmas from mathlib #233
feat: migrate List lemmas from mathlib #233
Conversation
Solved simp-normal form issues, but I'm not sure what to do with @[simp 1100] theorem modifyHead_modifyHead (l : List α) (f g : α → α) :
(l.modifyHead f).modifyHead g = l.modifyHead (g ∘ f) := by
-- ... I commented the
since |
|
So should I remove the |
👍 |
Done, I made |
Would it make sense to split this PR into sections? Everything looks good and many parts deserve an immediate all clear review (e.g. the |
I'm fine with splitting this PR if you let me know what does (not) deserve to be merged immediately. Regarding
|
I was thinking about splitting per section header but that's perhaps too much detail. Here is what I'm thinking:
It's a matter of taste whether to split into smaller parts than these two. |
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.
Got part way...
Is there a matching Mathlib PR? It would be nice to be able to verify that Mathlib can be updated cleanly. (Maybe you know this already, but you can just make a Mathlib branch in which the lakefile points to this branch.) |
I can do that, I did not know about the lakefile-pointer bit but I can probably figure it out. But I'd rather wait for the review process to be completed on this PR first, so that I know what will actually end up being merged. |
On that note, this PR is awaiting reviews, not author, could you change the label back @semorrison please? |
@AdrienChampion, in fact anyone can change labels, by writing a message solely containing one of |
Is there something blocking this PR on my end? Is it maybe the mathlib PR, should I open one to move on on this one? |
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.
Golfing.
All suggestions from @fgdorais Co-authored-by: François G. Dorais <fgdorais@gmail.com>
There was a recent discussion on Zulip that is relevant to this PR: https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/List.2Econcat.20and.20List.2Eappend |
From a quick experiment, this seems to be mostly absorbed by core and other PRs. Should we close? |
I think so, thank you for pointing it out
|
Integrates a few of Mathlib's lemmas over
List
s. Some proofs have been slightly simplified