Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lennard Gäher
Iris
Commits
a15dc76f
Commit
a15dc76f
authored
Jan 04, 2021
by
Robbert Krebbers
Browse files
Put heap_lang tactics in better order.
parent
335c29dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
iris_heap_lang/proofmode.v
View file @
a15dc76f
...
...
@@ -26,6 +26,7 @@ Tactic Notation "wp_expr_eval" tactic3(t) :=
[
let
x
:
=
fresh
in
intros
x
;
t
;
unfold
x
;
notypeclasses
refine
eq_refl
|]
|
_
=>
fail
"wp_expr_eval: not a 'wp'"
end
.
Ltac
wp_expr_simpl
:
=
wp_expr_eval
simpl
.
Lemma
tac_wp_pure
`
{!
heapG
Σ
}
Δ
Δ
'
s
E
K
e1
e2
φ
n
Φ
:
PureExec
φ
n
e1
e2
→
...
...
@@ -65,8 +66,6 @@ Lemma tac_twp_value `{!heapG Σ} Δ s E (Φ : val → iPropI Σ) v :
envs_entails
Δ
(|={
E
}=>
Φ
v
)
→
envs_entails
Δ
(
WP
(
Val
v
)
@
s
;
E
[{
Φ
}]).
Proof
.
rewrite
envs_entails_eq
=>
->.
by
rewrite
twp_value_fupd
.
Qed
.
Ltac
wp_expr_simpl
:
=
wp_expr_eval
simpl
.
(** Simplify the goal if it is [WP] of a value.
If the postcondition already allows a fupd, do not add a second one.
But otherwise, *do* add a fupd. This ensures that all the lemmas applied
...
...
Write
Preview
Supports
Markdown
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