Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
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
Abhishek Anand
Iris
Commits
ffd67c09
Commit
ffd67c09
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
bind scope before defining notation, to make sure the scope is set for the notation
parent
de86652f
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
tests/heap_lang.v
+2
-0
2 additions, 0 deletions
tests/heap_lang.v
theories/heap_lang/lang.v
+4
-4
4 additions, 4 deletions
theories/heap_lang/lang.v
with
6 additions
and
4 deletions
tests/heap_lang.v
+
2
−
0
View file @
ffd67c09
...
...
@@ -19,6 +19,8 @@ Section tests.
end
.
Qed
.
Definition
val_scope_test_1
:=
SOMEV
(
#
(),
#
())
.
Definition
heap_e
:
expr
:=
let
:
"x"
:=
ref
#
1
in
"x"
<-
!
"x"
+
#
1
;;
!
"x"
.
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/lang.v
+
4
−
4
View file @
ffd67c09
...
...
@@ -66,11 +66,11 @@ Inductive expr :=
|
CAS
(
e0
:
expr
)
(
e1
:
expr
)
(
e2
:
expr
)
|
FAA
(
e1
:
expr
)
(
e2
:
expr
)
.
Bind
Scope
expr_scope
with
expr
.
Notation
NONE
:=
(
InjL
(
Lit
LitUnit
))
(
only
parsing
)
.
Notation
SOME
x
:=
(
InjR
x
)
(
only
parsing
)
.
Bind
Scope
expr_scope
with
expr
.
Fixpoint
is_closed
(
X
:
list
string
)
(
e
:
expr
)
:
bool
:=
match
e
with
|
Var
x
=>
bool_decide
(
x
∈
X
)
...
...
@@ -97,11 +97,11 @@ Inductive val :=
|
InjLV
(
v
:
val
)
|
InjRV
(
v
:
val
)
.
Bind
Scope
val_scope
with
val
.
Notation
NONEV
:=
(
InjLV
(
LitV
LitUnit
))
(
only
parsing
)
.
Notation
SOMEV
x
:=
(
InjRV
x
)
(
only
parsing
)
.
Bind
Scope
val_scope
with
val
.
Fixpoint
of_val
(
v
:
val
)
:
expr
:=
match
v
with
|
RecV
f
x
e
=>
Rec
f
x
e
...
...
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