mathlib4 icon indicating copy to clipboard operation
mathlib4 copied to clipboard

feat(Data/Set/Card): criterion for `s.ncard ≤ (f '' s).ncard + 1`

Open tb65536 opened this issue 1 month ago • 1 comments

This PR gives a criterion s.ncard ≤ (f '' s).ncard + 1 (note that we always have the inequality (f '' s).ncard ≤ s.ncard).


Open in Gitpod

tb65536 avatar Dec 12 '25 05:12 tb65536

PR summary 5085b890b0

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Function.Surjective.card_le_card_add_one_iff + Set.ncard_le_ncard_image_add_one_iff

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

github-actions[bot] avatar Dec 12 '25 05:12 github-actions[bot]