Zulip Chat Archive
Stream: new members
Topic: making an inverse to a bijection
Sebastian Zimmer (Oct 14 2018 at 12:12):
Is there something in mathlib that lets you (constructively) make an inverse to a bijection between two fintypes with decidably equality?
It feels to me like it should be possible without axioms.
Mario Carneiro (Oct 14 2018 at 12:15):
You are right that it is possible without axioms, but I don't think we have exactly that
Sebastian Zimmer (Oct 14 2018 at 12:16):
How about unique choice in a fintype?
Mario Carneiro (Oct 14 2018 at 12:16):
There is encodable.choose
, but a fintype isn't actually encodable
because it doesn't have an ordering
Mario Carneiro (Oct 14 2018 at 12:16):
but as you say for unique choice it doesn't matter
Mario Carneiro (Oct 14 2018 at 12:17):
That's something that makes sense to define, but you would have to write it yourself (and PR to mathlib)
Sebastian Zimmer (Oct 14 2018 at 19:53):
I've implemented this. Should I make a PR to leanprover-community or directly to leanprover/mathlib?
Bryan Gin-ge Chen (Oct 14 2018 at 21:02):
You should PR directly to mathlib. leanprover-community is typically used as a collaborative staging area for larger PR's that multiple people work on; you can get contributor access to it if you ask Mario or Simon Hudon.
Mario Carneiro (Oct 14 2018 at 21:05):
I don't know your github username
Bryan Gin-ge Chen (Oct 14 2018 at 21:08):
It looks like Sebastian has already opened a PR to leanprover-community:
https://github.com/leanprover-community/mathlib/pull/7
Sebastian Zimmer (Oct 14 2018 at 22:22):
ok, I've opened a PR directly to mathlib here https://github.com/leanprover/mathlib/pull/421
Sebastian Zimmer (Oct 21 2018 at 13:52):
I made a bunch of changes in reponse to the comments on it
Last updated: Dec 20 2023 at 11:08 UTC