Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tej Chajed
stdpp
Commits
a07364fc
Commit
a07364fc
authored
Dec 08, 2016
by
Robbert Krebbers
Browse files
Optimize simplify_eq.
The case tactic is faster than destruct.
parent
4c6881ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/tactics.v
View file @
a07364fc
...
...
@@ -214,8 +214,8 @@ Tactic Notation "csimpl" "in" "*" :=
and injects equalities, and tries to contradict impossible inequalities. *)
Tactic
Notation
"simplify_eq"
:
=
repeat
match
goal
with
|
H
:
_
≠
_
|-
_
=>
by
destruct
H
|
H
:
_
=
_
→
False
|-
_
=>
by
destruct
H
|
H
:
_
≠
_
|-
_
=>
by
case
H
;
clear
H
|
H
:
_
=
_
→
False
|-
_
=>
by
case
H
;
clear
H
|
H
:
?x
=
_
|-
_
=>
subst
x
|
H
:
_
=
?x
|-
_
=>
subst
x
|
H
:
_
=
_
|-
_
=>
discriminate
H
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment