Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
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
Michael Sammler
iris-coq
Commits
27cfd068
Commit
27cfd068
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
heao_lang/tactics: update some comments
parent
2c790e9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
heap_lang/tactics.v
+9
-11
9 additions, 11 deletions
heap_lang/tactics.v
with
9 additions
and
11 deletions
heap_lang/tactics.v
+
9
−
11
View file @
27cfd068
...
@@ -2,12 +2,11 @@ From iris.heap_lang Require Export substitution.
...
@@ -2,12 +2,11 @@ From iris.heap_lang Require Export substitution.
From
iris
.
prelude
Require
Import
fin_maps
.
From
iris
.
prelude
Require
Import
fin_maps
.
Import
heap_lang
.
Import
heap_lang
.
(** The tactic [inv_step] performs inversion on hypotheses of the shape
(** The tactic [inv_step] performs inversion on hypotheses of the
[prim_step] and [head_step]. For hypotheses of the shape [prim_step] it will
shape [head_step]. The tactic will discharge head-reductions starting
decompose the evaluation context. The tactic will discharge
from values, and simplifies hypothesis related to conversions from and
head-reductions starting from values, and simplifies hypothesis related
to values, and finite map operations. This tactic is slightly ad-hoc
to conversions from and to values, and finite map operations. This tactic is
and tuned for proving our lifting lemmas. *)
slightly ad-hoc and tuned for proving our lifting lemmas. *)
Ltac
inv_step
:=
Ltac
inv_step
:=
repeat
match
goal
with
repeat
match
goal
with
|
_
=>
progress
simplify_map_eq
/=
(* simplify memory stuff *)
|
_
=>
progress
simplify_map_eq
/=
(* simplify memory stuff *)
...
@@ -64,11 +63,10 @@ Ltac reshape_expr e tac :=
...
@@ -64,11 +63,10 @@ Ltac reshape_expr e tac :=
|
CAS
?e0
?e1
?e2
=>
go
(
CasLCtx
e1
e2
::
K
)
e0
|
CAS
?e0
?e1
?e2
=>
go
(
CasLCtx
e1
e2
::
K
)
e0
end
in
go
(
@
nil
ectx_item
)
e
.
end
in
go
(
@
nil
ectx_item
)
e
.
(** The tactic [do_step tac] solves goals of the shape [reducible], [prim_step]
(** The tactic [do_step tac] solves goals of the shape
and [head_step] by performing a reduction step and uses [tac] to solve any
[head_reducible] and [head_step] by performing a reduction step and
side-conditions generated by individual steps. In case of goals of the shape
uses [tac] to solve any side-conditions generated by individual
[reducible] and [prim_step], it will try to decompose to expression on the LHS
steps. *)
into an evaluation context and head-redex. *)
Tactic
Notation
"do_step"
tactic3
(
tac
)
:=
Tactic
Notation
"do_step"
tactic3
(
tac
)
:=
try
match
goal
with
|
-
head_reducible
_
_
=>
eexists
_,
_,
_
end
;
try
match
goal
with
|
-
head_reducible
_
_
=>
eexists
_,
_,
_
end
;
simpl
;
simpl
;
...
...
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