Zulip Chat Archive
Stream: mathlib4
Topic: AddCon.hom_ext
Kenny Lau (Jul 07 2025 at 14:27):
https://loogle.lean-lang.org/?q=Con%2C+%22ext%22
@Eric Wieser I believe we're currently missing this lemma:
import Mathlib.GroupTheory.Congruence.Hom
namespace Con
variable (M : Type*) {N : Type*} {P : Type*}
variable {M}
variable [MulOneClass M] [MulOneClass N] [MulOneClass P] {c : Con M}
/-- Extensionality for maps `f, g : M⧸~ →* N`: they are equal if their composition with
`mk' : M → M⧸~` are equal. -/
@[to_additive (attr := ext) "Extensionality for maps `f, g : M⧸~ →+ N`: they are equal if their
composition with `mk' : M → M⧸~` are equal."]
lemma hom_ext {f g : c.Quotient →* P} (h : f.comp (mk' c) = g.comp (mk' c)) : f = g :=
lift_funext _ _ fun x ↦ DFunLike.congr_fun h x
end Con
Should I PR it?
Eric Wieser (Jul 07 2025 at 14:34):
I agree it should exist
Eric Wieser (Jul 07 2025 at 14:34):
It should replace funext
Kenny Lau (Jul 07 2025 at 14:47):
@Eric Wieser I made #26873 . The docstring might need changing. What do you think?
Eric Wieser (Jul 07 2025 at 15:14):
Sorry, by "replace" I meant "claim the ext attribute from"
Kenny Lau (Jul 07 2025 at 15:25):
@Eric Wieser resurrected
Kenny Lau (Jul 07 2025 at 15:47):
@Eric Wieser fixed
Kenny Lau (Jul 07 2025 at 19:07):
@Eric Wieser added ext
Last updated: Dec 20 2025 at 21:32 UTC