batteries icon indicating copy to clipboard operation
batteries copied to clipboard

refactor: move theorems about lists from mathlib

Open chabulhwi opened this issue 10 months ago • 9 comments

List.isEmpty_iff_eq_nil and List.modifyHead_modifyHead are from Mathlib.Data.List.Basic. We need these theorems to prove String.splitOn_of_valid. See https://github.com/leanprover-community/batteries/pull/743.

Batteries bump PR in Mathlib: https://github.com/leanprover-community/mathlib4/pull/12540

Co-authored-by: Kim Morrison [email protected]


  • [x] depends-on: https://github.com/leanprover-community/batteries/pull/790

chabulhwi avatar Apr 19 '24 14:04 chabulhwi

awaiting-review

chabulhwi avatar Apr 19 '24 14:04 chabulhwi

Is there a Mathlib adaptation PR ready? A lot of things are in flight at the moment so I'd like to be confident that after merging I can get everything working quickly. See e.g. what Yury did at https://github.com/leanprover/std4/pull/758.

kim-em avatar Apr 30 '24 06:04 kim-em

Is there a Mathlib adaptation PR ready? A lot of things are in flight at the moment so I'd like to be confident that after merging I can get everything working quickly. See e.g. what Yury did at #758.

@semorrison I opened a Mathlib PR that removes the theorems I brought to ~~Std~~ Batteries. See https://github.com/leanprover-community/mathlib4/pull/12540.

chabulhwi avatar Apr 30 '24 07:04 chabulhwi

awaiting-review

chabulhwi avatar Apr 30 '24 07:04 chabulhwi

I resolved merge conflicts.

chabulhwi avatar May 03 '24 01:05 chabulhwi

awaiting-review

chabulhwi avatar May 06 '24 07:05 chabulhwi

The PR description should be a coherent summary, not a list of commit messages. If the commit messages are largely separate, then this should be separate PRs; for instance, perhaps the porting note cleanup and renames can happen in mathlib before you move things.

eric-wieser avatar May 09 '24 07:05 eric-wieser

@eric-wieser I see. I can make separate pull requests from the later commits suggested by @semorrison. I'll do it until tomorrow. Thanks for pointing that out!

chabulhwi avatar May 09 '24 10:05 chabulhwi

The PR description should be a coherent summary, not a list of commit messages. If the commit messages are largely separate, then this should be separate PRs; for instance, perhaps the porting note cleanup and renames can happen in mathlib before you move things.

@semorrison @eric-wieser I made a new PR from a commit and squashed the rest of the commits.

chabulhwi avatar May 09 '24 16:05 chabulhwi