| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 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 |