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] - refactor: remove @[simp] from Pi.natCast_def and Pi.intCast_def #23430

Closed
wants to merge 1 commit into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Mar 29, 2025

These lemmas prevented general simp lemmas about rings applying to the product ring.

Also adds @[simp] to a lemma that previously was not simp-normal but now is.


Open in Gitpod

These lemmas prevented general simp lemmas about rings applying to the product ring.
@eric-wieser eric-wieser requested a review from YaelDillies March 29, 2025 12:28
Copy link

PR summary 7153aeb3a2

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

I was going to ask you to do the same for Prod, but looks like we don't have Prod.natCast_def! (cf Data.Nat.Cast.Prod.

maintainer merge

Copy link

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@riccardobrasca
Copy link
Member

Thanks!

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added ready-to-merge This PR has been sent to bors. and removed maintainer-merge labels Mar 29, 2025
mathlib-bors bot pushed a commit that referenced this pull request Mar 29, 2025
…#23430)

These lemmas prevented general simp lemmas about rings applying to the product ring.

Also adds `@[simp]` to a lemma that previously was not simp-normal but now is.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Mar 29, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor: remove @[simp] from Pi.natCast_def and Pi.intCast_def [Merged by Bors] - refactor: remove @[simp] from Pi.natCast_def and Pi.intCast_def Mar 29, 2025
@mathlib-bors mathlib-bors bot closed this Mar 29, 2025
@mathlib-bors mathlib-bors bot deleted the eric-wieser/no-cast-simp branch March 29, 2025 14:09
riccardobrasca pushed a commit that referenced this pull request Mar 30, 2025
…#23430)

These lemmas prevented general simp lemmas about rings applying to the product ring.

Also adds `@[simp]` to a lemma that previously was not simp-normal but now is.
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.

4 participants