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
Tej Chajed
iris
Commits
6111fa8b
Commit
6111fa8b
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
simplify_eq now handles existT if the indexing type is decidable.
parent
a0855325
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
-6
8 additions, 6 deletions
prelude/tactics.v
with
8 additions
and
6 deletions
prelude/tactics.v
+
8
−
6
View file @
6111fa8b
...
@@ -205,18 +205,20 @@ Tactic Notation "simplify_eq" := repeat
...
@@ -205,18 +205,20 @@ Tactic Notation "simplify_eq" := repeat
|
H
:
?f
_
=
?f
_
|
-
_
=>
apply
(
inj
f
)
in
H
|
H
:
?f
_
=
?f
_
|
-
_
=>
apply
(
inj
f
)
in
H
|
H
:
?f
_
_
=
?f
_
_
|
-
_
=>
apply
(
inj2
f
)
in
H
;
destruct
H
|
H
:
?f
_
_
=
?f
_
_
|
-
_
=>
apply
(
inj2
f
)
in
H
;
destruct
H
(* before [injection] to circumvent bug #2939 in some situations *)
(* before [injection] to circumvent bug #2939 in some situations *)
|
H
:
?f
_
=
?f
_
|
-
_
=>
injection
H
as
H
|
H
:
?f
_
=
?f
_
|
-
_
=>
progress
injection
H
as
H
(* first hyp will be named [H], subsequent hyps will be given fresh names *)
(* first hyp will be named [H], subsequent hyps will be given fresh names *)
|
H
:
?f
_
_
=
?f
_
_
|
-
_
=>
injection
H
as
H
|
H
:
?f
_
_
=
?f
_
_
|
-
_
=>
progress
injection
H
as
H
|
H
:
?f
_
_
_
=
?f
_
_
_
|
-
_
=>
injection
H
as
H
|
H
:
?f
_
_
_
=
?f
_
_
_
|
-
_
=>
progress
injection
H
as
H
|
H
:
?f
_
_
_
_
=
?f
_
_
_
_
|
-
_
=>
injection
H
as
H
|
H
:
?f
_
_
_
_
=
?f
_
_
_
_
|
-
_
=>
progress
injection
H
as
H
|
H
:
?f
_
_
_
_
_
=
?f
_
_
_
_
_
|
-
_
=>
injection
H
as
H
|
H
:
?f
_
_
_
_
_
=
?f
_
_
_
_
_
|
-
_
=>
progress
injection
H
as
H
|
H
:
?f
_
_
_
_
_
_
=
?f
_
_
_
_
_
_
|
-
_
=>
injection
H
as
H
|
H
:
?f
_
_
_
_
_
_
=
?f
_
_
_
_
_
_
|
-
_
=>
progress
injection
H
as
H
|
H
:
?x
=
?x
|
-
_
=>
clear
H
|
H
:
?x
=
?x
|
-
_
=>
clear
H
(* unclear how to generalize the below *)
(* unclear how to generalize the below *)
|
H1
:
?o
=
Some
?x
,
H2
:
?o
=
Some
?y
|
-
_
=>
|
H1
:
?o
=
Some
?x
,
H2
:
?o
=
Some
?y
|
-
_
=>
assert
(
y
=
x
)
by
congruence
;
clear
H2
assert
(
y
=
x
)
by
congruence
;
clear
H2
|
H1
:
?o
=
Some
?x
,
H2
:
?o
=
None
|
-
_
=>
congruence
|
H1
:
?o
=
Some
?x
,
H2
:
?o
=
None
|
-
_
=>
congruence
|
H
:
@
existT
?A
_
_
_
=
existT
_
_
|
-
_
=>
apply
(
Eqdep_dec
.
inj_pair2_eq_dec
_
(
decide_rel
(
@
eq
A
)))
in
H
end
.
end
.
Tactic
Notation
"simplify_eq"
"/="
:=
Tactic
Notation
"simplify_eq"
"/="
:=
repeat
(
progress
csimpl
in
*
||
simplify_eq
)
.
repeat
(
progress
csimpl
in
*
||
simplify_eq
)
.
...
...
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