Debian Codegraph @

kernel/transparentState.ml

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 open Names
12
13 type t = {
14 tr_var : Id.Pred.t;
15 tr_cst : Cpred.t;
16 tr_prj : PRpred.t;
17 }
18
19 let empty = {
20 tr_var = Id.Pred.empty;
21 tr_cst = Cpred.empty;
22 tr_prj = PRpred.empty;
23 }
24
25 let full = {
26 tr_var = Id.Pred.full;
27 tr_cst = Cpred.full;
28 tr_prj = PRpred.full;
29 }
30
31 let is_empty ts =
32 Id.Pred.is_empty ts.tr_var &&
33 Cpred.is_empty ts.tr_cst &&
34 PRpred.is_empty ts.tr_prj
35
36 let is_transparent_variable ts id =
37 Id.Pred.mem id ts.tr_var
38
39 let is_transparent_constant ts cst =
40 Cpred.mem cst ts.tr_cst
41
42 let is_transparent_projection ts p =
43 PRpred.mem p ts.tr_prj