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
Terraform modules
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
Thibaut Pérami
stdpp
Commits
8d18a771
Commit
8d18a771
authored
3 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Tweak tests.
parent
ad2f0a93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/gmap.ref
+4
-0
4 additions, 0 deletions
tests/gmap.ref
tests/gmap.v
+3
-1
3 additions, 1 deletion
tests/gmap.v
with
7 additions
and
1 deletion
tests/gmap.ref
+
4
−
0
View file @
8d18a771
...
@@ -70,10 +70,14 @@ Failed to progress.
...
@@ -70,10 +70,14 @@ Failed to progress.
============================
============================
bool_decide (∅ ⊆ {[1; 2; 3]}) = true
bool_decide (∅ ⊆ {[1; 2; 3]}) = true
"gmap_insert_comm"
: string
1 goal
1 goal
============================
============================
{[3 := false; 2 := true]} = {[2 := true; 3 := false]}
{[3 := false; 2 := true]} = {[2 := true; 3 := false]}
"gmap_lookup_concrete"
: string
1 goal
1 goal
============================
============================
...
...
This diff is collapsed.
Click to expand it.
tests/gmap.v
+
3
−
1
View file @
8d18a771
From
stdpp
Require
Import
pmap
gmap
.
From
stdpp
Require
Import
strings
pmap
gmap
.
Goal
{[
1
;
2
;
3
]}
=@
{
gset
nat
}
∅.
Goal
{[
1
;
2
;
3
]}
=@
{
gset
nat
}
∅.
Proof
.
Proof
.
...
@@ -120,10 +120,12 @@ Time Eval vm_compute in gmap_insert_positives_test 512000.
...
@@ -120,10 +120,12 @@ Time Eval vm_compute in gmap_insert_positives_test 512000.
Time Eval vm_compute in gmap_insert_positives_test 1000000.
Time Eval vm_compute in gmap_insert_positives_test 1000000.
*)
*)
Check
"gmap_insert_comm"
.
Theorem
gmap_insert_comm
:
Theorem
gmap_insert_comm
:
{[
3
:=
false
;
2
:=
true
]}
=@
{
gmap
nat
bool
}
{[
2
:=
true
;
3
:=
false
]}
.
{[
3
:=
false
;
2
:=
true
]}
=@
{
gmap
nat
bool
}
{[
2
:=
true
;
3
:=
false
]}
.
Proof
.
simpl
.
Show
.
reflexivity
.
Qed
.
Proof
.
simpl
.
Show
.
reflexivity
.
Qed
.
Check
"gmap_lookup_concrete"
.
Theorem
gmap_lookup_concrete
:
Theorem
gmap_lookup_concrete
:
lookup
(
M
:=
gmap
nat
bool
)
2
{[
3
:=
false
;
2
:=
true
]}
=
Some
true
.
lookup
(
M
:=
gmap
nat
bool
)
2
{[
3
:=
false
;
2
:=
true
]}
=
Some
true
.
Proof
.
simpl
.
Show
.
reflexivity
.
Qed
.
Proof
.
simpl
.
Show
.
reflexivity
.
Qed
.
...
...
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