Zulip Chat Archive
Stream: mathlib4
Topic: Ideal API duplicated
Artie Khovanov (Nov 15 2025 at 17:50):
I noticed the Submodule operations simplify to the (defeq) Ideal operations when the module is equal to the underlying ring. This means we can't use tactics like simp or aesop to make use of the much more complete Submodule API when proving membership in an Ideal. Of course, I could just copy the lemmas across, but that would add duplication. Given Ideal is just meant to be an abbrev, is this duplication intentional, and how can it be solved?
Andrew Yang (Nov 15 2025 at 19:19):
I’d say the current approach is just to duplicate.
Artie Khovanov (Nov 15 2025 at 19:56):
hm OK
Eric Wieser (Nov 15 2025 at 22:33):
map is not the same operation on ideals
Artie Khovanov (Nov 15 2025 at 22:34):
fine but eg span is
is my point
Artie Khovanov (Nov 15 2025 at 22:34):
and the simp-normal form is Ideal.span so the API is duplicated
Eric Wieser (Nov 15 2025 at 22:35):
Agreed with Andrew that duplicating the API is not so bad an option, as long as the Ideal one is proved with the span one
Last updated: Dec 20 2025 at 21:32 UTC