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