The logic LTL∇ extends LTL by quality operators. The satisfaction value of an LTL∇ formula in a computation refines the 0/1 value of formulas to a real value in [0,1]. The higher the value is, the better is the quality of the computation. The quality operator ∇λ, for a quality constant λ ∈ [0,1], enables the designer to prioritize different satisfaction possibilities. Formally, the satisfaction value of a sub-formula ∇ λφ is λ times the satisfaction value of φ. For example, the LTL∇ formula G(req → (X grant ∨ ∇1/2 F grant)) has value 1 in computations in which every request is immediately followed by a grant, value 1/2 if grants to some requests involve a delay, and value 0 if some request is not followed by a grant. The design of an LTL∇ formula typically starts with an formula on top of which the designer adds the parameterized ∇ operators. In the Boolean setting, the problem of automatic generation of specifications from binary-tagged computations is of great importance and is a very challenging one. Here we consider the quantitative counterpart: an LTL∇ query is an LTL∇ formula in which some of the quality constants are replaced by variables. Given an LTL∇ query and a set of computations tagged by satisfaction values, the goal is to find an assignment to the variables in the query so that the obtained LTL∇ formula has the given satisfaction values, or, if this is impossible, best approximates them. The motivation to solving LTL∇ queries is that in practice it is easier for a designer to provide desired satisfaction values in representative computations than to come up with quality constants that capture his intuition of good and bad quality. We study the problem of solving LTL ∇ queries and show that while the problem is NP-hard, interesting fragments can be solved in polynomial time. One such fragment is the case of a single tagged computation, which we use for introducing a heuristic for the general case. The polynomial solution is based on an analysis of the search space, showing that reasoning about the infinitely many possible assignments can proceed by reasoning about their partition into finitely many classes. Our experimental results show the effectiveness and favorable outcome of the heuristic. © 2013 Springer-Verlag.
CITATION STYLE
Almagor, S., Avni, G., & Kupferman, O. (2013). Automatic generation of quality specifications. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 8044 LNCS, pp. 479–494). https://doi.org/10.1007/978-3-642-39799-8_32
Mendeley helps you to discover research relevant for your work.