Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
George Pirlea
Iris
Commits
124eea15
Commit
124eea15
authored
Mar 16, 2017
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let iAlways clear spatial context.
This fixes issue
#81
.
parent
e3fb7049
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
ProofMode.md
ProofMode.md
+1
-1
theories/proofmode/coq_tactics.v
theories/proofmode/coq_tactics.v
+6
-2
theories/proofmode/tactics.v
theories/proofmode/tactics.v
+2
-3
No files found.
ProofMode.md
View file @
124eea15
...
...
@@ -200,7 +200,7 @@ appear at the top level:
-
`{$H1 ... $Hn}`
: frame
`H1 ... Hn`
(this pattern can be mixed with the
previous pattern, e.g.,
`{$H1 H2 $H3}`
).
-
`!%`
: introduce a pure goal (and leave the proof mode).
-
`!#`
: introduce an always modality
(given that
the spatial context
is empty)
.
-
`!#`
: introduce an always modality
and clear
the spatial context.
-
`!>`
: introduce a modality.
-
`/=`
: perform
`simpl`
.
-
`//`
: perform
`try done`
on all goals.
...
...
theories/proofmode/coq_tactics.v
View file @
124eea15
...
...
@@ -474,8 +474,12 @@ Proof.
Qed
.
(** * Always *)
Lemma
tac_always_intro
Δ
Q
:
env_spatial_is_nil
Δ
=
true
→
(
Δ
⊢
Q
)
→
Δ
⊢
□
Q
.
Proof
.
intros
.
by
apply
(
always_intro
_
_
).
Qed
.
Lemma
tac_always_intro
Δ
Q
:
(
envs_clear_spatial
Δ
⊢
Q
)
→
Δ
⊢
□
Q
.
Proof
.
intros
<-.
rewrite
envs_clear_spatial_sound
sep_elim_l
.
by
apply
(
always_intro
_
_
).
Qed
.
Lemma
tac_persistent
Δ
Δ
'
i
p
P
P'
Q
:
envs_lookup
i
Δ
=
Some
(
p
,
P
)
→
IntoPersistentP
P
P'
→
...
...
theories/proofmode/tactics.v
View file @
124eea15
...
...
@@ -779,8 +779,7 @@ Local Tactic Notation "iExistDestruct" constr(H)
(** * Always *)
Tactic
Notation
"iAlways"
:
=
iStartProof
;
apply
tac_always_intro
;
[
reflexivity
||
fail
"iAlways: spatial context non-empty"
|].
apply
tac_always_intro
;
env_cbv
.
(** * Later *)
Tactic
Notation
"iNext"
open_constr
(
n
)
:
=
...
...
@@ -1518,7 +1517,7 @@ Hint Extern 0 (_ ⊢ _) => progress iIntros.
Hint
Extern
1
(
of_envs
_
⊢
_
∧
_
)
=>
iSplit
.
Hint
Extern
1
(
of_envs
_
⊢
_
∗
_
)
=>
iSplit
.
Hint
Extern
1
(
of_envs
_
⊢
▷
_
)
=>
iNext
.
Hint
Extern
1
(
of_envs
_
⊢
□
_
)
=>
iClear
"*"
;
iAlways
.
Hint
Extern
1
(
of_envs
_
⊢
□
_
)
=>
iAlways
.
Hint
Extern
1
(
of_envs
_
⊢
∃
_
,
_
)
=>
iExists
_
.
Hint
Extern
1
(
of_envs
_
⊢
|==>
_
)
=>
iModIntro
.
Hint
Extern
1
(
of_envs
_
⊢
◇
_
)
=>
iModIntro
.
...
...
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