X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fng_tactics%2FnTacStatus.mli;h=da50ea2ac17d435c3ffc8c0db6ac0eae9c3253a9;hb=f7da48c844105a52a705872dfa0d4104de010c82;hp=a51435e24d3eceba991eb49c48d38fd56567c4e2;hpb=8a660ee06d72cfee52c707bb1d8d8be3bab0d682;p=helm.git diff --git a/matita/components/ng_tactics/nTacStatus.mli b/matita/components/ng_tactics/nTacStatus.mli index a51435e24..da50ea2ac 100644 --- a/matita/components/ng_tactics/nTacStatus.mli +++ b/matita/components/ng_tactics/nTacStatus.mli @@ -14,17 +14,48 @@ exception Error of string lazy_t * exn option val fail: ?exn:exn -> string lazy_t -> 'a +type automation_cache = NDiscriminationTree.DiscriminationTree.t +type unit_eq_cache = NCicParamod.state + +class type g_eq_status = + object + method eq_cache : unit_eq_cache + end + +class eq_status : + object('self) + inherit g_eq_status + method set_eq_cache: unit_eq_cache -> 'self + method set_eq_status: #g_eq_status -> 'self + end + +class type g_auto_status = + object + method auto_cache : automation_cache + end + +class auto_status : + object('self) + inherit g_auto_status + method set_auto_cache: automation_cache -> 'self + method set_auto_status: #g_auto_status -> 'self + end + class type g_pstatus = object - inherit NEstatus.g_status + inherit GrafiteDisambiguate.g_status + inherit g_auto_status + inherit g_eq_status method obj: NCic.obj end -class pstatus : +class virtual pstatus : NCic.obj -> object ('self) - inherit NEstatus.status - method obj: NCic.obj + inherit g_pstatus + inherit GrafiteDisambiguate.status + inherit auto_status + inherit eq_status method set_obj: NCic.obj -> 'self method set_pstatus: #g_pstatus -> 'self end @@ -39,7 +70,7 @@ val term_of_cic_term : val mk_cic_term : NCic.context -> NCic.term -> cic_term val disambiguate: - #pstatus as 'status -> NCic.context -> tactic_term -> cic_term option -> + #pstatus as 'status -> NCic.context -> tactic_term -> cic_term NCicRefiner.expected_type -> 'status * cic_term (* * cic_term XXX *) val analyse_indty: @@ -59,7 +90,7 @@ val typeof: val unify: #pstatus as 'status -> NCic.context -> cic_term -> cic_term -> 'status val refine: - #pstatus as 'status -> NCic.context -> cic_term -> cic_term option -> + #pstatus as 'status -> NCic.context -> cic_term -> cic_term NCicRefiner.expected_type -> 'status * cic_term * cic_term (* status, term, type *) val apply_subst: #pstatus as 'status -> NCic.context -> cic_term -> 'status * cic_term @@ -76,7 +107,7 @@ val mk_meta: #pstatus as 'status -> ?attrs:NCic.meta_attrs -> NCic.context -> [ `Decl of cic_term | `Def of cic_term ] -> NCicUntrusted.meta_kind -> 'status * cic_term -val instantiate: #pstatus as 'status -> int -> cic_term -> 'status +val instantiate: #pstatus as 'status -> ?refine:bool -> int -> cic_term -> 'status val instantiate_with_ast: #pstatus as 'status -> int -> tactic_term -> 'status val select_term: @@ -96,20 +127,20 @@ class type ['stack] g_status = method stack: 'stack end -class ['stack] status : +class virtual ['stack] status : NCic.obj -> 'stack -> object ('self) + inherit ['stack] g_status inherit pstatus - method stack: 'stack method set_stack: 'stack -> 'self method set_status: 'stack #g_status -> 'self end -class type lowtac_status = [unit] status +class type virtual lowtac_status = [unit] status type 'status lowtactic = #lowtac_status as 'status -> int -> 'status -class type tac_status = [Continuationals.Stack.t] status +class type virtual tac_status = [Continuationals.Stack.t] status val pp_tac_status: #tac_status -> unit