[Merged by Bors] - chore: Rename mul-div cancellation lemmas#11530
[Merged by Bors] - chore: Rename mul-div cancellation lemmas#11530YaelDillies wants to merge 13 commits intomasterfrom
mul-div cancellation lemmas#11530Conversation
Lemma names around cancellation of multiplication and division are a mess. This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the `GroupWithZero` lemma name, the `Group` lemma, the `AddGroup` lemma name). | Statement | New name | Old name | |---------------------|-------------------------|-------------------------| | `(a * b) / a = b` | `mul_div_eq_right₀` | `mul_div_cancel_left` | | | `mul_div_eq_right` | `mul_div_cancel'''` | | | `add_sub_eq_right` | `add_sub_cancel'` | | `(a * b) / b = a` | `mul_div_eq_left₀` | `mul_div_cancel` | | | `mul_div_eq_left` | `mul_div_cancel''` | | | `add_sub_eq_left` | `add_sub_cancel` | | `a / (a * b) = b⁻¹` | `div_mul_eq_inv_right₀` | roughly `div_mul_right` | | | `div_mul_eq_inv_right` | `div_mul_cancel''` | | | `sub_add_eq_neg_right` | `sub_add_cancel'` | | `a / (a * b) = a⁻¹` | `div_mul_eq_inv_left₀` | roughly `div_mul_left` | | | `div_mul_eq_inv_left` | `div_mul_cancel'''` | | | `sub_add_eq_neg_left` | `sub_add_cancel''` | | `a * (b / a) = b` | `mul_div_cancel₀` | `mul_div_cancel'` | | | `mul_div_cancel` | `mul_div_cancel'_right` | | | `add_sub_cancel` | `add_sub_cancel'_right` | | `(a / b) * b = a` | `div_mul_cancel₀` | `div_mul_cancel` | | | `div_mul_cancel` | `div_mul_cancel'` | | | `sub_add_cancel` | `sub_add_cancel` |
|
For these kinds of basic lemma renames, it might be good to make a Zulip thread with the suggested renames, and only do it if nobody makes a major objection for 1-2 days. That said, this is definitely an improvement over all the primed lemmas. However, it's a bit unfortunate that in the new naming scheme the |
|
Second Zulip thread for more visibility. I'm happy to merge this in ~24 hours if there is no serious criticism. |
|
I think the rename I suggested is popular. If you change the names to that naming scheme, then I'll merge/delegate this. |
|
LGTM. I didn't have time yesterday to look at this again, so hopefully there are not conflicts. bors merge (let's try, but I'm not too hopeful) |
|
✌️ YaelDillies can now approve this pull request. To approve and merge a pull request, simply reply with |
Lemma names around cancellation of multiplication and division are a mess. This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the `GroupWithZero` lemma name, the `Group` lemma, the `AddGroup` lemma name). | Statement | New name | Old name | |
|
Build failed:
|
This is fallout from #11530. Somehow CI didn't catch that.
We sometimes want to refer to Archive declarations in the YAML files. This is currently impossible because the script in `checkYaml` only imports `Mathlib`. This PR changes it to also import `Archive`. It also changes the hyperlinks to Archive to instead list declarations directly. Also fix the fallout from #11530 that CI didn't catch that because we forgot to pipe the errors coming from `lake build Archive` (see #11612). Co-authored-by: Enrico Borba <enricozb@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
We sometimes want to refer to Archive declarations in the YAML files. This is currently impossible because the script in `checkYaml` only imports `Mathlib`. This PR changes it to also import `Archive`. It also changes the hyperlinks to Archive to instead list declarations directly. Also fix the fallout from #11530 that CI didn't catch that because we forgot to pipe the errors coming from `lake build Archive` (see #11612). Co-authored-by: Enrico Borba <enricozb@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
CI didn't catch the fallout from #11530 because we forgot to pipe the errors coming from `lake build Archive` and `lake build Counterexamples` back to the logs. This PR makes sure that happens.
CI didn't catch the fallout from #11530 because we forgot to pipe the errors coming from `lake build Archive` and `lake build Counterexamples` back to the logs. This PR makes sure that happens.
Lemma names around cancellation of multiplication and division are a mess. This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the `GroupWithZero` lemma name, the `Group` lemma, the `AddGroup` lemma name). | Statement | New name | Old name | |
We sometimes want to refer to Archive declarations in the YAML files. This is currently impossible because the script in `checkYaml` only imports `Mathlib`. This PR changes it to also import `Archive`. It also changes the hyperlinks to Archive to instead list declarations directly. Also fix the fallout from #11530 that CI didn't catch that because we forgot to pipe the errors coming from `lake build Archive` (see #11612). Co-authored-by: Enrico Borba <enricozb@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
CI didn't catch the fallout from #11530 because we forgot to pipe the errors coming from `lake build Archive` and `lake build Counterexamples` back to the logs. This PR makes sure that happens.
Lemma names around cancellation of multiplication and division are a mess. This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the `GroupWithZero` lemma name, the `Group` lemma, the `AddGroup` lemma name). | Statement | New name | Old name | |
We sometimes want to refer to Archive declarations in the YAML files. This is currently impossible because the script in `checkYaml` only imports `Mathlib`. This PR changes it to also import `Archive`. It also changes the hyperlinks to Archive to instead list declarations directly. Also fix the fallout from #11530 that CI didn't catch that because we forgot to pipe the errors coming from `lake build Archive` (see #11612). Co-authored-by: Enrico Borba <enricozb@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
CI didn't catch the fallout from #11530 because we forgot to pipe the errors coming from `lake build Archive` and `lake build Counterexamples` back to the logs. This PR makes sure that happens.
Lemma names around cancellation of multiplication and division are a mess. This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the `GroupWithZero` lemma name, the `Group` lemma, the `AddGroup` lemma name). | Statement | New name | Old name | |
We sometimes want to refer to Archive declarations in the YAML files. This is currently impossible because the script in `checkYaml` only imports `Mathlib`. This PR changes it to also import `Archive`. It also changes the hyperlinks to Archive to instead list declarations directly. Also fix the fallout from #11530 that CI didn't catch that because we forgot to pipe the errors coming from `lake build Archive` (see #11612). Co-authored-by: Enrico Borba <enricozb@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
CI didn't catch the fallout from #11530 because we forgot to pipe the errors coming from `lake build Archive` and `lake build Counterexamples` back to the logs. This PR makes sure that happens.
Lemma names around cancellation of multiplication and division are a mess. This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the `GroupWithZero` lemma name, the `Group` lemma, the `AddGroup` lemma name). | Statement | New name | Old name | |
We sometimes want to refer to Archive declarations in the YAML files. This is currently impossible because the script in `checkYaml` only imports `Mathlib`. This PR changes it to also import `Archive`. It also changes the hyperlinks to Archive to instead list declarations directly. Also fix the fallout from #11530 that CI didn't catch that because we forgot to pipe the errors coming from `lake build Archive` (see #11612). Co-authored-by: Enrico Borba <enricozb@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
CI didn't catch the fallout from #11530 because we forgot to pipe the errors coming from `lake build Archive` and `lake build Counterexamples` back to the logs. This PR makes sure that happens.
Lemma names around cancellation of multiplication and division are a mess. This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the `GroupWithZero` lemma name, the `Group` lemma, the `AddGroup` lemma name). | Statement | New name | Old name | |
We sometimes want to refer to Archive declarations in the YAML files. This is currently impossible because the script in `checkYaml` only imports `Mathlib`. This PR changes it to also import `Archive`. It also changes the hyperlinks to Archive to instead list declarations directly. Also fix the fallout from #11530 that CI didn't catch that because we forgot to pipe the errors coming from `lake build Archive` (see #11612). Co-authored-by: Enrico Borba <enricozb@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
CI didn't catch the fallout from #11530 because we forgot to pipe the errors coming from `lake build Archive` and `lake build Counterexamples` back to the logs. This PR makes sure that happens.
This follows on from #11530 In each case, I've added an `example` with the `Group` lemma, to make it easier to keep the names in sync.
This follows on from #11530 In each case, I've added an `example` with the `Group` lemma, to make it easier to keep the names in sync.
This follows on from #11530 In each case, I've added an `example` with the `Group` lemma, to make it easier to keep the names in sync.
This follows on from #11530 In each case, I've added an `example` with the `Group` lemma, to make it easier to keep the names in sync.
Lemma names around cancellation of multiplication and division are a mess.
This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the
GroupWithZerolemma name, theGrouplemma, theAddGrouplemma name).(a * b) / a = bmul_div_cancel_left₀mul_div_cancel_leftmul_div_cancel_leftmul_div_cancel'''add_sub_cancel_leftadd_sub_cancel'(a * b) / b = amul_div_cancel_right₀mul_div_cancelmul_div_cancel_rightmul_div_cancel''add_sub_cancel_rightadd_sub_cancela / (a * b) = b⁻¹div_mul_cancel_left₀div_mul_right(roughly)div_mul_cancel_leftdiv_mul_cancel''sub_add_cancel_leftsub_add_cancel'b / (a * b) = a⁻¹div_mul_cancel_right₀div_mul_left(roughly)div_mul_cancel_rightdiv_mul_cancel'''sub_add_cancel_rightsub_add_cancel''a * (b / a) = bmul_div_cancel₀mul_div_cancel'mul_div_cancelmul_div_cancel'_rightadd_sub_canceladd_sub_cancel'_right(a / b) * b = adiv_mul_cancel₀div_mul_canceldiv_mul_canceldiv_mul_cancel'sub_add_cancelsub_add_cancel