Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodolphe Lepigre
Iris
Commits
97232540
Verified
Commit
97232540
authored
Jun 13, 2019
by
Rodolphe Lepigre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix overloaded notation behaviour for offset addition.
parent
d4d61110
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
theories/heap_lang/locations.v
theories/heap_lang/locations.v
+2
-1
theories/heap_lang/notation.v
theories/heap_lang/notation.v
+1
-1
No files found.
theories/heap_lang/locations.v
View file @
97232540
...
...
@@ -18,7 +18,8 @@ Next Obligation. done. Qed.
Definition
loc_add
(
l
:
loc
)
(
off
:
Z
)
:
loc
:
=
{|
loc_car
:
=
loc_car
l
+
off
|}.
Notation
"l +ₗ off"
:
=
(
loc_add
l
off
)
(
at
level
50
,
left
associativity
).
Notation
"l +ₗ off"
:
=
(
loc_add
l
off
)
(
at
level
50
,
left
associativity
)
:
stdpp_scope
.
Lemma
loc_add_assoc
l
i
j
:
l
+
ₗ
i
+
ₗ
j
=
l
+
ₗ
(
i
+
j
).
Proof
.
destruct
l
;
rewrite
/
loc_add
/=
;
f_equal
;
lia
.
Qed
.
...
...
theories/heap_lang/notation.v
View file @
97232540
...
...
@@ -32,7 +32,7 @@ Notation Skip := (App (Val $ LamV BAnon (Val $ LitV LitUnit)) (Val $ LitV LitUni
(* No scope for the values, does not conflict and scope is often not inferred
properly. *)
Notation
"# l"
:
=
(
LitV
l
%
Z
%
V
)
(
at
level
8
,
format
"# l"
).
Notation
"# l"
:
=
(
LitV
l
%
Z
%
V
%
stdpp
)
(
at
level
8
,
format
"# l"
).
(** Syntax inspired by Coq/Ocaml. Constructions with higher precedence come
first. *)
...
...
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