X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fng_cic_content%2Finterpretations.mli;h=0eb294b76b67a8defee2d555ca9343e940fd7023;hb=d9a1ff8259a7882caa0ffd27282838c00a34cab5;hp=a4a3fb9c09af03ae8cdfbaeb2f4be865aa52fabd;hpb=551861bf1adbb1db5b0b9941b98ba54531157364;p=helm.git diff --git a/matita/components/ng_cic_content/interpretations.mli b/matita/components/ng_cic_content/interpretations.mli index a4a3fb9c0..0eb294b76 100644 --- a/matita/components/ng_cic_content/interpretations.mli +++ b/matita/components/ng_cic_content/interpretations.mli @@ -26,8 +26,6 @@ (** {2 State handling} *) -type id = string - val hide_coercions: bool ref type db @@ -38,16 +36,14 @@ class type g_status = method interp_db: db end -class status : +class virtual status : object ('self) + inherit g_status inherit NCicCoercion.status - method interp_db: db method set_interp_db: db -> 'self method set_interp_status: #g_status -> 'self end -type cic_id = string - val add_interpretation: #status as 'status -> string -> (* id / description *) @@ -79,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 * - (id, NReference.reference) Hashtbl.t (* id -> reference *) + (Content.id, NReference.reference) Hashtbl.t (* id -> reference *) -val nmap_obj: +val nmap_cobj: #status -> NCic.obj -> NotationPt.term Content.cobj * - (id, NReference.reference) Hashtbl.t (* id -> reference *) + (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 *)