Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
Iris
Commits
bcfc5aa7
Commit
bcfc5aa7
authored
Jul 12, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notations for short-circuit Boolean connectives && and ||.
parent
d609ac7e
Pipeline
#2141
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
heap_lang/notation.v
heap_lang/notation.v
+4
-0
No files found.
heap_lang/notation.v
View file @
bcfc5aa7
...
@@ -100,6 +100,10 @@ Notation "'let:' x := e1 'in' e2" := (LamV x%bind e2%E e1%E)
...
@@ -100,6 +100,10 @@ Notation "'let:' x := e1 'in' e2" := (LamV x%bind e2%E e1%E)
Notation
"e1 ;; e2"
:
=
(
LamV
BAnon
e2
%
E
e1
%
E
)
Notation
"e1 ;; e2"
:
=
(
LamV
BAnon
e2
%
E
e1
%
E
)
(
at
level
100
,
e2
at
level
200
,
format
"e1 ;; e2"
)
:
val_scope
.
(
at
level
100
,
e2
at
level
200
,
format
"e1 ;; e2"
)
:
val_scope
.
(* Shortcircuit Boolean connectives *)
Notation
"e1 && e2"
:
=
(
If
e1
%
E
e2
%
E
(
Lit
(
LitBool
false
)))
:
expr_scope
.
Notation
"e1 || e2"
:
=
(
If
e1
%
E
(
Lit
(
LitBool
true
))
e2
%
E
)
:
expr_scope
.
(** Notations for option *)
(** Notations for option *)
Notation
NONE
:
=
(
InjL
#()).
Notation
NONE
:
=
(
InjL
#()).
Notation
SOME
x
:
=
(
InjR
x
).
Notation
SOME
x
:
=
(
InjR
x
).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment