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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Glen Mével
stdpp
Commits
10c2f692
Commit
10c2f692
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Also support Coq 8.5pl3.
parent
e1762d72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Makefile
+8
-0
8 additions, 0 deletions
Makefile
README.md
+2
-2
2 additions, 2 deletions
README.md
_CoqProject
+0
-1
0 additions, 1 deletion
_CoqProject
theories/fin_maps.v
+2
-2
2 additions, 2 deletions
theories/fin_maps.v
theories/gmap.v
+1
-1
1 addition, 1 deletion
theories/gmap.v
with
13 additions
and
6 deletions
Makefile
+
8
−
0
View file @
10c2f692
...
...
@@ -3,6 +3,14 @@ ifeq ($(Y), 1)
YFLAG
=
-y
endif
# Determine Coq version
COQ_VERSION
=
$(
shell coqc
--version
| egrep
-o
'version 8.[0-9]'
| egrep
-o
'8.[0-9]'
)
COQ_MAKEFILE_FLAGS
?=
ifeq
($(COQ_VERSION), 8.6)
COQ_MAKEFILE_FLAGS
+=
-arg
-w
-arg
-notation-overridden
,-redundant-canonical-projection,-several-object-files
endif
# Forward most targets to Coq makefile (with some trick to make this phony)
%
:
Makefile.coq phony
+@make
-f
Makefile.coq
$@
...
...
This diff is collapsed.
Click to expand it.
README.md
+
2
−
2
View file @
10c2f692
...
...
@@ -20,7 +20,7 @@ The key features of this library are as follows:
`set_solver`
for goals involving set operations.
-
It is entirely axiom free.
# History
#
# History
Coq-std++ has originally been developed by Robbert Krebbers as part of his
formalization of the C programming language in his PhD thesis, called
...
...
@@ -32,7 +32,7 @@ developed by Robbert Krebbers, Ralf Jung, and Jacques Henri-Jourdan.
This version is known to compile with:
-
Coq 8.6
-
Coq
8.5pl3 and Coq
8.6
## Building Instructions
...
...
This diff is collapsed.
Click to expand it.
_CoqProject
+
0
−
1
View file @
10c2f692
-Q theories stdpp
-arg -w -arg -notation-overridden,-redundant-canonical-projection,-several-object-files
theories/option.v
theories/fin_map_dom.v
theories/bset.v
...
...
This diff is collapsed.
Click to expand it.
theories/fin_maps.v
+
2
−
2
View file @
10c2f692
...
...
@@ -792,8 +792,8 @@ Section map_of_to_collection.
Proof
.
intros
Hinj
.
assert
(
∀
x'
,
(
i
,
x
)
∈
f
<$>
elements
Y
→
(
i
,
x'
)
∈
f
<$>
elements
Y
→
x
=
x'
)
.
{
intros
x'
.
intros
(
y
&
Hx
&
?
%
elem_of_
elements
)
%
elem_of_list_fmap
.
intros
(
y'
&
Hx'
&
?
%
elem_of_elements
)
%
elem_of_list_fmap
.
{
intros
x'
.
intros
(
y
&
Hx
&
Hy
)
%
elem_of_
list_fmap
(
y'
&
Hx'
&
Hy'
)
%
elem_of_list_fmap
.
rewrite
elem_of_elements
in
Hy
,
Hy'
.
cut
(
y
=
y'
);
[
congruence
|]
.
apply
Hinj
;
auto
.
by
rewrite
<-
Hx
,
<-
Hx'
.
}
unfold
map_of_collection
;
rewrite
<-
elem_of_map_of_list'
by
done
.
rewrite
elem_of_list_fmap
.
setoid_rewrite
elem_of_elements
;
naive_solver
.
...
...
This diff is collapsed.
Click to expand it.
theories/gmap.v
+
1
−
1
View file @
10c2f692
...
...
@@ -130,7 +130,7 @@ Definition gmap_curry `{Countable K1, Countable K2} {A} :
map_fold
(
λ
i2
x
,
<
[(
i1
,
i2
):=
x
]
>
)
macc
m'
)
∅.
Definition
gmap_uncurry
`{
Countable
K1
,
Countable
K2
}
{
A
}
:
gmap
(
K1
*
K2
)
A
→
gmap
K1
(
gmap
K2
A
)
:=
map_fold
(
λ
'
(
i1
,
i2
)
x
,
map_fold
(
λ
ii
x
,
let
'
(
i1
,
i2
)
:=
ii
in
partial_alter
(
Some
∘
<
[
i2
:=
x
]
>
∘
from_option
id
∅
)
i1
)
∅.
Section
curry_uncurry
.
...
...
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