]> matita.cs.unibo.it Git - helm.git/blob - components/acic_procedural/proceduralTypes.mli
matita 0.5.1 tagged
[helm.git] / components / acic_procedural / proceduralTypes.mli
1 (* Copyright (C) 2003-2005, HELM Team.
2  * 
3  * This file is part of HELM, an Hypertextual, Electronic
4  * Library of Mathematics, developed at the Computer Science
5  * Department, University of Bologna, Italy.
6  * 
7  * HELM is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  * 
12  * HELM is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with HELM; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20  * MA  02111-1307, USA.
21  * 
22  * For details, see the HELM World-Wide-Web page,
23  * http://cs.unibo.it/helm/.
24  *)
25
26 (* functions to be moved ****************************************************)
27
28 val list_rev_map2: ('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list
29
30 val list_map2_filter: ('a -> 'b -> 'c option) -> 'a list -> 'b list -> 'c list
31
32 val mk_arel: int -> string -> Cic.annterm
33
34 (****************************************************************************)
35
36 type name     = string option
37 type hyp      = string
38 type what     = Cic.annterm
39 type how      = bool
40 type using    = Cic.annterm
41 type count    = int
42 type note     = string
43 type where    = (hyp * name) option
44 type inferred = Cic.annterm
45 type pattern  = Cic.annterm
46
47 type step = Note of note 
48           | Theorem of name * what * note
49           | Qed of note
50           | Id of note
51           | Intros of count option * name list * note
52           | Cut of name * what * note
53           | LetIn of name * what * note
54           | Rewrite of how * what * where * pattern * note
55           | Elim of what * using option * pattern * note
56           | Apply of what * note
57           | Change of inferred * what * where * pattern * note 
58           | Clear of hyp list * note
59           | ClearBody of hyp * note
60           | Branch of step list list * note
61
62 val render_steps: 
63    (what, inferred, [> `Whd] as 'b, what CicNotationPt.obj, hyp) GrafiteAst.statement list -> 
64    step list -> 
65    (what, inferred, 'b, what CicNotationPt.obj, hyp) GrafiteAst.statement list
66
67 val count_steps:
68    int -> step list -> int
69
70 val count_nodes:
71    int -> step list -> int