[Merged by Bors] - chore(Tactic/GCongr): move @[gcongr] tags around#9393
[Merged by Bors] - chore(Tactic/GCongr): move @[gcongr] tags around#9393
@[gcongr] tags around#9393Conversation
* Add `import Mathlib.Tactic.GCongr.Core` to `Algebra/Order/Ring/Lemmas`. * Move most `@[gcongr]` tags next to the lemmas.
This was noticed in the discussion around #9393.
Parcly-Taxel
left a comment
There was a problem hiding this comment.
Is there a better home for setting up positivity as a gcongr discharger?
I think the current setup is fine enough.
It's a footgun: |
Just solve the issue as you see fit, then. |
|
LGTM, modulo: did this get resolved?
|
|
Yes, negatively. |
|
#10140 has been merged. You can adapt this PR to it. |
|
Merged |
| (zpow_strictMono hx).lt_iff_lt | ||
| #align zpow_lt_iff_lt zpow_lt_iff_lt | ||
|
|
||
| @[gcongr] alias ⟨_, zpow_lt_of_lt⟩ := zpow_lt_iff_lt |
There was a problem hiding this comment.
| @[gcongr] alias ⟨_, zpow_lt_of_lt⟩ := zpow_lt_iff_lt | |
| @[gcongr] alias ⟨_, GCongr.zpow_lt_of_lt⟩ := zpow_lt_iff_lt |
There was a problem hiding this comment.
It doesn't make sense to me to put this in the GCongr namespace for two reasons:
- We don't have much else there, especially not many lemmas.
- These declarations existed already and were not in that namespace, so we would have to add an alias and a deprecation, but that seems silly.
There was a problem hiding this comment.
I like the idea of moving auxiliary lemmas that exist only because gcongr can't handle Monotone/StrictMono/Iff lemmas to the GCongr namespace.
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
Vierkantor
left a comment
There was a problem hiding this comment.
LGTM, thanks!
bors r+
* Add `import Mathlib.Tactic.GCongr.Core` to `Algebra/Order/Ring/Lemmas`. * Move most `@[gcongr]` tags next to the lemmas. See [Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Mathlib.2FTactic.2FGCongr) Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
|
Pull request successfully merged into master. Build succeeded: |
@[gcongr] tags around@[gcongr] tags around
* Add `import Mathlib.Tactic.GCongr.Core` to `Algebra/Order/Ring/Lemmas`. * Move most `@[gcongr]` tags next to the lemmas. See [Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Mathlib.2FTactic.2FGCongr) Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
import Mathlib.Tactic.GCongr.Coreto
Algebra/Order/Ring/Lemmas.@[gcongr]tags next to the lemmas.See Zulip thread
positivityas a
gcongrdischarger?Natdivision lemmas?