Skip to content

feat(Data/Finset/Image): add lemmas linking Finset.image with MapsTo/SurjOn/InjOn#38283

Open
b-mehta wants to merge 2 commits intoleanprover-community:masterfrom
b-mehta:feat/finset-image-mapsTo-surjOn
Open

feat(Data/Finset/Image): add lemmas linking Finset.image with MapsTo/SurjOn/InjOn#38283
b-mehta wants to merge 2 commits intoleanprover-community:masterfrom
b-mehta:feat/finset-image-mapsTo-surjOn

Conversation

@b-mehta
Copy link
Copy Markdown
Contributor

@b-mehta b-mehta commented Apr 20, 2026

and also with Nat.iterate.


Open in Gitpod

@b-mehta b-mehta requested a review from riccardobrasca April 20, 2026 10:02
@b-mehta b-mehta added the easy < 20s of review time. See the lifecycle page for guidelines. label Apr 20, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 20, 2026

PR summary 4fceb4697e

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ image_eq_iff_surjOn_mapsTo
+ iterate_image
+ mapsTo_iff_image_subset
+ surjOn_iff_subset_image

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

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


No changes to technical debt.

You can run this locally as

./scripts/reporting/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).

@github-actions github-actions bot added the t-data Data (lists, quotients, numbers, etc) label Apr 20, 2026
Copy link
Copy Markdown
Member

@riccardobrasca riccardobrasca left a comment

Choose a reason for hiding this comment

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

#Thanks!

bors d+

Comment thread Mathlib/Data/Finset/Image.lean Outdated
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 20, 2026

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

@mathlib-triage mathlib-triage bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Apr 20, 2026
Co-authored-by: Riccardo Brasca <riccardo.brasca@gmail.com>
@b-mehta b-mehta added the auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. label Apr 20, 2026
@mathlib-auto-merge
Copy link
Copy Markdown

As this PR is labelled auto-merge-after-CI, we are now sending it to bors:

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). easy < 20s of review time. See the lifecycle page for guidelines. t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants