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
William Mansky
Iris
Commits
a3cc36e4
Commit
a3cc36e4
authored
4 years ago
by
Paolo G. Giarrusso
Committed by
Robbert Krebbers
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix scopes of bupd and fupd
parent
e2c87974
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/proofmode_iris.v
+10
-0
10 additions, 0 deletions
tests/proofmode_iris.v
theories/bi/updates.v
+2
-0
2 additions, 0 deletions
theories/bi/updates.v
with
12 additions
and
0 deletions
tests/proofmode_iris.v
+
10
−
0
View file @
a3cc36e4
...
...
@@ -6,6 +6,10 @@ Section base_logic_tests.
Context
{
M
:
ucmraT
}
.
Implicit
Types
P
Q
R
:
uPred
M
.
(* Test scopes for bupd *)
Definition
use_bupd_uPred
(
n
:
nat
)
:
uPred
M
:=
□
|
==>
∃
m
:
nat
,
⌜
n
=
2
⌝.
Lemma
test_random_stuff
(
P1
P2
P3
:
nat
→
uPred
M
)
:
⊢
∀
(
x
y
:
nat
)
a
b
,
x
≡
y
→
...
...
@@ -52,6 +56,12 @@ 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.
theories/bi/updates.v
+
2
−
0
View file @
a3cc36e4
...
...
@@ -7,6 +7,7 @@ bundle these operational type classes with the laws. *)
Class
BUpd
(
PROP
:
Type
)
:
Type
:=
bupd
:
PROP
→
PROP
.
Instance
:
Params
(
@
bupd
)
2
:=
{}
.
Hint
Mode
BUpd
!
:
typeclass_instances
.
Arguments
bupd
{_}
%
type_scope
{_}
_
%
bi_scope
.
Notation
"|==> Q"
:=
(
bupd
Q
)
:
bi_scope
.
Notation
"P ==∗ Q"
:=
(
P
⊢
|
==>
Q
)
(
only
parsing
)
:
stdpp_scope
.
...
...
@@ -15,6 +16,7 @@ Notation "P ==∗ Q" := (P -∗ |==> Q)%I : bi_scope.
Class
FUpd
(
PROP
:
Type
)
:
Type
:=
fupd
:
coPset
→
coPset
→
PROP
→
PROP
.
Instance
:
Params
(
@
fupd
)
4
:=
{}
.
Hint
Mode
FUpd
!
:
typeclass_instances
.
Arguments
fupd
{_}
%
type_scope
{_}
_
_
_
%
bi_scope
.
Notation
"|={ E1 , E2 }=> Q"
:=
(
fupd
E1
E2
Q
)
:
bi_scope
.
Notation
"P ={ E1 , E2 }=∗ Q"
:=
(
P
-∗
|
=
{
E1
,
E2
}=>
Q
)
%
I
:
bi_scope
.
...
...
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