Zulip Chat Archive
Stream: mathlib4
Topic: fail to synth an easy instance
Nailin Guan (Feb 18 2026 at 12:26):
I met a strange problem after the update to 4.29-rc1 (previously it was 4.28-rc1?)
module
public import Mathlib.Algebra.Category.ModuleCat.EpiMono
variable {R M N : Type*} [CommRing R] [AddCommGroup M] [AddCommGroup N] [Module R M] [Module R N]
instance (f : M →ₗ[R] N) : Module R f.ker := inferInstance
lemma foo (f : M →ₗ[R] N) : CategoryTheory.Mono (ModuleCat.ofHom f.ker.subtype) := by
sorry
This has error "Module R ↥f.ker", but inferInstance works.
Nailin Guan (Feb 18 2026 at 12:28):
(On commit "52b9aaf")
Nailin Guan (Feb 18 2026 at 13:10):
Similar problem in the following, but it failed completely
variable {R : Type*} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M] (N : Submodule R M)
instance : HasQuotient (↥N) (Submodule R ↥N) := sorry -- inferInstance
Robin Arnez (Feb 18 2026 at 13:49):
Another problem related to #general > backward.isDefEq.respectTransparency :-)
import Mathlib
variable {R : Type*} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M] (N : Submodule R M)
set_option backward.isDefEq.respectTransparency false
instance : HasQuotient (↥N) (Submodule R ↥N) := inferInstance
works if you need a workaround.
Nailin Guan (Feb 18 2026 at 13:55):
OK, many unrelated things seems to because of the same reason, thanks.
Last updated: Feb 28 2026 at 14:05 UTC