Skip to content

[Merged by Bors] - chore(Analysis/Distribution/ContDiffMapSupportedIn): remove _apply le…#31094

Closed
grunweg wants to merge 1 commit intoleanprover-community:masterfrom
grunweg:remove-apply-30198
Closed

[Merged by Bors] - chore(Analysis/Distribution/ContDiffMapSupportedIn): remove _apply le…#31094
grunweg wants to merge 1 commit intoleanprover-community:masterfrom
grunweg:remove-apply-30198

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Oct 30, 2025

…mmas about instances

#30198 added both a coe_foo and a foo_apply lemma for foo in {zero,add,sub,neg,smul}: remove the apply lemmas again.

  • there was no good reason for having both; when in doubt, use coe lemmas
  • for simp, the coe lemmas are equally strong (and having both is very unusual at best),
  • when rewriting, one can add Pi.zero_apply and friends.

Is it acceptable to omit deprecations? The new lemmas were only around for two weeks, and presumably they are not used by name at all.

Open in Gitpod

…mmas about instances

PR leanprover-community#30198 added both a coe_foo and a foo_apply lemma for foo in
{zero,add,sub,neg,smul}: remove the apply lemmas again.
- there was no good reason for having both; when in doubt, use coe lemmas
- for simp, the coe lemmas are equally strong (and having both is very unusual
  at best),
- when rewriting, one can add Pi.zero_apply and friends.
@grunweg grunweg requested a review from ADedecker October 30, 2025 15:38
@github-actions github-actions bot added the t-analysis Analysis (normed *, calculus) label Oct 30, 2025
@github-actions
Copy link
Copy Markdown

PR summary e36df9a025

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

- add_apply
- neg_apply
- smul_apply
- sub_apply
- zero_apply

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).

@fpvandoorn
Copy link
Copy Markdown
Member

Seems fine even without deprecations.

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Oct 30, 2025
mathlib-bors bot pushed a commit that referenced this pull request Oct 30, 2025
#31094)

…mmas about instances

#30198 added both a coe_foo and a foo_apply lemma for foo in {zero,add,sub,neg,smul}: remove the apply lemmas again.
- there was no good reason for having both; when in doubt, use coe lemmas
- for simp, the coe lemmas are equally strong (and having both is very unusual at best),
- when rewriting, one can add Pi.zero_apply and friends.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Oct 30, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Analysis/Distribution/ContDiffMapSupportedIn): remove _apply le… [Merged by Bors] - chore(Analysis/Distribution/ContDiffMapSupportedIn): remove _apply le… Oct 30, 2025
@mathlib-bors mathlib-bors bot closed this Oct 30, 2025
@grunweg grunweg deleted the remove-apply-30198 branch October 30, 2025 17:56
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
leanprover-community#31094)

…mmas about instances

leanprover-community#30198 added both a coe_foo and a foo_apply lemma for foo in {zero,add,sub,neg,smul}: remove the apply lemmas again.
- there was no good reason for having both; when in doubt, use coe lemmas
- for simp, the coe lemmas are equally strong (and having both is very unusual at best),
- when rewriting, one can add Pi.zero_apply and friends.
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. t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants