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
George Pirlea
Iris
Commits
dfefb918
Commit
dfefb918
authored
May 22, 2019
by
Joseph Tassarotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove context duplication from tac_exist_destruct.
parent
5c38c76b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
theories/proofmode/coq_tactics.v
theories/proofmode/coq_tactics.v
+7
-4
theories/proofmode/ltac_tactics.v
theories/proofmode/ltac_tactics.v
+8
-7
No files found.
theories/proofmode/coq_tactics.v
View file @
dfefb918
...
...
@@ -631,14 +631,17 @@ Qed.
Lemma
tac_exist_destruct
{
A
}
Δ
i
p
j
P
(
Φ
:
A
→
PROP
)
Q
:
envs_lookup
i
Δ
=
Some
(
p
,
P
)
→
IntoExist
P
Φ
→
(
∀
a
,
∃
Δ
'
,
envs_simple_replace
i
p
(
Esnoc
Enil
j
(
Φ
a
))
Δ
=
Some
Δ
'
∧
envs_entails
Δ
'
Q
)
→
(
∀
a
,
match
envs_simple_replace
i
p
(
Esnoc
Enil
j
(
Φ
a
))
Δ
with
|
Some
Δ
'
=>
envs_entails
Δ
'
Q
|
None
=>
False
end
)
→
envs_entails
Δ
Q
.
Proof
.
rewrite
envs_entails_eq
=>
??
H
Φ
.
rewrite
envs_lookup_sound
//.
rewrite
(
into_exist
P
)
intuitionistically_if_exist
sep_exist_r
.
apply
exist_elim
=>
a
;
destruct
(
H
Φ
a
)
as
(
Δ
'
&?&?).
apply
exist_elim
=>
a
;
specialize
(
H
Φ
a
)
as
Hmatch
.
destruct
(
envs_simple_replace
_
_
_
_
)
as
[
Δ
'
|]
eqn
:
Hrep
;
last
done
.
rewrite
envs_simple_replace_singleton_sound'
//
;
simpl
.
by
rewrite
wand_elim_r
.
Qed
.
...
...
theories/proofmode/ltac_tactics.v
View file @
dfefb918
...
...
@@ -1233,12 +1233,13 @@ Local Tactic Notation "iExistDestruct" constr(H)
let
P
:
=
match
goal
with
|-
IntoExist
?P
_
=>
P
end
in
fail
"iExistDestruct: cannot destruct"
P
|]
;
let
y
:
=
fresh
in
intros
y
;
eexists
;
split
;
[
pm_reflexivity
||
intros
y
;
pm_reduce
;
match
goal
with
|
|-
False
=>
let
Hx
:
=
pretty_ident
Hx
in
fail
"iExistDestruct:"
Hx
"not fresh"
|
revert
y
;
intros
x
(* subgoal *)
]
.
|
_
=>
revert
y
;
intros
x
(* subgoal *)
end
.
(** * Modality introduction *)
Tactic
Notation
"iModIntro"
uconstr
(
sel
)
:
=
...
...
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