Skip to content

[Merged by Bors] - feat(Data/Finsupp/Basic): add Finsupp.(un)curry_single and @[simps] to Finsupp.finsuppProd(L)Equiv#23021

Closed
101damnations wants to merge 8 commits intomasterfrom
arlfinsuppprodequiv
Closed

[Merged by Bors] - feat(Data/Finsupp/Basic): add Finsupp.(un)curry_single and @[simps] to Finsupp.finsuppProd(L)Equiv#23021
101damnations wants to merge 8 commits intomasterfrom
arlfinsuppprodequiv

Conversation

@101damnations
Copy link
Copy Markdown
Collaborator

@101damnations 101damnations commented Mar 17, 2025

This was raised by @Whysoserioushah regarding #21732. We add Finsupp.uncurry_apply, which simplifies Finsupp.uncurry applied to a term of a product type xy : α × β, to prevent Basis.smulTower_repr breaking. However, we don't tag this with @[simp]; there is already a @[simp] tag on the less eager Finsupp.uncurry_apply_pair, which applies to a pair of terms x : α, y : β.


(Original comment: Adding the lemmas and @[simps] on their own breaks this lemma and the simplest way to fix it (and justify removing Finsupp.finsuppProdLEquiv_symm_apply) is to make the argument to Finsupp.uncurry_apply_pair (added in #22939) any term of the product type, but maybe that would be too eager a simp lemma?)

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 17, 2025

PR summary cfd58948dd

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

@joneugster joneugster added the t-data Data (lists, quotients, numbers, etc) label Apr 17, 2025
Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 22, 2025

✌️ 101damnations can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Apr 22, 2025
@eric-wieser
Copy link
Copy Markdown
Member

Please consider moving some or all of the description above the --- line; anything below will be discarded from the git history, which for this PR means no description at all!

Generally, the bit below the --- is good for questions to reviewers, but you should try to put most of the explanation of why you are making this change above it.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 2, 2025
@leanprover-community-bot-assistant
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 8, 2025
@101damnations
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request May 8, 2025
…]` to `Finsupp.finsuppProd(L)Equiv` (#23021)

This was raised by @Whysoserioushah regarding #21732. We add `Finsupp.uncurry_apply`, which simplifies `Finsupp.uncurry` applied to a term of a product type `xy : α × β`, to prevent `Basis.smulTower_repr` breaking. However, we don't tag this with `@[simp]`; there is already a `@[simp]` tag on the less eager `Finsupp.uncurry_apply_pair`, which applies to a pair of terms `x : α`, `y : β`.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 8, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Data/Finsupp/Basic): add Finsupp.(un)curry_single and @[simps] to Finsupp.finsuppProd(L)Equiv [Merged by Bors] - feat(Data/Finsupp/Basic): add Finsupp.(un)curry_single and @[simps] to Finsupp.finsuppProd(L)Equiv May 8, 2025
@mathlib-bors mathlib-bors bot closed this May 8, 2025
@mathlib-bors mathlib-bors bot deleted the arlfinsuppprodequiv branch May 8, 2025 18:54
tannerduve pushed a commit that referenced this pull request May 13, 2025
…]` to `Finsupp.finsuppProd(L)Equiv` (#23021)

This was raised by @Whysoserioushah regarding #21732. We add `Finsupp.uncurry_apply`, which simplifies `Finsupp.uncurry` applied to a term of a product type `xy : α × β`, to prevent `Basis.smulTower_repr` breaking. However, we don't tag this with `@[simp]`; there is already a `@[simp]` tag on the less eager `Finsupp.uncurry_apply_pair`, which applies to a pair of terms `x : α`, `y : β`.
bwehlin pushed a commit to bwehlin/mathlib4 that referenced this pull request May 31, 2025
…]` to `Finsupp.finsuppProd(L)Equiv` (leanprover-community#23021)

This was raised by @Whysoserioushah regarding leanprover-community#21732. We add `Finsupp.uncurry_apply`, which simplifies `Finsupp.uncurry` applied to a term of a product type `xy : α × β`, to prevent `Basis.smulTower_repr` breaking. However, we don't tag this with `@[simp]`; there is already a `@[simp]` tag on the less eager `Finsupp.uncurry_apply_pair`, which applies to a pair of terms `x : α`, `y : β`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants