]> matita.cs.unibo.it Git - helm.git/blob - helm/software/components/ng_refiner/nCicCoercion.mli
5e60b7685c49e52a0288ed0ad6a0b244fde1d332
[helm.git] / helm / software / components / ng_refiner / nCicCoercion.mli
1 (*
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.                     
5     ||I||                                                                
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_______________________________________________________________ *)
11
12 (* $Id: nCicRefiner.mli 9227 2008-11-21 16:00:06Z tassi $ *)
13
14 type db
15
16 (* index (\x.c ?? x ??): A -> B
17    index_coercion db c A B \arity_left(c ??x??) \position(x,??x??) 
18 *)
19 val index_coercion: 
20   db -> NCic.term -> NCic.term -> NCic.term -> int -> int -> db
21
22   (* gets the old imperative coercion DB *)
23 val db : unit -> db
24
25 val empty_db : db
26
27 val look_for_coercion:
28     db ->
29     NCic.metasenv -> NCic.substitution -> NCic.context -> 
30     (* inferred type, expected type *)
31     NCic.term -> NCic.term -> 
32       (* enriched metasenv, new term, its type, metavriable to
33        * be unified with the old term *)
34       (NCic.metasenv * NCic.term * NCic.term * NCic.term) list