Abstract 1 Introduction 2 Preliminaries 3 Propositional quality for HyperLTL 4 Temporal quality for HyperLTL 5 Conclusion References

Reasoning About Quality in Hyperproperties

Samuel Graepler Fakultät für Mathematik und Informatik, Universität Leipzig, Germany Benjamin Monmege ORCID Aix Marseille Univ, CNRS, LIS, Marseille, France Jean-Marc Talbot Aix Marseille Univ, CNRS, LIS, Marseille, France
Univ. Bordeaux, CNRS, Bordeaux INP, LaBRI, UMR 5800, F-33400 Talence, France
Abstract

Hyperproperties allow one to specify properties of systems that inherently involve not single executions of the system, but several of them at once: observational determinism and non-inference are two examples of such properties used to study the security of systems. Logics like HyperLTL have been studied in the past to model check hyperproperties of systems. However, most of the time, requiring strict security properties is actually ineffective as systems do not meet such requirements. To overcome this issue, we introduce qualitative reasoning in HyperLTL, inspired by a similar work on LTL by Almagor, Boker and Kupferman [2] where a formula has a value in the interval [0,1], obtained by considering either a propositional quality (how much the specification is satisfied), or a temporal quality (when the specification is satisfied). We show decidability of the approximated model checking problem, as well as the model checking of large fragments.

Keywords and phrases:
Hyperlogics, Automata-based model checking, Quantitative verification
Copyright and License:
[Uncaptioned image] © Samuel Graepler, Benjamin Monmege, and Jean-Marc Talbot; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Logic and verification
; Security and privacy
Related Version:
Full Version: https://arxiv.org/abs/2512.00500 [18]
Acknowledgements:
We thank the reviewers of the different versions of this article for their valuable feedback.
Funding:
This work was partially done while the first author was an intern at Aix-Marseille Université. This work was partly supported by ANR-23-PECL-0009 TRUSTINCloudS.
Editors:
Stefano Guerrini and Barbara König

1 Introduction

Software safety and security have become a critical concern. Hence, ensuring that applications are free from safety issues or security vulnerabilities is an important area of the verification process. Model checking [5] is a successful formal method to automatically verify whether a system meets a specification. This specification is often described as formulas from dedicated logics, for instance LTL to express properties on execution traces of a system [22] regarding safety. Model checking, in particular of LTL, has been widely studied and leads to several tools like SPIN [19] and Spot [9].

Over the last years, hyperlogics have been found out to be another convenient tool to express properties about systems. These logics define hyperproperties [7] that consider not single executions as LTL, but several of them at once. Hence, hyperlogics are often used to express properties relating multiple executions of a system, e.g., network properties like congestion [4], or security and information-flow properties [15, 24, 26]. Let us focus here on the security property of non-interference [17], which holds when executions of systems do not reveal sensitive information to malicious observers: secret information cannot be deduced from information of low sensitivity exposed by the system executions. As running examples, we consider two desirable properties to meet such requirements. We express them in the logic HyperLTL which extends LTL with a prefix of quantifications over traces variables [6]. First, the property called observational determinism [27] expresses the fact that when any two executions start with the same information of low sensitivity, then when observed all along the computation, the two traces cannot be distinguished on these low information (the system behaves deterministically with respect to them). To describe this property, we write a HyperLTL formula φ𝖮𝖣

φ𝖮𝖣=ππsamelow(π,π)𝐆samelow(π,π) (1)

which uses the LTL formula samelow(π,π), with two free trace variables, that states that at the first instant, π and π fulfil the same set of low atomic propositions.

The second property called non-inference [20] expresses the fact that high sensitive information are not exposed through low level one: for any trace, there must exist another one with arbitrary or dummy high sensitive information but with similar low-level information all along the computation. This property can be written as a HyperLTL formula as:

φ𝖭𝖨=ππ𝐆Λhigh(π)𝐆samelow(π,π) (2)

where the formula Λhigh(π) is an LTL formula checking that the only high (i.e. non low) atomic propositions are a dummy one.

Unfortunately, most of the time, requiring strict security properties is actually ineffective as programs do not meet such requirements. To overcome this issue, it has been proposed to quantify security breaches as, e.g., in quantitative information flow [23]. Such approaches allow some information leaks provided they are acceptable, i.e. of amplitude not beyond some threshold; they have been studied in the framework of hyperproperties and hyperlogics [25, 13], in particular by considering counting extensions of HyperLTL where the number of models of a formula can be compared with some threshold.

In this article, we follow a different approach and base our work on the extensions of LTL proposed in [2]. In the latter, the authors proposed a framework enriching the syntax and semantics of LTL for reasoning about the quality of systems; the semantics of a formula is a value in [0,1] reflecting the quality of a trace, that is, at which extent it is satisfied by this trace (0 when the formula is not satisfied at all and 1 when the formula is fully satisfied). Two ways on how to reason about quality in the context of LTL are explored there. The first one, the “propositional quality”, focuses on the different ways how a specification can be satisfied. It is embodied by LTLprop, an extension of LTL with logical operators defined as mappings over [0,1]. The second one, the “temporal quality”, focuses on when eventualities are satisfied and the corresponding LTL extension is LTLtemp. This latter considers temporal operators with discount which makes it possible to assign different values to a formula depending on when certain eventualities happen111We use different names for the two logics, to be consistent with the hyperlogics we introduce afterwards..

We lift these qualitative extensions of LTL to the setting of hyperproperties. In the Boolean setting, the models of a hyperproperty (e.g., a HyperLTL formula) are sets of traces. Hence, a HyperLTL formula associates a Boolean value with each set of traces. To incorporate quality, a formula thus must map each set of traces to a value in [0,1]. We propose qualitative extensions of HyperLTL, similar to the two logics LTLprop and LTLtemp wrt LTL, named respectively HyperLTLprop and HyperLTLtemp. For the former, coming back to our example above, the condition on observational determinism can be relaxed by requiring the difference on low information to remain “small” all along the computation: a formula of HyperLTLprop thus allows one to associate with a given system a propositional quality describing guarantees about observational determinism. One may also consider as acceptable two traces that finally differ quite far from their origin: this is enabled in HyperLTLtemp.

Our main objective is to study the model checking of the hyperlogics HyperLTLprop and HyperLTLtemp. It consists in deciding whether the semantics of a (closed) formula is above (or below) a given threshold v[0,1] when the set of traces in consideration is the one generated by a system (a Kripke structure). Qualitative model checking will therefore indicates to which extent the set of traces of a Kripke structure satisfies a formula.

HyperLTLprop is studied in Section 3. We show that the semantics of a HyperLTLprop formula can take only a finite set of values in [0,1]. We use this crucial property to design an automata-based model checking algorithm by building a non-deterministic Büchi automaton (NBA) from a HyperLTLprop formula for which we test emptiness. This finiteness property also implies that HyperLTLprop is not more expressive than HyperLTL.

For HyperLTLtemp, studied in Section 4, the situation is much more delicate as the set of possible values of a formula is no longer finite. We develop nonetheless automata-based techniques for model checking following two directions. We first solve an approximate model checking problem for HyperLTLtemp that is correct modulo some ϵ term. We then consider fragments of HyperLTLtemp for which we solve the exact model checking problem: the first fragment allows arbitrary quantifier prefixes but limits the interplay between negations and discounted operators. We show that in this case, the set of possible values, although infinite, enjoys a nice structure allowing automata-based model checking. For the second fragment, one considers arbitrary quantifier-free parts of formulas but forbid quantifier alternation. For these two fragments, we provide examples showing that they are still sufficient to express interesting hyperproperties on the quality of systems.

We describe our results in a weighted setting where systems (Kripke structures) that generate traces associate with each timestep a mapping giving to atomic propositions a weight in [0,1], instead of just the subset of atomic propositions that currently hold. This allows one to incorporate more meaningful qualitative reasoning since basic weights come from the system description itself. For instance, weights can encode costs, time delays or probabilities. A similar setting for LTL has been considered in [10].

Other kinds of logic than temporal logic, like HyperFO [14] that is a hyper-extension of the first-order logic, could also be extended with quality. However, as advocated in [2], weighted extensions of logics like FO (or even MSO, i.e. monadic second order logic) such as wMSO [8] or wFO [3] are not very suitable to define specifications due to their undecidable nature. Hence, we believe that a weighted extension of HyperFO [14] would not fit our goals.

A longer version, including all proofs, is available [18].

2 Preliminaries

Kripke structures.

We let AP be a finite set of atomic propositions. We consider traces that are infinite sequences of atomic propositions each weighted by a weight in [0,1], i.e. elements of ([0,1]AP)ω. We denote 𝕋 the set of all traces, and call 𝕋𝕎 the subset of traces where all weights are taken in a finite set 𝕎[0,1]. A particular case is when 𝕎={0,1}, in which case we recover the classical traces: we call such traces Boolean traces in the following. Amongst all traces, we call lassos the ones of the form uvω with u,v([0,1]AP) (a finite word, followed by the infinite repetition of some finite word). We denote 𝕃 the set of all lassos, and 𝕃𝕎 if weights are restricted in 𝕎. For a trace t𝕋, we write t[i] to refer to the i-th element in t, for i. We denote by t[i,] the suffix path starting at the i-th element.

A (weighted) Kripke structure is a tuple 𝒦=S,𝕎,I,,L, where S is a finite set of states, 𝕎[0,1] is a finite set of weights, IS is the set of initial states, S×S is a total transition relation, and L:S𝕎AP is a labeling function, assigning a weight to each atomic proposition in each state. The weight can encode for example costs, time delays or probabilities for the atomic propositions to be true. In case the weights are only 0 and 1, we recover the classical Kripke structures used, e.g., in the model checking of LTL: in this article, we call such structures Boolean Kripke structures.

A path s in 𝒦 is a sequence s=s0s1 with s0S and sisi+1 for all i. Since is total, there are no deadlocks and thus all paths are of infinite length. The set of all traces in 𝒦, denoted 𝕋(𝒦), is defined as the set of traces t𝕋𝕎 of the form t=L(s0)L(s1) for a path s0s1 in 𝒦. 𝕃(𝒦) denotes the set of all lassos of 𝒦, that is, traces from 𝕋(𝒦) that are lassos.

Büchi automata.

The model checking of LTL as well as HyperLTL, consisting in checking whether a given (Boolean) Kripke structure satisfies a given closed formula, relies on automata-based techniques. We recall here the automata used in this context.

A non-deterministic Büchi automaton (NBA) is a tuple 𝒜=Σ,Q,Q0,δ,F, where Σ is a finite alphabet, Q is a finite set of states, Q0Q is the set of initial states, δ:Q×Σ2Q is a transition function and FQ is the set of accepting states. An infinite sequence r=r0r1 of states is called a run on a word w=w1w2Σω if r0Q0 and for every i0, ri+1δ(ri,wi+1). An NBA accepts a word if there exists a run r on it that visits F infinitely often, i.e. for inf(r)={qri=q for infinitely many i}, it holds that inf(r)F. The accepted language of an NBA, denoted by (𝒜), is the set of words accepted by 𝒜.

The emptiness problem of an NBA, i.e. deciding whether the accepted language is empty, is decidable in linear time and is NLOGSPACE-complete [16].

Given a Kripke structure 𝒦 defined over a set AP of atomic propositions and a finite set of weights 𝕎, one can define an NBA 𝒜𝒦 over the alphabet 𝕎AP accepting the language 𝕋(𝒦).

HyperLTL.

The logic HyperLTL, a hyperlogic extension of Linear Time Logic (LTL) was introduced in [6]. It extends LTL with universal and existential quantifiers over traces allowing to express properties on several traces. Models for HyperLTL formulas are then sets of traces and not individual traces. Hence, the set of all models of a HyperLTL formula is a set of sets of traces, a hyperproperty.

We let 𝒱 be the infinite set of (trace) variables. The formulas of HyperLTL are defined by the following grammar, for all atomic propositions pAP and variables π𝒱:

ψ ::=πψπψφ φ ::=pπ¬φφφ𝐗φφ𝐔φ

As usual, additional operators can be derived : φ1φ2=¬((¬φ1)(¬φ2)), true=pπ¬pπ and false=¬true, φ1φ2=¬φ1φ2, φ1φ2=(φ1φ2)(φ2φ1), the Finally operator 𝐅φ=true𝐔φ, and the Globally operator 𝐆φ=¬𝐅(¬φ).

If ψ=Q1π1Qnπnφ for Qi{,} for i{1,,n} and φ quantifier-free, we call φ the quantifier-free part of ψ.

We know explain the semantics of HyperLTL formulas over (weighted) traces. This differs from the classical semantics of HyperLTL associating with each formula a set of traces. We recover an equivalent definition in the case of a Boolean Kripke structure. Given a trace assignment Π over 𝕋, mapping trace variables to traces, and a non-empty set of traces T𝕋 used as a ranging set for quantified variables222Notice that we do not require Π to map variables to the restricted set of traces T., the semantics ψT(Π) of a formula ψ, called the satisfaction value of ψ over T given Π, is the weight in [0,1] defined recursively as:

pπT(Π) =Π(π)[0](p) ¬φT(Π) =1φT(Π)
φ1φ2T(Π) =max(φ1T(Π),φ2T(Π)) 𝐗φT(Π) =φT(Π[1,])
φ1𝐔φ2T(Π) =supi0(min(φ2T(Π[i,]),min0j<iφ1T(Π[j,])))
πψT(Π) =inftTψT(Π[πt]) πψT(Π) =suptTψT(Π[πt])

where Π[πt] is the trace assignment identical to Π except that it maps π to t, and Π[i,] denotes the suffix trace assignment, defined for all variables π as Π[i,](π)=Π(π)[i,]. In case of a trace assignment that only contains Boolean traces (that we call Boolean assignments), it is easy to see that the semantics of HyperLTL formulas coincides with the classical semantics of HyperLTL, i.e. maps all Boolean assignments to 0 or 1 such that the set of assignments mapped to 1 are the ones satisfying the formula.

As one may expect, for the existentially quantified formula πψ, when ψ in which π is set to some trace t is evaluated to 1, then so is πψ. Hence, existential quantification is intuitively a disjunction over the set of all traces from T and thus, corresponds to a supremum. Universal quantification is defined dually as an infimum.

The semantics of the additional operators 𝐅 and 𝐆 are as follows: 𝐅φT(Π)=supi0φT(Π[i,]) and 𝐆φT(Π)=infi0φT(Π[i,]).

For a closed formula ψ (i.e. without free variables), the satisfaction value of ψ over a Kripke structure 𝒦 is the value ψ𝕋(𝒦)([]) (denoted simply ψ𝕋(𝒦) from now on) taken over the empty assignment [].

3 Propositional quality for HyperLTL

3.1 Definitions and examples

In the same way that HyperLTL is built upon LTL, HyperLTLprop corresponds to the hyperlogic extension of the linear temporal logic LTLprop, for LTL with propositional quality [2].333This logic is called LTL[] in [2]. This logic generalises LTL by replacing the Boolean operators by a set of arbitrary functions over [0,1]. Hence, the syntax of LTL is enriched by the construct f(φ1,,φk) for f, the temporal operators remaining the same. Strictly speaking, it is then a family of logics, parameterized by . Hence, beyond classical Boolean operators (,,¬) that can obviously be defined as such functions (and that we thus suppose to always be members of ), the set can contain quantitative functions like α and α for α[0,1], that associates with x and y the weighted sum xαy=αx+(1α)y and the scalar multiplication αx=αx. Intuitively, the functions in allow one to give weights to subformulas, i.e. parts of our specification, to moderate their “effect” in the formula where they occur. Let us point out that with such operators the semantics for formulas indeed belongs to the interval [0,1].

To reason about the propositional quality of hyperproperties, we introduce HyperLTLprop, a logic generalising both HyperLTL and LTLprop. A similar attempt has been achieved in [11] to lift LTLprop to the setting of alternating-time temporal logic to be able to quantify over strategies of agents in a multi-agent system: the same kind of fuzzy functions are added to talk about the quality in strategic reasoning.

Definition 1.

Assuming is a finite set of function symbols, the syntax of HyperLTLprop is given by

ψ ::=πψπψφ φ ::=truefalsepπf(φ,,φ)𝐗φφ𝐔φ

for all pAP, π𝒱, and f. These functions f being interpreted as mappings from [0,1]k to [0,1] (for functions of arity k), the HyperLTL semantics is extended for HyperLTLprop as

f(φ1,,φk)T(Π)=f(φ1T(Π),,φkT(Π))

for all trace assignments Π over 𝕋, and non-empty sets of traces T𝕋.

We give two examples showing that this extension of HyperLTL with propositional quality allows to model hyperproperties with a very different flavour than other quantitative extensions of HyperLTL (like counting extensions considered in [13]). The two first examples deal with Boolean Kriple structures, while the last one is a more general example that can be applied to a weighted Kripke structure.

Example 2.

We propose some quantitative versions of the observational determinism property presented in the introduction. First, let us formally define the subformula samelow(π,π) of the formula φ𝖮𝖣, having two free variables π and π, as plowpπpπ, where low is the subset of “low sensitivity” atomic propositions. To compute the propositional quality of observational determinism, we adapt this formula by using the weighted function in order to express the ratio of the agreement of two traces at the current step: ππ:=plow1|low|(pπpπ). Then, the formula 𝐆ππ aggregates these values at every step by considering an infimum. Thus, we can modify formula φ𝖮𝖣 to compute the smallest total ratio separating two traces of the system that agree on the first step, thus relaxing the Boolean observational determinism:

ππsamelow(π,π)𝐆ππ

One may use the interval [0,1] in a less strict way and split it into several pieces, each of them encoding different “truth” status of the specification. For instance, we can refine this formula by separating the values 1 obtained when the system non trivially fulfils observational determinism from the degenerated case where there are no two different traces which agree on the low atomic propositions on the first step:

φ𝖮𝖣prop=ππ12𝐆ππ34(¬samelow(π,π)π=π)

where the subformula π=π is used as a shortcut for the Boolean formula 𝐆(pAPpπpπ). Here we get half of the smallest ratio of corresponding low atomic propositions (and thus a value in interval [0,1/2]), if there are two different traces which agree on the low atomic propositions of the first step, or 34 (any value outside of [0,1/2] could be convenient) if there are no such traces. The universal quantifications in the formula correspond to some minimisation and thus enable to consider the worst-case scenario. We could also consider the formula ππsamelow(π,π)𝐅𝐆(ππ) with the addition of an operator 𝐅 to compute a limsup ratio, allowing for traces to vary a lot at the beginning, as long as they become close on the long term.

Example 3.

We present also a modification of the non-inference property φ𝖭𝖨 from the introduction. First, the subformula Λhigh(π) can be described as λπplow{λ}¬pπ. Then, to describe the propositional quality of non-inference, we could ask whether, for every trace, we can find another trace with λ as the only high atomic proposition, but which behaves almost the same for a low user. This approximation in the quality can be obtained by using a new weighted function 𝑡ℎ𝑟𝑒𝑠ℎ𝑜𝑙𝑑>k(x), with k[0,1] that equals 1 if x is greater than k, and 0 otherwise. The non-inference can then be relaxed as follows:

φ𝖭𝖨prop=ππ𝐆Λhigh(π)𝑡ℎ𝑟𝑒𝑠ℎ𝑜𝑙𝑑>k(ππ)

The semantics of the formula is Boolean, though it uses weighted functions to compute it.

Example 4.

As a last example, we demonstrate what happens when we deal with a weighted Kripke structure that maps every atomic proposition to a probability that it holds in a given state. We can replace the formula ππ of Example 2 by its probabilistic version: plowf(pπ,pπ), where f is the mapping defined for x,y[0,1] by f(x,y)=xy+(1x)(1y), giving the probability that pπ and pπ are the same, x being the probability of pπ, and y of pπ. By considering the formula 𝐆(plowf(pπ,pπ)), we thus compute the smallest probability over all steps that low atomic propositions coincide. The formula below thus computes the smallest such probability over any two traces:

ππsamelow(π,π)𝐆(plowf(pπ,pπ))

If the semantics of this formula is 1, the system fulfils observational determinism. If the semantics of this formula is 0, the system contains two traces where a certain proposition p differs with probability 1 at some position. The values between 0 and 1 give a probabilistic quality of observational determinism: value 1/2, e.g., means that in any two traces, at any position, and for any low atomic proposition, the probability that the proposition coincides is at least 1/2.

3.2 A finite-valued property

We fix in this section a finite set 𝕎 of weights in [0,1]. Even though the family may contain functions ranging over the whole interval [0,1], it turns out that every HyperLTLprop formula ψ enjoys a finite-valued property: it has only a finite number of possible satisfaction values, that is {ψT(Π)Π:𝒱𝕋𝕎,T𝕋𝕎 non empty} (denoted V𝕎(ψ) from now on) is finite. Moreover, this set can be computationally over-approximated. This has been shown for LTLprop in [2, Lemma 2.5] (when 𝕎={0,1}), and we extend the proof here to HyperLTLprop; this property will be used afterwards in our model checking algorithm.

Definition 5.

For any HyperLTLprop formula ψ, the set V𝕎(ψ) included in [0,1] is defined inductively by:

V𝕎(pπ)=𝕎{0,1}V𝕎(𝐗φ)=V𝕎(φ)V𝕎(φ1𝐔φ2)=V𝕎(φ1)V𝕎(φ2)
V𝕎(f(φ1,,φk))={f(v1,,vk)v1V𝕎(φ1),,vkV𝕎(φk)}
V𝕎(πψ)=V𝕎(πψ)=V𝕎(ψ)

for pAP, π𝒱, f.

This set V𝕎(ψ) turns out to be finite as, essentially, the number of approximated satisfaction values only depends on #ψ, the number of occurrences of atomic propositions in the formula ψ. For instance, #(pπ𝐔f(pπ,qπ,pπ))=4 since the formula uses atomic propositions pπ (twice), qπ and pπ.

Lemma 6.

For all formulas ψ of HyperLTLprop, V𝕎(ψ)V𝕎(ψ) and |V𝕎(ψ)||𝕎|#ψ.

The exponential bound is tight, since it is already so for LTLprop [2]. In general the inclusion V𝕎(ψ)V𝕎(ψ) is strict (see [18] for an example). Indeed, it is not surprising that the set V𝕎(ψ) is a strict over-approximation of the possible satisfaction values of ψ as the satisfiability for HyperLTL (and thus of HyperLTLprop) is undecidable [12]. Note that, as a consequence of this result, in the semantics of HyperLTLprop, the various occurrences of operators inf and sup can be replaced by min and max respectively.

3.3 The model checking problem for 𝐇𝐲𝐩𝐞𝐫𝐋𝐓𝐋𝐩𝐫𝐨𝐩

The natural generalisation of the model checking of HyperLTL to HyperLTLprop is as follows

Definition 7.

Given a Kripke structure 𝒦, a closed HyperLTLprop formula ψ, and a rational threshold v[0,1], the model checking problem is to decide whether ψ𝕋(𝒦)v (or whether ψ𝕋(𝒦)v, depending on the cases of interest).

We propose a model checking algorithm for HyperLTLprop. Its complexity will be non elementary with a tower of exponentials depending on the number of quantifier alternations of the HyperLTL formula. It relies, as a base case, on the construction proposed in [2] (Theorem 2.9 for the Boolean case, and section 3.1 for the extension to weighted Kripke structures) to translate a formula of LTLprop run on a Kripke structure into an NBA:

Proposition 8 ([2]).

Let φ be an LTLprop formula, 𝒦 be a Kripke structure, and P[0,1]. There exists an NBA 𝒜𝒦,φP such that for every trace t𝕋(𝒦), it holds that φ(t)P iff 𝒜𝒦,φP accepts t. Furthermore, 𝒜𝒦,φP has at most |𝕎||φ|2|φ| states where 𝕎 is the set of weights in 𝒦, and |φ| is the size of φ.

In this proposition, the set P can take various forms, provided that testing membership in P of values in [0,1] is decidable, so that the NBA 𝒜𝒦,φP is computable. For instance, if P is of the form [0,a) or (a,1], with some rational number a, the membership test can be performed.

From this, to decide the model checking problem ψ𝕋(𝒦)v for a given HyperLTLprop formula ψ and a Kripke structure 𝒦, we build an NBA 𝒜𝒦,ψ[0,v) and check the emptiness of its language. We base the construction of this NBA on two crucial ideas used before separately. First, we make use of the NBA from Proposition 8 on a Krikpe structure obtained as a product of multiple copies of 𝒦 (to deal with the quantified variables of ψ), by treating the quantifier-free part of a HyperLTLprop formula as an LTLprop formula (as done in [6] for HyperLTL model checking). Second, following the semantics of a quantified formula, we compute inf and sup over 𝕋(𝒦), by checking finitely many values, as V𝕎(ψ) is finite (with 𝕎 the set of weights in 𝒦).

For the first step, we explain how to treat a non-quantified formula of HyperLTLprop as a formula of LTLprop over an extended set of atomic propositions. Formally, for all n, we will consider trace variables π1,,πn, and denote by APi={pπipAP} the set of atomic propositions indexed by the trace variable πi. We then let APn be the set 1inAPi. Notice that AP0 is empty. Hence, a non-quantified formula ψ of HyperLTLprop, having π1,,πm as free variables, can be considered as a formula of LTLprop, a trace assignment being encoded as a single trace as follows:

Definition 9.

Let Π=[π1t1,,πntn] be a trace assignment with ti𝕋(𝒦) for all 1in. The trace tΠ is an element of (𝕎APn)ω and is defined for all k, for all 1in, for all pAP, by (tΠ[k])(pπi)=(ti[k])(p).

By an inductive generalisation of Proposition 8, we are then able to obtain:

Proposition 10.

Let ψ be a HyperLTLprop formula, P[0,1], and 𝒦 be a Kripke structure. We can build an NBA 𝒜𝒦,ψP such that (𝒜𝒦,ψP) is the set of traces tΠ, with Π an assignment of free variables to traces of 𝒦, such that ψ𝕋(𝒦)(Π)P. The size of 𝒜𝒦,ψP is non-elementary, with the tower of exponentials of linear height in the number of quantifier alternations of ψ.

Note that for a closed formula and thus, the empty trace assignment, the NBA 𝒜𝒦,ψ can accept at most the unique trace t[] defined as uω with u the mapping of empty domain. As a corollary, for a closed HyperLTLprop formula ψ, we obtain:

Theorem 11.

The model checking problem of HyperLTLprop is decidable with a non-elementary complexity.

The height of the tower of exponentials in the non elementary complexity depends only on the number of quantifier alternations, similarly to the case of HyperLTL [6]. Notice, as a final corollary, that we also obtain the decidability of the model checking problem for HyperLTL over weighted Kripke structures (which was not known so far, to the best of our knowledge), since HyperLTL is a fragment of HyperLTLprop:

Corollary 12.

The model checking problem of HyperLTL (over weighted Kripke structures) is decidable with a non-elementary complexity.

3.4 Expressiveness of 𝐇𝐲𝐩𝐞𝐫𝐋𝐓𝐋𝐩𝐫𝐨𝐩 in the Boolean case

In this section, we focus on Boolean Kripke structures, and we show that any HyperLTLprop formula can be translated into a somewhat equivalent HyperLTL formula. This is an extension of the analogous result for LTLprop and LTL [2]. This implies HyperLTLprop is not more expressive than HyperLTL. However, it makes it a lot easier to express quantitative specifications, since the resulting HyperLTL formulas get very big and not very intuitive.

Theorem 13.

For every P[0,1] and HyperLTLprop formula ψ, there exists a HyperLTL formula Bool(ψ,P) such that for all subset T𝕋{0,1} and trace assignments Π, ψT(Π)P iff Bool(ψ,P)T(Π)=1. Moreover, Bool(ψ,P) has size at most O(2(k+2)|φ|) if k is the quantifier depth of φ, and φ is the quantifier-free part of ψ.

The proof of this theorem heavily uses the fact that the formula ψ has only finitely many possible satisfaction values and thus, that only those which also belong to P matter. Hence, as a first step, it is possible to consider P by means of each of its elements c that is also a possible satisfaction value of ψ. Then, recursively it is possible to define Bool(ψ,{c}) as a Boolean combination of some Bool(φi,Pi) where φi is an subformula of ψ and Pi is a subset of P defined relatively to c.

Some Boolean functions can only be expressed by exponential size Boolean formulas [21]. Therefore, as noticed in [2] already, the translation of an LTLprop formula to an equivalent LTL formula can grow exponentially: in our setting, there exists a sequence of quantifier-free formulas φ, of growing length, and a predicate P[0,1] such that |Bool(φ,P)|Ω(2|φ|). In [2, Theorem 2.8], again in the case of LTLprop, a thorough discussion on the complexity of computing Bool(φ,P) explains that the computation can be performed in PSPACE (under reasonable assumptions on the complexity of the functions f that appear in the formula), and that a super-polynomial blow-up (i.e. at least |φ|c for all constants c) is unavoidable.

The above translation of a HyperLTLprop formula ψ into an equivalent Boolean HyperLTL formula (whose model checking is non elementary [6]) yields an alternative model checking algorithm for HyperLTLprop, with non-elementary complexity. However the height of exponentials depends on the number of quantifiers in ψ (instead on the number of quantifier alternations in Theorem 10); indeed, the number of alternations in Bool(ψ,P) depends on the number of quantifiers in the original formula ψ (and not only on its number of alternations).

4 Temporal quality for HyperLTL

4.1 Definitions and examples

In this section we consider another qualitative extension of HyperLTL named HyperLTLtemp (for HyperLTL with temporal quality). This logic is based upon LTLtemp, another qualitative extension of LTL proposed in [2]444This logic is called LTL𝐷𝑖𝑠𝑐[𝒟] in that paper.. This latter generalises LTL by considering new temporal operators 𝐔η where η is taken from a set 𝒟 of discounting sequences which parameterises the logic: (ηi)i is a discounting sequence if for all i, ηi[0,1], limiηi=0, and η is decreasing. Note, that this implies in particular that ηi>0 for all i. Common examples for discounting sequences are ηi=αi, for some α(0,1), and ηi=1i+1.

In contrast to propositional quality which allows to mitigate the weights of subformulas, temporal quality aims to give weights depending on when events happen. Intuitively, for a formula φ1𝐔ηφ2, the further φ2 is considered the least its value will impact the value of φ1𝐔ηφ2.

Definition 14.

Assuming 𝒟 is a finite set of discounting sequences, the syntax of HyperLTLtemp is given by

ψ ::=πψπψφ φ ::=pπ¬φφφ𝐗φφ𝐔φφ𝐔ηφ

for all pAP, π𝒱, and η𝒟. The HyperLTL semantics is extended for HyperLTLtemp as

φ1𝐔ηφ2T(Π)=supi0(min(ηiφ2T(Π[i,]),min0j<i(ηjφ1T(Π[j,]))))

for all trace assignments Π over 𝕋, and a non-empty set of traces T𝕋.

We add as syntactic sugar the operators 𝐅ηφ=true𝐔ηφ and 𝐆ηφ=¬𝐅η¬φ. Their semantics can be simplified as

𝐅ηφT(Π)=supi0(ηiφT(Π[i,])) and 𝐆ηφT(Π)=infi0(1ηi(1φT(Π[i,])))

We propose now two examples showing this extension of HyperLTL with temporal quality allows to model hyperproperties; again it has a very different flavour than other quantitative extensions of HyperLTL as the ones from [13], for instance:

Example 15.

We can formulate another version of observational determinism in the logic HyperLTLtemp. We refine φ𝖮𝖣 by replacing the global operator with a discounted one:

φ𝖮𝖣temp=ππsamelow(π,π)𝐆ηsamelow(π,π)φ (3)

Note that, since discounted sequences are injective, the subformula φ gives information about the moment where the two traces π and π disagree on low atomic propositions. The prefix of universal quantifiers captures this earliest moment in the full system. This could be of practical interest since the further in the future we leak information about secrets, the less probable a malicious adversary will dedicate that much time on an attack. So this amounts to verify that the satisfaction value of φ𝖮𝖣temp is greater than a certain value.

Example 16.

We can also formulate another version of non-inference in HyperLTLtemp. We refine the formula φ𝖭𝖨 by discounting the second part of the formula on the equality of low atomic propositions:

φ𝖭𝖨temp=ππ𝐆Λhigh(π)𝐆ηsamelow(π,π) (4)

For a Boolean Kripke structure 𝒦, it computes either 1 if the non-inference is satisfied, or 1ηi where i corresponds to the greatest value where every possible trace t𝕋(𝒦) has a trace t𝕋(𝒦) satisfying 𝐆Λhigh(t) and samelow(t,t) until step i. Hence, it computes a value giving us the longest possible time where the non-inference is satisfied in 𝒦.

4.2 Model checking for 𝐇𝐲𝐩𝐞𝐫𝐋𝐓𝐋𝐭𝐞𝐦𝐩

The model checking for HyperLTLtemp aims to compare with some threshold the semantical value of a formula when applied to the set of traces of some Kripke structure.

For computability reasons, we assume from now on that the discounting sequences (ηi)i are recursively enumerable sequences of rational numbers. Being recursively enumerable and strictly decreasing, the elements of such a sequence form therefore a recursive set of rationals.

Notice that, even in the case of Boolean Kripke structures, there is no hope to apply the strategy used in Section 3.4 to model check HyperLTLprop by translating a formula and a threshold to an equivalent Boolean HyperLTL formula. Indeed, it is already impossible to find an equivalent LTL formula for an LTLtemp formula, since LTLtemp formulas can generate non ω-regular languages, as noticed in [2] and recalled in the example below.

Example 17.

Consider for instance the formula φ=𝐆(𝐅ηp)𝐅𝐆¬p. For a trace t𝕋{0,1}, either φ(t)=1 if p is seen only finitely often in t (with weight 1), or φ(t)=lim infkηik+1ik1 where (ik)k is the sequence of positions where p holds in t. In particular, φ(t) is always different from 0 when t is a lasso trace; however φ(t) could be equal to 0 for some non-lasso trace t, for instance when ik=k2. This shows that the language of the traces t such that φ(t)=0 is not ω-regular as it is non empty, yet does not contain any lasso trace (although, there exist lassos with a semantics arbitrarily close to 0).

Nonetheless, the notion of lassos remains useful regarding model checking purposes and we introduce the notion of lasso assignments:

Definition 18.

A trace assignment Π is a lasso assignment if for all trace variables π where it is defined, Π(π)𝕃. Equivalently, the associated trace tΠ is also a lasso.

Over lasso assignments, we show that Büchi automata can be used to describe the set of traces satisfying some HyperLTLtemp formula wrt some threshold. This will also imply that, on a semantical point of view, formulas coincide when interpreted over traces and over lassos, and thus, will provide some automata-based tools to decide model checking for some fragments of HyperLTLtemp.

Automata models for 𝐇𝐲𝐩𝐞𝐫𝐋𝐓𝐋𝐭𝐞𝐦𝐩.

The following result from [2] (Theorem 4.6, and section 5.1 for the extension to weighted Kripke structures) relates models of LTLtemp formulas in a Krikpe structure, and traces accepted by some NBA.

Proposition 19 ([2]).

Given an LTLtemp formula φ, a Kripke structure 𝒦, and a threshold v[0,1], for an ordering relation in {<,>}, there exists an NBA 𝒜𝒦,φv such that for every trace t𝕋:

  1. 1.

    If φ(t)v, then 𝒜𝒦,φv accepts t.

  2. 2.

    If 𝒜𝒦,φv accepts t and t is a lasso, then φ(t)v.

We build upon this result by extending it to formulas with quantifiers, and going from the classical semantics (in the first item) to the lasso semantics (in the second item). We use the same encodings of trace assignments as described in Section 3.3 for HyperLTLprop.

Lemma 20.

For an ordering relation in {<,>} and ¯ its reflexive closure, for all formulas ψ of HyperLTLtemp, for all Kripke structures 𝒦, for all v[0,1], we can build an NBA 𝒜𝒦,ψv such that for every trace assignment Π over the free variables of ψ, it holds that:

  1. 1.

    if ψ𝕋(𝒦)(Π)v and all traces in Π belong to 𝕋(𝒦), then 𝒜𝒦,ψv accepts tΠ;

  2. 2.

    if 𝒜𝒦,ψv accepts a lasso tΠ, then all traces in Π belong to 𝕃(𝒦) and ψ𝕃(𝒦)(Π)¯v.

If we only count the dependency in the quantifier part of HyperLTLtemp, the NBA 𝒜𝒦,ψv has a size that is bounded by a tower of exponentials of height depending linearly on the quantifier alternation of ψ. Thanks to this technical result, we obtain as expected:

Corollary 21.

For all formulas ψ of HyperLTLtemp, Kripke structures 𝒦, and lasso assignments Π such that Π(π)𝕃(𝒦) for all free variables π in ψ, ψ𝕋(𝒦)(Π)=ψ𝕃(𝒦)(Π).

Proof.

The proof is by induction on the quantifier depth of the formula ψ.

If ψ is non quantified, the result is trivial since no quantifications remains to be evaluated.

If ψ=πψ, by definition of the semantics of the existential quantifier, and then by induction hypothesis, we have ψ𝕋(𝒦)(Π)ψ𝕃(𝒦)(Π). Suppose that the inequality is strict, and let v(ψ𝕃(𝒦)(Π),ψ𝕋(𝒦)(Π)). Since ψ𝕋(𝒦)(Π)>v, by Lemma 20.1, tΠ is then accepted by 𝒜𝒦,ψ>v. Now, by Lemma 20.2, since Π is a lasso assignment, ψ𝕃(𝒦)(Π)v, which contradicts the hypothesis that v>ψ𝕃(𝒦)(Π).

If ψ=πψ, by definition and by induction hypothesis, we have ψ𝕋(𝒦)(Π)ψ𝕃(𝒦)(Π). Suppose that the inequality is strict, and let v(ψ𝕋(𝒦)(Π),ψ𝕃(𝒦)(Π)). By Lemma 20.1, tΠ is then accepted by 𝒜𝒦,ψ<v. Now, by Lemma 20.2, as Π is a lasso assignment, ψ𝕃(𝒦)(Π)v<ψ𝕃(𝒦)(Π). Contradiction.

In Example 17, notice that although all lassos are associated by φ with a positive semantics, we indeed get πφ𝕃(𝒦)=0 by a convergence phenomenon. In contrast, we have also πφ𝕋(𝒦)=0 as there exists (non-lasso) traces associated by φ with a zero semantics.

Issues relative to automata-based model checking.

In [2], the model checking problem amounts to deciding whether all traces of a Kripke structure 𝒦 have a semantics wrt to an LTLtemp formula φ greater than or equal to a threshold v. This translates to our setting in deciding whether πφ𝕋(𝒦)v. They check this by testing emptiness of the NBA 𝒜𝒦,φ<v: this is correct because of item 2 of Proposition 19, since if 𝒜𝒦,φ<v would accept a lasso t, it would be such that φ(t)<v.

In the setting of HyperLTLtemp, this leads to two difficulties. First, the second item of our Lemma 20 is weaker than the one of Proposition 19 as the comparison with the value v is no longer strict, preventing the same argument as before in LTLtemp. Second, our formulas contain and quantifiers (whose semantics are sup and inf operators) and thus, we should be able to solve the model checking problems ψ𝕋(𝒦)v and ψ𝕋(𝒦)v, for a closed formula ψ. Once again, the reasoning above fails in this case since it is not true a priori that πφ𝕋(𝒦)v if and only if the NBA 𝒜𝒦,φ>v has an empty language. We demonstrate this more carefully in the example below.

Example 22.

We continue Example 17. Consider φπ=𝐆(𝐅ηpπ)𝐅𝐆¬pπ, and ψ=πφπ. As we discussed, for a trivial Kripke structure 𝒦 allowing every trace, we have ψ𝕋(𝒦)=ψ𝕃(𝒦)=0: there exist witnesses t𝕋(𝒦) where φπ evaluates to 0, but no such witness is a lasso of 𝒦. For this formula, we would like to solve the model checking problem ψ𝕋(𝒦)0 (which indeed implies that ψ𝕋(𝒦)=0). If we would use Lemma 20, this would require to build the NBA 𝒜𝒦,ψ>0 to check its emptiness. This automaton could be obtained by computing first the NBA 𝒜𝒦,φπ>0 that accepts all lassos, complementing it (obtaining then an NBA with empty language) before taking the intersection with the traces generated by 𝒦, then projecting away the trace π, and finally, complementing it again. The so-obtained NBA accepts the trace t[], and the model checking algorithm would thus wrongly declare that ψ𝕋(𝒦)>0.

We therefore cannot directly rely on the construction of an NBA to fully and exactly model check HyperLTLtemp. However, we propose two kinds of solutions in the rest of this section based on automata. First, we relax the problem, solving approximate model checking; second, we study several fragments for which the (exact) model checking task can be solved.

Approximate model checking.

We weaken the model checking problem to only give an approximate solution instead:

Definition 23.

The approximate model checking of HyperLTLtemp (associated with the exact problem ψ𝕋(𝒦)v) is the following: given a Kripke structure 𝒦, a closed HyperLTLprop formula ψ, a rational threshold v[0,1], and a rational approximation factor ε>0, it answers positively when ψ𝕋(𝒦)v+ε, negatively when ψ𝕋(𝒦)vε, and arbitrarily otherwise. We can consider alternatively the symmetric question associated with the exact question ψ𝕋(𝒦)v.

Theorem 24.

The approximate model checking of HyperLTLtemp is decidable with a non-elementary complexity.

Proof.

Let 𝒦 be a Kripke structure, ψ be a closed HyperLTLprop formula, v[0,1] a rational threshold, and ε>0 a rational approximation factor. Thanks to Corollary 21, ψ𝕋(𝒦)=ψ𝕃(𝒦). Consider then the NBA 𝒜𝒦,ψ<v of Lemma 20. Note that, since ψ is closed, it runs on trace assignments over no traces: it either accepts the single infinite trace t[] that is a lasso (and thus, it is not empty), or it rejects it (and then, it is empty). The approximate model checking algorithm amounts to test emptiness for 𝒜𝒦,ψ<v. Indeed, if ψ𝕋(𝒦)v+ε, i.e. ψ𝕃(𝒦)v+ε, we have ψ𝕃(𝒦)v for no lassos, and thus (by property 2 of Lemma 20) the NBA 𝒜𝒦,ψ<v cannot accept any lasso: the emptiness check of this NBA declares that its language is empty and the algorithm answers positively. Symmetrically, if ψ𝕋(𝒦)vε, i.e. ψ𝕃(𝒦)vε, we have ψ𝕃(𝒦)v, and thus the single infinite lasso fulfills that; then, by property 2 of Lemma 20, it is accepted by the NBA 𝒜𝒦,ψ<v: the emptiness check of this NBA declares that its language is non empty. Hence, the algorithm answers negatively.

We now show in the next two subsections the fragments of HyperLTLtemp for which one can answer the (exact) model checking problem.

Model checking of the positive and negative fragments.

We propose two first fragments for which we show the decidability of model checking. One is the fragment where negation is no longer allowed in HyperLTLtemp formulas above 𝐔η operator. For this reason, we call this restriction the positive fragment.

Definition 25.

The fragment HyperLTLtemp+ of HyperLTLtemp is the subset of formulas ψ described by the grammar (where pAP, π𝒱, and η𝒟):

ψ ::=πψπψφφ::=βφφφφ𝐗φφ𝐔φφ𝐔ηφ
β ::=pπ¬βββ𝐗ββ𝐔β (Boolean LTL formulas)

The two model checking problems we solve for HyperLTLtemp+ are the following ones:

  • given a closed formula ψ of HyperLTLtemp+, a Kripke structure 𝒦 and a threshold v[0,1], decide if ψ𝕋(𝒦)v;

  • given a closed formula ψ of HyperLTLtemp+, a Kripke structure 𝒦 and a threshold v(0,1], decide if ψ𝕋(𝒦)v. 555Notice that the threshold 0 is not allowed here, to avoid convergence issues.

In a symmetric fashion, we can define the fragment HyperLTLtemp obtained by considering negations of formulas of HyperLTLtemp+. By pushing negations, this corresponds to the syntax

ψ ::=πψπψφφ::=βφφφφ𝐗φφ𝐑φφ𝐑ηφ
β ::=pπ¬βββ𝐗ββ𝐔β (Boolean LTL formulas)

where the semantics of the release operators 𝐑 and 𝐑η is obtained by a negation of the until operators, as usual. The model checking problems that we solve for this dual fragment are the following ones: given a closed formula ψ of HyperLTLtemp, a Kripke structure 𝒦 and a threshold v[0,1] (resp. v[0,1)), decide if ψ𝕋(𝒦)v (resp. ψ𝕋(𝒦)v).

The formula φ𝖮𝖣temp of Example 15 is in the fragment HyperLTLtemp. Indeed, the negation of the formula can be rewritten as ψ:=ππsamelow(π,π)𝐅η¬samelow(π,π), where samelow(π,π) is a Boolean LTL formula, and the operator 𝐅η does not involve any negation. This formula belongs to HyperLTLtemp+. To model check the formula φ𝖮𝖣temp against a threshold v (resp. v), it suffices to model check the formula ψ of HyperLTLtemp+ against the threshold 1v (resp. 1v). Similarly, the formula φ𝖭𝖨temp of Example 16 is in the fragment HyperLTLtemp.

The first ingredient for decidability of the model checking comes from Corollary 21. This allows us to only model check the lasso semantics, which can faithfully be done by using an automata-based construction. Another ingredient is the characterisation of the set of possible satisfaction values that can generate a positive formula, helping us controlling the convergence phenomena in infimums/supremums of the semantics. To make this ingredient more precise, we introduce, for all k, finite sets H𝒟, and finite sets 𝕎[0,1], the infinite set of values

Vk,H,𝕎={0,1}𝕎{w×=1kηi()w𝕎,kk,(i)1k𝐍k,(η())1kHk}

This set has the following properties, using as natural hypotheses that we only consider computable discounted sequences η:

Lemma 26.

For all k, finite sets H𝒟, and finite sets 𝕎[0,1],

  • for all a(0,1), the set Vk,H,𝕎[a,1] is finite and computable;

  • every non-decreasing sequence of Vk,H,𝕎 is stationary;

  • every non-increasing sequence of Vk,H,𝕎 either converges to 0 or is stationary.

Proof.

  • Let a(0,1). Since the functions ηH are decreasing and H is finite, there is i0𝐍 such that for all ii0 and ηH, η(i)<a. Thus, Vk,H,𝕎[a,1]{1}𝕎{w×kηiw𝕎,kk,kii0,ηH} is finite and enumerable.

  • Let (un) be a non-decreasing sequence of Vk,H,𝕎. Thus, it has values in Vk,H,𝕎[u0,1] that is finite, and thus is stationary.

  • Let (un) be a non-increasing sequence of Vk,H,𝕎. If the sequence does not converge to 0, it has a positive lower bound a, and thus has values in [a,1]. Since this set is finite, the sequence is stationary.

Moreover, this set can indeed be used to obtain an over-approximation of the set of satisfaction values of a formula in HyperLTLtemp+.

Lemma 27.

Let ψ be a formula of HyperLTLtemp+. Let kψ be the depth of 𝐔η operators, and Hψ be the finite set of functions η appearing in these operators. Let 𝕎[0,1] be a finite set. Then, for all T𝕋𝕎, and Π assignments to traces of 𝕋𝕎, ψT(Π)Vkψ,Hψ,𝕎.

This is enough to obtain an automata-based algorithm to model check HyperLTLtemp+ and HyperLTLtemp:

Theorem 28.

The model checking problems for HyperLTLtemp+ and HyperLTLtemp are decidable with a non-elementary complexity.

Proof.

Let ψ be a closed formula of HyperLTLtemp+, 𝒦 be a Kripke structure. Let 𝕎 be the set of weights appearing in 𝒦.

  • Let v[0,1]. To decide whether ψ𝕋(𝒦)v (with v0 otherwise the answer is trivially true), we consider, by Lemma 27, the greatest value v of Vkψ,Hψ,𝕎 smaller than v. This value can be computed as a search in the finite and enumerable set of possibles values S=Vkψ,Hψ,𝕎[a,1] with a=supiηi<vηi for any ηHψ (since the set S contains ηi and thus values smaller than v). We then let v′′=(v+v)/2, and build the NBA 𝒜𝒦,ψ<v′′ to check the emptiness of its language. If the language of 𝒜𝒦,ψ<v′′ is empty, by Lemma 20.1, we cannot have ψ𝕋(𝒦)<v′′, and thus ψ𝕋(𝒦)v′′ and then, ψ𝕋(𝒦)v as there are no values in Vkψ,Hψ in-between v′′ and v. Reciprocally, if the language of 𝒜𝒦,ψ<v′′ is non empty, it accepts the unique word over the alphabet with a single letter, which is thus a lasso. By Lemma 20.2, we have ψ𝕃(𝒦)v′′. By Corollary 21, ψ𝕋(𝒦)v′′<v.

  • Let v(0,1]. To decide whether ψ𝕋(𝒦)v (with v1 otherwise the answer is trivially true), we consider, by Lemma 27, the lowest value v of Vkψ,Hψ,𝕎 greater than v: it exists (and can be computed) since v is taken different from 0. We then let v′′=(v+v)/2, and conclude the proof in this case symmetrically as in the previous case, showing that ψ𝕋(𝒦)=ψ𝕃(𝒦)v′′>v.

We obtain the decidability for HyperLTLtemp by a dual argument.

The complexity of this model checking algorithm is at least as high as computing the automata given in Lemma 20, and thus at least non-elementary (with respect to the quantifier depth of the formulas): this is non-surprising since the model checking of HyperLTL has already a non-elementary lower bound in complexity. Formally, it also depends on the search for the value v that is the greatest (resp. lowest) value smaller (resp. greater) than a value v in a set of the form Vk,H,𝕎. This heavily depends on the sequences η in H. If we suppose that these sequences are indeed geometrical, as it is the case for usual discounted automata where the current weight is always multiplied by a power λi of a discounted parameter, this is easy, and thus does not change the complexity of the model checking algorithm.

Model checking of the alternation-free fragments.

The other two fragments that we consider, orthogonal to the previous ones, are the alternation-free fragments: HyperLTLtemp is the fragment containing formulas of the form π1πnφ with φ quantifier-free, and HyperLTLtemp is the fragment containing formulas of the form π1πnφ.

The formula φ𝖮𝖣temp describing observational determinism is in HyperLTLtemp (as it contains simply two universal quantifications), but not the formula φ𝖭𝖨temp describing non-inference (as it alternates between a universal quantification and an existential one).

The model checking problems we consider for these two logics are asymmetric: given a closed formula ψ of HyperLTLtemp (resp. HyperLTLtemp), a Kripke structure 𝒦 and a threshold v[0,1], decide if ψ𝕋(𝒦)v (resp. ψ𝕋(𝒦)v). These are tailored to mimick the model checking problem of LTLtemp in [2], in order to correspond to the Boolean variants of classical model checking questions: for the existential fragment, the semantics of the existential quantification being a supremum over traces, asking whether the semantics of the formula is at most a certain threshold requires to decide if all traces have an associated value at most the threshold; for the universal fragment, the semantics of the universal quantification being a infimum over traces, asking whether the semantics of the formula is at least a certain threshold requires to decide if all traces have an associated value at least the threshold. By a proof building upon Proposition 19, and the techniques of Theorem 10, we obtain:

Theorem 29.

The model checking of HyperLTLtemp and HyperLTLtemp is decidable with a non-elementary complexity..

5 Conclusion

We have proposed a framework for qualitative reasoning about hyperproperties, by considering formulas whose semantics range in [0,1]. We introduce two logics extending HyperLTL, namely HyperLTLprop and HyperLTLtemp, and study their model checking problem. For the former, we propose an algorithm with a complexity similar to the one of HyperLTL. For the latter, we propose some model checking algorithms for fragments of this logic as well an approximate algorithm for the full logic. Notice that our approximation scheme is different from the one mentioned in [2] for LTLtemp. There, approximation is performed on the “discounted” sequences whose values are set to 0 when they become smaller than a given threshold δ. Such approach could also be followed for HyperLTLtemp. We leave as open the decidability of the exact model checking problem for the whole logic HyperLTLtemp. As future works, we would like to study qualitative extensions of HyperPCTL [1], a temporal logic for reasoning about probabilistic hyperproperties of discrete-time Markov chains.

References

  • [1] Erika Ábrahám and Borzoo Bonakdarpour. HyperPCTL: A temporal logic for probabilistic hyperproperties. In Quantitative Evaluation of Systems. Springer, 2018. doi:10.1007/978-3-319-99154-2_2.
  • [2] Shaull Almagor, Udi Boker, and Orna Kupferman. Formally reasoning about quality. Journal of the ACM, 63(3):1–56, 2016. doi:10.1145/2875421.
  • [3] Benedikt Bollig, Paul Gastin, Benjamin Monmege, and Marc Zeitoun. Pebble weighted automata and weighted logics. ACM Trans. Comput. Log., 15(2):15:1–15:35, 2014. doi:10.1145/2579819.
  • [4] Marco Chiesa, Guy Kindler, and Michael Schapira. Traffic engineering with equal-cost-multipath: An algorithmic perspective. IEEE/ACM Transactions on Networking, 25(2):779–792, 2017. doi:10.1109/TNET.2016.2614247.
  • [5] Edmund M. Clarke, Thomas A. Henzinger, Helmut Veith, and Roderick Bloem, editors. Handbook of Model Checking. Springer Cham, 2020. doi:10.1007/978-3-319-10575-8.
  • [6] M. R. Clarkson, Bernd Finkbeiner, M. Koleini, K. K. Micinski, Markus N. Rabe, and César Sánchez. Temporal logics for hyperproperties. In POST 2014, volume 8414 of LNCS, pages 265–284. Springer, 2014. doi:10.1007/978-3-642-54792-8_15.
  • [7] M. R. Clarkson and F. Schneider. Hyperproperties. Journal of Computer Security, 18:1157–1210, 2010. doi:10.1109/CSF.2008.7.
  • [8] Manfred Droste and Paul Gastin. Weighted automata and weighted logics. Theor. Comput. Sci., 380(1-2):69–86, 2007. doi:10.1016/J.TCS.2007.02.055.
  • [9] Alexandre Duret-Lutz, Etienne Renault, Maximilien Colange, Florian Renkin, Alexandre Gbaguidi Aisse, Philipp Schlehuber-Caissier, Thomas Medioni, Antoine Martin, Jérôme Dubois, Clément Gillard, and Henrich Lauko. From Spot 2.0 to Spot 2.10: What’s new? In CAV 2022, volume 13372 of LNCS, pages 174–187. Springer, 2022. doi:10.1007/978-3-031-13188-2_9.
  • [10] Marco Faella, Axel Legay, and Mariëlle Stoelinga. Model checking quantitative linear time logic. Electronic Notes in Theoretical Computer Science, 220:61–77, 2008. doi:10.1016/j.entcs.2008.11.019.
  • [11] Angelo Ferrando, Giulia Luongo, Vadim Malvone, and Aniello Murano. Theory and practice of quantitative ATL. In PRIMA 2024: Principles and Practice of Multi-Agent Systems, volume 15395 of LNCS. Springer, 2024. doi:10.1007/978-3-031-77367-9_18.
  • [12] Bernd Finkbeiner and Christopher Hahn. Deciding hyperproperties. In CONCUR 2016, volume 59 of LIPIcs, pages 13:1–13:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.CONCUR.2016.13.
  • [13] Bernd Finkbeiner, Christopher Hahn, and Hazem Torfah. Model checking quantitative hyperproperties. In CAV 2018, volume 10981 of LNCS. Springer, 2018. doi:10.1007/978-3-319-96145-3_8.
  • [14] Bernd Finkbeiner and Martin Zimmermann. The first-order logic of hyperproperties. In 34th Symposium on Theoretical Aspects of Computer Science, STACS 2017, March 8-11, 2017, Hannover, Germany, volume 66 of LIPIcs, pages 30:1–30:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. doi:10.4230/LIPIcs.STACS.2017.30.
  • [15] R. Focardi and R. Gorrieri. Classification of security properties (part I: Information flow). In FOSAD 2000, volume 2171 of LNCS, pages 331–396. Springer, 2000. doi:10.1007/3-540-45608-2_6.
  • [16] Rob Gerth, Doron Peled, Moshe Y. Vardi, and Pierre Wolper. Simple on-the-fly automatic verification of linear temporal logic. In PSTV 1995, pages 3–15. Springer, 1995. doi:10.1007/978-0-387-34892-6_1.
  • [17] Joseph A. Goguen and José Meseguer. Security policies and security models. In IEEE Symposium on Security and Privacy, pages 11–20. IEEE, 1982. doi:10.1109/SP.1982.10014.
  • [18] Samuel Graepler, Benjamin Monmege, and Jean-Marc Talbot. Reasoning about quality in hyperproperties. Technical Report 2512.00500, arXiv, 2025. doi:10.48550/arXiv.2512.00500.
  • [19] Gerard J. Holzmann. The model checker SPIN. IEEE Trans. Software Eng., 23(5):279–295, 1997. doi:10.1109/32.588521.
  • [20] John McLean. A general theory of composition for trace sets closed under selective interleaving functions. In Symposium on Research in Security and Privacy, pages 79–93. IEEE Computer Society, 1994. doi:10.1109/RISP.1994.296590.
  • [21] C. E. Shannon. The synthesis of two terminal switching circuits. The Bell System Technical Journal, 28(1):59–98, 1949. doi:10.1002/j.1538-7305.1949.tb03624.x.
  • [22] A. P. Sistla and Edmund M. Clarke. The complexity of propositional linear temporal logic. Journal of the ACM, 32:733–749, 1985. doi:10.1145/3828.3837.
  • [23] G. Smith. On the foundations of quantitative information flow. In FoSSaCS 2009, volume 5504 of LNCS. Springer, 2009. doi:10.1007/978-3-642-00596-1_21.
  • [24] Tachio Terauchi and Alex Aiken. Secure information flow as a safety problem. In Chris Hankin and Igor Siveroni, editors, Static Analysis, pages 352–367, Berlin, Heidelberg, 2005. Springer Berlin Heidelberg. doi:10.1007/11547662_24.
  • [25] Hirotoshi Yasuoka and Tachio Terauchi. Quantitative information flow as safety and liveness hyperproperties. Theoretical Computer Science, 538:167–182, 2014. doi:10.1016/J.TCS.2013.07.031.
  • [26] A. Zakinthinos and E.S. Lee. A general theory of security properties. In Proceedings. 1997 IEEE Symposium on Security and Privacy (Cat. No.97CB36097), pages 94–102, 1997. doi:10.1109/SECPRI.1997.601322.
  • [27] Steve Zdancewic and Andrew C. Myers. Observational determinism for concurrent program security. In CSFW 2003. IEEE Computer Society, 2003. doi:10.1109/CSFW.2003.1212703.