Skip to content
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

[Merged by Bors] - feat(data/seq/seq): prove seq.ext earlier #15830

Closed
wants to merge 11 commits into from

Conversation

vihdzp
Copy link
Collaborator

@vihdzp vihdzp commented Aug 3, 2022

We heavily golf seq.ext and move it to almost the beginning of the file. Doing this breaks the proof of seq.of_list_cons, which we also change and golf by adding a few trivial simp lemmas (not all of them are needed, but might as well add them).


Open in Gitpod

@vihdzp vihdzp added the awaiting-review The author would like community review of the PR label Aug 3, 2022
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot added blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. and removed blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. labels Aug 3, 2022
@mathlib-dependent-issues-bot
Copy link
Collaborator

This PR/issue depends on:

@eric-wieser eric-wieser added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Aug 3, 2022
@eric-wieser
Copy link
Member

Can you merge master?

@vihdzp vihdzp added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Aug 3, 2022
src/data/seq/seq.lean Outdated Show resolved Hide resolved
Co-authored-by: Yakov Pechersky <pechersky@users.noreply.github.com>
src/data/seq/seq.lean Outdated Show resolved Hide resolved
src/data/seq/seq.lean Outdated Show resolved Hide resolved
src/data/seq/seq.lean Outdated Show resolved Hide resolved
@urkud urkud added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Aug 15, 2022
@vihdzp vihdzp removed the awaiting-author A reviewer has asked the author a question or requested changes label Aug 16, 2022
@vihdzp vihdzp added the awaiting-review The author would like community review of the PR label Aug 16, 2022
exact h.trans (nat.le_succ n)
end⟩

instance coe_list : has_coe (list α) (seq α) := ⟨of_list⟩
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, it is strange to have both a function and a coercion. Which form is the simp-normal form? I would drop one of them.

@urkud
Copy link
Member

urkud commented Aug 24, 2022

OTOH, you don't change the API of of_list/coe, so let's merge this PR and drop coercion or of_list later. Thanks!
bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Aug 24, 2022
bors bot pushed a commit that referenced this pull request Aug 24, 2022
We heavily golf `seq.ext` and move it to almost the beginning of the file. Doing this breaks the proof of `seq.of_list_cons`, which we also change and golf by adding a few trivial `simp` lemmas (not all of them are needed, but might as well add them).
@bors
Copy link

bors bot commented Aug 24, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(data/seq/seq): prove seq.ext earlier [Merged by Bors] - feat(data/seq/seq): prove seq.ext earlier Aug 24, 2022
@bors bors bot closed this Aug 24, 2022
@bors bors bot deleted the earlier_ext branch August 24, 2022 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants