Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rice Wine
Iris
Commits
2a8c9e10
Commit
2a8c9e10
authored
May 06, 2016
by
Robbert Krebbers
Browse files
Rearrange arguments of exist_destruct_later to avoid type class loops.
parent
50638ab2
Changes
1
Hide whitespace changes
Inline
Side-by-side
proofmode/coq_tactics.v
View file @
2a8c9e10
...
...
@@ -872,8 +872,8 @@ Global Instance exist_destruct_exist {A} (Φ : A → uPred M) :
ExistDestruct
(
∃
a
,
Φ
a
)
Φ
.
Proof
.
done
.
Qed
.
Global
Instance
exist_destruct_later
{
A
}
P
(
Φ
:
A
→
uPred
M
)
:
Inhabited
A
→
ExistDestruct
P
Φ
→
ExistDestruct
(
▷
P
)
(
λ
a
,
▷
(
Φ
a
))%
I
.
Proof
.
rewrite
/
ExistDestruct
=>
?
->
.
by
rewrite
later_exist
.
Qed
.
ExistDestruct
P
Φ
→
Inhabited
A
→
ExistDestruct
(
▷
P
)
(
λ
a
,
▷
(
Φ
a
))%
I
.
Proof
.
rewrite
/
ExistDestruct
=>
HP
?
.
by
rewrite
HP
later_exist
.
Qed
.
Lemma
tac_exist_destruct
{
A
}
Δ
i
p
j
P
(
Φ
:
A
→
uPred
M
)
Q
:
envs_lookup
i
Δ
=
Some
(
p
,
P
)%
I
→
ExistDestruct
P
Φ
→
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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