Techniqueadvanced
Partitioned transition relation
Also called early quantification, conjunctive partitioning.
Keeps the transition relation as a list of BDD conjuncts and quantifies each variable as soon as no later conjunct uses it, so image computation stays small.
A partitioned transition relation keeps the transition relation of a circuit as a list of small BDDs whose conjunction is the relation, instead of one large BDD. To compute an image, it conjoins the set of states with the parts one at a time, and it quantifies each present-state or input variable as soon as no remaining part uses it. This step, early quantification, is exact because when does not depend on . Burch, Clarke and Long (1991) introduced it. Here "transition relation" means the relation on present states, inputs and next states, not the next-state functions. The transition-function method uses those functions and builds no relation. Symbolic reachability is the fixed-point loop that calls either one as its image step.
In plain words
To find the states a circuit can reach in one clock tick, you combine the set of present states with a rule that links present states to next states, and then you forget the present states. For a big circuit the full rule is too large to write down. So keep one small rule for each register bit, and add the rules one by one. When no rule that is still to come mentions a present-state bit or an input, forget that bit at once. The pieces you carry along stay small, and at the end you get the same answer as with the full rule.
When it applies
- The system is synchronous, so the relation is a conjunction: with . Each has a BDD about as small as , while the BDD of can be far larger.
- Each depends on few variables, so many variables are used by few parts and can be quantified early. Circuits with local next-state logic fit well; a circuit where every next-state function depends on every latch gains little.
- For asynchronous or interleaving systems, the relation is a disjunction of the moves of the components. Existential quantification distributes over disjunction with no condition, so the image is the union of the images of the parts; see the variations.
The template
The set of states is , the parts are (one per latch, or clusters of them), and is the set of variables to quantify. The next-state variables are never quantified.
IMAGE-PARTITIONED(S, T₁, ..., Tₖ)1 order T₁, ..., Tₖ by a heuristic2 for j ← 1 to k do3 Eⱼ ← (variables of Q in Tⱼ) minus (variables in Tⱼ₊₁, ..., Tₖ) minus (E₁ ∪ ... ∪ Eⱼ₋₁)4 E₀ ← variables of Q in no Tⱼ5 R ← ∃E₀. S6 for j ← 1 to k do7 R ← ∃Eⱼ. (R ∧ Tⱼ)8 return R with each yᵢ renamed to sᵢ
Line 7 is one relational product (AND-EXISTS), which a BDD package does in one pass without building ; see BDD quantification. Line 3 puts each variable of in the set of the last part that uses it.
Lemma (early quantification). If , then . The same holds for a set of variables with .
Proof. By the Shannon expansion, . Since does not depend on , . So
For a set , write as and apply the one-variable case times, from the inside out. Each again does not add to the support of .
Theorem (same image as the monolithic relation). IMAGE-PARTITIONED returns , with renamed to , for every order of the parts.
Proof. Let . We show that after the -th pass of line 7,
For this is line 5. Assume it for . By line 3 and line 4, no variable of is in : a variable in is in no part, and a variable in with is in no part after . So the lemma, with and , gives
and line 7 adds in front. After the last pass, . Every variable of is in : if it is in no part, it is in , and otherwise it is in for the last whose part uses it. So . The order of line 1 was arbitrary.
The theorem is all that is proved here. That the intermediate BDDs are smaller than the BDD of is measured, not proved: Burch, Clarke and Long, and Ranjan and coauthors, report it on benchmark circuits, and in the worst case an intermediate can be as large as the monolithic product.
Classic examples
A three-bit machine. Take the machine of the image computation example: , , and . With the order , line 3 gives , , , and line 4 gives .
| step | quantified | |
|---|---|---|
| line 5 | ||
| with | none | |
| with | ||
| with |
The result is as , the same as the range method gives, and every step was checked by enumeration. No intermediate has more than 4 variables, while has 7.
Reachable states. Symbolic reachability iterates this image until the set of reached states stops growing. It is the setting in which Burch, Clarke and Long measured the method.
Sequential equivalence. The product machine of two circuits has the parts of both, and its next-state logic is local to each circuit. So the parts of one circuit never mention the latches of the other, and early quantification separates them well. This is how BDD-based sequential equivalence checking computes reachable states.
Model checking of CTL. The preimage behind in symbolic model checking uses the same schedule, with and quantified and kept.
Variations
- Clustering. Conjoin neighbouring parts into clusters while the BDD of a cluster stays under a size limit. Fewer, larger parts mean fewer relational products. Ranjan and coauthors (1995) gave heuristics to order the parts and to form the clusters, and measured their effect on benchmark circuits.
- Disjunctive partitioning. For , with no condition on supports, because distributes over . Burch, Clarke and Long used this for asynchronous systems, where one component moves at a time.
- Preimage. Quantify and , keep , with the same schedule over the parts.
- The transition-function method. Do not build any relation; constrain the next-state functions by and compute their range. See transition function image computation.
Pitfalls
- Quantifying too early. does not distribute over in general. With and , , but . A variable may be quantified only after the last part that uses it.
- Quantifying . The next-state variables are the result. Quantifying any of them gives a projection of the image, not the image.
- The variable order. The BDD of is small only if sits next to the support of in the order. The usual choice interleaves and , which also makes the final renaming of line 8 cheap. See variable ordering.
- The order of the parts. Every order gives the same image, but a bad order keeps variables alive for long and gives large intermediate BDDs. The theorem says nothing about sizes.
Exercises
- Prove that for all and , and use it to show that disjunctive partitioning gives the exact image.
- Find and , with in the supports of both, such that .
- In the three-bit example, run the template with the order . Give and the largest number of variables of an intermediate .
- For parts with the supports , , and (besides their own ), find an order that quantifies a variable after every part.
References
- J. R. Burch, E. M. Clarke and D. E. Long, Symbolic model checking with partitioned transition relations, VLSI 91, Edinburgh, IFIP Transactions A-1, 49 to 58, 1991, conjunctive partitioning for synchronous circuits, disjunctive partitioning for asynchronous ones, and the early quantification of variables
- R. K. Ranjan, A. Aziz, R. K. Brayton, B. Plessier and C. Pixley, Efficient BDD algorithms for FSM synthesis and verification, IWLS 1995, the heuristics that order the conjuncts and cluster them up to a size limit, and the measured results on benchmark circuits
- Edmund M. Clarke, Orna Grumberg and Doron A. Peled, Model Checking, MIT Press, 1999, Chapter 6 (symbolic model checking, the relational product and partitioned transition relations)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag NQG9VW Edit this page History Report an error Markdown