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
Gaëtan Gilbert
Iris
Commits
75236abc
Commit
75236abc
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
also pre-reserve bigops notation
parent
f9e88985
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/bi/big_op.v
+20
-34
20 additions, 34 deletions
theories/bi/big_op.v
theories/bi/notation.v
+40
-0
40 additions, 0 deletions
theories/bi/notation.v
with
60 additions
and
34 deletions
theories/bi/big_op.v
+
20
−
34
View file @
75236abc
...
...
@@ -5,40 +5,26 @@ Set Default Proof Using "Type".
Import
interface
.
bi
derived_laws_bi
.
bi
.
(* Notations *)
Notation
"'[∗' 'list]' k ↦ x ∈ l , P"
:=
(
big_opL
bi_sep
(
λ
k
x
,
P
)
l
)
(
at
level
200
,
l
at
level
10
,
k
,
x
at
level
1
,
right
associativity
,
format
"[∗ list] k ↦ x ∈ l , P"
)
:
bi_scope
.
Notation
"'[∗' 'list]' x ∈ l , P"
:=
(
big_opL
bi_sep
(
λ
_
x
,
P
)
l
)
(
at
level
200
,
l
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∗ list] x ∈ l , P"
)
:
bi_scope
.
Notation
"'[∗]' Ps"
:=
(
big_opL
bi_sep
(
λ
_
x
,
x
)
Ps
)
(
at
level
20
)
:
bi_scope
.
Notation
"'[∧' 'list]' k ↦ x ∈ l , P"
:=
(
big_opL
bi_and
(
λ
k
x
,
P
)
l
)
(
at
level
200
,
l
at
level
10
,
k
,
x
at
level
1
,
right
associativity
,
format
"[∧ list] k ↦ x ∈ l , P"
)
:
bi_scope
.
Notation
"'[∧' 'list]' x ∈ l , P"
:=
(
big_opL
bi_and
(
λ
_
x
,
P
)
l
)
(
at
level
200
,
l
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∧ list] x ∈ l , P"
)
:
bi_scope
.
Notation
"'[∧]' Ps"
:=
(
big_opL
bi_and
(
λ
_
x
,
x
)
Ps
)
(
at
level
20
)
:
bi_scope
.
Notation
"'[∗' 'map]' k ↦ x ∈ m , P"
:=
(
big_opM
bi_sep
(
λ
k
x
,
P
)
m
)
(
at
level
200
,
m
at
level
10
,
k
,
x
at
level
1
,
right
associativity
,
format
"[∗ map] k ↦ x ∈ m , P"
)
:
bi_scope
.
Notation
"'[∗' 'map]' x ∈ m , P"
:=
(
big_opM
bi_sep
(
λ
_
x
,
P
)
m
)
(
at
level
200
,
m
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∗ map] x ∈ m , P"
)
:
bi_scope
.
Notation
"'[∗' 'set]' x ∈ X , P"
:=
(
big_opS
bi_sep
(
λ
x
,
P
)
X
)
(
at
level
200
,
X
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∗ set] x ∈ X , P"
)
:
bi_scope
.
Notation
"'[∗' 'mset]' x ∈ X , P"
:=
(
big_opMS
bi_sep
(
λ
x
,
P
)
X
)
(
at
level
200
,
X
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∗ mset] x ∈ X , P"
)
:
bi_scope
.
Notation
"'[∗' 'list]' k ↦ x ∈ l , P"
:=
(
big_opL
bi_sep
(
λ
k
x
,
P
)
l
)
:
bi_scope
.
Notation
"'[∗' 'list]' x ∈ l , P"
:=
(
big_opL
bi_sep
(
λ
_
x
,
P
)
l
)
:
bi_scope
.
Notation
"'[∗]' Ps"
:=
(
big_opL
bi_sep
(
λ
_
x
,
x
)
Ps
)
:
bi_scope
.
Notation
"'[∧' 'list]' k ↦ x ∈ l , P"
:=
(
big_opL
bi_and
(
λ
k
x
,
P
)
l
)
:
bi_scope
.
Notation
"'[∧' 'list]' x ∈ l , P"
:=
(
big_opL
bi_and
(
λ
_
x
,
P
)
l
)
:
bi_scope
.
Notation
"'[∧]' Ps"
:=
(
big_opL
bi_and
(
λ
_
x
,
x
)
Ps
)
:
bi_scope
.
Notation
"'[∗' 'map]' k ↦ x ∈ m , P"
:=
(
big_opM
bi_sep
(
λ
k
x
,
P
)
m
)
:
bi_scope
.
Notation
"'[∗' 'map]' x ∈ m , P"
:=
(
big_opM
bi_sep
(
λ
_
x
,
P
)
m
)
:
bi_scope
.
Notation
"'[∗' 'set]' x ∈ X , P"
:=
(
big_opS
bi_sep
(
λ
x
,
P
)
X
)
:
bi_scope
.
Notation
"'[∗' 'mset]' x ∈ X , P"
:=
(
big_opMS
bi_sep
(
λ
x
,
P
)
X
)
:
bi_scope
.
(** * Properties *)
Section
bi_big_op
.
...
...
This diff is collapsed.
Click to expand it.
theories/bi/notation.v
+
40
−
0
View file @
75236abc
(** Just reserve the notation. *)
(** Turnstiles *)
Reserved
Notation
"P ⊢ Q"
(
at
level
99
,
Q
at
level
200
,
right
associativity
)
.
Reserved
Notation
"P '⊢@{' PROP } Q"
(
at
level
99
,
Q
at
level
200
,
right
associativity
)
.
Reserved
Notation
"('⊢@{' PROP } )"
(
at
level
99
)
.
Reserved
Notation
"P ⊣⊢ Q"
(
at
level
95
,
no
associativity
)
.
Reserved
Notation
"P '⊣⊢@{' PROP } Q"
(
at
level
95
,
no
associativity
)
.
Reserved
Notation
"('⊣⊢@{' PROP } )"
(
at
level
95
)
.
(** BI connectives *)
Reserved
Notation
"'emp'"
.
Reserved
Notation
"'⌜' φ '⌝'"
(
at
level
1
,
φ
at
level
200
,
format
"⌜ φ ⌝"
)
.
Reserved
Notation
"P ∗ Q"
(
at
level
80
,
right
associativity
)
.
Reserved
Notation
"P -∗ Q"
(
at
level
99
,
Q
at
level
200
,
right
associativity
)
.
(** Modalities *)
Reserved
Notation
"'<pers>' P"
(
at
level
20
,
right
associativity
)
.
Reserved
Notation
"'<pers>?' p P"
(
at
level
20
,
p
at
level
9
,
P
at
level
20
,
right
associativity
,
format
"'<pers>?' p P"
)
.
...
...
@@ -38,6 +43,7 @@ Reserved Notation "■ P" (at level 20, right associativity).
Reserved
Notation
"■? p P"
(
at
level
20
,
p
at
level
9
,
P
at
level
20
,
right
associativity
,
format
"■? p P"
)
.
(** Update modalities *)
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"
)
.
...
...
@@ -68,5 +74,39 @@ Reserved Notation "P ={ E }▷=∗ Q"
(
at
level
99
,
E
at
level
50
,
Q
at
level
200
,
format
"P ={ E }▷=∗ Q"
)
.
(** Big Ops *)
Reserved
Notation
"'[∗' 'list]' k ↦ x ∈ l , P"
(
at
level
200
,
l
at
level
10
,
k
,
x
at
level
1
,
right
associativity
,
format
"[∗ list] k ↦ x ∈ l , P"
)
.
Reserved
Notation
"'[∗' 'list]' x ∈ l , P"
(
at
level
200
,
l
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∗ list] x ∈ l , P"
)
.
Reserved
Notation
"'[∗]' Ps"
(
at
level
20
)
.
Reserved
Notation
"'[∧' 'list]' k ↦ x ∈ l , P"
(
at
level
200
,
l
at
level
10
,
k
,
x
at
level
1
,
right
associativity
,
format
"[∧ list] k ↦ x ∈ l , P"
)
.
Reserved
Notation
"'[∧' 'list]' x ∈ l , P"
(
at
level
200
,
l
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∧ list] x ∈ l , P"
)
.
Reserved
Notation
"'[∧]' Ps"
(
at
level
20
)
.
Reserved
Notation
"'[∗' 'map]' k ↦ x ∈ m , P"
(
at
level
200
,
m
at
level
10
,
k
,
x
at
level
1
,
right
associativity
,
format
"[∗ map] k ↦ x ∈ m , P"
)
.
Reserved
Notation
"'[∗' 'map]' x ∈ m , P"
(
at
level
200
,
m
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∗ map] x ∈ m , P"
)
.
Reserved
Notation
"'[∗' 'set]' x ∈ X , P"
(
at
level
200
,
X
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∗ set] x ∈ X , P"
)
.
Reserved
Notation
"'[∗' 'mset]' x ∈ X , P"
(
at
level
200
,
X
at
level
10
,
x
at
level
1
,
right
associativity
,
format
"[∗ mset] x ∈ X , P"
)
.
(** Define the scope *)
Delimit
Scope
bi_scope
with
I
.
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