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: port Data.Stream.Init #849

Closed
wants to merge 46 commits into from

Conversation

siddhartha-gadgil
Copy link
Collaborator

@siddhartha-gadgil siddhartha-gadgil commented Dec 4, 2022

e574b1a4e891376b0ef974b926da39e05da12a06

Due to name collisions with Stream in Lean 4, the structure is Stream' as earlier defined. Recursive proofs were changed a bit to show termination.

siddhartha-gadgil and others added 23 commits December 3, 2022 10:51
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
@siddhartha-gadgil siddhartha-gadgil added awaiting-review The author would like community review of the PR mathlib-port This is a port of a theory file from mathlib. labels Dec 4, 2022
@siddhartha-gadgil siddhartha-gadgil changed the title feat: port Data.Stream.Init dad7ecf9a1feae63e6e49f07619b7087403fb8d4 feat: port Data.Stream.Init Dec 4, 2022
@ChrisHughes24
Copy link
Member

Should the file Data.Vector be moved to Init.Data.Vector. Is it a port of a Lean3 core file?

@digama0
Copy link
Member

digama0 commented Dec 8, 2022

No, unless it is moved in lean 3 as well. It is a lean 3 core file but it's not in Init.

@semorrison semorrison added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Dec 16, 2022
Copy link
Member

@kbuzzard kbuzzard left a comment

Choose a reason for hiding this comment

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

This is great. A bunch of auto-ported proofs didn't work for you because rw [def] seems to behave differently in Lean 4, in the middle of a proof involved in a definition of def. I looked at your workarounds and fed some additional information into the rewrites and got them working again; as a result I could golf a bunch of your proofs back to versions which far more closely approximate the autoported versions. Not a big deal but I thought you might be interested! Whether or not you add these golfs, this PR is ready to merge.

Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
Mathlib/Data/Stream/Init.lean Outdated Show resolved Hide resolved
@jcommelin jcommelin 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 Dec 22, 2022
siddhartha-gadgil and others added 12 commits December 22, 2022 16:53
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
@siddhartha-gadgil siddhartha-gadgil 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 Dec 22, 2022
@jcommelin
Copy link
Member

bors merge

bors bot pushed a commit that referenced this pull request Dec 22, 2022
e574b1a4e891376b0ef974b926da39e05da12a06

Due to name collisions with `Stream` in Lean 4, the structure is `Stream'` as earlier defined. Recursive proofs were changed a bit to show termination.


Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Dec 22, 2022
@bors
Copy link

bors bot commented Dec 22, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: port Data.Stream.Init [Merged by Bors] - feat: port Data.Stream.Init Dec 22, 2022
@bors bors bot closed this Dec 22, 2022
@bors bors bot deleted the data_stream_init branch December 22, 2022 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mathlib-port This is a port of a theory file from mathlib. ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants