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: nCicRefiner.mli 9227 2008-11-21 16:00:06Z tassi $ *)
17 (UriManager.uri -> Cic.term -> NCic.term * NCic.obj list) -> unit
21 inherit NCicUnifHint.g_status
27 inherit NCicUnifHint.status
30 method set_coerc_db: db -> 'self
31 method set_coercion_status: #g_status -> 'self
36 (* index (\x.c ?? x ??): A -> B
37 index_coercion db c A B \arity_left(c ??x??) \position(x,??x??)
40 #status as 'status -> string ->
41 NCic.term -> NCic.term -> NCic.term -> int -> int -> 'status
43 (* gets the old imperative coercion DB (list format) *)
44 val index_old_db: CoercDb.coerc_db -> (#status as 'status) -> 'status
46 val look_for_coercion:
48 NCic.metasenv -> NCic.substitution -> NCic.context ->
49 (* inferred type, expected type *)
50 NCic.term -> NCic.term ->
51 (* name, enriched metasenv, new term, its type, metavriable to
52 * be unified with the old term *)
53 (string * NCic.metasenv * NCic.term * NCic.term * NCic.term) list
55 (* returns (coercion,arity,arg) *)
57 #status -> metasenv:NCic.metasenv -> subst:NCic.substitution ->
58 context:NCic.context -> NCic.term -> (NCic.term * int * int) option
60 val generate_dot_file: #status -> Format.formatter -> unit