X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fng_cic_content%2Finterpretations.mli;h=b7114903976f38a117eec635a174e45f30b8a034;hb=ae88c7c1481ac9ddf5d55e2144b6db418a25fdd1;hp=2bf18caa6e24d2021933ecbcd9a537ecee632a75;hpb=29e65035d698f11ab4d3a627f8b9b6027f1f20d5;p=helm.git diff --git a/matita/components/ng_cic_content/interpretations.mli b/matita/components/ng_cic_content/interpretations.mli index 2bf18caa6..b71149039 100644 --- a/matita/components/ng_cic_content/interpretations.mli +++ b/matita/components/ng_cic_content/interpretations.mli @@ -36,7 +36,7 @@ class type g_status = method interp_db: db end -class status : +class virtual status : object ('self) inherit g_status inherit NCicCoercion.status @@ -45,7 +45,7 @@ class status : end val add_interpretation: - #status as 'status -> + (#status as 'status) -> string -> (* id / description *) string * NotationPt.argument_pattern list -> (* symbol, level 2 pattern *) NotationPt.cic_appl_pattern -> (* level 3 pattern *) @@ -62,7 +62,7 @@ val lookup_interpretations: (** {3 Interpretations toggling} *) -val toggle_active_interpretations: #status as 'status -> bool -> 'status +val toggle_active_interpretations: (#status as 'status) -> bool -> 'status (** {2 content -> cic} *) @@ -75,13 +75,32 @@ val instantiate_appl_pattern: (string * 'term) list -> NotationPt.cic_appl_pattern -> 'term +val nmap_term: + #status -> + metasenv:NCic.metasenv -> subst:NCic.substitution -> context:NCic.context -> + NCic.term -> + NotationPt.term * + (Content.id, NReference.reference) Hashtbl.t (* id -> reference *) + +val nmap_context: + #status -> + metasenv:NCic.metasenv -> subst:NCic.substitution -> + NCic.context -> + NotationPt.term Content.context * + (Content.id, NReference.reference) Hashtbl.t (* id -> reference *) + val nmap_sequent: #status -> metasenv:NCic.metasenv -> subst:NCic.substitution -> int * NCic.conjecture -> NotationPt.term Content.conjecture * (Content.id, NReference.reference) Hashtbl.t (* id -> reference *) -val nmap_obj: +val nmap_cobj: #status -> NCic.obj -> NotationPt.term Content.cobj * (Content.id, NReference.reference) Hashtbl.t (* id -> reference *) + +val nmap_obj: + #status -> NCic.obj -> + NotationPt.term NotationPt.obj * + (Content.id, NReference.reference) Hashtbl.t (* id -> reference *)