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
Package Registry
Model registry
Operate
Terraform modules
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
Thibaut Pérami
stdpp
Commits
875dacf5
Commit
875dacf5
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
f_equiv: do more syntactic matching before handing off to unification
parent
7d5f3593
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
theories/tactics.v
+25
-25
25 additions, 25 deletions
theories/tactics.v
with
25 additions
and
25 deletions
theories/tactics.v
+
25
−
25
View file @
875dacf5
...
@@ -375,36 +375,36 @@ Ltac f_equiv :=
...
@@ -375,36 +375,36 @@ Ltac f_equiv :=
|
H
:
?R
?x
?y
|
-
?R2
(
match
?x
with
_
=>
_
end
)
(
match
?y
with
_
=>
_
end
)
=>
|
H
:
?R
?x
?y
|
-
?R2
(
match
?x
with
_
=>
_
end
)
(
match
?y
with
_
=>
_
end
)
=>
destruct
H
destruct
H
(* First assume that the arguments need the same relation as the result *)
(* First assume that the arguments need the same relation as the result *)
|
|
-
?R
(
?f
_)
_
=>
simple
apply
(_
:
Proper
(
R
==>
R
)
f
)
|
|
-
?R
(
?f
_)
(
?f
_)
=>
simple
apply
(_
:
Proper
(
R
==>
R
)
f
)
|
|
-
?R
(
?f
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
==>
R
==>
R
)
f
)
|
|
-
?R
(
?f
_
_)
(
?f
_
_)
=>
simple
apply
(_
:
Proper
(
R
==>
R
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
==>
R
==>
R
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_)
(
?f
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
==>
R
==>
R
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
==>
R
==>
R
==>
R
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_
_)
(
?f
_
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
==>
R
==>
R
==>
R
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
==>
R
==>
R
==>
R
==>
R
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_
_
_)
(
?f
_
_
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
==>
R
==>
R
==>
R
==>
R
==>
R
)
f
)
(* For the case in which R is polymorphic, or an operational type class,
(* For the case in which R is polymorphic, or an operational type class,
like equiv. *)
like equiv. *)
|
|
-
(
?R
_)
(
?f
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_)
(
?f
_)
=>
simple
apply
(_
:
Proper
(
R
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_)
(
?f
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_)
(
?f
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
==>
R
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_
_)
(
?f
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
==>
R
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_
_)
(
?f
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_
_)
(
?f
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
==>
R
_
==>
R
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_
_
_)
(
?f
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
==>
R
_
==>
R
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
R
_
_
==>
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_
_
_)
(
?f
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
R
_
_
==>
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
R
_
_
_
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_
_
_)
(
?f
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
R
_
_
_
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
==>
R
_
==>
R
_
==>
R
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_
_
_
_)
(
?f
_
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
==>
R
_
==>
R
_
==>
R
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
R
_
_
==>
R
_
_
==>
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_
_
_
_)
(
?f
_
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
R
_
_
==>
R
_
_
==>
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_
_
_
_)
(
?f
_
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
==>
R
_
==>
R
_
==>
R
_
==>
R
_
==>
_)
f
)
|
|
-
(
?R
_)
(
?f
_
_
_
_
_)
(
?f
_
_
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
==>
R
_
==>
R
_
==>
R
_
==>
R
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
R
_
_
==>
R
_
_
==>
R
_
_
==>
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_)
(
?f
_
_
_
_
_)
(
?f
_
_
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
==>
R
_
_
==>
R
_
_
==>
R
_
_
==>
R
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
_)
f
)
|
|
-
(
?R
_
_
_)
(
?f
_
_
_
_
_)
(
?f
_
_
_
_
_)
=>
simple
apply
(_
:
Proper
(
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
R
_
_
_
==>
_)
f
)
(* Next, try to infer the relation. Unfortunately, very often, it will turn
(* Next, try to infer the relation. Unfortunately, very often, it will turn
the goal into a Leibniz equality so we get stuck. *)
the goal into a Leibniz equality so we get stuck. *)
(* TODO: Can we exclude that instance? *)
(* TODO: Can we exclude that instance? *)
|
|
-
?R
(
?f
_)
_
=>
simple
apply
(_
:
Proper
(_
==>
R
)
f
)
|
|
-
?R
(
?f
_)
(
?f
_)
=>
simple
apply
(_
:
Proper
(_
==>
R
)
f
)
|
|
-
?R
(
?f
_
_)
_
=>
simple
apply
(_
:
Proper
(_
==>
_
==>
R
)
f
)
|
|
-
?R
(
?f
_
_)
(
?f
_
_)
=>
simple
apply
(_
:
Proper
(_
==>
_
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_)
_
=>
simple
apply
(_
:
Proper
(_
==>
_
==>
_
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_)
(
?f
_
_
_)
=>
simple
apply
(_
:
Proper
(_
==>
_
==>
_
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(_
==>
_
==>
_
==>
_
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_
_)
(
?f
_
_
_
_)
=>
simple
apply
(_
:
Proper
(_
==>
_
==>
_
==>
_
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_
_
_)
_
=>
simple
apply
(_
:
Proper
(_
==>
_
==>
_
==>
_
==>
_
==>
R
)
f
)
|
|
-
?R
(
?f
_
_
_
_
_)
(
?f
_
_
_
_
_)
=>
simple
apply
(_
:
Proper
(_
==>
_
==>
_
==>
_
==>
_
==>
R
)
f
)
(* In case the function symbol differs, but the arguments are the same,
(* In case the function symbol differs, but the arguments are the same,
maybe we have a relation about those functions in our context. *)
maybe we have a relation about those functions in our context. *)
(* TODO: If only some of the arguments are the same, we could also
(* TODO: If only some of the arguments are the same, we could also
...
...
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