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
3f1a95d1
Commit
3f1a95d1
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
move scope tests to new file
parent
4a1a97b5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/iris_notation.ref
+0
-0
0 additions, 0 deletions
tests/iris_notation.ref
tests/iris_notation.v
+45
-0
45 additions, 0 deletions
tests/iris_notation.v
tests/proofmode_iris.v
+0
-22
0 additions, 22 deletions
tests/proofmode_iris.v
with
45 additions
and
22 deletions
tests/iris_notation.ref
0 → 100644
+
0
−
0
View file @
3f1a95d1
This diff is collapsed.
Click to expand it.
tests/iris_notation.v
0 → 100644
+
45
−
0
View file @
3f1a95d1
From
iris
.
algebra
Require
Import
frac
.
From
iris
.
proofmode
Require
Import
tactics
monpred
.
From
iris
.
base_logic
Require
Import
base_logic
lib
.
fancy_updates
.
Section
base_logic_tests
.
Context
{
M
:
ucmra
}
.
Implicit
Types
P
Q
R
:
uPred
M
.
(* Test scopes for bupd *)
Definition
use_bupd_uPred
(
n
:
nat
)
:
uPred
M
:=
□
|
==>
∃
m
:
nat
,
⌜
n
=
2
⌝.
Definition
use_plainly_uPred
(
n
:
nat
)
:
uPred
M
:=
■
|
==>
∃
m
:
nat
,
⌜
n
=
2
⌝.
(* Test scopes inside big-ops *)
Definition
big_op_scope_uPred_1
(
xs
:
list
nat
)
:
uPred
M
:=
[
∗
list
]
_
↦
x
∈
xs
,
True
.
Definition
big_op_scope_uPred_2
(
xs
:
list
nat
)
:
uPred
M
:=
[
∗
list
]
x
;
y
∈
xs
;
xs
,
True
.
Definition
big_op_scope_uPred_3
(
m
:
gmap
nat
nat
)
:
uPred
M
:=
[
∗
map
]
_
↦
x
∈
m
,
True
.
Definition
big_op_scope_uPred_4
(
m
:
gmap
nat
nat
)
:
uPred
M
:=
[
∗
map
]
x
;
y
∈
m
;
m
,
True
.
End
base_logic_tests
.
Section
iris_tests
.
Context
`{
!
invG
Σ
}
.
Implicit
Types
P
Q
R
:
iProp
Σ
.
(* Test scopes for bupd and fupd *)
Definition
use_bupd_iProp
(
n
:
nat
)
:
iProp
Σ
:=
□
|
==>
∃
m
:
nat
,
⌜
n
=
2
⌝.
Definition
use_fupd_iProp
(
n
:
nat
)
:
iProp
Σ
:=
□
|
=
{
⊤
}=>
∃
m
:
nat
,
⌜
n
=
2
⌝.
(* Test scopes inside big-ops *)
Definition
big_op_scope_iProp_1
(
xs
:
list
nat
)
:
iProp
Σ
:=
[
∗
list
]
_
↦
x
∈
xs
,
True
.
Definition
big_op_scope_iProp_2
(
xs
:
list
nat
)
:
iProp
Σ
:=
[
∗
list
]
x
;
y
∈
xs
;
xs
,
True
.
Definition
big_op_scope_iProp_3
(
m
:
gmap
nat
nat
)
:
iProp
Σ
:=
[
∗
map
]
_
↦
x
∈
m
,
True
.
Definition
big_op_scope_iProp_4
(
m
:
gmap
nat
nat
)
:
iProp
Σ
:=
[
∗
map
]
x
;
y
∈
m
;
m
,
True
.
End
iris_tests
.
This diff is collapsed.
Click to expand it.
tests/proofmode_iris.v
+
0
−
22
View file @
3f1a95d1
...
...
@@ -9,22 +9,6 @@ Section base_logic_tests.
Context
{
M
:
ucmra
}
.
Implicit
Types
P
Q
R
:
uPred
M
.
(* Test scopes for bupd *)
Definition
use_bupd_uPred
(
n
:
nat
)
:
uPred
M
:=
□
|
==>
∃
m
:
nat
,
⌜
n
=
2
⌝.
Definition
use_plainly_uPred
(
n
:
nat
)
:
uPred
M
:=
■
|
==>
∃
m
:
nat
,
⌜
n
=
2
⌝.
(* Test scopes inside big-ops *)
Definition
big_op_scope_1
(
xs
:
list
nat
)
:
uPred
M
:=
[
∗
list
]
_
↦
x
∈
xs
,
True
.
Definition
big_op_scope_2
(
xs
:
list
nat
)
:
uPred
M
:=
[
∗
list
]
x
;
y
∈
xs
;
xs
,
True
.
Definition
big_op_scope_3
(
m
:
gmap
nat
nat
)
:
uPred
M
:=
[
∗
map
]
_
↦
x
∈
m
,
True
.
Definition
big_op_scope_4
(
m
:
gmap
nat
nat
)
:
uPred
M
:=
[
∗
map
]
x
;
y
∈
m
;
m
,
True
.
Lemma
test_random_stuff
(
P1
P2
P3
:
nat
→
uPred
M
)
:
⊢
∀
(
x
y
:
nat
)
a
b
,
x
≡
y
→
...
...
@@ -71,12 +55,6 @@ Section iris_tests.
Context
`{
!
invG
Σ
,
!
cinvG
Σ
,
!
na_invG
Σ
}
.
Implicit
Types
P
Q
R
:
iProp
Σ
.
(* Test scopes for bupd and fupd *)
Definition
use_bupd_iProp
(
n
:
nat
)
:
iProp
Σ
:=
□
|
==>
∃
m
:
nat
,
⌜
n
=
2
⌝.
Definition
use_fupd_iProp
(
n
:
nat
)
:
iProp
Σ
:=
□
|
=
{
⊤
}=>
∃
m
:
nat
,
⌜
n
=
2
⌝.
Lemma
test_masks
N
E
P
Q
R
:
↑
N
⊆
E
→
(
True
-∗
P
-∗
inv
N
Q
-∗
True
-∗
R
)
-∗
P
-∗
▷
Q
=
{
E
}
=∗
R
.
...
...
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