]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/src/common/status.ml
Matitaweb: layout change in the matitaweb inteface, in order to allow better
[helm.git] / helm / software / lambda-delta / src / common / status.ml
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 module G = Options
13 module Q = Ccs
14
15 type status = {
16    delta: bool;  (* global delta-expansion *)
17    rt: bool;     (* reference typing *)
18    si: bool;     (* sort inclusion *)
19    expand: bool; (* always expand global definitions *)
20    cc: Q.csys;   (* conversion constraints *) 
21 }
22
23 (* helpers ******************************************************************)
24
25 let initial_status () = {
26    delta = false; rt = false; 
27    si = !G.si; expand = !G.expand; cc = Q.init ()
28 }
29
30 let refresh_status st = {st with
31    si = !G.si; expand = !G.expand; cc = Q.init ()
32 }
33