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
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
Dan Frumin
iris-coq
Commits
d40bbd57
Commit
d40bbd57
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Document csimpl.
parent
0fd7e635
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prelude/tactics.v
+8
-2
8 additions, 2 deletions
prelude/tactics.v
with
8 additions
and
2 deletions
prelude/tactics.v
+
8
−
2
View file @
d40bbd57
...
...
@@ -117,7 +117,13 @@ does the converse. *)
Ltac
var_eq
x1
x2
:=
match
x1
with
x2
=>
idtac
|
_
=>
fail
1
end
.
Ltac
var_neq
x1
x2
:=
match
x1
with
x2
=>
fail
1
|
_
=>
idtac
end
.
(
**
Hacks
to
let
simpl
fold
type
class
projections
*
)
(
**
Operational
type
class
projections
in
recursive
calls
are
not
folded
back
appropriately
by
[
simpl
].
The
tactic
[
csimpl
]
uses
the
[
fold_classes
]
tactics
to
refold
recursive
calls
of
[
fmap
],
[
mbind
],
[
omap
]
and
[
alter
].
A
self
-
contained
example
explaining
the
problem
can
be
found
in
the
following
Coq
-
club
message
:
https:
//sympa.inria.fr/sympa/arc/coq-club/2012-10/msg00147.html *)
Ltac
fold_classes
:=
repeat
match
goal
with
|
|-
appcontext
[
?
F
]
=>
...
...
@@ -160,7 +166,7 @@ Tactic Notation "csimpl" := try (progress simpl; fold_classes).
Tactic
Notation
"csimpl"
"in"
"*"
:=
repeat_on_hyps
(
fun
H
=>
csimpl
in
H
);
csimpl
.
(
*
The
tactic
[
simplify_eq
]
repeatedly
substitutes
,
discriminates
,
(
*
*
The
tactic
[
simplify_eq
]
repeatedly
substitutes
,
discriminates
,
and
injects
equalities
,
and
tries
to
contradict
impossible
inequalities
.
*
)
Tactic
Notation
"simplify_eq"
:=
repeat
match
goal
with
...
...
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