Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AVA
FloVer
Commits
42e791ee
Commit
42e791ee
authored
Jan 15, 2019
by
Heiko Becker
Browse files
Add debugging tactics from separate branch
parent
527d291e
Changes
1
Show whitespace changes
Inline
Side-by-side
coq/Infra/Ltacs.v
View file @
42e791ee
...
...
@@ -239,3 +239,13 @@ Ltac destruct_ex H pat :=
end
.
Tactic
Notation
"destruct_smart"
simple_intropattern
(
pat
)
hyp
(
H
)
:=
destruct_ex
H
pat
.
(
*
Debugging
tactics
,
if
scripts
fail
*
)
Ltac
debug_term
t
:=
let
name
:=
fresh
"debug"
in
let
res
:=
(
eval
compute
in
t
)
in
assert
(
t
=
res
)
as
name
by
(
vm_compute
;
auto
);
rewrite
name
;
clear
name
.
Ltac
step
f
:=
cbn
iota
beta
delta
[
f
].
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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