Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abel Nieto
Iris
Commits
1b925f41
Commit
1b925f41
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation of `iIntoEmpValid`.
parent
0412acb4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/proofmode/ltac_tactics.v
+11
-9
11 additions, 9 deletions
theories/proofmode/ltac_tactics.v
with
11 additions
and
9 deletions
theories/proofmode/ltac_tactics.v
+
11
−
9
View file @
1b925f41
...
...
@@ -720,23 +720,25 @@ Notation "( H $! x1 .. xn 'with' pat )" :=
(
ITrm
H
(
hcons
x1
.
.
(
hcons
xn
hnil
)
..)
pat
)
(
at
level
0
,
x1
,
xn
at
level
9
)
.
Notation
"( H 'with' pat )"
:=
(
ITrm
H
hnil
pat
)
(
at
level
0
)
.
(* The tactic [iIntoEmpValid] tactic solves a goal [bi_emp_valid Q]. The
(* The tactic [iIntoEmpValid] tactic solves a goal [bi_emp_valid
?
Q]. The
argument [t] must be a Coq term whose type is of the following shape:
[∀ (x_1 : A_1) .. (x_n : A_n), φ]
and so that
we have an instance
`
AsValid φ
Q`
.
for which
we have an instance
[
As
Emp
Valid φ
?Q]
.
Examples of such [φ]s are
- [bi_emp_valid P], in which case [Q]
should be
[P]
- [P1 ⊢ P2], in which case [Q]
should be
[P1 -∗ P2]
- [P1 ⊣⊢ P2], in which case [Q]
should be
[P1 ↔ P2]
- [bi_emp_valid P], in which case [Q]
is unified with
[P]
.
- [P1 ⊢ P2], in which case [Q]
is unified with
[P1 -∗ P2]
.
- [P1 ⊣⊢ P2], in which case [Q]
is unified with
[P1 ↔ P2]
.
The tactic instantiates each dependent argument [x_i] with an evar and generates
a goal [R] for each non-dependent argument [x_i : R]. For example, if the
original goal was [Q] and [t] has type [∀ x, P x → Q], then it generates an evar
[?x] for [x] and a subgoal [P ?x]. *)
The tactic instantiates each dependent argument [x_i : A_i] with an evar and
generates a goal [A_i] for each non-dependent argument [x_i : A_i].
For example, if the initial goal is [bi_emp_valid ?Q] and [t] has type
[∀ x, P x → R x], then it generates an evar [?x] for [x], a subgoal [P ?x],
and unifies [?Q] with [R x]. *)
Local
Ltac
iIntoEmpValid
t
:=
let
go_specialize
t
tT
:=
lazymatch
tT
with
(* We do not use hnf of tT, because, if
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment