Zulip Chat Archive
Stream: mathlib4
Topic: Con.ker vs Con.mulKer
Eric Wieser (Mar 15 2025 at 13:14):
Which of docs#Con.ker and docs#Con.mulKer should we keep?
Yury G. Kudryashov (Mar 15 2025 at 14:12):
I would vote for a definition with MulHomClass
assumption.
Kyle Miller (Mar 15 2025 at 14:58):
They seem like they're not comparable. The first is for a MonoidHom (requiring Mul, One, and a proof-carrying monoid homorphism), but the second is for any Mul-preserving function, without any reference to One.
Yury's suggestion of MulHomClass seems good. It would be even better if there were a constructor to easily pass in a function and a proof that it is merely Mul-preserving. (I'm assuming there are applications of Con.mulKer that use plain functions, I didn't check.)
Eric Wieser (Mar 15 2025 at 15:05):
Right, if we don't keep the Class version, we should weaken the MonoidHom version to MulHom
Kyle Miller (Mar 15 2025 at 15:10):
(I've somehow never come across MulHom and →ₙ*
even though they've been in mathlib for years. That resolves my question "how you you pass in a merely Mul-preserving function to a function that wants a MulHomClass".)
Eric Wieser (Mar 23 2025 at 22:31):
#23244 merges the two under the ker
name using MulHomClass
Eric Wieser (Mar 23 2025 at 22:31):
I don't know if we really care about the MulHom
application, so haven't thought too much about simp-normal forms. The key thing for now is to eliminate the duplicate defs.
Eric Wieser (Apr 13 2025 at 00:23):
:ping_pong: on #23244
Yury G. Kudryashov (Apr 13 2025 at 01:20):
Delegated
Last updated: May 02 2025 at 03:31 UTC