Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Pierre-Marie Pédrot
Iris
Commits
7cf966c4
Commit
7cf966c4
authored
Aug 25, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make iIntoEntails work when the entails is hidden under a delta.
parent
f83ae863
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
proofmode/tactics.v
proofmode/tactics.v
+4
-2
No files found.
proofmode/tactics.v
View file @
7cf966c4
...
...
@@ -221,10 +221,12 @@ The tactic instantiates each dependent argument [x_i] with an evar and generates
a goal [P] for non-dependent arguments [x_i : P]. *)
Tactic
Notation
"iIntoEntails"
open_constr
(
t
)
:
=
let
rec
go
t
:
=
lazymatch
type
of
t
with
let
tT
:
=
type
of
t
in
lazymatch
eval
hnf
in
tT
with
|
True
⊢
_
=>
apply
t
|
_
⊢
_
=>
apply
(
uPred
.
entails_wand
_
_
t
)
|
_
⊣
⊢
_
=>
apply
(
uPred
.
equiv_iff
_
_
t
)
(* need to use the unfolded version of [⊣⊢] due to the hnf *)
|
uPred_equiv'
_
_
=>
apply
(
uPred
.
equiv_iff
_
_
t
)
|
?P
→
?Q
=>
let
H
:
=
fresh
in
assert
P
as
H
;
[|
go
uconstr
:
(
t
H
)
;
clear
H
]
|
∀
_
:
?T
,
_
=>
(* Put [T] inside an [id] to avoid TC inference from being invoked. *)
...
...
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