feat(Combinatorics): Set-Valued Pigeonhole Principle #37190
feat(Combinatorics): Set-Valued Pigeonhole Principle #37190cjrl wants to merge 23 commits intoleanprover-community:masterfrom
Conversation
Co-authored-by: Christopher J. R. Lloyd <cjl8zf@virginia.edu> Co-authored-by: George H. Seelinger <ghseeli@gmail.com>
Co-authored-by: Christopher J. R. Lloyd <cjl8zf@virginia.edu> Co-authored-by: George H. Seelinger <ghseeli@gmail.com>
Co-authored-by: Christopher J. R. Lloyd <cjl8zf@virginia.edu> Co-authored-by: George H. Seelinger <ghseeli@gmail.com>
Co-authored-by: Christopher J. R. Lloyd <cjl8zf@virginia.edu> Co-authored-by: George H. Seelinger <ghseeli@gmail.com>
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR. Thank you again for joining our community. |
PR summary 322515540d
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Combinatorics.Pigeonhole | 776 | 777 | +1 (+0.13%) |
Import changes for all files
| Files | Import difference |
|---|---|
13 filesMathlib.Combinatorics.Additive.AP.Three.Behrend Mathlib.Combinatorics.Pigeonhole Mathlib.Dynamics.Ergodic.Conservative Mathlib.NumberTheory.ClassNumber.AdmissibleAbs Mathlib.NumberTheory.ClassNumber.AdmissibleAbsoluteValue Mathlib.NumberTheory.ClassNumber.AdmissibleCardPowDegree Mathlib.NumberTheory.ClassNumber.Finite Mathlib.NumberTheory.ClassNumber.FunctionField Mathlib.NumberTheory.FLT.Three Mathlib.NumberTheory.NumberField.ClassNumber Mathlib.NumberTheory.NumberField.Cyclotomic.PID Mathlib.NumberTheory.NumberField.DedekindZeta Mathlib.NumberTheory.NumberField.Ideal.Asymptotics |
1 |
Declarations diff
+ exists_mem_biUnion_inf'_card_lt
+ sum_card_eq_sum_biUnion_card
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
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
Co-authored-by: Christopher J. R. Lloyd <cjl8zf@virginia.edu> Co-authored-by: George H. Seelinger <ghseeli@gmail.com>
|
+t-combinatorics |
Co-authored-by: Iván Renison <85908989+IvanRenison@users.noreply.github.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
|
-awaiting-author |
Co-authored-by: Vlad Tsyrklevich <vlad902@gmail.com>
Co-authored-by: Vlad Tsyrklevich <vlad902@gmail.com>
Co-authored-by: Vlad Tsyrklevich <vlad902@gmail.com>
This PR contributes two theorems to combinatorics:
exists_lt_card_cover_of_card_biUnion_lt_cardis a set-valued version of the pigeonhole principle.sum_card_eq_sum_card_cover_biUnionis a set theoretic corollary of a double counting result proved for bipartite graphs (Finset.sum_card_bipartiteAbove_eq_sum_card_bipartiteBelow). This was needed to prove the above pigeonhole principle.The motivation for these results is our Latin Square PR #36698. These results were proved in less general terms in that PR, but are independent of Latin Square considerations and so we have generalized and moved them into more relevant files.