2 ||M|| This file is part of HELM, an Hypertextual, Electronic
3 ||A|| Library of Mathematics, developed at the Computer Science
4 ||T|| Department, University of Bologna, Italy.
6 ||T|| HELM is free software; you can redistribute it and/or
7 ||A|| modify it under the terms of the GNU General Public License
8 \ / version 2 or (at your option) any later version.
9 \ / This software is distributed as is, NO WARRANTY.
10 V_______________________________________________________________ *)
12 (* $Id: nCic.ml 9058 2008-10-13 17:42:30Z tassi $ *)
14 exception Error of string lazy_t
15 val fail: string lazy_t -> 'a
17 type lowtac_status = {
19 lstatus : LexiconEngine.status
22 type lowtactic = lowtac_status -> int -> lowtac_status
25 gstatus : Continuationals.Stack.t;
26 istatus : lowtac_status;
29 type tactic = tac_status -> tac_status
31 type tactic_term = CicNotationPt.term Disambiguate.disambiguator_input
32 type tactic_pattern = GrafiteAst.npattern Disambiguate.disambiguator_input
35 val ctx_of : cic_term -> NCic.context
37 val mk_cic_term : NCic.context -> NCic.term -> cic_term
38 type ast_term = string * int * CicNotationPt.term
40 lowtac_status -> ast_term -> cic_term option -> NCic.context ->
41 lowtac_status * cic_term (* * cic_term XXX *)
44 lowtac_status -> cic_term ->
45 NReference.reference * int * NCic.term list * NCic.term list
47 val whd: lowtac_status -> ?delta:int -> NCic.context -> cic_term -> cic_term
48 val typeof: lowtac_status -> NCic.context -> cic_term -> cic_term
50 lowtac_status -> NCic.context -> cic_term -> cic_term -> lowtac_status
52 lowtac_status -> NCic.context -> cic_term -> cic_term option ->
53 lowtac_status * cic_term * cic_term (* status, term, type *)
55 val get_goalty: lowtac_status -> int -> cic_term
57 lowtac_status -> ?name:string -> NCic.context ->
58 [ `Decl of cic_term | `Def of cic_term ] ->
59 lowtac_status * cic_term
60 val instantiate: lowtac_status -> int -> cic_term -> lowtac_status
63 lowtac_status -> cic_term -> ast_term option * NCic.term ->
64 lowtac_status * cic_term
66 val pp_tac_status: tac_status -> unit