1 (* Copyright (C) 2003-2005, HELM Team.
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.
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.
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.
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,
22 * For details, see the HELM World-Wide-Web page,
23 * http://cs.unibo.it/helm/.
26 (* functions to be moved ****************************************************)
28 val list_rev_map2: ('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list
30 val list_map2_filter: ('a -> 'b -> 'c option) -> 'a list -> 'b list -> 'c list
32 val mk_arel: int -> string -> Cic.annterm
34 (****************************************************************************)
36 type flavour = Cic.object_flavour
37 type name = string option
39 type what = Cic.annterm
41 type using = Cic.annterm
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
51 type step = Note of note
52 | Inductive of types * lpsno * note
53 | Statement of flavour * name * what * body * note
56 | Intros of count option * name list * note
57 | Cut of name * what * note
58 | LetIn of name * what * note
59 | Rewrite of how * what * where * pattern * note
60 | Elim of what * using option * pattern * note
61 | Cases of what * pattern * note
62 | Apply of what * note
63 | Change of inferred * what * where * pattern * note
64 | Clear of hyp list * note
65 | ClearBody of hyp * note
66 | Branch of step list list * note
69 (what, inferred, [> `Whd] as 'b, what CicNotationPt.obj, hyp) GrafiteAst.statement list ->
71 (what, inferred, 'b, what CicNotationPt.obj, hyp) GrafiteAst.statement list
74 int -> step list -> int
77 int -> step list -> int