ArticleslgStudy

science

Linear time property

Linear time property is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Linear time property rather than just read about it. In short: In model checking, a branch of computer science, linear time properties are used to describe requirements of a model of a computer system. Example properties include "the vending machine does not dispense a drink until money has been entered" (a safety property) or "the computer program eventually terminates" (a liveness property).

Linear time property — main illustration
Linear time property — illustration

Key takeaways

  • Linear time property belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Linear time property to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Linear time property from memory before moving on to harder problems.

Reference excerpt

In model checking, a branch of computer science, linear time properties are used to describe requirements of a model of a computer system. Example properties include "the vending machine does not dispense a drink until money has been entered" (a safety property) or "the computer program eventually terminates" (a liveness property). Fairness properties can be used to rule out unrealistic paths of a model. For instance, in a model of two traffic lights, the liveness property "both traffic lights are green infinitely often" may only be true under the unconditional fairness constraint "each traffic light changes colour infinitely often" (to exclude the case where one traffic light is "infinitely faster" than the other). Formally, a linear time property is an ω-language over the power set of "atomic propositions". That is, the property contains sequences of sets of propositions, each sequence known as a "word". Every property can be rewritten as "P and Q both occur" for some safety property P and liveness property Q. An invariant for a system is something that is true or false for a particular state. Invariant properties describe an invariant that every reachable state of a model must satisfy, while persistence properties are of the form "eventually forever some invariant holds". Temporal logics such as linear temporal logic describe types of linear time properties using formulae. This article is about propositional linear-time properties and cannot handle predicates about program states, so it cannot define a property like: the current value of y determines the number of times that x toggles between 0 and 1 before termination. The more general formalism used in Safety and liveness properties can handle this.

Definition Let AP be a set of atomic propositions. A word over 2AP (the power set of AP) is an infinite sequence of sets of propositions, such as w:={a}{a,b}∅︀{a,b}ω (for the atomic propositions AP={a,b}). A linear time (LT) property over AP is a subset of (2AP)ω i.e. a set of words. An example of an LT property over the set {a,b} is "the set of words that contain a infinitely often". The word w is in this set, because a is contained in {a,b}, which occurs infinitely often. A word not in this set is x:={a}({b}∅︀)ω, as a only occurs once (in the first set). An LT property is an ω-language over the alphabet Σ=2AP (and vice versa). We denote by pref(w) the finite prefixes of w (i.e. {{a},{a}{a,b},{a}{a,b}∅︀,...} in the above case). The closure of an LT property P is:

𝑐𝑙𝑜𝑠𝑢𝑟𝑒(P):={σ∈(2AP)ω∣𝑝𝑟𝑒𝑓(σ)⊆𝑝𝑟𝑒𝑓(P)}

Applications

Using the theory of finite-state machines, a program or computer system can be modelled by a Kripke structure. LT properties then describe restrictions on the traces (outputs) of a Kripke structure. For instance, if two traffic lights at an intersection are represented by a Kripke structure then the atomic propositions may be the possible colours of each light and it may be desirable that the traces satisfy the LT property "the traffic lights cannot both be green at the same time" (to avoid car collisions). If every trace of the Kripke structure TS is a trace of TS' then every LT property that TS' satisfies is satisfied by TS. This is useful in model checking to allow abstraction: if a simplified model of the system satisfies an LT property then the actual model of the system will satisfy it as well.

Classification of linear time properties

Safety properties A safety property is informally of the form "a bad thing does not happen". For instance, if a system models an automated teller machine (ATM) then such a property is "money should not be dispensed unless a PIN has been entered". Formally, a safety property is an LT property such that any word that violates the property has a "bad prefix", for which no word with that prefix satisfies the property. That is,

∀σ∈(2AP)ω∖P ∃ a finite prefix σ̂:P∩{σ′∣σ̂ is a prefix of σ′}=∅︀ In the ATM example, a minimal bad prefix is a finite set of steps carried out in which money is dispensed in the last step and a PIN is not entered at any step. To verify a safety property, it is sufficient to consider only the finite traces of a Kripke structure and check whether any such trace is a bad prefix. An LT property P is a safety property if and only if 𝑐𝑙𝑜𝑠𝑢𝑟𝑒(P)=P.

Invariant properties An invariant property is a type of safety property in which the condition only refers to the current state. For instance, the ATM example is not an invariant because we cannot tell whether the property is violated by seeing that the current state is "dispense money", only by seeing that the current state is "dispense money" and no previous state was "read PIN". An example of an invariant is the traffic light condition "the traffic lights cannot both be green at the same time" above. Another is "the variable x is never negative", in a model of a computer program. Formally, an invariant is of the form:

P={A0A1....∈(2AP)ω∣∀j∈ℕ:Aj satisfies Φ} for some propositional logic formula Φ. A Kripke structure satisfies an invariant if and only if every reachable state satisfies the invariant, which can be checked by a breadth-first search or depth-first search. Safety properties can be verified inductively using invariants.

Liveness properties A liveness property is informally of the form "something good eventually happens". Formally, P is a liveness property if 𝑝𝑟𝑒𝑓(P)=(2AP)∗ i.e. any finite string can be continued to a valid trace. An example of a liveness property is the previous LT property "the set of words that contain a infinitely often". No finite prefix of a word can prove that the word does not satisfy this property, as the word could continue on to have infinitely many as. In terms of computer programs, useful liveness properties include "the program eventually terminates" and, in concurrent computing, "every process must eventually be served".

Persistence properties A persistence property is a liveness property of the form "eventually forever Φ". That is, a property of the form:

P={A0A1...∈(2AP)ω∣∃N∈ℕ:∀n≥N:An satisfies Φ}

Relation between safety and liveness properties No LT property other than (2AP)ω (the set of all words over 2AP) is both a safety and a liveness property. Though not every property is a safety property or a liveness property (consider "a occurs exactly once"), every property is the intersection of a safety and a liveness property. In topology, the set of all words (2AP)ω can be equipped with the metric:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Linear time property

Start with the simplest possible case. Write down what Linear time property claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Linear time property before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Linear time property ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Linear time property

In research
Linear time property appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Linear time property in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Linear time property is common in secondary-school and first-year university syllabi. It links to neighbouring topics Model checking, so understanding it makes those chapters shorter.
In everyday life
Look for Linear time property outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Linear time property” →

How to study Linear time property in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Linear time property means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Linear time property out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Linear time property in simple terms?

In model checking, a branch of computer science, linear time properties are used to describe requirements of a model of a computer system. Example properties include "the vending machine does not dispense a drink until money has been entered" (a safety property) or "the computer program eventually…

Why does Linear time property matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Linear time property?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Linear time property.

Tags

  • Model checking

Keep exploring