]> matita.cs.unibo.it Git - helm.git/blob - helm/software/helena/src/common/status.ml
bc04a5afdcdf58ef2f0bb0c53bb253ac1af24cff
[helm.git] / helm / software / helena / 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 N = Level
13 module G = Options
14
15 type status = {
16    delta: bool;    (* global delta-expansion *)
17    si: bool;       (* sort inclusion *)
18    lenv: N.status; (* level environment *)
19 }
20
21 (* helpers ******************************************************************)
22
23 let initial_status () = {
24    delta = false;
25    si = !G.si; lenv = N.initial_status ();
26 }
27
28 let refresh_status st = {st with
29    si = !G.si; lenv = N.initial_status ();
30 }