Skip to content

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

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

[Merged by Bors] - chore: adaptations for leanprover/lean4#3124#9500
kim-em wants to merge 1746 commits intobump/v4.6.0from
lean-pr-testing-3124

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

@kim-em kim-em commented Jan 7, 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

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.

@kim-em
Copy link
Copy Markdown
Contributor Author

kim-em commented Jan 11, 2024

!bench

@leanprover-bot
Copy link
Copy Markdown
Collaborator

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 <scott.morrison@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 12, 2024

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