Skip to content

[Merged by Bors] - feat: pull Function.update through recursors - #24318

Closed
eric-wieser wants to merge 3 commits into
masterfrom
eric-wieser/Function.update-recursor
Closed

eric-wieser wants to merge 3 commits into
masterfrom
eric-wieser/Function.update-recursor

Conversation

@eric-wieser

@eric-wieser eric-wieser commented Apr 23, 2025 •

Copy link
Copy Markdown
Member

This adds a quite technical lemma that can be used to generalize some existing lemmas for Sum

The general version would in principle work for any enumerative inductive type, though only after currying the constructor arguments first.

These are simp (in the direction pulling update to the outside) since that seemed to be useful for #18534, though I could see it either way.


Open in Gitpod

This adds a quite technical lemma that can be used to generalize some existing lemmas for `Sum`

The general version would in principle work for any enumerative inductive type,
though only after currying the constructor arguments first.
@eric-wieser
eric-wieser requested a review from joelriou April 23, 2025 13:28
@github-actions

github-actions Bot commented Apr 23, 2025 •

Copy link
Copy Markdown

PR summary 060caff133

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ _root_.Option.rec_update
+ elim'_update
+ rec_update_left
+ rec_update_right
+ types.
++ rec_update

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

@eric-wieser
eric-wieser requested a review from urkud April 24, 2025 14:01
@eric-wieser eric-wieser added the t-data Data (lists, quotients, numbers, etc) label Apr 25, 2025
@urkud

urkud commented Apr 27, 2025

Copy link
Copy Markdown
Member

Thanks! 🎉
bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Apr 27, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Apr 27, 2025
This adds a quite technical lemma that can be used to generalize some existing lemmas for `Sum`

The general version would in principle work for any enumerative inductive type, though only after currying the constructor arguments first.

These are `simp` (in the direction pulling `update` to the outside) since that seemed to be useful for #18534, though I could see it either way.
@mathlib-bors

mathlib-bors Bot commented Apr 27, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: pull Function.update through recursors [Merged by Bors] - feat: pull Function.update through recursors Apr 27, 2025
@mathlib-bors mathlib-bors Bot closed this Apr 27, 2025
@mathlib-bors
mathlib-bors Bot deleted the eric-wieser/Function.update-recursor branch April 27, 2025 14:52
tannerduve pushed a commit that referenced this pull request May 13, 2025
This adds a quite technical lemma that can be used to generalize some existing lemmas for `Sum`

The general version would in principle work for any enumerative inductive type, though only after currying the constructor arguments first.

These are `simp` (in the direction pulling `update` to the outside) since that seemed to be useful for #18534, though I could see it either way.
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.

2 participants