Zulip Chat Archive
Stream: general
Topic: linter for instance names
Kenny Lau (May 02 2020 at 06:41):
namespace ring
instance : is_subring (closure s) :=
namespace mul_action
instance (H : set α) [is_subgroup H] : mul_action α (quotient H) :=
As a result of these instances without explicit names, the first one is called ring.is_subring
and the second one mul_action.mul_action
. Could we detect such instances of undesirable names automatically?
Reid Barton (May 02 2020 at 11:11):
Maybe the best place to detect them is at their source: when Lean chooses them.
Last updated: Dec 20 2023 at 11:08 UTC