Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonas Kastberg
iris
Commits
58ae11ed
Commit
58ae11ed
authored
Apr 07, 2019
by
Robbert Krebbers
Browse files
Change the level of `ref` so it's the same as application.
parent
787636f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/heap_lang.ref
View file @
58ae11ed
...
...
@@ -86,6 +86,14 @@ Tactic failure: wp_pure: cannot find ?y in (Var "x") or
--------------------------------------∗
WP "x" {{ _, True }}
1 subgoal
Σ : gFunctors
heapG0 : heapG Σ
============================
--------------------------------------∗
WP let: "f" := λ: "x", "x" in ref ("f" #10) {{ _, True }}
1 subgoal
Σ : gFunctors
...
...
tests/heap_lang.v
View file @
58ae11ed
...
...
@@ -149,6 +149,12 @@ End tests.
Section
printing_tests
.
Context
`
{!
heapG
Σ
}.
Lemma
ref_print
:
True
-
∗
WP
let
:
"f"
:
=
(
λ
:
"x"
,
"x"
)
in
ref
(
"f"
#
10
)
{{
_
,
True
}}.
Proof
.
iIntros
"_"
.
Show
.
Abort
.
(* These terms aren't even closed, but that's not what this is about. The
length of the variable names etc. has been carefully chosen to trigger
particular behavior of the Coq pretty printer. *)
...
...
theories/heap_lang/notation.v
View file @
58ae11ed
...
...
@@ -59,8 +59,7 @@ Notation "'match:' e0 'with' 'InjR' x1 => e1 | 'InjL' x2 => e2 'end'" :=
Notation
"()"
:
=
LitUnit
:
val_scope
.
Notation
"! e"
:
=
(
Load
e
%
E
)
(
at
level
9
,
right
associativity
)
:
expr_scope
.
Notation
"'ref' e"
:
=
(
Alloc
e
%
E
)
(
at
level
30
,
right
associativity
)
:
expr_scope
.
Notation
"'ref' e"
:
=
(
Alloc
e
%
E
)
(
at
level
10
)
:
expr_scope
.
Notation
"- e"
:
=
(
UnOp
MinusUnOp
e
%
E
)
:
expr_scope
.
Notation
"e1 + e2"
:
=
(
BinOp
PlusOp
e1
%
E
e2
%
E
)
:
expr_scope
.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment