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 * exn option
15 val fail: ?exn:exn -> string lazy_t -> 'a
20 inherit NEstatus.status
22 method set_obj: NCic.obj -> 'self
25 type tactic_term = CicNotationPt.term Disambiguate.disambiguator_input
26 type tactic_pattern = GrafiteAst.npattern Disambiguate.disambiguator_input
29 val ctx_of : cic_term -> NCic.context
30 val term_of_cic_term :
31 #pstatus as 'status -> cic_term -> NCic.context -> 'status * NCic.term
33 val mk_cic_term : NCic.context -> NCic.term -> cic_term
35 #pstatus as 'status -> NCic.context -> tactic_term -> cic_term option ->
36 'status * cic_term (* * cic_term XXX *)
39 #pstatus as 'status -> cic_term ->
40 'status * (NReference.reference * int * NCic.term list * NCic.term list)
42 val ppterm: #pstatus -> cic_term -> string
43 val ppcontext: #pstatus -> NCic.context -> string
45 #pstatus as 'status -> ?delta:int -> NCic.context -> cic_term ->
48 #pstatus as 'status -> ?delta:int -> NCic.context -> cic_term ->
51 #pstatus as 'status -> NCic.context -> cic_term -> 'status * cic_term
53 #pstatus as 'status -> NCic.context -> cic_term -> cic_term -> 'status
55 #pstatus as 'status -> NCic.context -> cic_term -> cic_term option ->
56 'status * cic_term * cic_term (* status, term, type *)
58 #pstatus as 'status -> NCic.context -> cic_term -> 'status * cic_term
59 val fix_sorts: #pstatus as 'status -> cic_term -> 'status * cic_term
61 #pstatus as 'status -> ?delta:int -> cic_term -> 'status * cic_term * cic_term list
62 val metas_of_term : #pstatus as 'status -> cic_term -> int list
64 val get_goalty: #pstatus -> int -> cic_term
66 #pstatus as 'status -> ?attrs:NCic.meta_attrs -> NCic.context ->
67 [ `Decl of cic_term | `Def of cic_term ] -> NCicUntrusted.meta_kind ->
69 val instantiate: #pstatus as 'status -> int -> cic_term -> 'status
70 val instantiate_with_ast: #pstatus as 'status -> int -> tactic_term -> 'status
73 #pstatus as 'status ->
74 found: ('status -> cic_term -> 'status * cic_term) ->
75 postprocess: ('status -> cic_term -> 'status * cic_term) ->
76 cic_term -> tactic_term option * NCic.term ->
79 val mk_in_scope: #pstatus as 'status -> cic_term -> 'status * cic_term
81 int -> (#pstatus as 'status) -> cic_term -> 'status * cic_term
83 val pp_status: #pstatus -> unit
85 class ['stack] status :
90 method set_stack: 'stack -> 'self
93 class type lowtac_status = [unit] status
95 type 'status lowtactic = #lowtac_status as 'status -> int -> 'status
97 class type tac_status = [Continuationals.Stack.t] status
99 type 'status tactic = #tac_status as 'status -> 'status
101 (* indexing facilities over cic_term based on inverse De Bruijn indexes *)
103 module NCicInverseRelIndexable : Discrimination_tree.Indexable
104 with type input = cic_term and type constant_name = NUri.uri
106 module Ncic_termSet : Set.S with type elt = cic_term
108 module InvRelDiscriminationTree : Discrimination_tree.DiscriminationTree
109 with type constant_name = NCicInverseRelIndexable.constant_name
110 and type input = NCicInverseRelIndexable.input
111 and type data = Ncic_termSet.elt and type dataset = Ncic_termSet.t