Skip to content

[Merged by Bors] - chore: bump dependencies (upstream LazyList)#14778

Closed
kim-em wants to merge 6 commits intomasterfrom
upstream_lazylist
Closed

[Merged by Bors] - chore: bump dependencies (upstream LazyList)#14778
kim-em wants to merge 6 commits intomasterfrom
upstream_lazylist

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

@kim-em kim-em commented Jul 15, 2024

Also adjusts names arguments to LawfulMonad.mk' to match their actual order.

For some reason the motive now has to be specified explicitly.
I'm not really interested in understanding why, however, because this file, in Batteries and Mathlib is about to be deprecated on the grounds that LazyList is not currently being used, is not actually useful in practice without VM support (it was ported from Mathlib3, where it did have such support), and MLList supplies much of the functionality.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 15, 2024

PR summary f6bd88e504

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Data.LazyList.Basic 354 356 +2 (+0.56%)
Import changes for all files
Files Import difference
Mathlib.Data.LazyList.Basic 2

Declarations diff

+ bind_singleton
+ get_mk
+ get_pure
- Mem
- Mem.decidable
- append_assoc
- append_bind
- append_nil
- attach
- bind
- decidableEq
- find
- forall_mem_cons
- init
- instance : Monad LazyList
- instance {α} : Membership α (LazyList α)
- instance {α} [Repr α] : Repr (LazyList α)
- interleave
- interleaveAll
- mem_cons
- mem_nil
- mfirst
- pmap
- reverse
- traverse

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

Copy link
Copy Markdown
Contributor

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Choose a reason for hiding this comment

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

maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 15, 2024
Comment on lines -171 to +97
(bind_pure_comp := by
intro _ _ f xs
simp only [bind, Functor.map, pure, singleton]
induction xs using LazyList.traverse.induct (m := @Id) (f := f) with
| case1 =>
simp only [Thunk.pure, LazyList.bind, LazyList.traverse, Id.pure_eq]
| case2 _ _ ih =>
simp only [LazyList.bind, LazyList.traverse, Seq.seq, Id.map_eq, append, Thunk.pure]
rw [← ih]
simp [Thunk.pure, Thunk.get, append])
(id_map := by
intro α xs
induction xs using LazyList.rec (motive_2 := fun xs => id <$> xs.get = xs) with
| nil => simp only [Functor.map, comp_id, LazyList.bind]
| cons h t _ => simp only [Functor.map, comp_id, bind_singleton]
| mk f _ => ext; simp_all)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any particular reason you swapped the order of these?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Matches the order of the arguments.

kim-em added a commit that referenced this pull request Jul 15, 2024
@kim-em kim-em force-pushed the upstream_lazylist branch from 32073cd to f6bd88e Compare July 15, 2024 22:56
@eric-wieser
Copy link
Copy Markdown
Member

bors d+

I edited the PR description to capture your zulip comment.

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 15, 2024

✌️ semorrison can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 15, 2024
@eric-wieser
Copy link
Copy Markdown
Member

Oh, I see CI is done

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Jul 15, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jul 15, 2024
Also adjusts names arguments to `LawfulMonad.mk'` to match their actual order.

For some reason the motive now has to be specified explicitly.
I'm not really interested in understanding why, however, because this file, in Batteries and Mathlib is about to be deprecated on the grounds that LazyList is not currently being used, is not actually useful in practice without VM support (it was ported from Mathlib3, where it did have such support), and MLList supplies much of the functionality.

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 16, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: bump dependencies (upstream LazyList) [Merged by Bors] - chore: bump dependencies (upstream LazyList) Jul 16, 2024
@mathlib-bors mathlib-bors bot closed this Jul 16, 2024
@mathlib-bors mathlib-bors bot deleted the upstream_lazylist branch July 16, 2024 00:30
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants