Zulip Chat Archive
Stream: mathlib4
Topic: !4#3332 Topology.ContinuousFunction.Algebra
Eric Wieser (Apr 29 2023 at 23:34):
This one is running into really nasty typeclass issues on what ought to be a very simple problem; it doesn't like x - y
at all, where x y : s
and s : Subalgebra K C(X,K)
...
Eric Wieser (Apr 29 2023 at 23:35):
I was able to really painfully steer it to an instance, but now it appears the simp lemmas can't find the instances instead
Eric Wieser (Apr 29 2023 at 23:37):
Bizarrely I also think I remember simp
claiming that it couldn't find a SMulMemClass
instance, which is weird given I didn't ask it to find one (the instance seemed to genuinely be missing)
Jireh Loreaux (Apr 30 2023 at 00:12):
It's quite possible SMulMemClass
instances are honestly missing. I only add that class a while ago and haven't yet thoroughly gone through and added the instances that should exist. Note that there is also SubmoduleClass
.
Eric Wieser (Apr 30 2023 at 07:22):
What's the purpose of docs#submodule_class?
Jireh Loreaux (Apr 30 2023 at 20:54):
Ah, yes, I guess that looks really weird. It was originally written as extending smul_mem_class
and add_submonoid_class
but that ran into nasty timeouts and Anne suggested unbundling, which worked, but I didn't consider how silly that is at the time.
Eric Wieser (Apr 30 2023 at 21:16):
Is that a vote in favor of removing it?
Eric Wieser (Apr 30 2023 at 21:28):
Eric Wieser (May 03 2023 at 13:43):
Forward-ported as !4#3770
Jireh Loreaux (May 03 2023 at 16:41):
Thanks for taking care of this @Eric Wieser
Last updated: Dec 20 2023 at 11:08 UTC