chore(Algebra/Order/BigOperators): follow the ₀ naming convention#39692
chore(Algebra/Order/BigOperators): follow the ₀ naming convention#39692YaelDillies wants to merge 2 commits into
₀ naming convention#39692Conversation
PR summary 1ea4ecf9adImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
This pull request has conflicts, please merge |
We have long agreed that `MonoidWithZero` lemmas corresponding to `Monoid` lemmas should be suffixed with `₀`, while currently it is the `Monoid` lemmas that are primed.
a9fceca to
1ea4ecf
Compare
|
As I mentioned to you previously, I don't think this PR is a helpful one right now. The As a result, this PR: I understand that some of these may take a couple of minutes out of your day, but all of these points make things significantly easier for reviewers, and for downstream users to adjust to your (breaking) changes. |
|
I'm surprised that the subscript zero isn't documented. Can we document it somewhere and ensure it's followed? Or failing that, can we figure out some other consistent way to name results that are "morally the same as other results about groups except for the fact 0 is involved"? |
|
Here is a PR to the naming convention documenting the |
Vierkantor
left a comment
There was a problem hiding this comment.
Thanks! In addition to looking at the diff, I searched for prod' in Mathlib and confirmed the remaining primed prod lemmas have this for a non-WithZero reason.
bors r+
|
bors r- |
|
Bors build canceled. Address comments or fix if necessary, and then someone with permission can run |
|
This is awaiting leanprover-community/leanprover-community.github.io#870. |
|
It looks like the renames section is backwards from the diff. It also looks like some deprecations are missing, from a quick skim-through I noticed |
We have long agreed that
MonoidWithZerolemmas corresponding toMonoidlemmas should be suffixed with₀, while currently it is theMonoidlemmas that are primed.Also deprecate two primed lemmas that only differed from the unprimed versions in a minor way.
Renames
Moves:
finprod_le_finprod->finprod_le_finprod'finprod_le_finprod₀->finprod_le_finprodFinset.prod_le_prod->Finset.prod_le_prod'Finset.one_le_prod->Finset.one_le_prod'Finset.prod_le_one->Finset.prod_le_one'Finset.prod_le_prod_of_subset_of_one_le->Finset.prod_le_prod_of_subset_of_one_le'Finset.prod_le_prod_of_subset_of_le_one->Finset.prod_le_prod_of_subset_of_le_one'Finset.prod_mono_set_of_one_le->Finset.prod_mono_set_of_one_le'Finset.prod_anti_set_of_le_one->Finset.prod_anti_set_of_le_one'Finset.prod_le_univ_prod_of_one_le->Finset.prod_le_univ_prod_of_one_le'Finset.prod_eq_one_iff_of_one_le->Finset.prod_eq_one_iff_of_one_le'Finset.prod_eq_one_iff_of_le_one->Finset.prod_eq_one_iff_of_le_one'Finset.single_le_prod->Finset.single_le_prod'Finset.prod_fiberwise_le_prod_of_one_le_prod_fiber->Finset.prod_fiberwise_le_prod_of_one_le_prod_fiber'Finset.prod_le_prod_fiberwise_of_prod_fiber_le_one->Finset.prod_le_prod_fiberwise_of_prod_fiber_le_one'Finset.prod_le_prod_of_subset->Finset.prod_le_prod_of_subset'Finset.prod_mono_set->Finset.prod_mono_set'Finset.prod_le_prod_of_ne_one->Finset.prod_le_prod_of_ne_one'Finset.prod_lt_prod->Finset.prod_lt_prod'Finset.prod_lt_prod_of_nonempty->Finset.prod_lt_prod_of_nonempty'Finset.prod_lt_prod_of_subset->Finset.prod_lt_prod_of_subset'Finset.single_lt_prod->Finset.single_lt_prod'Finset.exists_lt_of_prod_lt->Finset.exists_lt_of_prod_lt'Finset.exists_le_of_prod_le->Finset.exists_le_of_prod_le'Finset.exists_one_lt_of_prod_one_of_exists_ne_one->Finset.exists_one_lt_of_prod_one_of_exists_ne_one'Fintype.prod_mono->Fintype.prod_mono'Fintype.prod_strictMono->Fintype.prod_strictMono'List.Forall₂.prod_le_prod->List.Forall₂.prod_le_prod'List.Sublist.prod_le_prod->List.Sublist.prod_le_prod'List.SublistForall₂.prod_le_prod->List.SublistForall₂.prod_le_prod'List.prod_le_prod->List.prod_le_prod'List.prod_lt_prod->List.prod_lt_prod'List.exists_lt_of_prod_lt->List.exists_lt_of_prod_lt'List.exists_le_of_prod_le->List.exists_le_of_prod_le'Multiset.prod_lt_prod->Multiset.prod_lt_prod'Multiset.prod_lt_prod_of_nonempty->Multiset.prod_lt_prod_of_nonempty'Finset.prod_le_prod₀->Finset.prod_le_prodFinset.prod_le_one₀->Finset.prod_le_oneFinset.one_le_prod₀->Finset.one_le_prodFinset.prod_le_prod_of_subset_of_one_le₀->Finset.prod_le_prod_of_subset_of_one_leFinset.prod_le_prod_of_subset_of_le_one₀->Finset.prod_le_prod_of_subset_of_le_oneFinset.prod_mono_set_of_one_le₀->Finset.prod_mono_set_of_one_leFinset.prod_anti_set_of_le_one₀->Finset.prod_anti_set_of_le_oneFinset.prod_lt_prod₀->Finset.prod_lt_prodFinset.prod_lt_prod_of_nonempty₀->Finset.prod_lt_prod_of_nonemptyDeprecations
Finset.sum_nonneg',Finset.one_le_prod''Zulip