]> matita.cs.unibo.it Git - helm.git/blob - helm/software/components/ng_refiner/nCicUnification.mli
more work
[helm.git] / helm / software / components / ng_refiner / nCicUnification.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$ *)
13
14 exception UnificationFailure of string Lazy.t;;
15 exception Uncertain of string Lazy.t;;
16 exception AssertFailure of string Lazy.t;;
17
18 val unify :
19   NCic.metasenv -> NCic.substitution -> NCic.context -> 
20   NCic.term -> NCic.term ->
21    NCic.metasenv * NCic.substitution
22
23 (* 
24 exception UnificationFailure of string Lazy.t;;
25 exception Uncertain of string Lazy.t;;
26 exception AssertFailure of string Lazy.t;;
27
28 (* fo_unif metasenv context t1 t2                *)
29 (* unifies [t1] and [t2] in a context [context]. *)
30 (* Only the metavariables declared in [metasenv] *)
31 (* can be used in [t1] and [t2].                 *)
32 (* The returned substitution can be directly     *)
33 (* withouth first unwinding it.                  *)
34 val fo_unif :
35   Cic.metasenv -> Cic.context -> 
36     Cic.term -> Cic.term -> CicUniv.universe_graph -> 
37       Cic.substitution * Cic.metasenv * CicUniv.universe_graph
38
39 (* fo_unif_subst metasenv subst context t1 t2    *)
40 (* unifies [t1] and [t2] in a context [context]  *)
41 (* and with [subst] as the current substitution  *)
42 (* (i.e. unifies ([subst] [t1]) and              *)
43 (* ([subst] [t2]) in a context                   *)
44 (* ([subst] [context]) using the metasenv        *)
45 (* ([subst] [metasenv])                          *)
46 (* Only the metavariables declared in [metasenv] *)
47 (* can be used in [t1] and [t2].                 *)
48 (* [subst] and the substitution returned are not *)
49 (* unwinded.                                     *)
50 (*CSC: fare un tipo unione Unwinded o ToUnwind e fare gestire la
51  cosa all'apply_subst!!!*)
52 val fo_unif_subst :
53   Cic.substitution -> Cic.context -> Cic.metasenv -> 
54     Cic.term -> Cic.term -> CicUniv.universe_graph ->
55       Cic.substitution * Cic.metasenv * CicUniv.universe_graph
56
57       *)