Skip to content

[Merged by Bors] - refactor(Data/Finsupp/Basic): Extract Finsupp.curry_uncurry - #22939

Closed
BoltonBailey wants to merge 7 commits into
masterfrom
BoltonBailey/finsupp-curry-uncurry
Closed

BoltonBailey wants to merge 7 commits into
masterfrom
BoltonBailey/finsupp-curry-uncurry

Conversation

@BoltonBailey

@BoltonBailey BoltonBailey commented Mar 14, 2025 •

Copy link
Copy Markdown
Collaborator

Refactors the finsuppProdEquiv definition so that the inverse laws are now separate (simp) lemmas: Finsupp.curry_uncurry and Finsupp.uncurry_curry. Also factors out Finsupp.uncurry_apply_pair as a prerequisite to these.


Open in Gitpod

@github-actions github-actions Bot added the t-data Data (lists, quotients, numbers, etc) label Mar 14, 2025
@github-actions

github-actions Bot commented Mar 14, 2025 •

Copy link
Copy Markdown

PR summary 64fb86e792

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ curry_uncurry
+ uncurry_apply_pair
+ uncurry_curry

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

@BoltonBailey BoltonBailey changed the title refactor: Extract curry_uncurry refactor(Data/Finsupp/Basic): Extract Finsupp.curry_uncurry Mar 14, 2025

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense

maintainer delegate

Comment thread Mathlib/Data/Finsupp/Basic.lean Resolved
Comment thread Mathlib/Data/Finsupp/Basic.lean Resolved
@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Mar 14, 2025
@urkud

urkud commented Mar 17, 2025

Copy link
Copy Markdown
Member

Thanks! 🎉
bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Mar 17, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Mar 17, 2025
Refactors the `finsuppProdEquiv` definition so that the inverse laws are now separate (simp) lemmas: `Finsupp.curry_uncurry` and `Finsupp.uncurry_curry`. Also factors out `Finsupp.uncurry_apply_pair` as a prerequisite to these.
@mathlib-bors

mathlib-bors Bot commented Mar 17, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title refactor(Data/Finsupp/Basic): Extract Finsupp.curry_uncurry [Merged by Bors] - refactor(Data/Finsupp/Basic): Extract Finsupp.curry_uncurry Mar 17, 2025
@mathlib-bors mathlib-bors Bot closed this Mar 17, 2025
@mathlib-bors
mathlib-bors Bot deleted the BoltonBailey/finsupp-curry-uncurry branch March 17, 2025 03:27
tukamilano pushed a commit that referenced this pull request Mar 20, 2025
Refactors the `finsuppProdEquiv` definition so that the inverse laws are now separate (simp) lemmas: `Finsupp.curry_uncurry` and `Finsupp.uncurry_curry`. Also factors out `Finsupp.uncurry_apply_pair` as a prerequisite to these.
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-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants