]> matita.cs.unibo.it Git - helm.git/blob - helm/software/components/acic_procedural/proceduralTypes.mli
Preparing for 0.5.9 release.
[helm.git] / helm / software / 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 flavour  = Cic.object_flavour
37 type name     = string option
38 type hyp      = string
39 type what     = Cic.annterm
40 type how      = bool
41 type using    = Cic.annterm
42 type count    = int
43 type note     = string
44 type where    = (hyp * name) option
45 type inferred = Cic.annterm
46 type pattern  = Cic.annterm
47 type body     = Cic.annterm option
48 type types    = Cic.anninductiveType list
49 type lpsno    = int
50 type fields   = (string * bool * int) list
51
52 type step = Note of note 
53           | Record of types * lpsno * fields * note
54           | Inductive of types * lpsno * note
55           | Statement of flavour * name * what * body * note
56           | Qed of note
57           | Id of note
58           | Exact of what * note          
59           | Intros of count option * name list * note
60           | Cut of name * what * note
61           | LetIn of name * what * note
62           | LApply of name * what * note
63           | Rewrite of how * what * where * pattern * note
64           | Elim of what * using option * pattern * note
65           | Cases of what * pattern * note
66           | Apply of what * note
67           | Change of inferred * what * where * pattern * note 
68           | Clear of hyp list * note
69           | ClearBody of hyp * note
70           | Branch of step list list * note
71           | Reflexivity of note
72
73 val render_steps: 
74    (what, inferred, [> `Whd] as 'b, what CicNotationPt.obj, hyp) GrafiteAst.statement list -> 
75    step list -> 
76    (what, inferred, 'b, what CicNotationPt.obj, hyp) GrafiteAst.statement list
77
78 val count_steps:
79    int -> step list -> int
80
81 val count_nodes:
82    int -> step list -> int
83
84 val note_of_step:
85    step -> note