Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Monitor
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
Iris
stdpp
Commits
9236a721
Commit
9236a721
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Move.
parent
ba3c17be
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!428
Tweak `f_equiv` to use `reflexivity` in a way similar to `f_equal`.
Pipeline
#74823
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stdpp/tactics.v
+7
-7
7 additions, 7 deletions
stdpp/tactics.v
with
7 additions
and
7 deletions
stdpp/tactics.v
+
7
−
7
View file @
9236a721
...
@@ -31,6 +31,13 @@ is rather inefficient when having big hint databases, or expensive [Hint Extern]
...
@@ -31,6 +31,13 @@ is rather inefficient when having big hint databases, or expensive [Hint Extern]
declarations as the ones above. *)
declarations as the ones above. *)
Tactic
Notation
"intuition"
:=
intuition
auto
.
Tactic
Notation
"intuition"
:=
intuition
auto
.
(** The [fast_reflexivity] tactic only works on syntactically equal terms. It
can be used to avoid expensive failing unification. *)
Ltac
fast_reflexivity
:=
match
goal
with
|
|
-
_
?x
?x
=>
solve
[
simple
apply
reflexivity
]
end
.
(** [done] can get slow as it calls "trivial". [fast_done] can solve way less
(** [done] can get slow as it calls "trivial". [fast_done] can solve way less
goals, but it will also always finish quickly. We do 'reflexivity' last because
goals, but it will also always finish quickly. We do 'reflexivity' last because
for goals of the form ?x = y, if we have x = y in the context, we will typically
for goals of the form ?x = y, if we have x = y in the context, we will typically
...
@@ -360,13 +367,6 @@ Ltac setoid_subst :=
...
@@ -360,13 +367,6 @@ Ltac setoid_subst :=
|
H
:
@
equiv
?A
?e
_
?x
|
-
_
=>
symmetry
in
H
;
setoid_subst_aux
(
@
equiv
A
e
)
x
|
H
:
@
equiv
?A
?e
_
?x
|
-
_
=>
symmetry
in
H
;
setoid_subst_aux
(
@
equiv
A
e
)
x
end
.
end
.
(* The [fast_reflexivity] tactic only works on syntactically equal terms. It can
be used to avoid expensive failing unification. *)
Ltac
fast_reflexivity
:=
match
goal
with
|
|
-
_
?x
?x
=>
solve
[
simple
apply
reflexivity
]
end
.
(** f_equiv works on goals of the form [f _ = f _], for any relation and any
(** f_equiv works on goals of the form [f _ = f _], for any relation and any
number of arguments. It looks for an appropriate [Proper] instance, and applies
number of arguments. It looks for an appropriate [Proper] instance, and applies
it. The tactic is somewhat limited, since it cannot be used to backtrack on
it. The tactic is somewhat limited, since it cannot be used to backtrack on
...
...
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