THOMAS MACAULAY FERGUSON, Departments of Cognitive Science and Computer Science, Rensselaer Polytechnic Institute, USA
SHAY ALLEN LOGAN, Department of Philosophy, Kansas State University, USA
SHAWN STANDEFER, Graduate School of Information Sciences, Tohoku University, Japan
We introduce the logic EDMon—an epistemic dynamic logic meant to model monitorability concepts in noisy runtime verification. Its syntax and semantics are defined, and explained and the connection between EDMon and monitorability and noisy runtime verification concepts is explored. We then demonstrate that EDMon is sufficient to capture many of the results in the noisy runtime verification literature and catalog its relation to nearby logics and describe a large class of its theorems.
Additional Key Words and Phrases: Runtime Verification, Modal Logic, Temporal Logic, Epistemic Logic
ACM Reference Format:
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer. 2026. A Formal Framework for Noisy Runtime Verification. 1, 1 (September 2026), 30 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn
1 Introduction
A central aim in runtime verification (RV; see [3, 19, 32]) is building monitors to track whether a system is entering an unsafe state. To do this, we first specify—usually in a temporal logic—properties that are associated with unsafe states. These are compiled into observers that monitor the state of the system as it evolves. When the observer can verify that the formally specified trigger-condition corresponding to the monitored property holds, it signals to an appropriate subsystem that it should intervene.¹
This necessarily-sketchy presentation elides a great many details. The important thing to observe is that this process can only be done at all if the chosen property can in fact be monitored. But it’s not at all obvious, in advance, what can be monitored. It turns out not to be obvious after the fact either, as there are a number of competing definitions of monitorability on offer in the literature.
Given this, one would like a framework for comparing different notions of monitorability. In particular, one would like a way of stating, in a rigorous, mathematically precise way, exactly how different notions differ, and what different notions can deliver. And monitorability is not the only concept in the area that could benefit from formal precisification. A second concept that could benefit from such treatment (and which is at the heart of the project pursued here) is noise. Information channels between systems and monitors are often subject to disruptions of various sort. For example,
¹Note that this marks a polarity choice we will stick with throughout the paper: the things being monitored for are unsafe states, not safe states. The reverse convention is fine too, but having a particular convention in play simplifies the discussion.
Authors' Contact Information: Thomas Macaulay Ferguson, Departments of Cognitive Science and Computer Science, Rensselaer Polytechnic Institute, Troy, NY, USA, tfergut@rpi.edu; Shay Allen Logan, Department of Philosophy, Kansas State University, Manhattan, KS, USA, salogan@ksu.edu; Shawn Standefer, Graduate School of Information Sciences, Tohoku University, Sendai, Japan, standefer@tohoku.ac.jp.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
messages from the Mars Science Laboratory sometimes arrive out of order, and dropped telemetry in unmanned aerial systems can cause spurious readings that require hand-tuning of implemented runtime monitors [7, 11, 23]. For these and other reasons, there is a small but growing subliterature on techniques for doing what might be called noisy runtime verification (NRV; see e.g. [2, 23, 30, 35]).
Much of the work in NRV is classificatory in nature and the classification paradigms in use are largely motivated by two questions:
given a class of mutations μ, can we characterize the properties that are immune to μ?
over a channel subject to mutations μ, for which properties A is monitoring for A a trustworthy way to check whether A is true?
The immunity and trustworthiness concepts employed in these questions have themselves been fleshed out in a number of seemingly-inequivalent ways. One is again left wanting a formal framework for evaluating and comparing them. This paper proposes such a framework, demonstrates its adequacy for the goal of expressing, evaluating, and comparing NRV-concepts, and shows that it can also be used to fruitfully propose novel NRV concepts and results worth further exploration.
1.1 Comparison With Prior Work
In EDMon, mutations acting on noisy channels are modeled by dynamic modals ⟨μ⟩. EDMon's semantics captures the effects of such mutations on properties expressed in linear temporal logic (LTL). As such, nearby work can be found in the realm of epistemic logic, dynamic logic, and in LTL, as well as in work on monitorability more generally.
Foundational and central work in epistemic logic can be found in [12, 21, 28, 34, 36]. For work particularly close to the work done here see [16, 17]. Our work differs in that we are not considering multi-agent systems, and so no non-trivial common knowledge. We do not consider branching time, nor do we attempt complete axiomatization or complexity analysis. Our contribution lies in the addition of distinctive dynamic elements and the observation modals.
Foundational and central work in dynamic logic can be found in [14, 18, 33]). For work particularly close to the work done here see [20]. Relative to work in propositional dynamic logic, our work is more expressive in some respects (as will become immediately apparent on seeing the vocabulary of our language) but also less expressive in that we restrict the range of the dynamic atoms rather severely. Relative to first-order dynamic logic, the differences are more stark, since at the moment we have only formulated EDMon in a propositional setting.
Foundational and central work on LTL can be found in [10, 31]. For work particularly close to the work done here see [6] whose epistemic framing is quite similar to ours. Our work differs from the work in the last-mentioned piece primarily (though not exclusively) by its careful attention to mutation.
1.2 Contributions
The central contribution of the paper is the introduction of the logic EDMon and our demonstration of its 'NRV adequacy'. In particular, we show that EDMon can
Usefully formalize three of the dominant monitorability concepts,
formalize an extended family of liveness classes,
capture, formally, central results both about the monitorability concepts and about their relation to liveness classes,
capture and prove central results about immunity concepts and their relation to liveness and monitorability concepts, and finally
usefully point in the direction of novel concepts and results on all of the above topics.
2 Syntax and Semantics
In this section, we describe the syntax and semantics of EDMon. We begin with a bit of preliminary material. Proofs of the lemmas included in the preliminaries are omitted to save space. They are in all cases entirely straightforward.
2.1 Preliminaries
Given a set S we write S∗ for the set of finite sequences of members of S and Sω for the set of infinite sequences of members of S. We write ε for the empty sequence, which is a member of S∗ and for each s∈S∗, we write sˉ for the member of Sω that consists of an infinite string of s's. Note that we will generally not distinguish between the one element sequence containing just s (which is a member of S∗) and s itself (which is a member of S).
For each s∈S∗, we write ∣s∣ for its length. Given s∈S∗∪Sω we write s(i) for the ith member of s, si for the prefix of s ending at the ith term and si for the suffix of s beginning at the i+1st term. For s∈S∗, si=s if ∣s∣≤i, si=ε if ∣s∣≤i, and s(i) is undefined if ∣s∣<i. Given s∈S∗, u∈S∗∪Sω, we write s.u for the (finite or infinite) sequence that appends u to the end of s in the obvious way. The following lemma is an immediate consequence of the definitions and will be used without comment in the remainder:
Lemma 1. For all {u,v}⊆S∗∪Sω, all of the following hold:
∙u=ui⋅ui,∙(ui)k=umin(i,k), and∙ui⋅(ui)k=ui+k,∙if ∣u∣≥k then (uk⋅v)k=uk and (uk⋅v)k=v.∙(ui)k=ui+k,
We will have need below to think about sets of the form S∗×Sω. On such a set, we define three operations:
We will write shiftk for the k-fold iteration of shift, with the convention that shift0(s,σ)=⟨s,σ⟩. We note two lemmas about shiftk.
Lemma 2. For s∈S∗ with ∣s∣=k, shiftk(ε,sˉ)=⟨ε,sˉ⟩.
Lemma 3. For all s, all σ, and all k≥0, trace(shiftk(s,σ))=trace(s,σ)k.
We understand a relation between sets S1 and S2 to be a subset of S1×S2. The composition R1∘R2 of relations R1 between S1 and S2 and R2 between S2 and S3 is the set {⟨x,z⟩:for some y∈S2,⟨x,y⟩∈R1 and ⟨y,z⟩∈R2}. By a relation on S, we mean a relation between S and S. Where R is a relation on S, we write Rk for the k-fold composition of R with itself. In this same situation, we take R0 to be the identity relation idS, which is just {⟨s,s⟩:s∈S}. We will write ∇S for the universal relation on S, which is to say, for S×S itself, and will write R∗ for the union of all Rk for 0≤k<∞. Given a relation R between S and T, we write R−1 for its inverse—explicitly, for the relation between T and S defined by ⟨x,y⟩∈R−1 iff ⟨y,x⟩∈R. When R is a relation between S and T and s∈S, we write R(s) for {t∈T:⟨s,t⟩∈R}. As a bit of syntactic sugar, when given a relation R, we will often write x∼Ry instead of ⟨x,y⟩∈R. If R is a relation
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
on X×Y, then each member of R is a pair of pairs of the form ⟨⟨x1,y1⟩,⟨x2,y2⟩⟩ with {x1,x2}⊆X and {y1,y2}⊆Y. To avoid the proliferation of brackets this makes visible, we will abuse notation and write the members of relations on X×Y as four-tuples ⟨x1,y1,x2,y2⟩ and identify these with pairs of pairs in the obvious way. Given relations R1 between S1 and S2 and R2 between T1 and T2, we write R1×R2 for the relation between S1×T1 and S2×T2 defined by ⟨s1,t1⟩∼R1×R2⟨s2,t2⟩ iff s1∼R1s2 and t1∼R2t2. The following standard result will be of use below:
Lemma4.(R1×R2)∘(R3×R4)=(R1∘R3)×(R2∘R4)
2.2 Syntax
Let At be a countably infinite set of atomic formulas. For each S⊆ At we define a language LEDMonS that extends the S-fragment of the language of LTL, (LLTLS) with Epistemic machinery, Dynamic machinery, and Monitorability machinery; hence EDMon. On the epistemic front we add a unary 'determines' modal D. On the dynamic front we add a family of dynamic mutation modals ⟨μ⟩. On the monitorability front we add observation modals ⟨obs⟩ and ⟨obs∗⟩. The intuitive interpretation of these operators will be described below after our discussion of the semantics.
LEDMonS has a stratified grammar. In Backus-Naur form (BNF) we need four syntactic classes to describe LEDMonS: LTL-formulas ϕ, mutations μ, observations o, and EDMon-formulas A. Formally, the language is as follows:
The top line of the definition gives us that LLTLS⊂LEDMonS. If ϕ∈LLTL contains no occurrences of X or U, then we say that ϕ is propositional. In the remainder, we allow ourselves to write ‘ LEDMon’ when either S=At or S doesn’t matter. So we will refer to 2At as Σ, to x∈Σ as a state, etc. Also, it’s helpful to observe that (due to the stratification of the language) dynamic, observation, and epistemic modals cannot occur in the scope of temporal modals. So while DXp is well-formed; XDp is not. As a pronunciation guide we note that ‘X’ is read as ‘next’, ‘U’ as ‘until’, ‘D’ as ‘determines’ ‘st’ as ‘stutter’, ‘loss’ as ‘loss’, ‘ooo’ as ‘out of order’, cor as ‘corruption’, and ‘obs’ as ‘observe’.
As convenient abbreviations we note that A∧B abbreviates ¬(¬A∨¬B), that A→B abbreviates ¬A∨B, that ⊤ abbreviates p∨¬p, that Fϕ (“eventually ϕ”) abbreviates ⊤∪ϕ, that Gϕ (“always ϕ”) abbreviates ¬F¬ϕ, that PA (read ‘A is permitted’) abbreviates ¬D¬A, and that [μ] abbreviates ¬⟨μ⟩¬, [obs] abbreviates ¬⟨obs⟩¬, and [obs ∗] abbreviates ¬⟨obs∗⟩¬.
Also useful are the following recursive definitions where ϕ is an LTL-formula, μ is a mutation, A is an EDMon-formula, and m a modal, by which we mean that m∈{D,P,⟨obs⟩,[obs]}∪{⟨μ⟩,[μ]:μ a mutation}:
We read Xnϕ as ‘in n ticks, ϕ’ and F≥nϕ as ‘ ϕ will happen at least n times’.
2.3 Semantics
Given S⊆At, we will refer to each x∈2S=ΣS as an S-state. An S-trace is a member of ΣSω. A set of S-traces is called an S-property. For each S⊆T⊆At we can interpret LEDMonS in a structure MT whose carrier set is ΣT∗×ΣTω. In particular, then, for all S⊆At, we can interpret LEDMonS in a structure whose carrier set is Σ∗×Σω, and this is what we will typically do. Members of any of these structures will be called points. An initial point is a point of the form ⟨ε,σ⟩. We will use ⊨ for the forcing relation that holds between points and LEDMonS-formulas, and we will write [[−]] for the function assigning a relation on ΣS∗×ΣSω to each mutation μ and each observation o. In order to describe ⊨ and [[−]] perspicuously, it helps to first define the following relations on ΣS∗:
• OOO:={⟨s,t⟩∣s=t or for some {u,v}⊆ΣS∗ and {x,y}⊆ΣS,s=uxyv and t=uyxv}.
• LOSS:={⟨s,t⟩∣s=t or for some {u,v}⊆ΣS∗ and x∈ΣS,s=uxv and t=uv}.
• COR:={⟨s,t⟩∣s=t or for some {u,v}⊆ΣS∗ and {x,y}⊆ΣS,s=uxv and t=uyv}.
• ST:={⟨s,t⟩∣s=t or for some {u,v}⊆ΣS∗ and x∈ΣS,s=uxv and t=uxxv}.
These relations are slightly more general than the corresponding relations studied in other papers on NRV. For example, compared to the relations in [26] and [23], ours differ by allowing ⟨ε,ε⟩ in each relation. That said, the differences are, on the whole, quite minor.
Returning to the thread, it's helpful to define a function Lift that maps relations on ΣS∗ to relations on ΣS∗×ΣSω by the following rule:
Lift(R)=R×idΣSω={⟨s,σ,t,τ⟩∣s∼Rtandσ=τ}
It turns out that Lift is a homomorphism from the algebra of relations on ΣS∗ to the algebra of relations on ΣS∗×ΣSω in the sense described in the following lemma:
Lemma 5. If R,T, and Ri for i∈I are all relations on ΣS∗, then all of the following are true:
(1) If R⊆T, then Lift(R)⊆Lift(T)
(3) Lift(⋃i∈IRi)=⋃i∈ILift(Ri)
(5) Lift(R−1)=Lift(R)−1
(2) Lift(idΣS∗)=idΣS∗×ΣSω
(4) Lift(R∘T)=Lift(R)∘Lift(T)
(6) Lift(R∗)=Lift(R)∗
PROOF. For (1), observe that if R⊆T, then Lift(R)=R×idσSω⊆T×idσSω=Lift(T). (2) is immediate. For (3), observe that Lift(⋃i∈IRi)=(⋃i∈IRi)×idΣSω=⋃i∈I(Ri×idΣSω)=⋃i∈ILift(Ri).
For (4), observe that ⟨s,σ,t,τ⟩∈Lift(R∘T) iff σ=τ and there is u so that s∼Ru and u∼Tt. But this happens iff σ=τ and there is u so that ⟨s,σ,u,σ⟩∈Lift(R) and ⟨u,σ,t,τ⟩∈Lift(T), which happens iff ⟨s,σ,t,τ⟩∈Lift(R)∘Lift(T).
For (5), observe that ⟨s,σ,t,τ⟩∈Lift(R−1) iff τ=σ and t∼Rs iff ⟨t,τ,s,σ⟩∈Lift(R) iff ⟨s,σ,t,τ⟩∈Lift(R)−1. Finally, note that (6) follows immediately from (3) and (4).
To interpret the epistemic and observation modals, we use the following relations:
Where α and β are mutations, θ is either a mutation or an observation, p∈S⊆At, {ϕ,ψ}⊆LLTLS and {A,B}⊆LEDMonS, we define [[−]] and ⊨ as follows:
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
• [μ]=Lift(μ) for μ an atomic mutation.
• [α;β]=[α]∘[β].
• [α∪β]=[α]∪[β].
• [θ∗]=[θ]∗.
• [α−]=[α]−1.
• s,σ⊨p iff p∈head(s,σ) for p∈S.
• s,σ⊨¬A iff s,σ⊨A.
• s,σ⊨A∨B iff s,σ⊨A or s,σ⊨B.
• s,σ⊨χϕ iff shift(s,σ)⊨ϕ.
• s,σ⊨ϕ∪ψ iff for some k≥0, shiftk(s,σ)⊨ψ and for 0≤j<k, shiftj(s,σ)⊨ϕ.
• s,σ⊨⟨θ⟩A iff t,τ⊨A for some ⟨s,σ⟩∼[θ]⟨t,τ⟩.
• s,σ⊨DA iff t,τ⊨A for all ⟨s,σ⟩∼d⟨t,τ⟩.
We say that A is true at ⟨s,σ⟩ when s,σ⊨A. We say A is EDMon-satisfiable when A is true at some point. We say that A is S-valid just if s,σ⊨A for all ⟨s,σ⟩∈ΣS∗×ΣSω. We say that A is EDMon-valid when A is At-valid.
As an initial exercise in using these clauses, we will prove that our reading of ‘F≥nϕ’ as ‘ϕ will happen at least n times’ is justified:
Lemma 6. s,σ⊨F≥nϕ iff there are n distinct numbers k1,…kn so that for 1≤i≤n, shiftki(s,σ)⊨ϕ
PROOF. By induction on n. For n=1, recall F≥1ϕ:=Fϕ:=⊤∪ϕ. Now note that s,σ⊨⊤∪ϕ iff for some k≥0, shiftk(s,σ)⊨ϕ and for 0≤j<k, shiftj(s,σ)⊨⊤. But since all points verify ⊤, this is equivalent to saying that s,σ⊨F≥1ϕ iff for some k≥0, shiftk(s,σ)⊨ϕ. This completes the base case.
For the inductive step, recall that F≥n+1ϕ:=F(ϕ∧XF≥nϕ). Now suppose that s,σ⊨F≥n+1ϕ. Then by similar reasoning to the previous case, for some k≥0, shiftk(s,σ)⊨ϕ∧XF≥nϕ. So shiftk(s,σ)⊨ϕ and shiftk(s,σ)⊨XF≥nϕ. Thus, shiftk+1=shift(shiftk(s,σ))⊨F≥nϕ. So by the inductive hypothesis, there are n distinct numbers k1,…,kn so that for 1≤i≤n, shiftki(shiftk+1(s,σ))⊨ϕ. Thus there are n+1 numbers j1,…,jn+1 with j1=k and for i>1, ji=ki−1+k+1 so that for 1≤i≤n+1, shiftji(s,σ)⊨ϕ. Finally, note that for i>1, each ji>k=j1, and that this and the fact that the ki are distinct guarantees that the numbers j1,…,jn+1 are all distinct.
For the other direction, suppose there are n+1 distinct numbers k1,…,kn+1 so that for 1≤i≤n+1, shiftki(s,σ)⊨ϕ. Suppose without loss of generality that k1<k2<⋯<kn+1. Then shiftk1(s,σ)⊨ϕ and since k1<k2,k1+1≤k2. So there are n distinct numbers j1=k2−(k1+1),…,jn=kn+1−(k1+1) so that for 1≤i≤n, shiftji(shift(shiftk1(s,σ)))⊨ϕ. Note that since k1+1≤k2, each ji is positive, and since the k's are all distinct, so are the j's. Thus by the inductive hypothesis, shift(shiftk1(s,σ))⊨F≥nϕ. So shiftk1(s,σ)⊨XF≥nϕ, and thus s,σ⊨F(ϕ∧XF≥nϕ)=F≥n+1ϕ.
As a second exercise, we prove a lemma that we will need below:
Lemma 7. s,σ⊨⟨obs⟩kA iff s,σk,σk⊨A.
PROOF. By induction on k. If k=0, the result is immediate. For k≥0, s,σ⊨⟨obs⟩k+1A iff s,σ1,σ1⊨⟨obs⟩kA iff, by the inductive hypothesis, s,σ1.(σ1)k,(σ1)k⊨A. But this happens iff s,σk+1,σk+1⊨A.
Recall that the usual semantics for LTL is given in terms of infinite sequences σ∈ΣSω as follows:
• σ⊨LTLp iff p∈σ(1) for p∈S.
• σ⊨LTL¬A iff σ⊨LTLA.
• σ⊨LTLA∨B iff σ⊨LTLA or σ⊨LTLB.
• σ⊨LTLχϕ iff σ1⊨LTLϕ.
• σ⊨LTLϕ∪ψ iff for some k≥0, σk⊨LTLψ and for 0≤j<k, σj⊨LTLϕ.
As you might suspect from examining LEDMon's semantics, when restricted to LLTL, it is essentially exactly the standard semantics:
Lemma 8. For ϕ∈LLTL, trace(s,σ)⊨LTLϕ iff s,σ⊨ϕ.
PROOF. By induction on ϕ. If ϕ=p is an atom, then first note that trace(s,σ)(1)=head(s,σ). Now observe that trace(s,σ)⊨LTLp iff p∈trace(s,σ)(1) iff p∈head(s,σ) iff s,σ⊨p.
The negation and disjunction cases are immediate from the inductive hypotheses.
For the X-case, first note that by Lemma 3, trace(s,σ)1=trace(shift(s,σ)). Now observe that trace(s,σ)⊨LTLXϕ iff trace(s,σ)1⊨LTLϕ iff trace(shift(s,σ))⊨LTLϕ iff (by the inductive hypothesis) shift(s,σ)⊨ϕ iff s,σ⊨Xϕ.
For the U-case, first note that by Lemma 3, for all n≥0, trace(s,σ)n=trace(shiftn(s,σ)). Now observe that trace(s,σ)⊨ϕ∪ψ iff for some k≥0, trace(s,σ)k⊨LTLψ and for all 0≤j<k, trace(s,σ)j⊨LTLϕ. But this happens iff for some k≥0, trace(shiftk(s,σ))⊨LTLψ and for all 0≤j<k, trace(shiftj(s,σ))⊨LTLϕ. But by the inductive hypothesis, this happens iff for some k≥0, shiftk(s,σ)⊨ψ and for all 0≤j<k, shiftj(s,σ)⊨ϕ which in turns happens iff s,σ⊨ϕ∪ψ. □
In plain English, what Lemma 8 says is that the location of the split between (finite) prefix and (infinite) suffix plays no role whatsoever in evaluating LTL-formulas. All that matters is the combined trace s.σ. So when it comes to evaluating LTL-formulas, the semantics treats points exactly like the combined traces they represent, as it should.
In keeping with our nonproliferation policies, we will abuse notation and write ‘s,σ∼μt,τ’ when we should technically write ‘⟨s,σ⟩∼∥μ∥⟨t,τ⟩’. Finally, note that the ‘hat’ function mapping atomic mutations μ to relations μ on ΣS∗ can clearly be extended to arbitrary mutations using the recursive procedure given in the semantics. Explicitly, we can define μ1;μ2=μ1∘μ2,μ1∪μ2=μ1∪μ2,μ∗=μ∗, and μ−=μ−1. As a technical matter, we also need to specify that μ0 is the identity relation on ΣS∗. We then have the following results
Corollary 9. For all mutations μ,∥μ∥=Lift(μ).
PROOF. By induction on μ. If μ is atomic, the result is immediate and for every other case, the result is an immediate consequence of the inductive hypothesis and Lemma 5. □
Corollary 10. s,σ⊨⟨μ⟩A iff t,σ⊨A for some s∼μt.
PROOF. s,σ⊨⟨μ⟩A iff t,τ⊨A for some s,σ∼μt,τ. But since ∥μ∥=Lift(μ), s,σ∼μt,τ iff s∼μt and σ=τ. Thus, t,τ⊨A for some s,σ∼μt,τ iff t,σ⊨A for some s∼μt. □
A similar result to Corollary 10 is the following, which follows immediately from the definition of d:
Lemma 11. s,σ⊨DA iff s,τ⊨A for all τ∈Σω and s,σ⊨PA iff s,τ⊨A for some τ∈Σω.
Lemma 12. For all mutations μ and all r∈Σ∗, if s∼μt, then s.r∼μt.r.
PROOF. By induction on μ. For each of the atomic cases the result is immediate on inspection. For the semicolon case, suppose s∼μ1,μ2t. Then for some u,s∼μ1u and u∼μ2t. So by the inductive hypothesis, s.r∼μ1u.r and u.r∼μ2t.r. Thus s.r∼μ1,μ2t.r as required.
The choice case is immediate from the inductive hypothesis. For the star case, suppose s∼μrt. Then for some k, there are u1,…,uk so that s∼μu1 and for 1≤i≤k−1, ui∼μui+1 and uk∼μt. But then by the inductive hypothesis, s.r∼μu1.r and for 1≤i≤k−1, ui.r∼μui+1.r and uk.r∼μt.r. So s.r∼μrt.r.
For the inverse case, like the choice case, is immediate from the inductive hypothesis. □
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
2.4 Understanding the Language
We understand points ⟨s,σ⟩ as follows: trace (s,σ) is the sequence containing all the data some sensor will produce and transmit—intuitively, to a monitor—over its lifetime; s is the part of trace (s,σ) that has been transmitted so far. The two important details here are that (a) every point describes information that is being sent, and (b) every point is, in a certain minimal sense, temporally located. To see these two ideas in action, it helps to have a look at how the modals behave. We take each class in turn, along the way proving a number of sanity check lemmas showing that the semantic concepts behave as they intuitively ought.
2.4.1 Observation modals. Parsing semantic clauses gives that s,σ⊨⟨obs⟩A iff s,σ1,σ1⊨A. Note that trace(s,σ1,σ1)=trace(s,σ). So while obs induces a change in which point we are evaluating formulas from, it doesn't change the trace at which the evaluation is happening—all it does is move us from a situation where ∣s∣ states from trace(s,σ) have been transmitted to a situation where ∣s∣+1 have. It follows that ⟨obs⟩A is true just if A will be true after the sensor in question transmits its next observation. Building on this, s,s⊨⟨obs∗⟩A just if for some k≥0, s,σk,σk⊨A, which is to say that ⟨obs∗⟩A is just when A will become true after the sensor makes (and sends) some not necessarily nonzero number of additional observations.
Since sending information doesn’t (either intuitively or, as we just saw in Lemma 8, in the semantics) change ‘worldly’ information, one hopes that ‘worldly’ formulas—which to say LLTL-formulas—will display an appropriate sort of observation-invariance. That they do is the content of our first ‘sanity check’ lemma:
Lemma 13. If A∈LLTL, then s,σ⊨A iff s,σ⊨⟨obs∗⟩A.
PROOF. s,σ⊨⟨obs∗⟩A iff (by Lemma 7) for some k≥0, s,σ⊨⟨obs⟩kA iff for some k≥0, s,σk,σk⊨A. But by Lemma 8, this happens iff trace(s,σk,σk)⊨LTLA. But notice that trace(s,σk,σk)=s,σk,σk=s,σ=trace(s,σ). So trace(s,σk,σk)⊨LTLA iff trace(s,σ)⊨LTLA iff (again by Lemma 8), s,σ⊨A.
2.4.2 Mutation modals. For μ a mutation, s,σ⊨⟨μ⟩A just if (by Corollary 9) t,σ⊨A for some s∼μt. So in a situation where we are receiving information that verifies A along a channel subject to mutations μ, s is a description of what might have been sent. So receiving a message that ‘says’ B across a channel subject to mutations μ can be modeled as a sent-message that ‘says’ ⟨μ⟩B. In particular, when ⟨μ⟩⟨obs⟩A is true, we have received a message that will support A after the next observation. When this is true, it will also be true that after the next observation, we will have received a message that supports A. Appealing to the above translation, we expect the following lemma, which is our next sanity check:
Lemma 14. For all A and μ, ⟨μ⟩⟨obs⟩A→⟨obs⟩⟨μ⟩A is valid.
PROOF. Suppose s,σ⊨⟨μ⟩⟨obs⟩A. Then t,σ⊨⟨obs⟩A for some s∼μt. Thus t,σ1,σ1⊨A. But since s∼μt, it follows by Lemma 12 that s,σ1∼μt,σ1. Thus s,σ1,σ1⊨⟨μ⟩A from which it follows that s,σ⊨⟨obs⟩⟨μ⟩A.
Note that the converse of this Lemma both should and does fail. It should fail because it might be the case that after the next observation, we will have received a message that supports A, even though we have not currently received a message that tells us that after our next observation we will have received a message that supports A. That it does fail can be seen by considering the point ⟨{p},{q},∅⟩. Note that {p},{q},∅⊨⟨obs⟩⟨ooo⟩q because {q}{p},∅⊨q, and {q}{p}∼∅∅{p}{q}. So {p}{q},∅⊨⟨ooo⟩q and thus {p},{q},∅⊨⟨obs⟩⟨ooo⟩q. But on the other hand {p},{q},∅⊨⟨ooo⟩⟨obs⟩q since (due to the fact the length of the sequence {p} is 1) only points of the form {p},τ are ooo-related to {p},{q},∅ and no such point supports ⟨obs⟩q.
2.4.3 Epistemic modals. It follows from Lemma 11 that alternative version of the semantic clause for D reads “s, σ⊨ DA iff s,τ⊨A for all τ∈ΣSω”. From this we see that DA is true of exactly those formulas that are guaranteed to be (or, if you prefer, Determined to be) true by the finite signal s that has been transmitted so far. Dually, PA:=¬D¬A is true of exactly those formulas that could be true, given what’s been sent so far.
We will provide two different sanity checks for our epistemic modals. For the first, note that what you can determine after making an additional observation includes—but is, in general, strictly more than—what you can determine you will observe. This leads us to expect the following:
Lemma 15. D(obs)A→⟨obs⟩DA is valid for all A.
PROOF. Suppose s,σ⊨D(obs)A. Then s,τ⊨⟨obs⟩A for all τ. So s.τ1,τ1⊨A for all τ. It follows that s.(σ1.τ)1,σ1.τ)1⊨A for all τ. But (σ1.τ)1=σ1 and (σ1.τ)1=τ. So s.σ1,τ⊨A for all τ. Thus s.σ1,σ1⊨DA. So s,σ⊨⟨obs⟩DA. □
As mentioned, we expect that in general what we can determine after making an additional observation is strictly more than what we can determine we will observe prior to making the observation. So we expect that the converse of Lemma 15 should fail. That it does can be seen by again thinking about ⟨{p},{q},∅⟩. Observe that {q},τ=shift({p}{q},τ)⊨q for all τ. Thus {p}{q},τ⊨χq for all τ. So {p}{q},∅={p}.({q},∅)1,({q},∅)1⊨DXq. Thus {p},{q},∅⊨⟨obs⟩DXq—in words, if q is true at the next tick, then observing the next tick will let you determine that q is true at the next tick. But the reverse is of course not true—the fact that q is true at the next tick doesn’t mean you can determine, now, that you will observe q at the next tick. And the semantics bears this out. To see this, note that ∅,∅=shift({p}∅,∅)⊨q. So {p}∅,∅={p},∅1,∅1⊨χq. Thus {p},∅⊨⟨obs⟩χq. Thus it is not the case for all τ that {p},τ⊨⟨obs⟩χq. So {p},{q},∅⊨D(obs)χq.
So epistemic and observation modalities half commute. When it comes to mutation, things are friendlier. Mathematically, it’s clear enough why this is the case: on a point ⟨s,σ⟩, mutations only interact with the s-coordinate and determination only interacts with the σ-coordinate. So mutation and determination modals simply don’t interact which should lead us to expect they fully commute.
To see why this should intuitively hold is a bit harder. But the difficulty of explaining this fact intuitively can be explained by the mathematical fact: since noise and determination act on different coordinates, the order in which they act is irrelevant. What records this in ordinary language is something that comes across as trite—e.g. ‘if, no matter how my message is mutated and no matter what the future holds, my message still says A, then no matter what the future holds and no matter how my message is mutated, my message still says A (and vice-versa).’ But triteness is what’s to be expected when recording something essentially tautological, so this isn’t a failure of the model or of the paraphrase; it’s in fact what we should expect. At any rate, here’s the lemma:
Lemma 16. For all A and all mutations μ,D[μ]A↔[μ]DA is valid.
PROOF. By Corollary 10 and Lemma 11, s,σ⊨D[μ]A iff t,τ⊨A for all τ∈Σω and all s∼μt which happens iff t,τ⊨A for all s∼μt and all τ∈Σω, iff s,σ⊨[μ]DA. □
2.5 Whence Monitors?
We now turn to describing how to use LEDMon to model the epistemic state of a monitor. There are two ways to do this, and they correspond to two different questions we might imagine a (personified) monitor asking. First question: what can I, qua monitor, conclude about the sender on the basis of what I’ve received? Recall that receiving A along a
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
10
channel subject to mutations μ is modeled here by ⟨μ⟩A. Of course, typically one receives a whole trace, not just a single formula. But we can model the former as the latter in real-world scenarios by replacing traces with their characteristic formulas. Putting the trace/formula matter aside, what we are asking when we ask this question is the following: given that ⟨μ⟩A is what we know about the state of the sent message, what is determined? Stating it this way makes the answer clear: what's determined are those B so that ⟨μ⟩A→DB is valid. Note that though this is clearly an epistemic question, it isn't really a monitoring question; monitors look for particular A that will trigger an intervention.
So we move on to the second question: given we want to act when A is true of the sender, what received messages should trigger our action? Again we recall that receiving B along a channel subject to mutations μ is modeled by ⟨μ⟩B. The monitor wants to act on all B that, when received, guarantee A was true of the sender. So they should act when ⟨μ⟩B→A is valid. Let's call any such formula a μ-sufficient surrogate for A, or (when context allows it) just a surrogate.
The main problem with surrogates is that there are too many of them. To see this, suppose B is a surrogate for A and let C be any formula at all. Then B∧C is (as we leave the reader to check) also a surrogate. Continuing down this road leads to the ur-problem: ⊥ is a surrogate for absolutely every A.
To start solving this problem, it helps to observe that each step down this road leaves us with a less sensitive surrogate. Consider, for example, the very first step, where we decide to use B∧C as our surrogate rather than B. If we need to act whenever A is true and ⟨μ⟩B→A really is valid, then anytime we receive a message that says B, we should act. Replacing B with B∧C means we'll instead act only when both B and C are true. In general this means we'll have decided to act less often, which means we will (in general) more frequently fail to act in cases when we ought to.
So what we really want to do, qua monitor, is find the weakest surrogate—that is, the weakest B so that ⟨μ⟩B→A is valid. But adjoint behaviors of the converse operator tell us essentially immediately what the weakest such B is: if ⟨μ⟩B→A is valid, then so is B→[μ−]A, so [μ−]A is implied by every surrogate for A. And [μ−]A is itself a surrogate for A because ⟨μ⟩[μ−]A→A is also valid.2 So monitoring for [μ−]A is monitoring for the most sensitive surrogate for A one can possibly monitor for, given the noise at hand.
The problem is that (again speaking as a monitor) this isn't a useful solution. There are two reasons for this. The first is strictly practical: existing monitors (e.g. R2U2 [1, 22] or RTLola [4, 5]) can't work with EDMon formulas. What they can work with are formulas in LTL-like languages. The second is more theoretical: it's not at all clear how one would monitor [μ−]A. In fact, there's a sense in which the 'discovery' that [μ−]A is the most sensitive surrogate for A is less a discovery and more a formal restatement of the problem at hand—monitoring for [μ−]A just is checking one's message to see whether it could only have arisen, given μ, from a message that verified A. But we already knew that that's what we wanted to do. What we don't know is what doing it entails, and [μ−]A doesn't give us any hints.
These problems are, it turns out, two sides of the same coin. And we can solve them (in a range of cases) simultaneously. We won't have space to provide the solution in full detail in this paper. Instead, we will simply examine one case study and leave the matter to the next paper. The point, to state it clearly, is that EDMon can play a role in providing actual, implementable solutions to monitorability problems.
Before getting to the case study (Theorem 18), we need a Lemma:
Lemma 17. If A is propositional and head(s,σ)=head(t,τ), then s,σ⊨A iff t,τ⊨A.
PROOF. By a straightforward induction on A.
2This can be seen either by thinking about the unit for the adjunction here or by straightforwardly working through the semantic clauses.
Theorem 18. For k≥1, l≥0, A∈LLTL and B propositional, if ⟨corl⟩A→F≥kB is EDMon-valid, then A→F≥k+lB is too.
PROOF. First note that if B is a propositional tautology, then B is true at every state. So by Lemma 6, F≥k+lB is valid, and thus so too is A→F≥k+lB, verifying the theorem. So we suppose B is not a propositional tautology and let x∈ΣS be a state that falsifies B.
Our argument is by contraposition. So, we suppose that some point falsifies A→F≥k+lB and construct a point that falsifies ⟨corl⟩A→F≥kB.
To begin let s,σ∈A→F≥k+lB. Then s,σ⊨A and s,σ∈F≥k+lB. Let M={m:shiftm−1(s,σ)⊨B}.³ By Lemma 6, since s,σ∈F≥k+lB, ∣M∣<k+l. Let j=∣M∣−(k−1), and note that j≤l.
If j≤0, then ∣M∣<k, so (again by Lemma 6), s,σ∈F≥kB. Since s,σ⊨A and s,σ∼corls,σ, it follows that s,σ∈⟨corl⟩A→F≥kB. If j>0, let m+=max(M) and Δ be a j-element subset of M. Define τ′ by τ′(i)=trace(s,σ)(i) for i∈/Δ and τ′(i)=x otherwise. Let t=τm+′ and τ=(τ′)m+. We claim that t,τ∈⟨corl⟩A→F≥kB.
To see this, first define s′=trace(s,σ)m+ and σ′=trace(s,σ)m+. By construction, s′ and t differ at exactly the points in Δ, which has cardinality j≤l. So t,τ∼corls′,σ′. Also note that trace(s′,σ′)=trace(s,σ)m+. trace(s,σ)m+=trace(s,σ), so by Lemma 8, since A∈LLTL and s,σ⊨A we also get that s′,σ′⊨A. So t,τ⊨⟨corl⟩A. Now observe that by construction, for m∈/Δ, head(shiftm(t,τ))=head(shiftm(s,σ)). So since B is propositional, for m∈/Δshiftm(t,τ)⊨B iff shiftm(s,σ)⊨B. Again by construction shiftm(t,τ)∈B for m∈Δ. So there are at most ∣M∣−j≤k−1 numbers n so that shiftn(t,τ)⊨B. So t,τ∈F≥kB and thus t,τ∈⟨corl⟩A→F≥kB.
Theorem 19. For k≥1, l≥0, A∈LLTL and B propositional, if ⟨corl⟩A→¬F≥k+lB is valid then A→¬F≥kB is too.
PROOF. First note that if B is a propositional contradiction, then B is false at every state. So by Lemma 6, ¬F≥kB is valid, and thus so too is A→¬F≥k+lB, verifying the theorem. So we suppose B is not a propositional contradiction and let x∈ΣS be a state that verifies B.
As before, we argue by contraposition. Let s,σ∈A→¬F≥kB. Then s,σ⊨A and s,σ⊨F≥kB. Let M={m:shiftm−1(s,σ)⊨B}. Then by Lemma 6, ∣M∣≥k. Choose a k-element subset, Mk, of M and let m+=max(Mk). We define τ′ by τ′(i)=x if m+<i≤m++l, and τ′(i)=trace(s,σ)(i) otherwise. Let t=τm++l′ and τ=(τ′)m++l, also let s′=trace(s,σ)m++l and σ′=trace(s,σ)m++l.
Since by construction trace(s′,σ′)=trace(s,σ) and A∈LLTL, s′,σ′⊨A. Also note that by construction, t,τ∼corls′,σ′. So t,τ⊨⟨corl⟩A. But also note that there are at least k+l numbers n so that shiftn(t,τ)⊨B: the k-members of {m−1:m∈Mk} and the l numbers m+,…,m++l−1, none of which occur in the previous set since m+=max(Mk). So by Lemma 6 again, t,τ⊨F≥k+lB as well, so t,τ∈⟨corl⟩A→¬F≥k+lB.
Theorem 20. For k≥1 and l≥0, ⟨corl⟩F≥k+lB→F≥kB is EDMon-valid for all propositional B.
PROOF. Again by contraposition. Let s,σ∈F≥kB. Then by Lemma 6, there are at most k−1 numbers i so that shifti(s,σ)⊨B. Choose t,τ so that s,σ∼corlt,τ. Then there are at most l numbers i so that trace(s,σ)(i)=trace(t,τ)(i). It follows that there are at most k−1+l<k+l numbers i so that shiftl(t,τ)⊨B. So t,τ∈F≥k+lB. So since t,τ was an arbitrary point corl-related to s,σ we have that s,σ∈⟨corl⟩F≥k+lB.
Theorem 21. For k≥1 and l≥0, ⟨corl⟩¬F≥kB→¬F≥k+lB is EDMon-valid for all propositional B.
3The ‘-1’ might seem mysterious. It can be explained by observing that if shiftm(s,σ)⊨B, then the first member of trace(shiftm(s,σ)) is what actually verifies B, but the first member of trace(shiftm(s,σ)) is trace(s,σ)(m+1).
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
PROOF. Essentially the same as in the previous theorem: let s,σ⊨F≥k+lB and s,σ∼corlt,τ. Then trace(s,σ)(i) and trace(t,τ)(i) differ at most l times. So t,τ⊨F≥kB. Thus s,σ⊨⟨corl⟩¬F≥kB. □
It follows that for propositional B,F≥k+lB is the weakest corl-sufficient surrogate for F≥kB and ¬F≥kB is the weakest corl-sufficient surrogate for ¬F≥k+lB. Since we also know that [(corl)−]F≥kB is the weakest corl-sufficient surrogate for F≥kB and [(corl)−]¬F≥k+lB is the weakest corl-sufficient surrogate for ¬F≥k+lB, this also demonstrates that [(corl)−]F≥kB is equivalent to F≥k+lB and [(corl)−]¬F≥k+lB is equivalent to ¬F≥kB. So, at least some of the time, [μ−]A can be shown to be equivalent to an LTL-formula. In such cases, we can monitor for it in existing systems in a well-defined way, and the EDMon framework lets us certify that doing so is both sound and optimal.
2.6 Monitoring on Multiple Channels
It's not uncommon (see citations) to have multiple channels monitoring the same instrument. In such cases, we could have different types of noise arise on the different monitoring channels. Traditional approaches to noisy monitoring can make use of this. But in the present framework, we can make much better use of it.
To say more, we introduce two abbreviations:
• vi=0nϕi will abbreviate ⋀i=0nXiϕi.
ϕin will abbreviate ⋀j=i0≤j≤n¬ϕj.
So, loosely, χnϕ means 'n steps from now ϕ will be true'; vi=0nϕi′ means ' ϕ0 and then ϕ1 and then...and then ϕn'; and ϕin means 'maybe ϕi, but none of the other ϕ's'.
Theorem 22. For all n≥1, all propositional instances of the following are EDMon-valid:
(⟨ooo⟩vi=0nϕi∧⟨cor⟩vi=0nϕin)→vi=0n−1ϕi
PROOF. We provide the proof for the n=2 case. The general case can be proved following similar principles. So, supposing that n=2, let s,σ⊨⟨ooo⟩vi=02ϕi and s,σ⊨⟨cor⟩vi=02ϕi2. Then there are t and r with s,σ∼ooot,σ and s,σ∼corr,σ such that trace(t,σ)(1)⊨ϕ0 and trace(t,σ)(2)⊨ϕ1 and trace(t,σ)(3)⊨ϕ2 and such that trace(r,σ)(1)⊨ϕ02 and trace(r,σ)(2)⊨ϕ12 and trace(r,σ)(3)⊨ϕ22.
Since s,σ∼ooot,σ, at least one of the following is true:
(a) trace(s,σ)(1)⊨ϕ0 and trace(s,σ)(2)⊨ϕ1, or
(b) trace(s,σ)(1)⊨ϕ1 and trace(s,σ)(2)⊨ϕ0 and trace(s,σ)(3)⊨ϕ2, or
(c) trace(s,σ)(1)⊨ϕ0 and trace(s,σ)(2)⊨ϕ2 and trace(s,σ)(3)⊨ϕ1.
And since s,σ∼corr,σ, at least one of the following is true:
(d) trace(s,σ)(1)⊨ϕ02 and trace(s,σ)(2)⊨ϕ12, or
(e) trace(s,σ)(1)⊨ϕ02 and trace(s,σ)(3)⊨ϕ22, or
(f) trace(s,σ)(2)⊨ϕ12 and trace(s,σ)(3)⊨ϕ22.
Now observe the following:
If (d) is true then (b) is not (because (d) tells us trace(s,σ)(1)⊨¬ϕ1 but (b) tells us trace(s,σ)(1)⊨ϕ1) and (c) is not (because (d) tells us trace(s,σ)(2)⊨¬ϕ2 but (c) tells us trace(s,σ)(2)⊨ϕ2).
If (e) is true then (b) is not (because (e) tells us trace(s, σ)(1) ⊨¬ϕ1 but (b) tells us trace(s, σ)(1) ⊨ϕ1) and (c) is not (because (e) tells us trace(s, σ)(3) ⊨¬ϕ1 but (c) tells us trace(s, σ)(3) ⊨ϕ1).
If (f) is true then (b) is not (because (f) tells us trace(s, σ)(2) ⊨¬ϕ0 but (b) tells us trace(s, σ)(2) ⊨ϕ0) and (c) is not (because (f) tells us trace(s, σ)(3) ⊨¬ϕ1 but (c) tells us trace(s, σ)(3) ⊨ϕ1).
So (a) is the only possible option, and on (a), s,σ⊨ϕ0∧χϕ1, as required.
Note that the antecedent of the theorem is not as unusual as it looks. As an example, a reading that fixes a particular value for an instrument will, by virtue of so fixing it, also guarantee that it doesn't take on any other value—which is exactly what the ⟨cor⟩-clause of the antecedent says. So a partial and not-quite-but-nearly correct rephrasing of the theorem would have it say that whenever you receive the same prediction for the next n ticks from both a reordering channel and a corrupting channel, you can trust the first n−1 parts of the joint prediction.
There are a range of similar results that are valid in EDMon, each specifying a way of extracting more information by combining information from a dually monitored stream than can be captured from the two individual streams themselves. We will give a few instances of these to give a sense for the variety of validated inferences made possible by the move to EDMon, but will leave producing more such to the reader.
3 EDMon's NRV-adequacy
To demonstrate EDMon's usefulness as a formal framework for monitorability, we now turn to showing how to capture some of the central concepts in the NRV literature in EDMon. We begin with the monitorability itself in its various forms. We then turn to describing liveness classes, which are important to much of the classificatory work in the area. Finally, we turn to immunity which, as mentioned above, is a central aim of much work in the area. Each time, we show that many of the important concepts and many of the main results can be captured.
3.1 Monitorability
A property is monitorable when a finite trace suffices to determine whether it holds. This loose intuition has been cashed out in a number of different ways. The discussion in [23] identifies four varieties of monitorability: classical monitorability, s-monitorability, weak monitorability, and four-valued monitorability.⁴ We will restrict our attention to the first three of these since (a) this will take up enough space already and (b) it seems that EDMon is not the right framework for discussing four-valued monitorability and (c) four-valued monitorability is currently a minority position anyways.
For our purposes, it suffices to think of each of classical monitorability, s-monitorability, and weak monitorability as describing a class of functions mapping pairs ⟨P,s⟩ where P⊆ΣSω and s∈ΣS∗ to a verdict in {⊤,⊥,?}. Intuitively, both the verdict ⊤ and the verdict ⊥ mean that the finite sequence s is sufficient to determine whether property P holds, with the 'T' verdict meaning that P determinately holds and the '⊥' verdict meaning that P determinately doesn't hold. The meaning of the '?' verdict is (as we'll see) one of the areas of disagreement.
3.1.1 s-monitorability. This form of monitorability was introduced in [32]. Philosophically, it differs from the other monitorability concepts we will discuss primarily in that it takes seriously the question of whether to continue monitoring. Intuitively, then, we might understand it reading the three verdicts as follows: 'T' is interpreted as 'it is worth continuing to monitor because it's possible that P will be positively determined by some further observation'; '⊥'
⁴What we call s-monitorability is elsewhere called σ-monitorability. But this clashes with the metavariable conventions in this paper, so we've changed the name slightly.
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
is interpreted as 'it is worth continuing to monitor because it's possible that P will be negatively determined by some further observation'; and '?' is interpreted as 'it is not worth continuing to monitor because no further observation will make either positive or a negative determination possible'. One thing this should make clear is that s-monitorability is done relative to a received string—that is, we make the judgment about whether continuing to monitor is worthwhile relative to what we've seen at some point.
Concretely, s-monitorability judgments are made via the following function:
Note how this accomplishes the intended goal we described above: evs(P,s)=⊤ when there is something, t, that if we were to observe it, would put us in a position to say that, no matter how things turn out from there, P will hold of the result. evs(P,s)=⊥, similarly, holds if there is something that would let us say that no matter how things turn out, P will fail to hold of the result. Both of these give us reason to continue monitoring. When they fail, we don't know whether P will hold of the result—thus why the verdict is named '?'—but we do know it's not worth watching to find out because no finite amount of additional information will settle the fact.
One further note before moving on: we've written s-monitorability as a two-place function to facilitate comparison with the other types of monitorability we will introduce below. But there's a sense in which (a) s-monitorability is not a single monitorability concept but a family of monitorability concepts, one for each s and (b) that, thought of in that way, each of them is in fact better understood as a unary function evs(P), with s as a parameter. Exactly one interesting thing hinges on this distinction (more on this below) but even if nothing did, it would nonetheless stand out as a difference worth marking.
EDMon is equipped to model s-monitorability. To begin, we restrict our attention (as is usual) to the case where P={σ∈ΣSω:σ⊨LTLA} for some A∈LLTL. Standardly, this set is called the language defined by A, and represented by L[[A]]. To save on notation, we will usually write evs(A,s) rather than evs(L[[A]],s).
Theorem 23. evs(A,s)=⊤iffs,∅⊨P(obs∗)DA.
PROOF. Suppose evs(A,s)=⊤. Then for some t∈ΣS∗, s.t.σ⊨LTLA. So by Lemma 8 s.t,σ⊨A for all σ∈ΣSω. So s.t,∅⊨DA. But then by Lemma 7, this happens iff s,t,∅⊨⟨obs∗⟩DA. But then by Lemma 11, s,∅⊨P(obs∗)DA.
The reverse direction is equally straightforward and left to the reader.
Note that there is nothing special about 0 in the above proof. It simply makes a convenient ‘basepoint’ as it were.
Theorem 24. evs(A,s)=⊥iffs,∅⊨P(obs∗)D¬A.
PROOF. By essentially the same reasoning as in the previous theorem.
If we say that A is s-monitorable when either evs(A,s)=⊤ or evs(A,s)=⊥, then the corresponding EDMon-concept is that A is s-monitorable when s,∅⊨P(obs∗)(DA∨D¬A).
Examples: The choice of s can matter a good deal in deciding whether A is s-monitorable. As an example: Xp∨GFp is s-monitorable for all length-1 sequences s, because for any such s and all σ∈Σω, s.{p}, σ⊨Xp∨GFp. But if t∈Σ∗ and p∈/t(2), then Xp∨GFp is not t-monitorable because t,τ⊨Xp∨GFp iff t,τ⊨GFp and no finite prefix of trace (t,τ) is sufficient to determine this.
3.1.2 Classical Monitorability. Classical monitorability (per the discussion in [3]) was introduced as a generalization of s-monitorability. Of note is that we can capture the exact sense in which it succeeds to this end by comparing the two notions in the EDMon semantic framework; we will return to this below.
Mathematically, getting from evs to evc is easy: all we have to do is drop the t's. More to the point, and skipping straight to the properties we care about, we have the following:
Note that this changes how we ought to interpret the verdicts ⊤, ⊥, and ?. The s-monitorability verdict ⊤ held when it was useful to continue monitoring because it remained possible to see something that would let us determine A. The classical monitorability verdict ⊤, on the other hand, makes the stronger claim that we have in fact determined A. (Similar things can obviously be said about ⊥ and ?.)
Theorem 25. evc(A,s)=⊤iffs,τ⊨DA for some τ∈ΣSω.
PROOF. By Lemma 8, evc(A,s)=⊤iffs,σ⊨A for all σ∈ΣSω. But this happens iff s,τ⊨DA.
Theorem 26. evc(A,s)=⊥iffs,τ⊨D¬A for some τ∈ΣSω.
PROOF. Essentially exactly as in the previous theorem.
Classical monitorability is (unlike s-monitorability) genuinely a single monitorability concept. This has as a consequence that there is a univocal story about which properties are monitorable to be had, rather than the prefix-by-prefix story we saw in s-monitorability. To say more, we follow [24] and say that s is a good prefix for A when evc(A,s)=⊤ and say that s is a bad prefix for A when evc(A,s)=⊥. An ugly prefix for A is prefix s that can neither be extended to become a good prefix for A nor extended to become a bad prefix for A-more formally, s is an ugly prefix if for all t∈ΣS∗, evc(A,s.t)=?. A is classically monitorable when no prefix is ugly for A.
Theorem 27. A is classically monitorable iff P(obs∗)(DA∨D¬A) is EDMon-valid iff A is s-monitorable for all s∈ΣS∗.
PROOF. Suppose A is classically monitorable and choose a point s,σ. Since A is classically monitorable, either there is t1∈ΣS∗ so that evc(A,s.t1)=⊤ or there is t2∈ΣS∗ so that evc(A,s.t2)=⊥. So by Theorems 25 and 26, either there is t1∈ΣS∗ so that for some τ1∈ΣSω, s.t1,τ1⊨DA or there is t2∈ΣS∗ so that for some τ2∈ΣSω, s.t2,τ2⊨D¬A. In either case, clearly s.ti,τi⊨DA∨D¬A, and so by Lemma 7, s,ti,τi⊨⟨obs∗⟩(DA∨D¬A). Thus, s,σ⊨P(obs∗)(DA∨D¬A).
Next, since A is s-monitorable just if s,∅⊨P(obs∗)(DA∨D¬A), clearly if P(obs∗)(DA∨D¬A) is valid, then for all s, A is s-monitorable.
Finally, suppose A is s-monitorable for all s and choose s∈ΣS∗. Since A is s-monitorable, s,∅⊨P(obs∗)(DA∨D¬A). So by Lemma 11 there is τ∈ΣSω so that s,τ⊨⟨obs∗⟩(DA∨D¬A). Thus by Lemma 7, for some k,s,τk,τk⊨DA∨D¬A. It follows that either s,τk,τk⊨DA or s,τk,τk⊨D¬A. But either option guarantees that s is not an ugly prefix, so A is classically monitorable. □
Examples: We saw above that Xp∨GFp is s-monitorable for some s but not others. It follows from the previous theorem, then, that this formula is not classically monitorable. On the other hand, the formula Fp is classically monitorable, since for any s and any τ∈Σω, s,{p}. τ⊨Fp.
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
3.1.3 Weak Monitorability. As noted in [23] there are properties that, even if they fail to be monitorable in any of the above senses, are nonetheless useful to monitor. Weak monitorability, introduced in [8, 29], is aimed at exactly such cases. To say more, let's consider the example given in [23]: p∧GFp.
Theorem 28. If s,0⊨p, then s,0⊨P⟨obs∗⟩D(p∧GFp) and s,0⊨P⟨obs∗⟩D¬(p∧GFp)
PROOF. If s=ε, then since s,0⊨p, the theorem is trivially true. So suppose s=ε. By parsing semantic clauses we see that s,0⊨P(obs∗)D(p∧GFp) iff there is σ∈ΣSω and a number k so that for all τ,s,σk,τ⊨p∧GFp while s,0⊨P(obs∗)D¬(p∧GFp) iff there is σ∈ΣSω and a number k so that for all τ,s,σk,τ⊨¬(p∧GFp). Since s=ε, head(s,0)=head(s,σk,τ). So since s,0⊨p,s,σk,τ⊨p.
So s,σk,τ⊨p∧GFp iff s,σk,τ⊨GFp and s,σk,τ⊨¬(p∧GFp) iff s,σk,τ⊨¬GFp. But now observe that s,σk,{p}⊨GFp while s,σk,0⊨¬GFp. So it cannot be the case that for all τ,s,σk,τ⊨p∧GFp and it cannot be the case that for all τ,s,σk,τ⊨¬(p∧GFp).
It follows that p∧GFp is not s-monitorable for any s with s,0⊨p. In other words, every such s is an ugly prefix for this formula. And since it admits ugly prefixes, it's also not classically monitorable.
But it's not as though it's completely useless to monitor p∧GFp—after all, p∈/head(s,σ) immediately guarantees that s,σ⊨p∧GFp. So there are some prefixes that aren't ugly, and perhaps in some circumstances that gives us enough reason to monitor. Intuitively, weak monitorability is meant to be the kind of monitorability you should reach for when you have such reasons. Where classical monitorability demanded that no prefix be ugly, weak monitorability instead demands that some prefix be non-ugly.
Theorem 29. A is weakly monitorable iff DA∨D¬A is satisfiable iff A is s-monitorable for some s.
PROOF. A is weakly monitorable iff some s is non-ugly iff there is an s so that for some t, either evc(A,s.t)=⊤ or evc(A,s.t)=⊥. By Theorems 25 and 26, this happens iff there is an s so that for some t either s.t,τ1⊨DA for some τ1∈ΣSω or s.t,τ2⊨D¬A for some τ2∈ΣSω, which happens iff there is an s so that for some t and some τ, s.t,τ⊨DA∨D¬A (which is to say, iff DA∨D¬A is satisfiable). But this happens iff there is an s so that for some t and some τ,s,t,τ⊨⟨obs∗⟩(DA∨D¬A) which happens iff there is an s so that s,0⊨P⟨obs∗⟩(DA∨D¬A) which is to say iff A is s-monitorable for some s.
3.2 Liveness Classes
In [29], Peled and Havelund introduce an extended version of Lamport's (see [25]) safety-liveness hierarchy. In the extended hierarchy, there are six properties to track. Again, restricting to the case of properties defined by an LTL-formula, they can be characterized in our vocabulary as follows:
• A∈AFR (always finitely refutable) iff for all σ∈ΣSω, if σ∈LTLA, then for some k, σk⋅β∈LTLA for all β∈ΣSω.
• A∈AFS (always finitely satisfiable) iff for all σ∈ΣSω, if σ⊨LTLA, then for some k, σk⋅β⊨LTLA for all β∈ΣSω.
• A∈SFR (sometimes finitely refutable) iff for some σ∈ΣSω, σ∈LTLA and there is a k so that σk⋅β∈LTLA for all β∈ΣSω.
• A∈SFS (sometimes finitely satisfiable) iff for some σ∈ΣSω, σ⊨LTLA and there is a k so that σk⋅β⊨LTLA for all β∈ΣSω.
• A∈NFR (never finitely refutable) iff for all σ∈ΣSω and all k there is β so that σk⋅β⊨LTLA
• A∈NFS (never finitely satisfiable) iff for all σ∈ΣSω and all k there is β so that σk⋅β∈LTLA
The following theorem demonstrates that each of these classes is characterizable in EDMon:
Theorem 30. For all A∈LLTL, we have the following:
A∈AFR iff ¬A→⟨obs∗⟩D¬A is EDMon-valid.
A∈AFS iff A→⟨obs∗⟩DA is EDMon-valid.
A∈SFR iff ¬A∧⟨obs∗⟩D¬A is EDMon-satisfiable.
A∈SFS iff A∧⟨obs∗⟩DA is EDMon-satisfiable.
A∈NFR iff PA is EDMon-valid
A∈NFS iff P¬A is EDMon-valid.
PROOF. For AFR, observe that ¬A→⟨obs∗⟩D¬A is EDMon-valid iff for all ⟨s,σ⟩, if s,σ⊨¬A, then s,σ⊨⟨obs∗⟩D¬A, which happens iff for all ⟨s,σ⟩, if trace(s,σ)∈/LTLA, then for some k and all β, trace(s,σk,β)∈/LTLA. But observe that trace(s,σk,β)=trace((s,σ)k,(s,σk)k,β), so this happens iff for all ⟨s,σ⟩, if trace(s,σ)∈/LTLA, then for some k and all β, trace((s,σ)k,(s,σk)k,β)∈/LTLA. We take it to be clear that this happens iff A∈AFR. The AFS case is essentially the same.
For SFS, note that A∧⟨obs∗⟩DA is EDMon-satisfiable iff s,σ⊨A∧⟨obs∗⟩DA for some ⟨s,σ⟩, which happens iff for some ⟨s,σ⟩, trace(s,σ)⊨A and for some k and all β, trace(s,σk,β)⊨A. As in the previous case, this happens iff for some ⟨s,σ⟩, trace(s,σ)⊨A and for some k and all β, trace((s,σ)k,(s,σk)k,β)⊨A. Also as before, we take it to be clear that this happens iff A∈SFS. The SFR case is essentially the same.
Finally, for NFR, note that PA is EDMon-valid iff for all ⟨s,σ⟩ there is β so that s,β⊨A which happens iff for all ⟨s,σ⟩, there is β so that s,β⊨LTLA which is essentially exactly what NFR demands. The NFS case is essentially the same. □
3.3 Further Property Classes
In [23], the authors introduced five further classes of properties and discussed their relations to the classes introduced above. We show here that all five of these can be easily represented in EDMon.
3.3.1 The Classes. The five classes introduced in [23] are the classes of proximate, tolerant, permissive, inclusive, and exclusive properties. In the vocabulary of this paper (and again restricting to the formula-defined properties that are of interest in this paper) they are defined as follows:
A∈Prox iff there is s∈ΣS∗,x∈ΣS and σ∈ΣSω so that either s.x.σ∈/LTLA and s.x.x.σ∈/LTLA or s.x.σ∈/LTLA and s.x.x.σ∈/LTLA.
A∈Tolr iff for all {s,t}⊆ΣS∗ and all σ∈ΣSω, if s.σ∈/LTLA, then s.t.σ∈/LTLA.
A∈Perm iff for all {s,t}⊆ΣS∗ and all σ∈ΣSω, if s.σ∈/LTLA, then s.t.σ∈/LTLA.
A∈Incl iff there is finite T⊆ΣS so that σ∈/LTLA iff each t∈T occurs in σ.
A∈Excl iff there is finite T⊆ΣS so that σ∈/LTL¬A iff each t∈T occurs in σ.
Before characterizing these classes in EDMon, it is useful to temporarily extend our vocabulary and allow a mutation we will call 'blocked loss' and write 'bloss'. As with the other mutations considered so far, we interpret bloss by first describing its behavior on finite traces:
bloss:={⟨s,t⟩∣s=t or for some {u,x,v}⊆ΣS∗,s=u.x.v and t=u.v}.
Observe that the difference between loss and bloss is in what they allow one to drop—in loss, it's a single state; in bloss it's a finite sequence (block) of states. We interpret ⟨bloss⟩ by appeal to [[bloss]]:=Lift(bloss) just as we do
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
with all the other mutations. As we leave to the reader to check, all the results proved above still carry over for the so-enriched language.
We now pause to address a somewhat delicate point. In [23], the authors say of the foursome ooo, 1oss, cor, and st that 'it is possible to apply a combination of these mutations to a trace to transform it into any other trace.' They formalize this in the following theorem that they describe as showing 'Completeness of Mutations':
Given any two sets of non-empty [finite] traces S,S′⊆ΣS∗∖{ε}, [there is] k∈N [such that] (1loss∪cor∪st)k=S×S′.
As strictly written, this claim is false. Here are two straightforward ways to see this:
ΣS∗∖{ε} has uncountably many subsets. So there are uncountably many sets S×S′ with S,S′⊆ΣS∗∖{ε}. But there are only countably many sets of the form (1loss∪cor∪st)k—one for each number k. So clearly it cannot be the case that all of the uncountably many sets S×S′ are identical to some set of the form (1loss∪cor∪st)k.
Each member of (1loss∪cor∪st)k is infinite. If S and S′ are both finite, then S×S′ is finite. So for any such pair, it will not be the case that there is a k so that (1loss∪cor∪st)k=S×S′.
Examining the proof they offer for this claim, one suspects the authors meant to prove the following (true) claim that, in any event, is a better statement of the claim that combinations of ooo, 1oss, cor, and st can transform any trace into any other trace:
Theorem 31. Given any two sets of non-empty finite traces S,S′⊆ΣS∗∖{ε}, there is k∈N such that (1loss∪cor∪st)k⊇S×S′.
This claim is not only correct but can be proved along the exact lines of the proof they provide. However, it somewhat lacks the necessary power to be labeled a 'completeness' result. After all, the set containing the single relation Σ∗×Σ∗ has the same feature.⁵ The point, bringing it back to the matter of bloss, is that bloss is one of the many relations inexpressible in terms of just 1oss, cor, st, and ooo. We omit a detailed proof of this fact, but note that in essence such a proof can be extracted from the observation that bloss does not move scattered states but only sequential states and that it sometimes changes more than two states at a go. It's not hard to prove that no mutation generated by the usual foursome can have this combination of features.
Even so, bloss will be a temporary addition to our vocabulary for reasons that we will make clear in the next section of the paper. It's added, however, for its usefulness in stating the next result, before which we need one further definition: given a finite set of atoms S, an S-state description is a conjunction of the form (⋀t∈Tt)∧(⋀t∈S∖T¬t) for some T⊆S. Each case of the following theorem is now essentially an immediate consequence of the definitions of the terms involved:
Theorem 32. For all A∈LLTL we have the following:
A∈Prox iff either (A∧⟨st⟩¬A) or (¬A∧⟨st⟩A) is EDMon-satisfiable.
A∈Tolr iff A→[bloss−]A is EDMon-valid.
A∈Perm iff ¬A→[bloss−]¬A is EDMon-valid.
For finite S⊆At, A∈Incl iff there are state descriptions c1,…,cn so that A↔⋀i=1nFci is S-valid.
For finite S⊆At, A∈Excl iff there are state descriptions c1,…,cn so that ¬A↔⋀i=1nFci is S-valid.
In the latter two cases we say that A (resp. ¬A) is equivalent to a conjunction of F-ed state descriptions.
⁵Of course, there's nothing special about the particular threesome of 1oss, cor, and st here: given at most countably many generating relations and at most countably many ways of combining them, one can generate at most countably many relations.
3.3.2 Results about the Classes. The following inclusions were claimed in [23]:
• Tolr ⊆ NFR.
• Perm ⊆ NFS.
• Incl ⊆ Tolr \ NFS
• Excl ⊆ Perm \ NFR.
The first two are not quite correct—the empty property (⊥) is tolerant, but obviously not in NFR; the trivial property (⊥) is permissive, but obviously not in NFS. But once we correct for that, the results hold, as we leave the reader to check. The EDMon-validities that correspond to the corrected inclusions are the following:
Theorem 33. For all A∈LLTL we have the following:
• If A→[bloss−]A is EDMon-valid then A→PA is EDMon-valid.
• If ¬A→[bloss−]¬A is EDMon-valid then ¬A→P¬A is EDMon-valid.
If A is equivalent to a conjunction of F-ed state descriptions, then A→[bloss−]A is EDMon-valid and P¬A is not EDMon-valid.
If ¬A is equivalent to a conjunction of F-ed state descriptions, then ¬A→[bloss−]¬A is EDMon-valid and PA is not EDMon-valid.
PROOF. We show the first and the fourth and leave the others to the reader. For the first, suppose A→[bloss−]A is EDMon-valid and let s,σ⊨A. Since A∈LLTL, it follows that ε,s,σ⊨A. So ε,s,σ⊨[bloss−]A. But now observe that s∼blossε, so ε∼blosss. So s,s,σ⊨A, and thus s,σ⊨PA.
For the fourth, suppose that ¬A is equivalent to ⋀i=1nFci. If s,σ⊨¬A, then there are (not necessarily distinct) numbers m1,…,mn so that shiftmi(s,σ)⊨ci for 1≤i≤n. Let s∼blosst. Then either s=t or there are {u,x,v}⊆ΣS∗ so that s=u.v and t=u.x.v. Observe that for mi<∣u∣, that head(shiftmi(s,σ))=head(shiftmi(t,σ)) and that for mi≥∣u∣, head(shiftmi(s,σ))=head(shiftmi+∣x∣(t,σ)). So there are (not necessarily distinct) numbers m1′,…,mn′ so that shiftmi′(t,σ)⊨ci for 1≤i≤n and thus t,σ⊨¬A. So s,σ⊨[bloss−]¬A. Thus ¬A→[bloss−]¬A is valid.
To see that PA is not EDMon-valid, let Si be the set containing all positive literals in ci. Then S1…Sn,τ⊨¬A for all τ. So for no τ does S1…Sn,τ⊨A and thus S1…Sn,0⊨PA
3.4 Immunity
At last we come to immunity, which has been of central importance in NRV. For the forms of monitorability and kinds of properties that are of interest here, immunity to mutation is defined in [23] as follows: A is true-false immune to μ iff evc(A,s)=evc(A,t) for all ⟨s,t⟩∈μ. In EDMon, we can begin to capture this in the following way:
Lemma 34. A is true-false immune to μ iff all four of the following are true:
• for all s∼μt, if s,σ⊨DA for some σ then t,τ⊨DA for some τ, and
• for all s∼μt, if t,σ⊨DA for some σ then s,τ⊨DA for some τ, and
• for all s∼μt, if s,σ⊨D¬A for some σ then t,τ⊨D¬A for some τ, and
• for all s∼μt, if t,σ⊨D¬A for some σ then s,τ⊨D¬A for some τ.
PROOF. A is true false-immune to μ iff evc(A,s)=evc(A,t) for all ⟨s,t⟩∈μ. But this happens iff for all s∼μt, we have all of the following:
• if evc(A,s)=⊤, then evc(A,t)=⊤, and
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
if evc(A,t)=⊤, then evc(A,s)=⊤, and
if evc(A,s)=⊥, then evc(A,t)=⊥, and
if evc(A,t)=⊥, then evc(A,s)=⊥, and
After distributing the universal and applying Theorems 25 and 26, the result is immediate.
With one more lemma, we can characterize immunity in a perspicuous way:
Lemma 35. s,σ⊨DA iff there is some τ so that s,τ⊨DA.
PROOF. Left to right is immediate. For right to left, suppose s,τ⊨DA. Then s,τ′⊨DA for all τ′. But then s,σ⊨DA as well.
Theorem 36. A is true-false immune to μ iff all of the following are EDMon-valid:
• DA →[μ]DA
• DA →[μ−]DA
• D¬A→[μ]D¬A
• D¬A→[μ−]D¬A
PROOF. Note that DA→[μ]DA is valid iff for all ⟨s,σ⟩, if s,σ⊨DA, then s,σ⊨[μ]DA. By the previous lemma, this happens iff for all s∼μt, if s,σ⊨DA for some σ, then t,τ⊨DA for some τ. A similar argument shows that D¬A→[μ]D¬A is valid iff for all s∼μt, if s,σ⊨D¬A for some σ, then t,τ⊨D¬A for some τ. And a similar pair of arguments establish that DA→[μ−]DA is valid iff for all s∼μt, if t,σ⊨DA for some σ then s,τ⊨DA for some τ and D¬A→[μ−]D¬A is valid iff for all s∼μt, if t,σ⊨D¬A for some σ then s,τ⊨D¬A for some τ.
Also isolated in [23] is the restricted form of immunity known as trustworthiness. The definition they provide is this: a verdict v∈{⊤,⊥,?} is trustworthy for A with respect to μ when for all s∼μt, if evc(A,t)=v then evc(A,s)=v. Two thirds of the following theorem characterizing trustworthiness are then essentially immediate:
Theorem 37. For all A∈LLTL and all mutations μ, ⊤ is trustworthy for A with respect to μ iff DA→[μ−]DA is EDMon-valid; ⊥ is trustworthy for A with respect to μ iff D¬A→[μ−]D¬A is EDMon-valid; and ¬ is trustworthy for A with respect to μ iff (PA∧P¬A)→[μ−](PA∧P¬A) is valid.
PROOF. Only the ?-part needs work. So, suppose that for all s∼μt, if evc(A,t)=?, then evc(A,s)=?. Then for all s∼μt if for all τ,t,τ∈DA and for all τ,t,τ∈D¬A, then for all σ,s,σ∈DA and s,σ∈D¬A. But this happens iff for all s∼μt, if t,τ⊨PA∧P¬A, then s,τ⊨PA∧P¬A. But this happens iff t,τ⊨(PA∧P¬A)→[μ−](PA∧P¬A) for all ⟨t,τ⟩, which is to say iff (PA∧P¬A)→[μ−](PA∧P¬A) is valid.
Note that the antecedents of these conditions are exhaustive: clearly for all points ⟨s,σ⟩, either s,σ⊨DA∨D¬A or s,σ⊨¬(DA∨D¬A). But in the latter case, s,σ⊨PA∧P¬A. Using this, we then get an analogue of Corollary 2 from [23]:
Corollary 38. A is true-false immune to μ iff ⊤,⊥, and ¬ are all trustworthy for A with respect to μ.
PROOF. By Theorem 36 it suffices to show that ⊤,⊥, and ¬ are all trustworthy for A with respect to μ iff all four of DA→[μ]DA,DA→[μ−]DA,D¬A→[μ]D¬A, and D¬A→[μ−]D¬A are valid. But ⊤ is trustworthy iff DA→[μ−]DA is valid and ⊥ is trustworthy iff D¬A→[μ−]D¬A. And if DA→[μ]DA and D¬A→[μ]D¬A are both valid then it's not too hard to see that (PA∧P¬A)→[μ−](PA∧P¬A) is also valid.
So what remains is showing that if DA→[μ−]DA and D¬A→[μ−]D¬A and (PA∧P¬A)→[μ−](PA∧P¬A) are all valid, then so too are DA→[μ]DA and D¬A→[μ]D¬A.
To that end, suppose s,σ⊨DA and s∼μt. To show that t,σ⊨DA it suffices (by the observation preceding this result) to show that t,σ⊨D¬A and t,σ⊨PA∧P¬A. But this isn't hard: since s∼μt,t∼μ−s. Since D¬A→[μ−]D¬A is valid, if t,σ⊨D¬A, then s,σ⊨D¬A, contradicting s,σ⊨DA. Similarly, if t,σ⊨PA∧P¬A, then s,σ⊨P¬A, again a contradiction. So t,σ⊨DA. A similar argument shows that D¬A→[μ]D¬A. □
4 Some EDMon Validities
Giving a complete axiomatization of the set of EDMon-valid formulas is probably impossible. But we can still make headway on describing some of the important classes of EDMon-validities, and we'll end our introduction of EDMon by doing so, and then showing a few things the resulting partial axiomatization can be useful for.
4.1 Relationship With Other Logics
We begin by describing some of the important closure principles EDMon obeys. Here is the first, most basic one whose proof we omit:
Theorem 39. All EDMon-instances of propositional tautologies are EDMon-valid.
The proof of each part of the following theorem is trivial, so omitted:
Theorem 40. All of the following rules preserve EDMon-validity for all EDMon-formulas A and B, LTL-formulas ϕ and mutations μ: A∧BA,B, BA→B,A, [μ]AA, [obs]AA, DAA, χϕϕ, and Gϕϕ
Lemma 41. For ϕ∈LLTLS, if ϕ is LTL-valid, then ϕ is S-valid.
PROOF. Suppose ϕ∈LLTL is not EDMon-valid. Then there are s∈ΣS∗,σ∈ΣSω such that s,σ⊨ϕ. By Lemma 8, trace(s,σ)⊨LTLϕ. Therefore, ϕ is not LTL-valid.
Corollary 42. For all ϕ1,ϕ2, and ϕ3 in LLTL, all of the following are valid: 6
Recall that test-free propositional dynamic logic with converse (PDL −; see [18]) has the same mutation-combining (or, in PDL's vocabulary, program-combining) operations as EDMon, but a countable infinity of atomic programs and no 'LTL-sublayer'. It is axiomatized as the modus-ponens and necessitation closure of propositional logic plus the following:
6This is the axiomatization presented in [15, §4.3].
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
(PDL7) A→[α]⟨α−⟩A
(PDL8) A→[α−]⟨α⟩A
Lemma 43. All well-formed EDMon-substitutions of PDL-theorems are EDMon-valid.
Before proving this lemma, we’ll note that there’s a bit of sleight of hand going on here with ‘well-formed substitutions’. The point is that in the axioms for PDL, one can substitute any mutation for α, can substitute both obs and obs* for α, and can substitute D whenever the result is grammatical and is a genuine substitution. Concretely, this means that all of these substitutions are permitted in (PDL1) and (PDL2), that only mutations are allowed in (PDL3), (PDL4), (PDL7) and (PDL8), and that mutations and observations are both allowed in PDL5 and PDL6.
PROOF. Given Theorems 39 and 40, it suffices to show that every well-formed instance of the above axioms is EDMon-valid. We provide the proofs for three of them and leave the rest to the reader.
For PDL1, we consider three cases: α=μ a mutation, α=obs, and α=D. For the first case, suppose s,σ⊨[μ](A→B). To see that s,σ⊨[μ]A→[μ]B, suppose s,σ⊨[μ]A and let s∼μt. Then t,σ⊨A→B and t,σ⊨A. So t,σ⊨B and thus s,σ⊨[μ]A→[μ]B.
For the second case, suppose s,σ⊨[obs](A→B) and let s,σ⊨[obs]A. Then s.σ1,σ1⊨A→B and s.σ1,σ1⊨A. So s.σ1,σ1⊨B.
For the third case, suppose s,σ⊨D(A→B) and let s,σ⊨DA. Choose τ∈Σω. Then s,τ⊨A→B and s,τ⊨A. So s,τ⊨B.
For PDL6, we consider: α=μ a mutation and α=obs. But as was just witnessed in the PDL1 case, the two end up being essentially parallel so we consider only the first. Thus, suppose s,σ⊨[μ∗](A→[μ]A) and s,σ⊨A. We show by induction that for all k, if s∼μkt, then t,σ⊨A. Since s,σ⊨A, the base case is already established. Now suppose that for all s∼μkt, t,σ⊨A. Since s,σ⊨[μ∗](A→[μ]A), t,σ⊨A→[μ]A. So since t,σ⊨A, t,σ⊨[μ]A. So for all u with t∼μu, u,σ⊨A. Thus for all u with s∼μk+1u, u,σ⊨A.
For PDL8, the only well-formed options are the α=μ options. So, suppose s,σ⊨A and choose t so that s∼μ−t. Then t∼μs. So since s,σ⊨A, t,σ⊨⟨μ⟩A. Thus since t was arbitrary, s,σ⊨[μ−]⟨μ⟩A.
Corollary 44. The following are EDMon-valid: [(μ−)−]A↔[(μ−)∗]A, [(μ1∪μ2)−]A↔[μ1−∪μ2−]A, and [(μ1;μ2)−]A↔[μ2−;μ1−]A.
4.2 General Modal Features
Theorem 45. d is reflexive, as is ∥μ∥ for all mutations μ.
PROOF. Immediate for d; by a straightforward induction on mutations for μ.
Corollary 46. All instances of [μ]A→A and DA→A are valid.
Theorem 47. All of the following hold:
(a) st−⊆loss,st⊆loss−
(b) oook⊆cor2k
(c) ooo=ooo, cor=cor−
(d) cork⊆(loss;loss−)k
PROOF. For part (a), let ⟨s,t⟩∈st−. Therefore, there are u,v∈ΣS∗ and x∈ΣS such that s=uxv and t=uxv. By definition, ⟨s,t⟩∈loss. The second part is similar.
Part (b) is proved by induction on k. The inductive case is handled by the following observation. Suppose ⟨s,t⟩∈oor, so there are u,v∈ΣS∗ and x,y∈ΣS such that s=uxyv and t=uyxv. Then, ⟨uxyv,uxxv⟩∈cor, and ⟨uxxv,uyxv⟩∈cor, so ⟨s,t⟩∈cor2.
Part (c) is immediate from the definitions.
Part (d) is proved by induction on k. The inductive case is handled by the following observation. Suppose ⟨s,t⟩∈cor, where for some u,v∈ΣS∗ and x,y∈ΣS, s=uxv and t=uyv. Then ⟨uxv,uv⟩∈loss, ⟨uyv,uv⟩∈loss, and ⟨uv,uyv⟩∈loss, so ⟨s,t⟩∈(loss;loss−).
Corollary 48. All instances of each of the following are valid:
(a) [loss]A→[st−]A;[loss−]A→[st]A
(c) [ooo]A↔[ooo−]A;[cor]A↔[cor−]A
(b) [cor2k]A→[oook]A
(d) [(loss;loss−)k]A→[cork]A
Next, we will turn to some results building to a result concerning the relation ∥(1loss∪cor∪st)∗∥, which we discussed in §3.3.1:
Lemma 49. For all s∈ΣS∗, ⟨s,ε⟩∈loss∗
PROOF. The proof is by induction on k=∣s∣. For k=0, ⟨ε,ε⟩∈loss, by definition.
For the inductive case, we have s=tx, for some t∈ΣS∗ and x∈ΣS. By the inductive hypothesis, ⟨t,ε⟩∈loss∗, and ⟨tx,x⟩∈loss, by definition. Therefore, ⟨s,ε⟩∈loss∗, as desired.
Lemma 50. For all s,t∈ΣS∗, ⟨st,s⟩∈loss∗
PROOF. The proof is by induction on ∣t∣. If ∣t∣=0, then the result is immediate.
Suppose t=ux, for some u∈ΣS∗ and x∈ΣS. By the inductive hypothesis, ⟨su,s⟩∈loss∗. As ⟨sux,su⟩∈loss∗, it follows that ⟨st,s⟩∈loss∗, as desired.
Lemma 51. For all s,t∈ΣS∗, if ∣s∣=∣t∣, then ⟨s,t⟩∈cor∗
PROOF. The proof is by induction on k=∣s∣. For k=0, ⟨ε,ε⟩∈cor, by definition.
For the inductive case, let s=ux and t=vy, for some x,y∈ΣS and some v,u∈ΣS∗ such that ∣u∣=∣v∣. By the inductive hypothesis, ⟨u,v⟩∈cor∗, so ⟨ux,vx⟩∈cor∗. It then follows that ⟨ux,vy⟩∈cor∗, as desired.
Lemma 52. Let s∈ΣS∗ be such that ∣s∣≥1. For all t∈ΣS∗, ⟨s,st⟩∈(st∪cor)∗.
PROOF. Let s∈ΣS∗ be such that ∣s∣≥1. The proof is by induction on ∣t∣. The case where ∣t∣=0 is immediate.
Suppose ∣t∣=k+1, so t=ux, for some u∈ΣS∗ such that ∣u∣=k and x∈ΣS. If k≥1, then u=vy, for some v∈ΣS∗ and y∈ΣS. By the inductive hypothesis, ⟨s,svy⟩∈(st∪cor)∗. It follows that ⟨s,svyy⟩∈(st∪cor)∗, so ⟨s,svyx⟩∈(st∪cor)∗, as desired. Suppose that k=0. Then since ∣s∣≥1, s=wz, for some w∈ΣS∗ and z∈ΣS. It follows that ⟨wz,wzz⟩∈(st∪cor)∗, so ⟨wz,wzx⟩∈(st∪cor)∗, which is ⟨s,sx⟩∈(st∪cor)∗, as desired.
Lemma 53. Let s,t∈ΣS∗ be such that ∣s∣≥1 and ∣t∣≥1. Then, ⟨s,t⟩∈(st∪cor∪loss)∗.
PROOF. Let s,t∈ΣS∗ be such that ∣s∣≥1 and ∣t∣≥1. Suppose ∣s∣≤∣t∣. For some u,v∈ΣS∗, t=uv, where ∣u∣=∣s∣. By Lemma 51, ⟨s,u⟩∈(st∪cor∪loss)∗. By Lemma 52, ⟨u,uv⟩∈(st∪cor∪loss)∗, so ⟨s,uv⟩∈(st∪cor∪loss)∗, which is to say ⟨s,t⟩∈(st∪cor∪loss)∗, as desired.
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
Suppose ∣s∣>∣t∣. Then s=uv, for some u,v∈ΣS∗ where ∣u∣=∣t∣. By Lemma 50, ⟨uv,u⟩∈(st∪cor∪loss)∗. By Lemma 51, ⟨u,t⟩∈(st∪cor∪loss)∗, so ⟨uv,t⟩∈(st∪cor∪loss)∗, which is to say ⟨s,t⟩∈(st∪cor∪loss)∗, which was to be proved. □
Let ΣS+={s∈ΣS∗:∣s∣≥1}. Then, (st∪cor∪loss)∗ is the universal relation on ΣS+. It is not the universal relation on ΣS∗, in fact it is not even an equivalence relation, since symmetry can fail. For every s∈ΣS∗, ⟨s,ε⟩∈(st∪cor∪loss)∗, but when s=ε, ⟨ε,s⟩∈/(st∪cor∪loss)∗. If instead of st, we used the relation that simply inserted an element, rather than duplicating an existing element, then we would have the universal relation, rather than something merely close to it. Let us make this more precise.
Theorem 54. For all s,t∈ΣS∗, if ∣s∣≥1, then ⟨s,t⟩∈(st∪cor∪loss)∗
PROOF. Suppose s,t∈ΣS∗ and ∣s∣≥1. If ∣t∣=0, then by Lemma 49, ⟨s,t⟩∈(st∪cor∪loss)∗. If ∣t∣≥1, then by Lemma 53, ⟨s,t⟩∈(st∪cor∪loss)∗. □
As discussed above, the mutation (st∪cor∪loss)∗ plays a distinguished role in the work of [23]. We have (slightly) generalized their result, and below we will show that the modal version of this mutation has S5-like axioms. First, we will need an auxiliary result:
Lemma 55. For k≥0, (DXkp∨DXk¬p) is true at exactly the points ⟨s,σ⟩ with ∣s∣>k.
PROOF. Moving quickly through the semantics, note that s,σ⊨DXkp∨DXk¬p iff either for all τ, shiftk(s,τ)⊨p or for all τ, shiftk(s,τ)⊨¬p.
If ∣s∣>k, then head(shiftk(s,τ))=s(k+1). So if p∈s(k+1), then for all τ, shiftk(s,τ)⊨p while if p∈/s(k+1) for all τ, shiftk(s,τ)⊨¬p. So s,σ⊨DXkp∨DXk¬p.
If ∣s∣=l≤k, then head(shiftk(s,τ))=τ(k−l+1). So if τ=0, then shiftk(s,τ)⊨p while if τ={p}, shiftk(s,τ)⊨¬p. So it is not the case that all τ, shiftk(s,τ)⊨p and it is not the case that all τ, shiftk(s,τ)⊨¬p. So s,σ⊨DXkp∨DXk¬p. □
It follows, of course, that ¬(DXkp∨DXk¬p) is true at exactly the points ⟨s,σ⟩ with ∣s∣≤k. In particular, ¬(Dp∨D¬p) is true at exactly initial points, so we call it init.
Theorem 56. All instances of the following are EDMon-valid:
PROOF. We prove this via reductio. Assume s,σ⊨⟨(loss∪cor∪st)∗⟩A and s,σ⊨[(loss∪cor∪st)∗](init∨⟨(loss∪cor∪st)∗⟩A). So, there is t such that s∼(loss∪cor∪st)∗t so that t,σ⊨init and t,σ⊨⟨(loss∪cor∪st)∗⟩A. Since t,σ⊨init,∣t∣=0. Since t,σ⊨⟨(loss∪cor∪st)∗⟩A, for all u, if t∼(loss∪cor∪st)∗u, then u,σ⊨A.
Since ∣t∣=0, it follows by Theorem 54 that u,σ⊨A for all u. But since s,σ⊨⟨(loss∪cor∪st)∗⟩A, there is some v so that v,σ⊨A, which is a contradiction. □
Thus, we see that the mutation (loss∪cor∪st)∗ has S5-like axioms, here having demonstrated the validity of a 5-like axiom. Above we highlighted a difference that would emerge had we focused on a different mutation, namely an insertion rather than st. Due to the richness of the language, we have this mutation available, it is loss−. This suggests that the mutation (loss∪loss−)∗ would be worth a look for comparison.
Lemma 57.(loss∪cor∪st)∗⊆(loss∪loss−)∗.
PROOF. By Theorem 47, st⊆loss− and cor∗⊆(loss;loss−)∗⊆(loss∪loss−)∗. Therefore, (loss∪cor∪st)∗⊆(loss∪loss−)∗, as desired. □
Corollary 58. For all s,t∈ΣS∗, if ∣s∣≥1, then ⟨s,t⟩∈(loss∪loss−)∗
PROOF. By Theorem 54 and the preceding lemma. □
Lemma 59. For all s∈ΣS∗ such that ∣s∣=1, ⟨ε,s⟩∈(loss∪loss−)∗
PROOF. For all s∈ΣS∗ such that ∣s∣=1, ⟨s,ε⟩∈loss. Therefore, by definition, ⟨ε,s⟩∈loss−, so ⟨ε,s⟩∈(loss∪loss−)∗, as desired. □
Theorem 60. For all s,t∈ΣS∗, ⟨s,t⟩∈(loss∪loss−)∗
PROOF. This is immediate from Lemma 59 and Corollary 58. □
Thus, we establish that (loss∪loss−)∗ is universal on ΣS∗. As a consequence, it is immediate that the corresponding mutation obeys S5 principles.
Theorem 61. All instances of the following are EDMon-valid:
⟨(loss∪loss−)∗⟩A→[(loss∪loss−)∗]⟨(loss∪loss−)∗⟩A
PROOF. This follows from the fact that ((loss∪loss−)∗) is universal on ΣS∗ as in Theorem 60. □
The logic of the (loss∪loss−)∗ mutation is, then, properly S5, unlike the logic of (loss∪cor∪st)∗. Using EDMon, we have highlighted a small difference in mutations that results in a substantive logical difference. We think this further demonstrates the utility of EDMon, and suggests further investigation into the different combinations of mutations would be worthwhile.
4.3 Specialized Validities
So far we've examined general EDMon validities—validities that hold because of EDMon's relationship to other logics. Now we look at a few EDMon validities that hold because of its own peculiar features. In fact, we've already seen a few such results:
For ϕ∈LLTL, ϕ→⟨obs∗⟩ϕ is EDMon-valid (Lemma 13)
For all A and all mutations μ, ⟨μ⟩⟨obs⟩A→⟨obs⟩⟨μ⟩A is EDMon-valid (Lemma 14).
For all A,D⟨obs⟩A→⟨obs⟩DA is EDMon-valid (Lemma 15).
For all A and all mutations μ,D[μ]A↔[μ]DA is EDMon-valid (Lemma 16).
These are misleadingly simple. They have the form of axioms one is accustomed to seeing in other areas of modal logic. To get a sense for how much of a genuine zoo the set of EDMon validities is, the reader should remind themselves of the content of Theorems 18 through 22. Or, consider the following theorem:
Theorem 62. For all A and B in LLTL, the following is EDMon-valid:
(P⟨obs∗⟩DA∧P⟨obs∗⟩DB)→P⟨obs∗⟩(DA∧⟨cor∗⟩DB)
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
Fig. 1. A Few Axioms and Rules for EDMon. (ϕ and ϕi in LLTL)
PROOF. Suppose s,σ⊨P(obs∗)DA and s,σ⊨P(obs∗)DB. Then there are τ,ρ,k, and l so that s.τk,τk⊨DA and s.ρl,ρl⊨DB. It follows that s.τk,β⊨A for all β and s.ρl,β⊨B for all β. So in particular, s.τk,(τmax(k,l))k,α⊨A for all α and s.ρl,(ρmax(k,l))l,α⊨B for all α. Since A and B are in LLTL, it follows from Lemma 8 that s.τk⋅(τmax(k,l))k,α⊨A for all α and s.ρl⋅(ρmax(k,l))l,α⊨B for all α. So s.τmax(k,l),τmax(k,l)⊨DA and s.ρmax(k,l),τmax(k,l)⊨DB. Next note that s.τmax(k,l)∼cormax(k,l)s.ρmax(k,l). So since s.ρmax(k,l),τmax(k,l)⊨DB, we have that s.τmax(k,l),τmax(k,l)⊨⟨cor∗⟩DB. So s,τ⊨⟨obs∗⟩(DA∧⟨cor∗⟩DB). Thus s,σ⊨P(obs∗)(DA∧⟨cor∗⟩DB). □
Note that this is, modally speaking, unusual behavior. We have here a way to factor paired diamond-shaped modalities out of a conjunction, provided the result is mediated by a third diamond-shaped modality.
4.4 Putting the Validities to Work
In Figure 1 we collect the axioms and rules we have shown EDMon to accept. In spite of EDMon-validity's zoo-like behavior that was just demonstrated, we would like to show that the particular family singled out here is nonetheless quite often useful. We will do so by verifying EDMon-analogues of a few results in the literature. Here is a nice example of such: Theorem 2 of [23] says, in our vocabulary, that A is true-false immune to μ iff A is true-false immune to μ∗. We can prove this as follows:
Theorem 63.A is true-false immune to μ iff A is true false immune to μ∗.
PROOF. The 'if' direction is immediate. For the 'only if' direction, note by Theorem 36 that if A is true-false immune to μ, then DA→[μ]DA, DA→[μ−]DA, D¬A→[μ]D¬A, and D¬A→[μ−]D¬A are all valid. It follows by R3 that [μ∗](DA→[μ]DA), [(μ−)∗](DA→[μ−]DA), [μ∗](D¬A→[μ]D¬A), and [(μ−)∗](D¬A→[μ−]D¬A) are all valid. So by R2, PDL6, and Corollary 44, DA→[μ∗]DA, DA→[(μ∗)−]DA, D¬A→[μ∗]D¬A, and D¬A→[(μ∗)−]D¬A are all valid. So again by Theorem 36, A is true false immune to μ∗. □
Of course, a version of this result for trustworthy verdicts (which would correspond to Corollary 1 in [23]) is immediately available by essentially the same proof:
Theorem 64. If v∈{⊤,⊥,?} is trustworthy for A with respect to μ, then v is trustworthy for A with respect to μ∗.
We can also use the axioms just introduced to explain our previous insistence on bloss being a merely temporary addition to our vocabulary. Recall that we introduced bloss in order to express Tolr in EDMon-vocabulary: A∈Tolr iff A→[bloss−]A is EDMon valid. But by the proof of Theorem 63, we see that A→[bloss−]A is EDMon-valid iff A→[(bloss−)∗]A is EDMon-valid. But also, (loss−)∗=(bloss−)∗ because scattered insertions (what (loss−)∗ does) just are scattered block insertions of block-length 1 (which (bloss−)∗ can do) and n scattered block insertions of lengths k1,…,kn (the result of any single application of (bloss∗)) can be accomplished by ∑i=1nki applications of loss−, which (loss−)∗ allows.
So A→[(bloss−)∗]A is valid iff A→[(loss−)∗]A is valid. It follows that A→[bloss−]A is valid iff A→[(loss−)∗]A is valid iff A→[loss−]A is valid. Since the same chain of argumentation clearly works to show that ¬A→[bloss−]¬A iff ¬A→[(loss−)∗]¬A, bloss can be dispensed with in the only two roles it played: characterizing Tolr and characterizing Perm.
Moving on, we provide a different demonstration of the value of the axioms. In [23], they state the following as their Theorems 8 and 9 (paraphrased and restricted to the cases of concern):
A∈Tolr iff ⊤ is trustworthy for A with respect to loss.
A∈Perm iff ⊥ is trustworthy for A with respect to loss.
For each of these, only one direction of the biconditional is actually proved in [23]. One suspects that the other direction was meant to be removed in editing, since in both cases the other direction is in fact false:
Theorem 65.⊤ is (vacuously) trustworthy for Gp, but Gp is not tolerant. ⊥ is (vacuously) trustworthy for Fp but Fp is not permissive.
PROOF. Since ¬Dgp is valid, so too is Dgp→[μ−]Gp. So by Theorem 37, ⊤ is trustworthy for Gp. But clearly Gp is not tolerant, as insertion of any single non-p state will falsify it. A similar argument works for the other half. □
However, for the direction of each of these results that does hold, the above axiom system admits a very quick proof:
Theorem 66. If A∈Tolr, then ⊤ is trustworthy for A with respect to loss and if A∈Perm then ⊥ is trustworthy for A with respect to loss.
PROOF. By Theorem 32 and the discussion above, if A∈Tolr, then A→[loss−]A is EDMon-valid. Thus by R5 so is D(A→[loss−]A). It follows by R2 and PDL1 that DA→D[loss−]A is valid. Thus by SV4 so is DA→[loss−]DA. It follows by Theorem 37 that ⊤ is trustworthy for A with respect to loss. A similar argument works in the other case. □
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
We should also be clear that these validities are quite useful even in cases where they can't do the job entirely on their own. As an example, we have the following theorem, which is a version of Theorem 11 in [23] and in which we blend syntactic and semantic reasoning:
Theorem 67. For A∈LLTL, if DA→[cor]DA and D¬A→[cor]D¬A are EDMon-valid, then exactly one of DA, D¬A and PA∧P¬A is as well.
PROOF. Since (DA∨D¬A)∨(PA∧P¬A) is equivalent to an instance of excluded middle, at every point at least one of DA, D¬A and PA∧P¬A is true. It's also clear that at every point, no more than one of them can be true, from which it follows that (a) no more than one of them can be valid and (b) at every point exactly one of them is true.
To see that at least one is, first note that if DA→[cor]DA and D¬A→[cor]D¬A are both EDMon-valid, then by GM5, DA→[cor−]DA and D¬A→[cor−]D¬A are as well. Thus by Theorem 36, A is true-false immune to cor. So by Theorem 63, A is true-false immune to cor∗. So by Corollary 38 and Theorem 37 DA→[cor∗]DA and D¬A→[cor∗]D¬A are EDMon-valid.
Suppose at some point ⟨s,σ⟩, DA is true. Then s,σ⊨[cor∗]DA. But for all t with ∣t∣=∣s∣, s∼cor∗t. So t,τ⊨A for all t with ∣t∣=∣s∣ and all τ. Thus by Lemma 8, ρ⊨LTLA for all ρ∈Σω, from which we obviously get that DA is EDMon-valid. So the result follows if DA is ever true. It follows similarly if D¬A is ever true, in which case the same argument gives that D¬A is EDMon-valid. And if DA and D¬A are never true, then DA∨D¬A is never true. So ¬(DA∨D¬A) is always true. But then PA∧P¬A is always true. □
5 Conclusion
It's hard to compare things. EDMon makes it easier. There are lots of options. EDMon makes them visible. It's easy to make mistakes. EDMon helps correct them, as has been shown above. But there remain mistakes outside of the scope of EDMon left to be caught. So in conclusion we reflect on a direction in which generalizing EDMon is likely to extend the utility of the approach even more broadly. Consider the work of Finkbeiner on hyperproperties in [13], that is, relations that hold not of between individual traces but between sets of traces.
While the formalism introduced in this paper is insufficiently expressive to articulate many hyperproperties, the scheme may clearly be adapted to model monitorability not only of LTL but of the more expressive logics in which hyperproperties may be addressed. For example, the logic HyperLTL introduced in [9] can be used as a basis on which the additional mutation modalities may be added.
To sketch such a generalization in a way that meets our own idioms, we note that the syntax of HyperLTL includes quantifiers ∃π and ∀π where ∃π.A and ∀π.A are read as “there exists a trace such that A” and “for any trace, A”, respectively. To more formally express this, first consider a set of trace variables V={π1,π2,...,} and a trace assignment as a function Π:V→ΣS∗×ΣSω. Let a trace substitution Π[π→{s,σ}] be the assignment differing from Π only by mapping instances of the variable π to {s,σ}. Validity can be then defined in terms of a trace assignments with T⊆ΣS∗×ΣSω by extending a natural reinterpretation of the validity clauses to hold between a formula and a tuple T,Π,s,σ. Then include the following:
• T,Π,s,σ⊨∃π.A iff there exists a ⟨s,σ⟩∈T such that T,Π[π→⟨s,σ⟩], s,σ⊨A
• T,Π,s,σ⊨llπ.A iff for all ⟨s,σ⟩∈T, it holds that T,Π[π→⟨s,σ⟩], s,σ⊨A
As Finkbeiner catalogs, many hyperproperties can be represented in the language of HyperLTL that express important security-related concepts. These include observational determinism (asserting the indistinguishability of traces based Manuscript submitted to ACM on low-security input, see [37]) or noninference (asserting that arbitrary replacement of high-security inputs will not be reflected in observations, see [27]). Coupling logics like HyperLTL with the techniques described above to define e.g. a HyperEDMon promises to provide novel ways to consider an even broader palette of considerations from data security.
References
[1] Alexis Aurandt, Phillip H Jones, and Kristin Yvonne Rozier. 2025. Towards a safe, verified runtime monitor for embedded systems: R2U2 in embedded rust. In NASA Formal Methods Symposium. Springer, 31–53.
[2] David Basin, Felix Klaedtke, and Eugen Zálinescu. 2017. Runtime verification of temporal properties over out-of-order data streams. In International Conference on Computer Aided Verification. Springer, 356–376.
[3] Andreas Bauer, Martin Leucker, and Christian Schallhart. 2011. Runtime verification for LTL and TLTL. ACM Transactions on Software Engineering and Methodology (TOSEM) 20, 4 (2011), 1–64.
[4] Jan Baumeister, Bernd Finkbeiner, Florian Kohn, and Frederik Scheerer. 2024. A tutorial on stream-based monitoring. In International Symposium on Formal Methods. Springer, 624–648.
[5] Jan Baumeister, Bernd Finkbeiner, Sebastian Schirmer, Maximilian Schwenger, and Christoph Torens. 2020. RTLola cleared for take-off: monitoring autonomous aircraft. In International Conference on Computer Aided Verification. Springer, 28–39.
[7] Matthew Cauwels, Abigail Hammer, Benjamin Hertz, Phillip H Jones, and Kristin Y Rozier. 2020. Integrating runtime verification into an automated UAS traffic management system. In European Conference on Software Architecture. Springer, 340–357.
[8] Zhe Chen, Yifan Wu, Ou Wei, and Bin Sheng. 2018. Deciding weak monitorability for runtime verification. In Proceedings of the 40th International Conference on Software Engineering: Companion Proceedings. 163–164.
[9] Michael R. Clarkson, Bernd Finkbeiner, Masoud Koleini, Kristopher K. Micinski, Markus N. Rabe, and César Sánchez. 2014. Temporal Logics for Hyperproperties. In Principles of Security and Trust, Martin Abadi and Steve Kremer (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 265–284.
[10] Stéphane Demri, Valentin Goranko, and Martin Lange. 2016. Temporal logics in computer science: finite-state systems. Vol. 58. Cambridge University Press.
[11] Charles D Edwards, David J Bell, Roy E Gladden, Peter A Ilott, Thomas C Jedrey, M Daniel Johnston, Jennifer L Maxwell, Ricardo Mendoza, Gaylon W McSmith, Christopher L Potts, et al. 2013. Relay support for the mars science laboratory mission. In 2013 IEEE Aerospace Conference. IEEE, 1–14.
[12] Ronald Fagin, Joseph Y Halpern, Yoram Moses, and Moshe Vardi. 1995. Reasoning about knowledge. The MIT press.
[13] Bernd Finkbeiner. 2023. Logics and Algorithms for Hyperproperties. ACM SIGLOG News 10, 2 (July 2023), 4–23. doi:10.1145/3610392.3610394
[14] Michael J Fischer and Richard E Ladner. 1979. Propositional dynamic logic of regular programs. Journal of computer and system sciences 18, 2 (1979), 194–211.
[15] Valentin Goranko and Antje Rumberg. 2025. Temporal Logic. In The Stanford Encyclopedia of Philosophy (Summer 2025 ed.), Edward N. Zalta and Uri Nodelman (Eds.). Metaphysics Research Lab, Stanford University.
[16] Joseph Y. Halpern, Ron van der Meyden, and Moshe Y. Vardi. 2004. Complete Axiomatizations for Reasoning about Knowledge and Time. SIAM J. Comput. 33, 3 (2004), 674–703. doi:10.1137/S0097539797320906
[17] Joseph Y. Halpern and Moshe Y. Vardi. 1989. The complexity of reasoning about knowledge and time. I. Lower bounds. J. Comput. System Sci. 38, 1 (1989), 195–237. doi:10.1016/0022-0000(89)90039-1
[18] David Harel, Dexter Kozen, and Jerzy Tiuryn. 2000. Dynamic Logic. MIT Press.
[19] Klaus Havelund and Allen Goldberg. 2005. Verify your runs. In Working Conference on Verified Software: Theories, Tools, and Experiments. Springer, 374–383.
[20] Jesper G. Henriksen and P.S. Thiagarajan. 1999. Dynamic linear time temporal logic. Annals of Pure and Applied Logic 96, 1 (1999), 187–207. doi:10.1016/S0168-0072(98)00039-6
[21] Jaakko Hintikka. 1962. Knowledge and Belief. Cornell University Press, Ithaca, N.Y..
[22] Chris Johannsen, Phillip Jones, Brian Kempa, Kristin Yvonne Rozier, and Pei Zhang. 2023. R2u2 version 3.0: Re-imagining a toolchain for specification, resource estimation, and optimized observer generation for runtime verification in hardware and software. In International Conference on Computer Aided Verification. Springer, 483–497.
[23] Sean Kauffman, Klaus Havelund, and Sebastian Fischmeister. 2021. What can we monitor over unreliable channels? International Journal on Software Tools for Technology Transfer 23, 4 (2021), 579–600.
[24] Orna Kupferman and Moshe Y Vardi. 2001. Model checking of safety properties. Formal methods in system design 19, 3 (2001), 291–314.
[25] Leslie Lamport. 1977. Proving the correctness of multiprocess programs. IEEE transactions on software engineering 2 (1977), 125–143.
[26] Étienne Lozes and Jules Villard. 2011. Reliable contracts for unreliable half-duplex communications. In International Workshop on Web Services and Formal Methods. Springer, 2–16.
[27] John McLean. 1994. A General Theory of Composition for Trace Sets Closed under Selective Interleaving Functions. In Proceedings of the 1994 IEEE Symposium on Security and Privacy (SP '94). IEEE Computer Society, USA, 79–93.
[28] John-Jules Ch Meyer and Wiebe van der Hoek. 1995. Epistemic Logic for AI and Computer Science. Cambridge University Press.
Thomas Macaulay Ferguson, Shay Allen Logan, and Shawn Standefer
[29] Doron Peled and Klaus Havelund. 2019. Refining the safety–liveness classification of temporal properties according to monitorability. In Models, Mindsets, Meta: The What, the How, and the Why Not? Essays Dedicated to Bernhard Steffen on the Occasion of His 60th Birthday. Springer, 218–234.
[30] Doron Peled and Thomas Wilke. 1997. Stutter-invariant temporal properties are expressible without the next-time operator. Inform. Process. Lett. 63, 5 (1997), 243–246.
[31] Amir Pnueli. 1977. The temporal logic of programs. In 18th annual symposium on foundations of computer science (sfcs 1977). IEEE, 46–57.
[32] Amir Pnueli and Aleksandr Zaks. 2006. PSL model checking and run-time verification via testers. In International Symposium on Formal Methods. Springer, 573–586.
[33] Vaughan R Pratt. 1976. Semantical considerations on Floyd-Hoare logic. In 17th Annual Symposium on Foundations of Computer Science (sfcs 1976). IEEE, 109–121.
[34] Robert Stalnaker. 2006. On Logics of Knowledge and Belief. Philosophical Studies 128, 1 (2006), 169–199. doi:10.1007/s11098-005-4062-y
[35] Rania Taleb, Sylvain Hallé, and Raphaël Khoury. 2023. Uncertainty in runtime verification: A survey. Computer Science Review 50 (2023), 100594.
[36] Hans van Ditmarsch, Wiebe van der Hoek, and Barteld Kooi. 2007. Dynamic Epistemic Logic. Springer, Dordrecht, Netherland.
[37] S. Zdancewic and A.C. Myers. 2003. Observational determinism for concurrent program security. In 16th IEEE Computer Security Foundations Workshop, 2003. Proceedings. 29–43. doi:10.1109/CSFW.2003.1212703