Zulip Chat Archive
Stream: mathlib4
Topic: Ideal span vs submodule span
Brendan Seamas Murphy (May 23 2024 at 01:19):
I just saw a chain of rewrites that had Ideal.submodule_span_eq
in it because a previous definition used R ∙ a
instead of Ideal.span {a}
. This notation is shorter and more convenient, but it does sort of abuse the defeq Ideal R = Submodule R R
(maybe I wouldn't worry as much about this if Ideal
was an abbrev or if Ideal.map
and Submodule.map
weren't different) and causes some awkwardness with rw
. Should existing instances of Submodule.span R
in places where an Ideal R
is expected be refactored to Ideal.span
or am I making a mountain out of a molehill?
Johan Commelin (May 23 2024 at 03:03):
I agree this is an issue, but I would also be sad to see the nice notation go...
Brendan Seamas Murphy (May 23 2024 at 04:34):
Honestly I'm not a fan of it with how many dots are floating around already... But enough people like it and it's widely used enough that I'm not going to advocate removing it
Eric Wieser (May 23 2024 at 07:36):
Is docs#Ideal not an abbrev?
Brendan Seamas Murphy (May 23 2024 at 07:37):
Oh wait it is, I have no idea what I was looking at when I said that
Brendan Seamas Murphy (May 23 2024 at 07:37):
Probably Ideal.span
Last updated: May 02 2025 at 03:31 UTC