Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pierre-Marie Pédrot
Iris
Commits
307d0084
Commit
307d0084
authored
Feb 20, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have the `[$]` pattern succeed if the premise is `True` or `emp`.
In the same way that `iFrame` would succeed on said goals.
parent
ad005c0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
theories/proofmode/coq_tactics.v
theories/proofmode/coq_tactics.v
+4
-0
theories/proofmode/tactics.v
theories/proofmode/tactics.v
+5
-2
No files found.
theories/proofmode/coq_tactics.v
View file @
307d0084
...
...
@@ -817,6 +817,10 @@ Proof.
apply
wand_intro_l
.
by
rewrite
assoc
!
wand_elim_r
.
Qed
.
Lemma
tac_unlock_emp
Δ
Q
:
envs_entails
Δ
Q
→
envs_entails
Δ
(
emp
∗
locked
Q
).
Proof
.
rewrite
envs_entails_eq
=>
->.
by
rewrite
-
lock
left_id
.
Qed
.
Lemma
tac_unlock_True
Δ
Q
:
envs_entails
Δ
Q
→
envs_entails
Δ
(
True
∗
locked
Q
).
Proof
.
rewrite
envs_entails_eq
=>
->.
by
rewrite
-
lock
-
True_sep_2
.
Qed
.
Lemma
tac_unlock
Δ
Q
:
envs_entails
Δ
Q
→
envs_entails
Δ
(
locked
Q
).
Proof
.
by
unlock
.
Qed
.
...
...
theories/proofmode/tactics.v
View file @
307d0084
...
...
@@ -553,8 +553,11 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
|
GSpatial
=>
apply
add_modal_id
|
GModal
=>
apply
_
||
fail
"iSpecialize: goal not a modality"
end
|
iFrame
"∗ #"
;
apply
tac_unlock
||
fail
"iSpecialize: premise cannot be solved by framing"
|
first
[
apply
tac_unlock_emp
|
apply
tac_unlock_True
|
iFrame
"∗ #"
;
apply
tac_unlock
|
fail
"iSpecialize: premise cannot be solved by framing"
]
|
reflexivity
]
;
iIntro
H1
;
go
H1
pats
end
in
let
pats
:
=
spec_pat
.
parse
pat
in
go
H
pats
.
...
...
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