Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
4c1e7f8b
Commit
4c1e7f8b
authored
8 years ago
by
Sylvain Dailler
Browse files
Options
Downloads
Patches
Plain Diff
Removed transformation removed. Replace it with remove_list.
parent
0015ffed
No related branches found
No related tags found
1 merge request
!2
Isabelle configure realization1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/transform/case.ml
+2
-21
2 additions, 21 deletions
src/transform/case.ml
with
2 additions
and
21 deletions
src/transform/case.ml
+
2
−
21
View file @
4c1e7f8b
...
...
@@ -100,20 +100,6 @@ let exists_aux g x =
let
exists
x
=
Trans
.
goal
(
fun
_
g
->
exists_aux
g
x
)
(* Return a new task with hypothesis name removed *)
let
remove_task_decl
(
name
:
Ident
.
ident
)
:
task
trans
=
Trans
.
decl
(
fun
d
->
match
d
.
d_node
with
|
Dprop
(
Paxiom
,
pr
,
_
)
when
(
Ident
.
id_equal
pr
.
pr_name
name
)
->
[]
|
_
->
[
d
])
None
(* from task [delta, name:A |- G] build the task [delta |- G] *)
let
remove
name
=
remove_task_decl
name
.
pr_name
(* from task [delta, name1, name2, ... namen |- G] build the task [delta |- G] *)
let
remove_list
name_list
=
Trans
.
decl
...
...
@@ -716,13 +702,8 @@ let () = wrap_and_register
(
Tterm
Ttrans
)
exists
let
()
=
wrap_and_register
~
desc
:
"remove <prop> removes hypothesis named prop"
"remove"
(
Tprsymbol
Ttrans
)
remove
let
()
=
wrap_and_register
~
desc
:
"remove_list <prop list>: removes a list of hypothesis when given their names. Example syntax: remove_list a,b,c "
"remove_list"
~
desc
:
"remove <prop list>: removes a list of hypothesis given by their names separated with ','. Example: remove_list a,b,c "
"remove"
(
Tprlist
Ttrans
)
remove_list
let
()
=
wrap_and_register
...
...
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