ArticleslgStudy

computer science

CTL*

CTL* is a computer 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 CTL* rather than just read about it. In short: CTL* is a superset of computational tree logic (CTL) and linear temporal logic (LTL). It freely combines path quantifiers and temporal operators.

Key takeaways

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

Reference excerpt

CTL* is a superset of computational tree logic (CTL) and linear temporal logic (LTL). It freely combines path quantifiers and temporal operators. Like CTL, CTL* is a branching-time logic. The formal semantics of CTL* formulae are defined with respect to a given Kripke structure.

History LTL had been proposed for the verification of computer programs, first by Amir Pnueli in 1977. Four years later in 1981 E. M. Clarke and E. A. Emerson invented CTL and CTL model checking. CTL* was defined by E. A. Emerson and Joseph Y. Halpern in 1983. CTL and LTL were developed independently before CTL*. Both sublogics have become standards in the model checking community, while CTL* is of practical importance because it provides an expressive testbed for representing and comparing these and other logics. This is surprising because the computational complexity of model checking in CTL* is not worse than that of LTL: they both lie in PSPACE.

Syntax The language of well-formed CTL* formulae is generated by the following unambiguous (with respect to bracketing) context-free grammar:

Φ::=⊥∣⊤∣p∣(¬Φ)∣(Φ∧Φ)∣(Φ∨Φ)∣(Φ⇒Φ)∣(Φ⇔Φ)∣Aϕ∣Eϕ ϕ::=Φ∣(¬ϕ)∣(ϕ∧ϕ)∣(ϕ∨ϕ)∣(ϕ⇒ϕ)∣(ϕ⇔ϕ)∣Xϕ∣Fϕ∣Gϕ∣[ϕUϕ] where p ranges over a set of atomic formulas. Valid CTL*-formulae are built using the nonterminal Φ. These formulae are called state formulae, while those created by the symbol ϕ are called path formulae. (The above grammar contains some redundancies; for example Φ∨Φ as well as implication and equivalence can be defined as just for Boolean algebras (or propositional logic) from negation and conjunction, and the temporal operators X and U are sufficient to define the other two.) The operators basically are the same as in CTL. However, in CTL, every temporal operator (X,F,G,U) has to be directly preceded by a quantifier, while in CTL* this is not required. The universal path quantifier may be defined in CTL* in the same way as for classical predicate calculus Aϕ=¬E¬ϕ, although this is not possible in the CTL fragment.

Examples of formulae CTL* formula that is neither in LTL or in CTL: EX(p)∧AFG(p) LTL formula that is not in CTL: AFG(p) CTL formula that is not in LTL: EX(p) CTL* formula that is in CTL and LTL: AG(p) Remark: When taking LTL as subset of CTL*, any LTL formula is implicitly prefixed with the universal path quantifier A.

Semantics The semantics of CTL* are defined with respect to some Kripke structure. As the names imply, state formulae are interpreted with respect to the states of this structure, while path formulae are interpreted over paths on it.

State formulae If a state s of the Kripke structure satisfies a state formula Φ it is denoted s⊨Φ. This relation is defined inductively as follows:

((ℳ,s)⊨⊤)∧((ℳ,s)⊭⊥) ((ℳ,s)⊨p)⇔(p∈L(s)) ((ℳ,s)⊨¬Φ)⇔((ℳ,s)⊭Φ) ((ℳ,s)⊨Φ1∧Φ2)⇔(((ℳ,s)⊨Φ1)∧((ℳ,s)⊨Φ2)) ((ℳ,s)⊨Φ1∨Φ2)⇔(((ℳ,s)⊨Φ1)∨((ℳ,s)⊨Φ2)) ((ℳ,s)⊨Φ1⇒Φ2)⇔(((ℳ,s)⊭Φ1)∨((ℳ,s)⊨Φ2)) ((ℳ,s)⊨Φ1⇔Φ2)⇔((((ℳ,s)⊨Φ1)∧((ℳ,s)⊨Φ2))∨(¬((ℳ,s)⊨Φ1)∧¬((ℳ,s)⊨Φ2))) ((ℳ,s)⊨Aϕ)⇔(π⊨ϕ for all paths π starting in s) ((ℳ,s)⊨Eϕ)⇔(π⊨ϕ for some path π starting in s)

Path formulae The satisfaction relation π⊨ϕ for path formulae ϕ and a path π=s0→s1→⋯ is also defined inductively. For this, let π[n] denote the sub-path sn→sn+1→⋯:

(π⊨Φ)⇔((ℳ,s0)⊨Φ) (π⊨¬ϕ)⇔(π⊭ϕ) (π⊨ϕ1∧ϕ2)⇔((π⊨ϕ1)∧(π⊨ϕ2)) (π⊨ϕ1∨ϕ2)⇔((π⊨ϕ1)∨(π⊨ϕ2)) (π⊨ϕ1⇒ϕ2)⇔((π⊭ϕ1)∨(π⊨ϕ2)) (π⊨ϕ1⇔ϕ2)⇔(((π⊨ϕ1)∧(π⊨ϕ2))∨(¬(π⊨ϕ1)∧¬(π⊨ϕ2))) (π⊨Xϕ)⇔(π[1]⊨ϕ) (π⊨Fϕ)⇔(∃n⩾0:π[n]⊨ϕ) (π⊨Gϕ)⇔(∀n⩾0:π[n]⊨ϕ) (π⊨[ϕ1Uϕ2])⇔(∃n⩾0:(π[n]⊨ϕ2∧∀0⩽k<n: π[k]⊨ϕ1))

Decision problems CTL* model checking (of an input formula on a fixed model) is PSPACE-complete and the satisfiability problem is 2EXPTIME-complete.

See also Temporal logic Kripke structure Model checking Reo Coordination Language

References

Amir Pnueli: The temporal logic of programs. Proceedings of the 18th IEEE Annual Symposium on Foundations of Computer Science (FOCS), 1977, 46–57. DOI= 10.1109/SFCS.1977.32 E. Allen Emerson, Joseph Y. Halpern: "Sometimes" and "not never" revisited: on branching versus linear time temporal logic. Journal of the ACM 33, 1 (Jan. 1986), 151–178. DOI= http://doi.acm.org/10.1145/4904.4999 Ph. Schnoebelen: The Complexity of Temporal Logic Model Checking. Advances in Modal Logic 2002: 393–436

External links CTL Teaching slides of professor Alessandro Artale at the Free University of Bozen-Bolzano

Worked examples

Example 1 — a first encounter with CTL*

Start with the simplest possible case. Write down what CTL* claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer 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 CTL* 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 CTL* 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 CTL*

In research
CTL* appears in computer 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 CTL* 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
CTL* is common in secondary-school and first-year university syllabi. It links to neighbouring topics Logic in computer science, Temporal logic, so understanding it makes those chapters shorter.
In everyday life
Look for CTL* 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 “CTL*” →

How to study CTL* in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CTL* 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 CTL* out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CTL* in simple terms?

CTL* is a superset of computational tree logic (CTL) and linear temporal logic (LTL). It freely combines path quantifiers and temporal operators.

Why does CTL* matter?

Because it connects several computer 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 CTL*?

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 CTL*.

Tags

  • Logic in computer science
  • Temporal logic

Keep exploring