Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Pierre Roux
Iris
Commits
39a49468
Commit
39a49468
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Some tests.
parent
099b688c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/bi.v
+24
-1
24 additions, 1 deletion
tests/bi.v
with
24 additions
and
1 deletion
tests/bi.v
+
24
−
1
View file @
39a49468
From
iris
.
bi
Require
Import
bi
plainly
.
From
iris
.
bi
Require
Import
bi
plainly
big_op
.
(** See https://gitlab.mpi-sws.org/iris/iris/-/merge_requests/610 *)
(** See https://gitlab.mpi-sws.org/iris/iris/-/merge_requests/610 *)
Lemma
test_impl_persistent_1
`{
!
BiPlainly
PROP
,
!
BiPersistentlyImplPlainly
PROP
}
:
Lemma
test_impl_persistent_1
`{
!
BiPlainly
PROP
,
!
BiPersistentlyImplPlainly
PROP
}
:
...
@@ -14,3 +14,26 @@ Proof.
...
@@ -14,3 +14,26 @@ Proof.
(* [<affine> True] is implicitly in %I scope. *)
(* [<affine> True] is implicitly in %I scope. *)
pose
proof
(
bi
.
wand_iff_refl
(
PROP
:=
PROP
)
(
<
affine
>
True
))
.
pose
proof
(
bi
.
wand_iff_refl
(
PROP
:=
PROP
)
(
<
affine
>
True
))
.
Abort
.
Abort
.
(** Some basic tests to make sure patterns work in big ops. *)
Definition
big_sepM_pattern_value
{
PROP
:
bi
}
(
m
:
gmap
nat
(
nat
*
nat
))
:
PROP
:=
[
∗
map
]
'
(
x
,
y
)
∈
m
,
⌜
10
=
x
⌝.
Definition
big_sepM_pattern_value_tt
{
PROP
:
bi
}
(
m
:
gmap
nat
())
:
PROP
:=
[
∗
map
]
'
()
∈
m
,
True
.
Definition
big_sepM_pattern_key
{
PROP
:
bi
}
(
m
:
gmap
(
nat
*
nat
)
nat
)
:
PROP
:=
[
∗
map
]
'
(
k
,_)
↦
_
∈
m
,
⌜
10
=
k
⌝.
Definition
big_sepM_pattern_both
{
PROP
:
bi
}
(
m
:
gmap
(
nat
*
nat
)
(
nat
*
nat
))
:
PROP
:=
[
∗
map
]
'
(
k
,_)
↦
'
(_,
y
)
∈
m
,
⌜
k
=
y
⌝.
Definition
big_sepM_cast
{
PROP
:
bi
}
(
m
:
gmap
nat
nat
)
:
PROP
:=
[
∗
map
]
(
x
:
nat
)
∈
m
,
⌜
10
%
Z
=
x
⌝.
Definition
big_sepM2_pattern
{
PROP
:
bi
}
(
m1
m2
:
gmap
nat
(
nat
*
nat
))
:
PROP
:=
[
∗
map
]
'
(
x
,_);
'
(_,
y
)
∈
m1
;
m2
,
⌜
x
=
y
⌝.
\ No newline at end of file
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