Zulip Chat Archive

Stream: Is there code for X?

Topic: bijection


Bolton Bailey (Jun 19 2022 at 02:14):

I thought mathlib had an object for a "bijection": a function wrapped with a function.bijective predicate. But searching for it in the docs yields no results. Do we have this?

Bolton Bailey (Jun 19 2022 at 02:18):

Similarly, I thought we had wrapped injections and surjections with funny little arrow symbols as notation, do we not have this either?

Junyan Xu (Jun 19 2022 at 02:19):

For injection we have docs#embedding but not sure about others

Junyan Xu (Jun 19 2022 at 02:20):

sorry, docs#function.embedding with notation ↪

Junyan Xu (Jun 19 2022 at 02:21):

docs#equiv is sort of bundled bijection but has the additional data of the inverse function, and is what people normally use.

Bolton Bailey (Jun 19 2022 at 02:21):

Embedding must have been what I saw, thanks

Junyan Xu (Jun 19 2022 at 02:22):

because we always have docs#equiv.of_bijective using choice (in ZF it doesn't require choice but in Lean it does).


Last updated: Dec 20 2023 at 11:08 UTC