CTL Temporal Logic
- 84Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is temporal logic used to reason about?
It is used to reason about how system properties change over time, such as whether something always happens or whether a desired event eventually occurs.
Or swipe the card
84 cards
What is temporal logic used to reason about?
It is used to reason about how system properties change over time, such as whether something always happens or whether a desired event eventually occurs.
How is the satisfaction of a temporal formula usually denoted?
For model M and state s, satisfaction is written M,s⊨φ, meaning that formula φ holds in state s of M.
What is a state formula?
A formula whose truth value is defined at a particular state of a model.
What is a path formula?
A formula whose truth value is defined over a path through a model.
What is the difference between state and path formulas?
A state formula is evaluated at one state, whereas a path formula is evaluated along an execution path.
What does CTL stand for?
Computational Tree Logic.
What type of temporal logic is CTL?
CTL is a branching-time temporal logic.
How does branching-time logic differ from linear-time logic?
Linear-time logic reasons about one execution trace, while branching-time logic reasons about several possible traces from a state.
Why is CTL called computational tree logic?
Because the possible executions from a state form a computation tree, and CTL specifies properties of that tree.
What is the difference between two occurrences of the same state in an expanded computation tree?
They may have the same state behavior and labels but represent different time steps or positions in an execution.
What are the two CTL path quantifiers?
A means 'for all paths,' and E means 'there exists a path.'
What does the path quantifier A mean in CTL?
The temporal property must hold on every possible path from the current state.
What does the path quantifier E mean in CTL?
There must be at least one possible path from the current state on which the temporal property holds.
Which propositional operators can be used in CTL?
Operators such as AND, OR, NOT, implication, NAND, and NOR can be used.
What are the four basic temporal operators discussed for CTL?
Next (X), future or eventually (F), globally or always (G), and until (U).
Which CTL temporal operators are unary?
Next (X), future (F), and globally (G).
Which CTL temporal operator is binary?
Until (U).
What does AXφ mean?
On every possible path, φ holds in the next state.
What does EXφ mean?
There exists a path whose next state satisfies φ.
What does AFφ mean?
On every path, a state satisfying φ is eventually reached.
What does EFφ mean?
There exists a path on which a state satisfying φ is eventually reached.
What does AGφ mean?
On every path, φ holds in every state.
What does EGφ mean?
There exists a path on which φ holds in every state.
What does A[φUψ] mean?
On every path, φ remains true until a state satisfying ψ is reached.
What does E[φUψ] mean?
There exists a path on which φ remains true until a state satisfying ψ is reached.
What are the base cases in the BNF-style syntax of CTL?
The constants ⊤ and ⊥, and every atomic proposition, are CTL formulas.
What do the CTL constants ⊤ and ⊥ represent?
⊤ represents true and ⊥ represents false.
If φ is a CTL formula, what formulas can be formed using propositional connectives?
Formulas such as ¬φ, φ∧ψ, φ∨ψ, and φ→ψ are CTL formulas when their component formulas are CTL formulas.
How are next-time CTL formulas formed?
From a CTL formula φ, the formulas AXφ and EXφ can be formed.
How are future-time CTL formulas formed?
From a CTL formula φ, the formulas AFφ and EFφ can be formed.
How are globally CTL formulas formed?
From a CTL formula φ, the formulas AGφ and EGφ can be formed.
How are until CTL formulas formed?
From CTL formulas φ and ψ, the formulas A[φUψ] and E[φUψ] can be formed.
What syntactic rule characterizes CTL temporal operators?
Every CTL temporal operator must be preceded by a path quantifier, either A or E.
Why is φUψ not by itself a CTL formula?
Because the until operator is not preceded by a path quantifier.
Why is F(rUq) not a CTL formula?
Neither the until operator nor the future operator is preceded by a path quantifier.
Why is E[F(rUq)] still not a CTL formula?
Although E quantifies the outer future operator, the inner until operator is still unquantified.
Why is AF[E(rUq)] a valid CTL formula?
The until operator is preceded by E, and the future operator is preceded by A.
Is AG(p→¬EG¬q) a valid CTL formula?
Yes.
What is a subformula?
A formula that occurs as a component within a larger formula.
What is the main semantic distinction between AXφ and EXφ?
AXφ requires φ in every immediate successor, while EXφ requires it in at least one immediate successor.
When is AXφ true at state s?
It is true when every state s′ with a transition from s to s′ satisfies φ.
When is EXφ true at state s?
It is true when at least one immediate successor s′ of s satisfies φ.
When is AGφ true at state s?
It is true when every state on every path beginning at s satisfies φ.
When is EGφ true at state s?
It is true when there is at least one path beginning at s on which every state satisfies φ.
When is AFφ true at state s?
It is true when every path beginning at s contains at least one future state satisfying φ.
When is EFφ true at state s?
It is true when at least one path beginning at s contains a future state satisfying φ.
When is A[φUψ] true at state s?
Every path from s must contain some state si satisfying ψ, and every earlier state sj with j<i must satisfy φ.
When is E[φUψ] true at state s?
At least one path from s must contain a state si satisfying ψ, with φ true at every earlier state.
What is the semantic rule for ⊤?
M,s⊨⊤ for every state s in model M.
What is the semantic rule for ⊥?
M,s⊨⊥ for every state s in model M.
When is an atomic proposition p true at state s?
When p belongs to the label of s, written p∈L(s).
When is ¬φ true at state s?
When φ is not true at state s.
When is φ∧ψ true at state s?
When both φ and ψ are true at s.
When is φ∨ψ true at state s?
When at least one of φ or ψ is true at s.
How can implication be interpreted semantically?
φ→ψ is equivalent to ¬φ∨ψ.
What are the three components of a CTL model?
A finite state set S, a transition relation, and a labeling function L.
What does the state set S represent in a CTL model?
A finite set of system states.
What is the transition relation in a CTL model?
A relation R⊆S×S describing which state-to-state transitions are possible.
What completeness condition must the transition relation satisfy?
Every state must have at least one outgoing transition to a successor state.
Why must every state have an outgoing transition in a CTL structure?
CTL structures require a next state from every state so that paths can continue indefinitely.
What is the labeling function in a CTL model?
A function L:S→2V that assigns each state the set of atomic propositions true there.
What is a Kripke structure?
A finite-state transition structure with a complete transition relation and a labeling function for atomic propositions.
How does a Kripke structure extend a finite-state machine?
It includes a labeling function and requires every state to have at least one outgoing transition.
In the example with atomic propositions a, b, and c, what is true at s0, s1, and s2?
L(s0)={a,b}, L(s1)={c}, and L(s2)={b,c}.
Why is a structure with a state s6 having no outgoing transition invalid as a Kripke structure?
Its transition relation is not complete because s6 has no successor.
Why is a structure valid when every state has at least one outgoing transition?
It satisfies the completeness requirement for the transition relation; with labels, it is a valid Kripke structure.
In the four-state example, what are the transitions from s1?
There are transitions from s1 to s2 and from s1 to s3.
In the four-state example, what labels are assigned to the states?
L(s0)={p,q,r}, L(s1)={p,q}, L(s2)={r}, and L(s3)={q,r}.
What is the power set of {p,q,r}?
{∅,{p},{q},{r},{p,q},{p,r},{q,r},{p,q,r}}.
How many elements are in the power set of a set with n elements?
2n.
How can subsets of atomic propositions represent system states?
Each subset identifies the propositions that are true in one state.
For three atomic propositions p, q, and r, how many possible truth-value states exist?
23=8 possible states.
How are atomic propositions related to digital system variables?
Atomic propositions can represent system variables whose values are true/false, or on/off in a digital system.
How many possible states can n Boolean system variables produce?
2n possible states.
What is the difference between possible states and reachable states?
Possible states are all 2n truth-value combinations; reachable states are the configurations actually attainable by the system.
What is the maximum number of reachable states for a system with n Boolean variables?
At most 2n.
How can CTL express that a state where
startedholds andreadydoes not hold is possible?EF(started∧¬ready).
How can CTL express that every request is eventually acknowledged?
AG(request→AFacknowledged).
What does AG(request→AFacknowledged) guarantee?
Whenever a request occurs, every possible future eventually reaches a state where it is acknowledged.
How can CTL specify that a state satisfying q∨r will eventually be reached on every path?
AF(q∨r).
How can CTL specify that a state satisfying q∧r is eventually reachable on at least one path?
EF(q∧r).
How are CTL formulas used in embedded-system verification?
They specify required system behaviors, which can then be checked against a model of the embedded system.
What is the purpose of model checking a CTL specification?
To determine whether the modeled system satisfies the required CTL properties.
What is the key syntactic requirement that distinguishes CTL from general temporal logic?
Every temporal operator in a CTL formula must be immediately preceded by a path quantifier A or E.

Ask anything
We've read this whole study set, so questions about it get the best answers.