Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
921740fc
Commit
921740fc
authored
May 30, 2017
by
Sylvain Dailler
Browse files
Added clear_but tactic.
parent
4c1e7f8b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/transform/case.ml
View file @
921740fc
...
...
@@ -603,6 +603,7 @@ let unfold unf h =
end
|
_
->
[
d
])
None
(* from task [delta, name1, name2, ... namen |- G] build the task [name1, name2, ... namen |- G] *)
let
clear_but
(
l
:
prsymbol
list
)
=
Trans
.
decl
(
fun
d
->
...
...
@@ -656,10 +657,9 @@ let () = wrap_and_register ~desc:"remove a literal using an equality on it"
"subst"
(
Tlsymbol
Ttrans
)
subst
(* TODO give a list of hypothesis *)
let
()
=
wrap_and_register
~
desc
:
"clear all axioms but the hypothesis argument"
"clear_but"
(
Tpr
symbol
Ttrans
)
(
fun
x
->
clear_but
[
x
])
(
Tpr
list
Ttrans
)
clear_but
let
()
=
wrap_and_register
~
desc
:
"left transform a goal of the form A
\\
/ B into A"
...
...
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