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
bb75eecc
Verified
Commit
bb75eecc
authored
4 years ago
by
Tej Chajed
Browse files
Options
Downloads
Patches
Plain Diff
Add Countable instance for Ascii.ascii
parent
9b75ffdf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!154
Add Countable instance for Ascii.ascii
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
theories/strings.v
+4
-0
4 additions, 0 deletions
theories/strings.v
with
5 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
bb75eecc
...
@@ -11,6 +11,7 @@ API-breaking change is listed.
...
@@ -11,6 +11,7 @@ API-breaking change is listed.
exported by the prelude. This is a breaking change if one only
exported by the prelude. This is a breaking change if one only
imports
`list.v`
, but not the prelude.
imports
`list.v`
, but not the prelude.
-
Rename
`drop_insert`
into
`drop_insert_gt`
and add
`drop_insert_le`
.
-
Rename
`drop_insert`
into
`drop_insert_gt`
and add
`drop_insert_le`
.
-
Added
`Countable`
instance for
`Ascii.ascii`
.
## std++ 1.3 (released 2020-03-18)
## std++ 1.3 (released 2020-03-18)
...
...
This diff is collapsed.
Click to expand it.
theories/strings.v
+
4
−
0
View file @
bb75eecc
...
@@ -115,3 +115,7 @@ Program Instance string_countable : Countable string := {|
...
@@ -115,3 +115,7 @@ Program Instance string_countable : Countable string := {|
encode
:=
string_to_pos
;
decode
p
:=
Some
(
string_of_pos
p
)
encode
:=
string_to_pos
;
decode
p
:=
Some
(
string_of_pos
p
)
|}
.
|}
.
Solve
Obligations
with
naive_solver
eauto
using
string_of_to_pos
with
f_equal
.
Solve
Obligations
with
naive_solver
eauto
using
string_of_to_pos
with
f_equal
.
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
.
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