Zulip Chat Archive

Stream: mathlib4

Topic: EmbeddingLike coe


Felix Weilacher (Sep 02 2024 at 04:23):

Is it intentional that providing a type F with an instance of EmbeddingLike F A B does not provide a coercion from F to Embedding A B?

(Instead, you get a coercion to functions and a proof that they are injective)

Is it for diamond reasons?

Edward van de Meent (Sep 02 2024 at 10:38):

i think that this might be because in most cases, the API for (f : A -> B) (hinj : Injective f) is (possibly a lot) better? i hardly ever have come across uses of Embedding, to be honest...

Yury G. Kudryashov (Sep 02 2024 at 13:52):

No diamond reasons, just a hole in the API. We have these functions for many other similar classes.


Last updated: May 02 2025 at 03:31 UTC