Skip to content
Snippets Groups Projects
Commit 3d845892 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Merge branch 'robbert/countable_eq_dec' into 'master'

Comment about `EqDecision` in `Countable`.

See merge request !268
parents da511623 aabff4ca
No related branches found
No related tags found
1 merge request!268Comment about `EqDecision` in `Countable`.
Pipeline #47651 passed
......@@ -3,6 +3,11 @@ From stdpp Require Export list numbers list_numbers fin.
From stdpp Require Import options.
Local Open Scope positive.
(* Note that [Countable A] gives rise to [EqDecision A] by checking equality of
the results of [encode]. This instance of [EqDecision A] is very inefficient, so
the native decider is typically preferred for actual computation. To avoid
overlapping instances, we include [EqDecision A] explicitly as a parameter of
[Countable A]. *)
Class Countable A `{EqDecision A} := {
encode : A positive;
decode : positive option A;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment