Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Michael Sammler
iris-coq
Commits
f9e88985
Commit
f9e88985
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
reserve fancy update notation
parent
b56835d0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/bi/notation.v
+27
-0
27 additions, 0 deletions
theories/bi/notation.v
theories/bi/updates.v
+11
-29
11 additions, 29 deletions
theories/bi/updates.v
with
38 additions
and
29 deletions
theories/bi/notation.v
+
27
−
0
View file @
f9e88985
...
@@ -41,5 +41,32 @@ Reserved Notation "■? p P" (at level 20, p at level 9, P at level 20,
...
@@ -41,5 +41,32 @@ Reserved Notation "■? p P" (at level 20, p at level 9, P at level 20,
Reserved
Notation
"|==> Q"
(
at
level
99
,
Q
at
level
200
,
format
"|==> Q"
)
.
Reserved
Notation
"|==> Q"
(
at
level
99
,
Q
at
level
200
,
format
"|==> Q"
)
.
Reserved
Notation
"P ==∗ Q"
(
at
level
99
,
Q
at
level
200
,
format
"P ==∗ Q"
)
.
Reserved
Notation
"P ==∗ Q"
(
at
level
99
,
Q
at
level
200
,
format
"P ==∗ Q"
)
.
Reserved
Notation
"|={ E1 , E2 }=> Q"
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
format
"|={ E1 , E2 }=> Q"
)
.
Reserved
Notation
"P ={ E1 , E2 }=∗ Q"
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
format
"P ={ E1 , E2 }=∗ Q"
)
.
Reserved
Notation
"|={ E }=> Q"
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"|={ E }=> Q"
)
.
Reserved
Notation
"P ={ E }=∗ Q"
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"P ={ E }=∗ Q"
)
.
Reserved
Notation
"|={ E1 , E2 }▷=> Q"
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
format
"|={ E1 , E2 }▷=> Q"
)
.
Reserved
Notation
"P ={ E1 , E2 }▷=∗ Q"
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
format
"P ={ E1 , E2 }▷=∗ Q"
)
.
Reserved
Notation
"|={ E }▷=> Q"
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"|={ E }▷=> Q"
)
.
Reserved
Notation
"P ={ E }▷=∗ Q"
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"P ={ E }▷=∗ Q"
)
.
(** Define the scope *)
(** Define the scope *)
Delimit
Scope
bi_scope
with
I
.
Delimit
Scope
bi_scope
with
I
.
This diff is collapsed.
Click to expand it.
theories/bi/updates.v
+
11
−
29
View file @
f9e88985
...
@@ -15,37 +15,19 @@ Class FUpd (PROP : Type) : Type := fupd : coPset → coPset → PROP → PROP.
...
@@ -15,37 +15,19 @@ Class FUpd (PROP : Type) : Type := fupd : coPset → coPset → PROP → PROP.
Instance
:
Params
(
@
fupd
)
4
.
Instance
:
Params
(
@
fupd
)
4
.
Hint
Mode
FUpd
!
:
typeclass_instances
.
Hint
Mode
FUpd
!
:
typeclass_instances
.
Notation
"|={ E1 , E2 }=> Q"
:=
(
fupd
E1
E2
Q
)
Notation
"|={ E1 , E2 }=> Q"
:=
(
fupd
E1
E2
Q
)
:
bi_scope
.
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
Notation
"P ={ E1 , E2 }=∗ Q"
:=
(
P
-∗
|
=
{
E1
,
E2
}=>
Q
)
%
I
:
bi_scope
.
format
"|={ E1 , E2 }=> Q"
)
:
bi_scope
.
Notation
"P ={ E1 , E2 }=∗ Q"
:=
(
P
-∗
|
=
{
E1
,
E2
}=>
Q
)
:
stdpp_scope
.
Notation
"P ={ E1 , E2 }=∗ Q"
:=
(
P
-∗
|
=
{
E1
,
E2
}=>
Q
)
%
I
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
Notation
"|={ E }=> Q"
:=
(
fupd
E
E
Q
)
:
bi_scope
.
format
"P ={ E1 , E2 }=∗ Q"
)
:
bi_scope
.
Notation
"P ={ E }=∗ Q"
:=
(
P
-∗
|
=
{
E
}=>
Q
)
%
I
:
bi_scope
.
Notation
"P ={ E1 , E2 }=∗ Q"
:=
(
P
-∗
|
=
{
E1
,
E2
}=>
Q
)
Notation
"P ={ E }=∗ Q"
:=
(
P
-∗
|
=
{
E
}=>
Q
)
:
stdpp_scope
.
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
only
parsing
)
:
stdpp_scope
.
Notation
"|={ E }=> Q"
:=
(
fupd
E
E
Q
)
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"|={ E }=> Q"
)
:
bi_scope
.
Notation
"P ={ E }=∗ Q"
:=
(
P
-∗
|
=
{
E
}=>
Q
)
%
I
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"P ={ E }=∗ Q"
)
:
bi_scope
.
Notation
"P ={ E }=∗ Q"
:=
(
P
-∗
|
=
{
E
}=>
Q
)
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
only
parsing
)
:
stdpp_scope
.
(** Fancy updates that take a step. *)
(** Fancy updates that take a step. *)
Notation
"|={ E1 , E2 }▷=> Q"
:=
(|
=
{
E1
,
E2
}=>
(
▷
|
=
{
E2
,
E1
}=>
Q
))
%
I
Notation
"|={ E1 , E2 }▷=> Q"
:=
(|
=
{
E1
,
E2
}=>
(
▷
|
=
{
E2
,
E1
}=>
Q
))
%
I
:
bi_scope
.
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
Notation
"P ={ E1 , E2 }▷=∗ Q"
:=
(
P
-∗
|
=
{
E1
,
E2
}
▷=>
Q
)
%
I
:
bi_scope
.
format
"|={ E1 , E2 }▷=> Q"
)
:
bi_scope
.
Notation
"|={ E }▷=> Q"
:=
(|
=
{
E
,
E
}
▷=>
Q
)
%
I
:
bi_scope
.
Notation
"P ={ E1 , E2 }▷=∗ Q"
:=
(
P
-∗
|
=
{
E1
,
E2
}
▷=>
Q
)
%
I
Notation
"P ={ E }▷=∗ Q"
:=
(
P
=
{
E
,
E
}
▷=∗
Q
)
%
I
:
bi_scope
.
(
at
level
99
,
E1
,
E2
at
level
50
,
Q
at
level
200
,
format
"P ={ E1 , E2 }▷=∗ Q"
)
:
bi_scope
.
Notation
"|={ E }▷=> Q"
:=
(|
=
{
E
,
E
}
▷=>
Q
)
%
I
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"|={ E }▷=> Q"
)
:
bi_scope
.
Notation
"P ={ E }▷=∗ Q"
:=
(
P
=
{
E
,
E
}
▷=∗
Q
)
%
I
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"P ={ E }▷=∗ Q"
)
:
bi_scope
.
(** Bundled versions *)
(** Bundled versions *)
(* Mixins allow us to create instances easily without having to use Program *)
(* Mixins allow us to create instances easily without having to use Program *)
...
...
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