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: add String.splitOn_of_valid
#743
Open
chabulhwi
wants to merge
5
commits into
leanprover-community:main
Choose a base branch
from
chabulhwi:String.splitOn_of_valid_v3
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: add String.splitOn_of_valid
#743
chabulhwi
wants to merge
5
commits into
leanprover-community:main
from
chabulhwi:String.splitOn_of_valid_v3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
4 times, most recently
from
April 16, 2024 09:30
2df1e65
to
3699b5d
Compare
awaiting-review |
github-actions
bot
added
the
awaiting-review
This PR is ready for review; the author thinks it is ready to be merged.
label
Apr 16, 2024
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
4 times, most recently
from
April 17, 2024 01:22
75b032f
to
dd5f11a
Compare
This is doing too many things at once. Can you split out the preliminary steps (upstreaming from Mathlib) as separate PRs? |
semorrison
added
awaiting-author
Waiting for PR author to address issues
and removed
awaiting-review
This PR is ready for review; the author thinks it is ready to be merged.
labels
Apr 17, 2024
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
4 times, most recently
from
April 19, 2024 14:53
e6b2836
to
cf96e0e
Compare
@semorrison I've split these commits into separate PRs. |
awaiting-review |
github-actions
bot
added
awaiting-review
This PR is ready for review; the author thinks it is ready to be merged.
and removed
awaiting-author
Waiting for PR author to address issues
labels
Apr 19, 2024
chabulhwi
changed the title
feat: add String.splitOn_of_valid
feat: add Apr 19, 2024
String.splitOn_of_valid
semorrison
added
depends on another PR
This is stacked on top of another Std4 PR.
and removed
awaiting-review
This PR is ready for review; the author thinks it is ready to be merged.
labels
Apr 24, 2024
leanprover-community-mathlib4-bot
added
the
merge-conflict
This PR has merge conflicts with the `main` branch which must be resolved by the author.
label
May 2, 2024
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
from
May 3, 2024 01:28
cf96e0e
to
55046a9
Compare
leanprover-community-mathlib4-bot
removed
the
merge-conflict
This PR has merge conflicts with the `main` branch which must be resolved by the author.
label
May 3, 2024
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
from
May 3, 2024 01:55
55046a9
to
4af3b7e
Compare
I resolved merge conflicts. |
semorrison
reviewed
May 3, 2024
semorrison
reviewed
May 3, 2024
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
9 times, most recently
from
May 7, 2024 06:10
2c75571
to
d080155
Compare
@semorrison I resolved all the conversations. |
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
from
May 9, 2024 16:34
d080155
to
91413c1
Compare
leanprover-community-mathlib4-bot
added
the
merge-conflict
This PR has merge conflicts with the `main` branch which must be resolved by the author.
label
May 9, 2024
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
from
May 10, 2024 01:46
91413c1
to
6911f78
Compare
leanprover-community-mathlib4-bot
removed
the
merge-conflict
This PR has merge conflicts with the `main` branch which must be resolved by the author.
label
May 10, 2024
* `List.isEmpty_iff_eq_nil` and `List.modifyHead_modifyHead` are from `Mathlib.Data.List.Basic`. I removed the `simp` priority and `nolint` attribute from `modifyHead_modifyHead` because we don't need them anymore. * `List.cons_prefix_cons` is from `Mathlib.Data.List.Infix`. Its previous name was `List.cons_prefix_iff`. We need these theorems to prove `String.splitOn_of_valid`. See leanprover-community#756. Co-authored-by: Kim Morrison <kim@tqft.net>
Most of these lemmas are needed to prove `String.splitOn_of_valid`.
* `List.splitOnceP` returns `(l₁, l₂)` for the first split `l = l₁ ++ l₂` such that `P l₂` returns true. * `List.splitOnList` splits a list at every occurrence of a separator list. The separators are not in the result. * `List.splitOnListAux` is an auxiliary definition for proving `String.splitOnAux_of_valid`. Co-authored-by: Mario Carneiro <di.gama@gmail.com> Co-authored-by: Kim Morrison <scott.morrison@gmail.com>
Add `String.splitOnAux_of_valid` and `String.splitOn_of_valid`.
chabulhwi
force-pushed
the
String.splitOn_of_valid_v3
branch
from
May 23, 2024 13:56
6911f78
to
32bf83b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
String.splitOn_of_valid
is the first of the eleven unproved theoremsabout strings. I added the following to prove it:
Nat.add
and listsBatteries.Data.List.SplitOnList
String.splitOnAux_of_valid
This is the third version of #495 and includes #531. The second version is #719.
Function.id_def
from mathlib #755