CTL Temporal Logic
- 71Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is temporal logic used to reason about?
71 questions
- 1
What is temporal logic used to reason about?
Model answer
Temporal logic is used to reason about how properties hold over time, such as whether something always happens or whether a desired event eventually occurs.
Explanation
Unlike ordinary logic, temporal logic includes operators that describe time-related behavior.
- 2
How is the notation for a temporal formula holding in a state written?
Model answer
It is written as
M, s ⊨ φ, meaning that formulaφholds in statesof modelM.Explanation
The model and state together determine the truth value of the formula.
- 3
What is the difference between a state formula and a path formula?
Model answer
A state formula is evaluated at a particular state, whereas a path formula is evaluated along an execution path.
Explanation
CTL formulas are state formulas, while temporal subexpressions such as an unquantified until formula are interpreted over paths.
- 4
What is Computational Tree Logic?
Model answer
Computational Tree Logic, or CTL, is a branching-time temporal logic whose formulas are evaluated in states of a model.
Explanation
CTL reasons about the possible execution paths that branch from a state.
- 5
How does branching-time logic differ from linear-time logic?
Model answer
Linear-time logic reasons about one execution trace at a time, whereas branching-time logic reasons about multiple possible execution traces from a state.
Explanation
CTL is branching-time because it quantifies over the different paths that may be followed.
- 6
Why is CTL associated with a computational tree?
Model answer
Expanding every possible transition from each state produces a tree of possible executions, and CTL expresses properties of this computational tree.
Explanation
Repeated visits to the same system state can appear at different time steps in the expanded tree.
- 7
What do the path quantifiers
AandEmean in CTL?Model answer
Ameans that a property holds on all possible paths, whileEmeans that there exists at least one path on which it holds.Explanation
Path quantifiers determine whether CTL reasons universally or existentially about system executions.
- 8
What are the basic temporal operators used in CTL?
Model answer
The basic temporal operators are next (
X), future or eventually (F), globally or always (G), and until (U).Explanation
The first three operators are unary, while until combines two formulas.
- 9
Which CTL temporal operator is binary, and what does that mean?
Model answer
The until operator
Uis binary because it requires two formulas: one that holds up to the point when the second becomes true.Explanation
For example,
φ U ψrequiresφbefore a state whereψholds. - 10
Why are CTL formulas state formulas rather than path formulas?
Model answer
Every CTL temporal operator is preceded by a path quantifier, so the resulting formula is evaluated at a state rather than directly along one path.
Explanation
The path quantifier converts a path-based temporal condition into a state-based CTL formula.
- 11
What are the basic components of the syntax of CTL?
Model answer
CTL uses atomic propositions, truth constants, logical connectives, path quantifiers, and temporal operators.
Explanation
These components are combined recursively to construct well-formed CTL formulas.
- 12
What do the CTL constants
⊤and⊥represent?Model answer
⊤represents true and⊥represents false; both are CTL formulas.Explanation
The truth constants have fixed truth values in every state.
- 13
Why is every atomic proposition a CTL formula?
Model answer
An atomic proposition is a CTL formula because its truth value can be evaluated as true or false in a state.
Explanation
Examples include propositions such as
p,q, andr. - 14
How are logical connectives used to construct CTL formulas?
Model answer
If
φandψare CTL formulas, they can be combined with connectives such as negation, conjunction, disjunction, implication, NAND, or NOR to form new CTL formulas.Explanation
The syntax is closed under the available propositional connectives.
- 15
What is the meaning of
AX φ?Model answer
AX φmeans thatφholds in every immediate next state reachable from the current state.Explanation
The
Aquantifier requires the next-state condition to hold on all possible paths. - 16
What is the meaning of
EX φ?Model answer
EX φmeans that there is at least one immediate next state in whichφholds.Explanation
Only one possible successor state is required to satisfy
φ. - 17
What is the meaning of
AF φ?Model answer
AF φmeans that on every possible path,φeventually becomes true.Explanation
The formula requires a future state satisfying
φon each path from the current state. - 18
What is the meaning of
EF φ?Model answer
EF φmeans that there exists a path on whichφeventually becomes true.Explanation
Only one possible execution path needs to reach a state satisfying
φ. - 19
What is the meaning of
AG φ?Model answer
AG φmeans thatφholds in every state of every path starting from the current state.Explanation
It expresses an invariant that must hold globally for all possible executions.
- 20
What is the meaning of
EG φ?Model answer
EG φmeans that there exists a path on whichφholds in every state.Explanation
The formula requires one complete execution path to satisfy the global condition.
- 21
What is the meaning of
A(φ U ψ)?Model answer
It means that on every possible path,
φremains true until a state satisfyingψis reached.Explanation
The universal quantifier requires the until condition on all paths.
- 22
What is the meaning of
E(φ U ψ)?Model answer
It means that there exists at least one path on which
φremains true until a state satisfyingψis reached.Explanation
The existential quantifier requires only one path to satisfy the until condition.
- 23
Why is
F r U qnot a CTL formula even though it is a temporal formula?Model answer
It is not a CTL formula because its temporal operators are not preceded by path quantifiers.
Explanation
CTL requires every temporal operator to occur with an
AorEpath quantifier. - 24
Why is
E(F(r U q))not a CTL formula?Model answer
The until operator is preceded by no path quantifier inside the formula, so the temporal subformula
r U qis not a valid CTL construction.Explanation
Adding an outer existential quantifier does not correctly quantify every temporal operator.
- 25
Why is
A(F(E(r U q)))a valid CTL formula?Model answer
The until operator is preceded by
E, and the future operator is preceded byA; therefore every temporal operator has a path quantifier.Explanation
The formula is constructed recursively from valid subformulas.
- 26
Is
AG(p → ¬EG¬q)a valid CTL formula? Explain briefly.Model answer
Yes.
pandqare atomic formulas, and negation, implication,EG, andAGcan be applied recursively to construct a valid CTL formula.Explanation
Each nested component is a valid CTL subformula before it is combined with the next operator.
- 27
What is a subformula?
Model answer
A subformula is a formula that occurs as a component within a larger formula.
Explanation
For
AG(p → ¬EG¬q), examples includep,q,¬q,EG¬q, andp → ¬EG¬q. - 28
What is the formal structure of a CTL model?
Model answer
A CTL model is a triple
M = (S, R, L), consisting of states, a transition relation, and a labeling function.Explanation
This structure is commonly called a Kripke structure.
- 29
What does the set
Srepresent in a Kripke structure?Model answer
Sis the finite set of states of the system.Explanation
CTL formulas are evaluated over these system states.
- 30
What does the transition relation
Rrepresent?Model answer
Ris a subset of S×S that specifies which state transitions are possible.Explanation
A pair (s,s′) belongs to
Rwhen the system can move fromstos'. - 31
What completeness condition must the transition relation of a Kripke structure satisfy?
Model answer
Every state must have at least one outgoing transition to a successor state.
Explanation
A state with no successor would make the transition relation incomplete for this CTL model.
- 32
What does the labeling function
Ldo?Model answer
The labeling function maps each state to the set of atomic propositions that are true in that state.
Explanation
Formally, it maps states into the power set of the proposition set.
- 33
How is a Kripke structure related to a finite-state machine?
Model answer
It has finitely many states and transitions like a finite-state machine, but it also includes a labeling function and requires every state to have an outgoing transition.
Explanation
The labels provide the truth values of atomic propositions needed for temporal-logic evaluation.
- 34
Why is a diagram with a state having no outgoing transition not a valid Kripke structure?
Model answer
It violates the completeness requirement that every state must have at least one outgoing transition.
Explanation
The absence of a successor makes the transition relation unsuitable for the specified CTL semantics.
- 35
A model has states
s0,s1, ands2, with labelsa,bats0,cats1, andb,cats2. What does the label ofs2mean?Model answer
It means that propositions
bandcare true ats2; any proposition not listed is false there.Explanation
The labeling function records exactly the propositions that hold in each state.
- 36
For a model with states
s0,s1,s2, ands3, what transition relation is described by transitionss0→s1,s1→s2,s1→s3,s2→s3,s3→s2, ands3→s3?Model answer
The transition relation contains those six ordered state pairs.
Explanation
Each directed edge in the state-transition diagram contributes one pair to the relation.
- 37
What does
M, s ⊨ ⊤mean?Model answer
It means that true holds at state
sin modelM; this is true for every state.Explanation
The truth constant
⊤is always satisfied. - 38
What does
M, s ⊨ ⊥mean?Model answer
It means that false holds at state
sin modelM; this is never satisfied.Explanation
The constant
⊥is false in every state. - 39
When does an atomic proposition
phold in a state?Model answer
pholds in statesexactly whenpbelongs to the labeling setL(s).Explanation
The labeling function directly determines the truth of atomic propositions.
- 40
When does
¬φhold in a state?Model answer
¬φholds in statesexactly whenφdoes not hold in states.Explanation
Negation reverses the truth value of the subformula at the same state.
- 41
When does
φ ∧ ψhold in a state?Model answer
φ ∧ ψholds exactly when bothφandψhold in that state.Explanation
Conjunction requires both component formulas to be true.
- 42
When does
φ ∨ ψhold in a state?Model answer
φ ∨ ψholds when at least one ofφorψholds in that state.Explanation
Disjunction is true if either component, or both components, are true.
- 43
How is implication evaluated in CTL?
Model answer
φ → ψis equivalent to¬φ ∨ ψ, so it is false only whenφis true andψis false.Explanation
CTL uses the ordinary propositional semantics for implication.
- 44
What is the formal condition for
AX φto hold at states?Model answer
AX φholds atsifφholds in every successor states'such that(s,s')belongs to the transition relation.Explanation
The formula checks all immediate next states.
- 45
What is the formal condition for
EX φto hold at states?Model answer
EX φholds atsif at least one successor states'satisfiesφ.Explanation
The existential next operator needs only one suitable successor.
- 46
What is the formal condition for
AG φto hold at states?Model answer
AG φholds atsif, on every path starting ats, every state along that path satisfiesφ.Explanation
Both the paths and all states on each path are universally quantified.
- 47
What is the formal condition for
EG φto hold at states?Model answer
EG φholds atsif there exists a path starting atson which every state satisfiesφ.Explanation
Only one path must maintain the property globally.
- 48
What is the formal condition for
AF φto hold at states?Model answer
AF φholds atsif every path fromscontains some state at whichφholds.Explanation
The position where
φbecomes true may differ from one path to another. - 49
What is the formal condition for
EF φto hold at states?Model answer
EF φholds atsif there exists a path fromscontaining at least one state that satisfiesφ.Explanation
One reachable future occurrence of
φis sufficient. - 50
What is the formal condition for
A(φ U ψ)to hold at states?Model answer
Every path from
smust contain a state satisfyingψ, andφmust hold at every earlier state on that path.Explanation
The
ψstate may occur at different positions on different paths, but it must eventually occur on all paths. - 51
What is the formal condition for
E(φ U ψ)to hold at states?Model answer
There must be at least one path from
scontaining a state satisfyingψ, withφtrue at every earlier state on that path.Explanation
The existential until formula needs only one path satisfying the required ordering.
- 52
A state has three successors, and proposition
qis true in only one of them. Which ofAX qandEX qholds?Model answer
EX qholds, butAX qdoes not.Explanation
One successor is enough for
EX q, whereasAX qrequiresqin every successor. - 53
If
φholds on every state of one path but fails on another path, which ofEG φandAG φcan hold?Model answer
EG φcan hold, butAG φcannot hold.Explanation
The existential global formula needs one suitable path, while the universal global formula requires all paths to satisfy
φ. - 54
If every path from a state eventually reaches a state satisfying
φ, which CTL formula expresses this property?Model answer
The property is expressed by
AF φ.Explanation
AFmeans thatφeventually holds on all possible paths. - 55
If at least one path eventually reaches a state satisfying
φ, which CTL formula expresses this property?Model answer
The property is expressed by
EF φ.Explanation
EFrequires only one path with a future state satisfyingφ. - 56
Suppose
pholds at the starting state and at each earlier state of one path, whileqfirst holds at a later state on that path. DoesE(p U q)hold at the starting state?Model answer
Yes, provided that path is a valid path from the starting state and
pholds at every state before the first state whereqholds.Explanation
This is exactly the existential-until condition.
- 57
Why can
A(p U q)be false even whenE(p U q)is true?Model answer
E(p U q)needs only one satisfying path, whereasA(p U q)fails if even one path does not maintainpuntil reachingq.Explanation
Universal and existential path quantification produce different truth values in branching models.
- 58
Why can
AG φbe true at one state but false at another state in the same model?Model answer
The set of paths reachable from each state can differ, so
φmay hold globally from one state but fail on a reachable path from another.Explanation
CTL truth values are evaluated relative to both the model and the chosen state.
- 59
What is the relationship between atomic propositions and system variables in a digital system?
Model answer
Atomic propositions can represent system variables whose values are interpreted as true or false, or equivalently as on or off.
Explanation
This provides a connection between logical state descriptions and digital-system behavior.
- 60
How many possible truth assignments exist for n Boolean system variables?
Model answer
There are 2n possible truth assignments.
Explanation
Each variable has two possible values, so the total number of combinations is 2×2×⋯×2=2n.
- 61
How many possible assignments exist for three atomic propositions
p,q, andr?Model answer
There are 23=8 possible assignments.
Explanation
The assignments include the empty set, each individual proposition, each pair, and the set containing all three propositions.
- 62
What does the power set of a proposition set represent in a Kripke model?
Model answer
It represents all possible combinations of atomic propositions that could be true in a state.
Explanation
Each subset corresponds to one possible labeling of a state.
- 63
List the eight possible state labels for the proposition set
{p, q, r}.Model answer
The labels are
∅,{p},{q},{r},{p,q},{p,r},{q,r}, and{p,q,r}.Explanation
These are all subsets of the three-element proposition set.
- 64
Why may the number of reachable states be less than 2n?
Model answer
Some truth assignments may be invalid or unreachable because of system constraints or conflicting conditions.
Explanation
The 2n assignments are the theoretical state space, while reachable states are only the valid configurations attainable by the system.
- 65
What is the relationship between the total state space and the reachable state space?
Model answer
The reachable state space is a subset of the total state space and therefore has size less than or equal to 2n for n Boolean variables.
Explanation
Not every theoretically possible variable combination must occur during system execution.
- 66
How can CTL express that a state where
startedholds butreadydoes not hold is eventually possible?Model answer
The property can be expressed as
EF(started ∧ ¬ready).Explanation
The existential-future operator states that some execution can eventually reach a state satisfying both conditions.
- 67
How can CTL express that every request is eventually acknowledged?
Model answer
The property can be expressed as
AG(request → AF acknowledged).Explanation
For every state and every possible future path, whenever a request occurs, an acknowledgement must eventually occur.
- 68
Why is the universal global operator needed in
AG(request → AF acknowledged)?Model answer
It requires the request-response requirement to hold from every reachable state and along every possible execution.
Explanation
Without
AG, the property might be checked only from one selected state or path. - 69
What does the formula
EF(started ∧ ¬ready)say about system behavior?Model answer
It says that there exists an execution path that eventually reaches a state where the system has started but is not ready.
Explanation
The formula describes possibility rather than a behavior that must occur on all executions.
- 70
How are CTL formulas used in embedded-system verification?
Model answer
CTL formulas specify required system behaviors, and the system model is checked to determine whether those formulas hold in its states.
Explanation
The model represents the design, while CTL formulas represent properties that the design should satisfy.
- 71
Compare
EF(started ∧ ¬ready)withAF(started ∧ ¬ready).Model answer
EFrequires one possible path to reach the condition, whereasAFrequires every possible path to eventually reach it.Explanation
The difference is existential versus universal quantification over paths.

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