Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Joshua Yanovski
iris-coq
Commits
79bf7df8
Commit
79bf7df8
authored
Feb 11, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ;; for seq, ; conflicts with lists.
parent
8c96ad4e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
heap_lang/notation.v
heap_lang/notation.v
+1
-1
heap_lang/tests.v
heap_lang/tests.v
+2
-7
No files found.
heap_lang/notation.v
View file @
79bf7df8
...
...
@@ -50,5 +50,5 @@ Notation "λ: x , e" := (LamV x e%L)
(
at
level
102
,
x
at
level
1
,
e
at
level
200
)
:
lang_scope
.
Notation
"'let:' x := e1 'in' e2"
:=
(
Lam
x
e2
%
L
e1
%
L
)
(
at
level
102
,
x
at
level
1
,
e1
,
e2
at
level
200
)
:
lang_scope
.
Notation
"e1 ; e2"
:=
(
Lam
""
e2
%
L
e1
%
L
)
Notation
"e1 ;
;
e2"
:=
(
Lam
""
e2
%
L
e1
%
L
)
(
at
level
100
,
e2
at
level
200
)
:
lang_scope
.
heap_lang/tests.v
View file @
79bf7df8
...
...
@@ -27,7 +27,7 @@ Module LiftingTests.
Implicit
Types
Q
:
val
→
iProp
heap_lang
Σ
.
Definition
e
:
expr
:=
let:
"x"
:=
ref
'1
in
"x"
<-
!
"x"
+
'1
;
!
"x"
.
let:
"x"
:=
ref
'1
in
"x"
<-
!
"x"
+
'1
;
;
!
"x"
.
Goal
∀
σ
E
,
ownP
(
Σ
:=
Σ
)
σ
⊑
wp
E
e
(
λ
v
,
v
=
(
'
2
)
%
L
).
Proof
.
move
=>
σ
E
.
rewrite
/
e
.
...
...
@@ -86,10 +86,6 @@ Module LiftingTests.
by
rewrite
-!
later_intro
-
wp_value
'
// and_elim_r.
Qed
.
(
*
FIXME
:
For
now
apparent
reason
,
I
cannot
prove
this
inline
.
*
)
Lemma
Pred_sub_helper
n
:
n
-
1
=
-
(
-
n
+
2
-
1
).
Proof
.
intros
.
omega
.
Qed
.
Lemma
Pred_spec
n
E
Q
:
▷
Q
(
LitV
(
n
-
1
))
⊑
wp
E
(
Pred
'
n
)
%
L
Q
.
Proof
.
rewrite
-
wp_lam
//=.
...
...
@@ -97,8 +93,7 @@ Module LiftingTests.
apply
later_mono
,
wp_le
=>
Hn
.
-
rewrite
-
wp_if_true
.
rewrite
-
(
wp_bindi
(
UnOpCtx
_
)).
(
*
FIXME
use
list
notation
.
*
)
rewrite
-
(
wp_bind
((
AppLCtx
_
)
::
(
AppRCtx
FindPred
)
::
nil
)).
rewrite
-
(
wp_bind
[
AppLCtx
_
;
AppRCtx
FindPred
]).
rewrite
-
(
wp_bindi
(
BinOpLCtx
_
_
)).
rewrite
-
wp_un_op
//=.
rewrite
-
wp_bin_op
//= -!later_intro.
...
...
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