Skip to content

[Merged by Bors] - chore: adaptations for leanprover/lean4#3124 - #9500

Closed
kim-em wants to merge 1746 commits into
bump/v4.6.0from
lean-pr-testing-3124
Closed

kim-em wants to merge 1746 commits into
bump/v4.6.0from
lean-pr-testing-3124

Conversation

@kim-em

@kim-em kim-em commented Jan 7, 2024 •

Copy link
Copy Markdown
Contributor

These are adaptations required for Leo's implementation of simprocs from leanprover/lean4#3124.

This is a PR to bump/v4.6.0. Before it can be merged we need to merge

I've updated a number of Mathlib tactics to adjust to the new type signatures in the simplifier, and these changes need to be reviewed carefully.


Open in Gitpod

theorem swap_mul_swap_mul_swap {x y z : α} (hxy : x ≠ y) (hxz : x ≠ z) :
swap y z * swap x y * swap y z = swap z x := by
nth_rewrite 2 [← swap_inv]
nth_rewrite 3 [← swap_inv]

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.

Did simprocs really make a difference here?

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.

No, this one is from leanprover/lean4#2539, which landed in nightly-2024-01-03.

I thought we already had an adaptation PR for that, so perhaps this is a change that landed in Mathlib master and so was ad-hoc fixed on nightly-testing in the meantime.

I propose just rolling it in here to avoid the overhead of a separate PR.

Comment thread test/matrix.lean Resolved
@kim-em

kim-em commented Jan 11, 2024

Copy link
Copy Markdown
Contributor Author

!bench

@leanprover-bot

Copy link
Copy Markdown

Here are the benchmark results for commit 5be9c98.Found no runs to compare against.

@jcommelin

Copy link
Copy Markdown
Member

Thanks 🎉

bors merge

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Jan 12, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Jan 12, 2024
These are adaptations required for Leo's implementation of simprocs from leanprover/lean4#3124. 

This is a PR to `bump/v4.6.0`. Before it can be merged we need to merge 
- [x] leanprover-community/batteries#496
- [x] leanprover-community/aesop#93
and then to update the lakefile so both dependencies point at the `bump/v4.6.0` branches.

I've updated a number of Mathlib tactics to adjust to the new type signatures in the simplifier, and these changes need to be reviewed carefully.



Co-authored-by: Scott Morrison <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Jan 12, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into bump/v4.6.0.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore: adaptations for leanprover/lean4#3124 [Merged by Bors] - chore: adaptations for leanprover/lean4#3124 Jan 12, 2024
@mathlib-bors mathlib-bors Bot closed this Jan 12, 2024
@mathlib-bors
mathlib-bors Bot deleted the lean-pr-testing-3124 branch January 12, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants