]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/basic_rg/brgReduction.mli
a8320ed557463663219be39e88c66a1976dd5dac
[helm.git] / helm / software / lambda-delta / basic_rg / brgReduction.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 exception LRefNotFound of string Lazy.t
13
14 type context
15
16 type ho_whd_result =
17    | Sort of int
18    | Abst of Brg.term
19
20 val empty_context: context
21
22 val push: (context -> 'a) -> context -> Brg.bind -> Brg.term -> 'a
23
24 val get: (Brg.bind * Brg.term -> 'a) -> context -> int -> 'a
25
26 val are_convertible: (bool -> 'a) -> context -> Brg.term -> Brg.term -> 'a
27
28 val ho_whd: (context -> ho_whd_result -> 'a) -> context -> Brg.term -> 'a