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
!155
Add Countable instances for byte
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add Countable instances for byte
tchajed/stdpp:byte-countable
into
master
Overview
13
Commits
1
Pipelines
0
Changes
2
Merged
Tej Chajed
requested to merge
tchajed/stdpp:byte-countable
into
master
5 years ago
Overview
13
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 1
535b3d81
5 years ago
master (base)
and
latest version
latest version
5346dd70
1 commit,
4 years ago
version 1
535b3d81
1 commit,
5 years ago
2 files
+
6
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
theories/strings.v
+
4
−
0
Options
From
Coq
Require
Import
Ascii
.
From
Coq
Require
Import
Init
.
Byte
.
From
Coq
Require
Export
String
.
From
stdpp
Require
Export
list
.
From
stdpp
Require
Import
countable
.
@@ -18,6 +19,7 @@ Arguments String.append : simpl never.
(** * Decision of equality *)
Instance
ascii_eq_dec
:
EqDecision
ascii
:=
ascii_dec
.
Instance
byte_eq_dec
:
EqDecision
byte
:=
Byte
.
byte_eq_dec
.
Instance
string_eq_dec
:
EqDecision
string
.
Proof
.
solve_decision
.
Defined
.
Instance
string_app_inj
:
Inj
(
=
)
(
=
)
(
String
.
append
s1
)
.
@@ -119,3 +121,5 @@ Lemma ascii_of_to_digits a : ascii_of_digits (ascii_to_digits a) = a.
Proof
.
by
destruct
a
as
[[][][][][][][][]]
.
Qed
.
Instance
ascii_countable
:
Countable
ascii
:=
inj_countable'
ascii_to_digits
ascii_of_digits
ascii_of_to_digits
.
Instance
byte_countable
:
Countable
byte
:=
inj_countable
Byte
.
to_N
Byte
.
of_N
Byte
.
of_to_N
.
Loading