Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
stdpp
Merge requests
!268
Comment about `EqDecision` in `Countable`.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Comment about `EqDecision` in `Countable`.
robbert/countable_eq_dec
into
master
Overview
3
Commits
1
Pipelines
1
Changes
1
All threads resolved!
Show all comments
Merged
Robbert Krebbers
requested to merge
robbert/countable_eq_dec
into
master
3 years ago
Overview
3
Commits
1
Pipelines
1
Changes
1
All threads resolved!
Show all comments
Expand
Comments based on question by
@haidang
@haidang
Please review.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
aabff4ca
1 commit,
3 years ago
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
theories/countable.v
+
5
−
0
Options
@@ -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
;
Loading