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
a9f98603
Commit
a9f98603
authored
6 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Use only printing on notations for lambdas.
parent
a2d55731
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
theories/heap_lang/notation.v
+4
-5
4 additions, 5 deletions
theories/heap_lang/notation.v
with
4 additions
and
5 deletions
theories/heap_lang/notation.v
+
4
−
5
View file @
a9f98603
...
@@ -114,18 +114,17 @@ Notation "λ: x y .. z , e" := (Lam x%bind (Lam y%bind .. (Lam z%bind e%E) ..))
...
@@ -114,18 +114,17 @@ Notation "λ: x y .. z , e" := (Lam x%bind (Lam y%bind .. (Lam z%bind e%E) ..))
(* When parsing lambdas, we want them to be locked (so as to avoid needless
(* When parsing lambdas, we want them to be locked (so as to avoid needless
unfolding by tactics and unification). However, unlocked lambda-values sometimes
unfolding by tactics and unification). However, unlocked lambda-values sometimes
appear as part of compound expressions, in which case we want them to be pretty
appear as part of compound expressions, in which case we want them to be pretty
printed too. We achieve that by first defining the non-locked notation, and then
printed too. We achieve that by using printing only notations for the non-locked
the locked notation. Both will be used for pretty-printing, but only the last
notation. *)
will be used for parsing. *)
Notation
"λ: x , e"
:=
(
LamV
x
%
bind
e
%
E
)
Notation
"λ: x , e"
:=
(
LamV
x
%
bind
e
%
E
)
(
at
level
200
,
x
at
level
1
,
e
at
level
200
,
(
at
level
200
,
x
at
level
1
,
e
at
level
200
,
format
"'[' 'λ:' x , '/ ' e ']'"
)
:
val_scope
.
format
"'[' 'λ:' x , '/ ' e ']'"
,
only
printing
)
:
val_scope
.
Notation
"λ: x , e"
:=
(
locked
(
LamV
x
%
bind
e
%
E
))
Notation
"λ: x , e"
:=
(
locked
(
LamV
x
%
bind
e
%
E
))
(
at
level
200
,
x
at
level
1
,
e
at
level
200
,
(
at
level
200
,
x
at
level
1
,
e
at
level
200
,
format
"'[' 'λ:' x , '/ ' e ']'"
)
:
val_scope
.
format
"'[' 'λ:' x , '/ ' e ']'"
)
:
val_scope
.
Notation
"λ: x y .. z , e"
:=
(
LamV
x
%
bind
(
Lam
y
%
bind
.
.
(
Lam
z
%
bind
e
%
E
)
.
.
))
Notation
"λ: x y .. z , e"
:=
(
LamV
x
%
bind
(
Lam
y
%
bind
.
.
(
Lam
z
%
bind
e
%
E
)
.
.
))
(
at
level
200
,
x
,
y
,
z
at
level
1
,
e
at
level
200
,
(
at
level
200
,
x
,
y
,
z
at
level
1
,
e
at
level
200
,
format
"'[' 'λ:' x y .. z , '/ ' e ']'"
)
:
val_scope
.
format
"'[' 'λ:' x y .. z , '/ ' e ']'"
,
only
printing
)
:
val_scope
.
Notation
"λ: x y .. z , e"
:=
(
locked
(
LamV
x
%
bind
(
Lam
y
%
bind
.
.
(
Lam
z
%
bind
e
%
E
)
.
.
)))
Notation
"λ: x y .. z , e"
:=
(
locked
(
LamV
x
%
bind
(
Lam
y
%
bind
.
.
(
Lam
z
%
bind
e
%
E
)
.
.
)))
(
at
level
200
,
x
,
y
,
z
at
level
1
,
e
at
level
200
,
(
at
level
200
,
x
,
y
,
z
at
level
1
,
e
at
level
200
,
format
"'[' 'λ:' x y .. z , '/ ' e ']'"
)
:
val_scope
.
format
"'[' 'λ:' x y .. z , '/ ' e ']'"
)
:
val_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