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
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
Hide whitespace changes
Inline
Sidebyside
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
...
...
@@ 1232,13 +1232,14 @@ Local Tactic Notation "iExistDestruct" constr(H)

iSolveTC

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

let
Hx
:
=
pretty_ident
Hx
in
fail
"iExistDestruct:"
Hx
"not fresh"

revert
y
;
intros
x
(* subgoal *)
].
let
y
:
=
fresh
in
intros
y
;
pm_reduce
;
match
goal
with


False
=>
let
Hx
:
=
pretty_ident
Hx
in
fail
"iExistDestruct:"
Hx
"not fresh"

_
=>
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