-
Notifications
You must be signed in to change notification settings - Fork 371
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 Control.Basic #588
Closed
Closed
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
1 task
Can you please lint? |
The Kleisli composition operator has binding precedence 55 in Lean 4, and it is a named function, which makes the reason for the existence of `fish` in Lean 3 moot.
I've added docstrings to the |
kim-em
reviewed
Nov 23, 2022
kim-em
reviewed
Nov 23, 2022
kim-em
reviewed
Nov 23, 2022
bors merge |
bors bot
pushed a commit
that referenced
this pull request
Nov 25, 2022
mathlib3 SHA: 08aeb33b5b693fb1392a7568ae2c0b253516535e porting notes: 1. The notation `$<` has been removed entirely. It is the same operation as `|>` in Lean 4 except with lower priority and a quick grep revealed it occurred literally nowhere in mathlib3. 2. The dubious translation errors were due to order of implicit arguments and have been `#alignₓ`ed (except `Sum.bind` I'm not sure what the issue was, see [Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/why.20dubious.3F)) 3. The `fish` definition is no longer needed because `>=>` has the correct (i.e., same as mathlib3's `fish`) binding precedence (`55`) in core Lean 4. 4. It should be noted that `>=>` was left-associative in Lean 3, but it is now right-associative in Lean 4. There is a comment to this effect near `fish_assoc`. Co-authored-by: Jireh Loreaux <[email protected]> Co-authored-by: Ruben Van de Velde <[email protected]> Co-authored-by: Scott Morrison <[email protected]>
Pull request successfully merged into master. Build succeeded:
|
rosborn
added a commit
that referenced
this pull request
Nov 27, 2022
* master: feat: port Data.Countable.Defs (#736) chore: bump to nightly-2022-11-26 (#747) feat(Algebra/Ring/Units): port file (#746) style(Algebra/Order/Monoid/Lemmas): Update to current naming convention (#743) feat: stubs in ad-hoc ported files for linarith algebra requirements (#733) feat: port algebra.group.semiconj (#717) chore: make argument to mul_inv_cancel implicit (#737) feat(Algebra/Ring/InjSurj): port file (#734) chore: bump to nightly-2022-11-25 (#731) feat: port order.minmax (#728) chore: make the 'p' argument to Nat.find implicit (#730) feat: port Control.Basic (#588) feat: port data.finite.defs (#698) feat: port: Data.DList.Basic (#616) chore: reduce imports in Algebra.Group.Defs (#727) chore(Algebra/Order/Hom/Basic): remove outParam (#692)
bors bot
pushed a commit
that referenced
this pull request
Nov 28, 2022
mathlib3 SHA: 71ca477041bcd6d7c745fe555dc49735c12944b7 - [x] depends on: #588 Notes: 1. There is a discrepancy between the Lean 3 and Lean 4 types of `has_seq.seq` and `Seq.seq`. I added an `ₓ` for alignment. 2. There were one or two places where the existing `simp` or `rw` calls didn't succeed, but I'm not entirely sure why. 3. In `Functor.Comp.functor_comp_id` and `Functor.Comp.functor_id_comp` I had to use `Id` instead of `id`, because only the former has the `Monad` instance. 4. I had to change the imports, but I think what is there now is minimal. Co-authored-by: ADedecker <[email protected]>
bors bot
pushed a commit
that referenced
this pull request
Nov 28, 2022
mathlib3 SHA: 71ca477041bcd6d7c745fe555dc49735c12944b7 - [x] depends on: #588 Notes: 1. There is a discrepancy between the Lean 3 and Lean 4 types of `has_seq.seq` and `Seq.seq`. I added an `ₓ` for alignment. 2. There were one or two places where the existing `simp` or `rw` calls didn't succeed, but I'm not entirely sure why. 3. In `Functor.Comp.functor_comp_id` and `Functor.Comp.functor_id_comp` I had to use `Id` instead of `id`, because only the former has the `Monad` instance. 4. I had to change the imports, but I think what is there now is minimal. Co-authored-by: ADedecker <[email protected]>
bors bot
pushed a commit
that referenced
this pull request
Nov 28, 2022
mathlib3 SHA: 71ca477041bcd6d7c745fe555dc49735c12944b7 - [x] depends on: #588 Notes: 1. There is a discrepancy between the Lean 3 and Lean 4 types of `has_seq.seq` and `Seq.seq`. I added an `ₓ` for alignment. 2. There were one or two places where the existing `simp` or `rw` calls didn't succeed, but I'm not entirely sure why. 3. In `Functor.Comp.functor_comp_id` and `Functor.Comp.functor_id_comp` I had to use `Id` instead of `id`, because only the former has the `Monad` instance. 4. I had to change the imports, but I think what is there now is minimal. Co-authored-by: ADedecker <[email protected]>
bors bot
pushed a commit
that referenced
this pull request
Nov 28, 2022
mathlib3 SHA: 71ca477041bcd6d7c745fe555dc49735c12944b7 - [x] depends on: #588 Notes: 1. There is a discrepancy between the Lean 3 and Lean 4 types of `has_seq.seq` and `Seq.seq`. I added an `ₓ` for alignment. 2. There were one or two places where the existing `simp` or `rw` calls didn't succeed, but I'm not entirely sure why. 3. In `Functor.Comp.functor_comp_id` and `Functor.Comp.functor_id_comp` I had to use `Id` instead of `id`, because only the former has the `Monad` instance. 4. I had to change the imports, but I think what is there now is minimal. Co-authored-by: ADedecker <[email protected]>
bors bot
pushed a commit
that referenced
this pull request
Nov 28, 2022
mathlib3 SHA: 71ca477041bcd6d7c745fe555dc49735c12944b7 - [x] depends on: #588 Notes: 1. There is a discrepancy between the Lean 3 and Lean 4 types of `has_seq.seq` and `Seq.seq`. I added an `ₓ` for alignment. 2. There were one or two places where the existing `simp` or `rw` calls didn't succeed, but I'm not entirely sure why. 3. In `Functor.Comp.functor_comp_id` and `Functor.Comp.functor_id_comp` I had to use `Id` instead of `id`, because only the former has the `Monad` instance. 4. I had to change the imports, but I think what is there now is minimal. Co-authored-by: ADedecker <[email protected]>
bors bot
pushed a commit
that referenced
this pull request
Nov 28, 2022
mathlib3 SHA: 71ca477041bcd6d7c745fe555dc49735c12944b7 - [x] depends on: #588 Notes: 1. There is a discrepancy between the Lean 3 and Lean 4 types of `has_seq.seq` and `Seq.seq`. I added an `ₓ` for alignment. 2. There were one or two places where the existing `simp` or `rw` calls didn't succeed, but I'm not entirely sure why. 3. In `Functor.Comp.functor_comp_id` and `Functor.Comp.functor_id_comp` I had to use `Id` instead of `id`, because only the former has the `Monad` instance. 4. I had to change the imports, but I think what is there now is minimal. Co-authored-by: ADedecker <[email protected]>
1 task
bors bot
pushed a commit
that referenced
this pull request
Nov 28, 2022
mathlib3 SHA: 71ca477041bcd6d7c745fe555dc49735c12944b7 - [x] depends on: #588 Notes: 1. There is a discrepancy between the Lean 3 and Lean 4 types of `has_seq.seq` and `Seq.seq`. I added an `ₓ` for alignment. 2. There were one or two places where the existing `simp` or `rw` calls didn't succeed, but I'm not entirely sure why. 3. In `Functor.Comp.functor_comp_id` and `Functor.Comp.functor_id_comp` I had to use `Id` instead of `id`, because only the former has the `Monad` instance. 4. I had to change the imports, but I think what is there now is minimal. Co-authored-by: ADedecker <[email protected]>
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.
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.
mathlib3 SHA: 08aeb33b5b693fb1392a7568ae2c0b253516535e
porting notes:
$<
has been removed entirely. It is the same operation as|>
in Lean 4 except with lower priority and a quick grep revealed it occurred literally nowhere in mathlib3.#alignₓ
ed (exceptSum.bind
I'm not sure what the issue was, see Zulip)fish
definition is no longer needed because>=>
has the correct (i.e., same as mathlib3'sfish
) binding precedence (55
) in core Lean 4.>=>
was left-associative in Lean 3, but it is now right-associative in Lean 4. There is a comment to this effect nearfish_assoc
.