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
Simcha van Collem
Iris
Commits
bcfc5aa7
Commit
bcfc5aa7
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Notations for short-circuit Boolean connectives && and ||.
parent
d609ac7e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
heap_lang/notation.v
+4
-0
4 additions, 0 deletions
heap_lang/notation.v
with
4 additions
and
0 deletions
heap_lang/notation.v
+
4
−
0
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
)
.
...
...
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