|
Article on other languages:
|
Computation tree logic (CTL) is a branching-time logic, meaning that its model of time is a tree-like structure in which the future is not determined; there are different paths in the future, any one of which might be an actual path that is realised.
Syntax of CTLThe Language of Well-Formed CTL Formulae is generated by the following unambiguous (wrt bracketing) Context-Free Grammar: where p ranges over a set of atomic formulas. Not all of these connectives are needed - for example,
For example, the following is a well-formed CTL formula: The following is not a well-formed CTL formula: The problem with this string is that U can occur only when paired with an A or an E. It uses atomic propositions as its building blocks to make statements about the states of a system. CTL then combines these propositions into formulas using logical operators and temporal operators. OperatorsLogical operatorsThe logical operators are the usual ones: Temporal operatorsThe temporal operators are the following:
In CTL*, the temporal operators can be freely mixed. In CTL, the operator must always be grouped in two: one path operator followed by a state operator. See the examples below. CTL* is strictly more expressive than CTL. Minimal set of operatorsIn CTL there is a minimal set of operators. All CTL formulas can be transformed to use only those operators. This is useful in model checking. One minimal set of operators is: {false, Some of the transformation used for temporal operator are:
Semantics of CTLDefinitionCTL formulae are interpreted over Transition Systems as formally defined below. Let Then the relation of semantic entailment Characterisation of CTLRules 10-15 above refer to computation paths in models and are what ultimately characterise the "Computation Tree"; they are assertions about the nature of the infinitely deep computation tree rooted at the given state s. Semantic equivalenceThe CTL formulae φ and ψ are said to be semantically equivalent iff any state in any model which satisfies one also satisfies the other.
It can be seen that A and E are duals (meaning one can be defined using the other). Furthermore so are G and F, being universal and existential computation tree quantifiers respectively. Hence an instance of De Morgan's Laws can be formulated in CTL: From these facts it can be derived that: In fact, it can be shown using these identities that a subset of the CTL temporal connectives is adequate iff it contains at least one of {AX,EX} and at least one of {EG,AF,AU}. Some other important identities: ExamplesLet "P" mean "I like chocolate" and Q mean "It's warm outside."
Relations with other logicsComputation tree logic (CTL) is a subset of CTL* as well as of the modal µ calculus. More interestingly, CTL is a fragment of Alur, Henzinger and Kupferman's Alternating-time Temporal Logic (ATL). Computation tree logic (CTL) and Linear temporal logic (LTL) are both a subset of CTL*. CTL and LTL are not equivalent and they have a common subset.
See alsoReferences
External links |
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net