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
Rice Wine
Iris
Commits
b863b045
Commit
b863b045
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
tactics: rename auto_proper => auto_equiv
parent
4653cb6d
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
+5
-5
5 additions, 5 deletions
prelude/tactics.v
with
5 additions
and
5 deletions
prelude/tactics.v
+
5
−
5
View file @
b863b045
...
@@ -292,9 +292,9 @@ Ltac f_equiv :=
...
@@ -292,9 +292,9 @@ Ltac f_equiv :=
end
.
end
.
(** auto_proper solves goals of the form "f _ = f _", for any relation and any
(** auto_proper solves goals of the form "f _ = f _", for any relation and any
number of arguments, by repeatedly apply f_equiv and handling trivial cases.
number of arguments, by repeatedly apply
ing
f_equiv and handling trivial cases.
If it cannot solve an equality, it will leave that to the user. *)
If it cannot solve an equality, it will leave that to the user. *)
Ltac
auto_
proper
:=
Ltac
auto_
equiv
:=
(* Deal with "pointwise_relation" *)
(* Deal with "pointwise_relation" *)
repeat
lazymatch
goal
with
repeat
lazymatch
goal
with
|
|
-
pointwise_relation
_
_
_
_
=>
intros
?
|
|
-
pointwise_relation
_
_
_
_
=>
intros
?
...
@@ -302,10 +302,10 @@ Ltac auto_proper :=
...
@@ -302,10 +302,10 @@ Ltac auto_proper :=
(* Normalize away equalities. *)
(* Normalize away equalities. *)
simplify_eq
;
simplify_eq
;
(* repeatedly apply congruence lemmas and use the equalities in the hypotheses. *)
(* repeatedly apply congruence lemmas and use the equalities in the hypotheses. *)
try
(
f_equiv
;
fast_done
||
auto_
proper
)
.
try
(
f_equiv
;
fast_done
||
auto_
equiv
)
.
(** solve_proper solves goals of the form "Proper (R1 ==> R2)", for any
(** solve_proper solves goals of the form "Proper (R1 ==> R2)", for any
number of relations. All the actual work is done by
f
_equiv;
number of relations. All the actual work is done by
auto
_equiv;
solve_proper just introduces the assumptions and unfolds the first
solve_proper just introduces the assumptions and unfolds the first
head symbol. *)
head symbol. *)
Ltac
solve_proper
:=
Ltac
solve_proper
:=
...
@@ -328,7 +328,7 @@ Ltac solve_proper :=
...
@@ -328,7 +328,7 @@ Ltac solve_proper :=
|
|
-
?R
(
?f
_
_)
(
?f
_
_)
=>
unfold
f
|
|
-
?R
(
?f
_
_)
(
?f
_
_)
=>
unfold
f
|
|
-
?R
(
?f
_)
(
?f
_)
=>
unfold
f
|
|
-
?R
(
?f
_)
(
?f
_)
=>
unfold
f
end
;
end
;
solve
[
auto_
proper
]
.
solve
[
auto_
equiv
]
.
(** The tactic [intros_revert tac] introduces all foralls/arrows, performs tac,
(** The tactic [intros_revert tac] introduces all foralls/arrows, performs tac,
and then reverts them. *)
and then reverts them. *)
...
...
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