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

Comment about `EqDecision` in `Countable`.

parent 64ec9b56
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,11 @@ From stdpp Require Export list numbers list_numbers fin. ...@@ -3,6 +3,11 @@ From stdpp Require Export list numbers list_numbers fin.
From stdpp Require Import options. From stdpp Require Import options.
Local Open Scope positive. 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} := { Class Countable A `{EqDecision A} := {
encode : A positive; encode : A positive;
decode : positive option A; 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