Zulip Chat Archive
Stream: Is there code for X?
Topic: Finset for computation
yokatta (Jun 05 2023 at 03:41):
Is there something like Finset
that is suited to both proofs and computation (in particular has a defined ordering)? Was looking at RBSet
, but I'm unsure if it has the same equality behavior (if you converted two permuted lists into an RBSet
, would they always be equal?)
Mario Carneiro (Jun 05 2023 at 03:57):
you could use sorted lists, or RBSet
quotient by toList
Mario Carneiro (Jun 05 2023 at 04:01):
I've never really seen a good reason to explicitly construct the quotient though, when reasoning about RBSet
. Just state theorems with an appropriate relation instead of equality
Last updated: Dec 20 2023 at 11:08 UTC