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
Commits
5346dd70
Verified
Commit
5346dd70
authored
4 years ago
by
Tej Chajed
Browse files
Options
Downloads
Patches
Plain Diff
Add Countable instances for byte
parent
befe38d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!155
Add Countable instances for byte
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-1
2 additions, 1 deletion
CHANGELOG.md
theories/strings.v
+4
-0
4 additions, 0 deletions
theories/strings.v
with
6 additions
and
1 deletion
CHANGELOG.md
+
2
−
1
View file @
5346dd70
...
...
@@ -14,7 +14,8 @@ API-breaking change is listed.
exported by the prelude. This is a breaking change if one only
imports
`list.v`
, but not the prelude.
-
Rename
`drop_insert`
into
`drop_insert_gt`
and add
`drop_insert_le`
.
-
Added
`Countable`
instance for
`Ascii.ascii`
.
-
Added
`Countable`
instances for
`Ascii.ascii`
and
`Byte.byte`
from the Coq
standard library.
-
Make lemma
`list_find_Some`
more apply friendly.
## std++ 1.3 (released 2020-03-18)
...
...
This diff is collapsed.
Click to expand it.
theories/strings.v
+
4
−
0
View file @
5346dd70
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
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment