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
Tej Chajed
iris
Commits
4e2b0860
Commit
4e2b0860
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Some tweaks.
parent
5f56adf8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
heap_lang/tactics.v
+2
-2
2 additions, 2 deletions
heap_lang/tactics.v
tests/list_reverse.v
+1
-1
1 addition, 1 deletion
tests/list_reverse.v
with
3 additions
and
3 deletions
heap_lang/tactics.v
+
2
−
2
View file @
4e2b0860
...
@@ -206,7 +206,7 @@ Ltac solve_to_val :=
...
@@ -206,7 +206,7 @@ Ltac solve_to_val :=
match
goal
with
match
goal
with
|
|
-
to_val
?e
=
Some
?v
=>
|
|
-
to_val
?e
=
Some
?v
=>
let
e'
:=
W
.
of_expr
e
in
change
(
to_val
(
W
.
to_expr
e'
)
=
Some
v
);
let
e'
:=
W
.
of_expr
e
in
change
(
to_val
(
W
.
to_expr
e'
)
=
Some
v
);
apply
W
.
to_val_Some
;
simpl
;
reflexivity
apply
W
.
to_val_Some
;
simpl
;
unfold
W
.
to_expr
;
reflexivity
|
|
-
is_Some
(
to_val
?e
)
=>
|
|
-
is_Some
(
to_val
?e
)
=>
let
e'
:=
W
.
of_expr
e
in
change
(
is_Some
(
to_val
(
W
.
to_expr
e'
)));
let
e'
:=
W
.
of_expr
e
in
change
(
is_Some
(
to_val
(
W
.
to_expr
e'
)));
apply
W
.
to_val_is_Some
,
(
bool_decide_unpack
_);
vm_compute
;
exact
I
apply
W
.
to_val_is_Some
,
(
bool_decide_unpack
_);
vm_compute
;
exact
I
...
@@ -227,7 +227,7 @@ Hint Extern 0 (language.atomic _) => solve_atomic : fsaV.
...
@@ -227,7 +227,7 @@ Hint Extern 0 (language.atomic _) => solve_atomic : fsaV.
(** Substitution *)
(** Substitution *)
Ltac
simpl_subst
:=
Ltac
simpl_subst
:=
c
simpl
;
simpl
;
repeat
match
goal
with
repeat
match
goal
with
|
|
-
context
[
subst
?x
?er
?e
]
=>
|
|
-
context
[
subst
?x
?er
?e
]
=>
let
er'
:=
W
.
of_expr
er
in
let
e'
:=
W
.
of_expr
e
in
let
er'
:=
W
.
of_expr
er
in
let
e'
:=
W
.
of_expr
e
in
...
...
This diff is collapsed.
Click to expand it.
tests/list_reverse.v
+
1
−
1
View file @
4e2b0860
...
@@ -32,7 +32,7 @@ Lemma rev_acc_wp hd acc xs ys (Φ : val → iProp) :
...
@@ -32,7 +32,7 @@ Lemma rev_acc_wp hd acc xs ys (Φ : val → iProp) :
⊢
WP
rev
hd
acc
{{
Φ
}}
.
⊢
WP
rev
hd
acc
{{
Φ
}}
.
Proof
.
Proof
.
iIntros
"(#Hh & Hxs & Hys & HΦ)"
.
iIntros
"(#Hh & Hxs & Hys & HΦ)"
.
iLöb
(
hd
acc
xs
ys
Φ
)
as
"IH"
.
wp_rec
;
wp_let
.
iLöb
(
hd
acc
xs
ys
Φ
)
as
"IH"
.
wp_rec
.
wp_let
.
destruct
xs
as
[|
x
xs
];
iSimplifyEq
.
destruct
xs
as
[|
x
xs
];
iSimplifyEq
.
-
wp_match
.
by
iApply
"HΦ"
.
-
wp_match
.
by
iApply
"HΦ"
.
-
iDestruct
"Hxs"
as
(
l
hd'
)
"(% & Hx & Hxs)"
;
iSimplifyEq
.
-
iDestruct
"Hxs"
as
(
l
hd'
)
"(% & Hx & Hxs)"
;
iSimplifyEq
.
...
...
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