Definitionadvanced
Partition pair
Also called Hartmanis-Stearns partition pair, substitution property partition.
A pair of state partitions (pi, tau) such that the block of the next state under tau depends only on the input and the block of the present state under pi, the basis of FSM decomposition.
A partition pair of a finite state machine is a pair of partitions of its states such that knowing the block of the present state in , and the input, is enough to know the block of the next state in . A partition with the substitution property is one for which is a pair: the machine then maps blocks of to blocks of , and so contains a smaller machine whose states are the blocks. Hartmanis and Stearns built their structure theory of sequential machines on these two ideas in the 1960s. Partition pairs say which parts of the state a component machine must see to compute its own part of the next state, which makes them the basis of FSM decomposition and of the early methods of state assignment.
Definition
Machine. is a deterministic, completely specified Mealy machine with a finite set of states , inputs , outputs , next-state function and output function . Partitions of are ordered by refinement, as in the partition lattice: when each block of lies inside a block of . We write when and share a block of , for the partition into single states, and for the partition with one block.
Partition pair. is a partition pair of if for all states and every input ,
Equivalently, there is a function from blocks of and inputs to blocks of with , where is the block of that holds .
Substitution property. has the substitution property, or is an SP partition, if is a partition pair. Then the blocks of with the map form a machine , the quotient of by . In algebraic terms, an SP partition is a congruence of the machine.
Output consistency. is output consistent if implies for every input .
The operators m and M. For a partition , let be the finest such that is a pair, and for a partition let be the coarsest such that is a pair. Both exist:
- is the relation " when for every ". It is an equivalence relation, so a partition, and by the definition every with a pair satisfies .
- is the partition generated by the pairs for and , that is, the finest partition in which each such pair shares a block. A partition makes a pair exactly when it puts each such pair in one block, so exactly when .
Properties. All of the following follow from the definition.
- Galois connection. is a pair if and only if , if and only if . Hence and are monotone.
- Monotonicity. If is a pair, and , then is a pair. The pairs and are always pairs.
- Meets and joins. If and are pairs, so are and . For the meet, in both gives in both . For the join, means a chain in which each step stays in a block of or of ; each step of the image chain then stays in a block of or , so the ends share a block of .
- The SP lattice. By property 3 with , the SP partitions are closed under meet and join, so they form a sublattice of the partition lattice that holds and . is SP if and only if .
- Generators. For two states , let be the finest SP partition in which and share a block. It is found by starting from the partition that merges only and and replacing by until nothing changes, which ends after at most merges. Every SP partition is the join of the over the pairs : each such is at most , since is SP and merges and , and their join merges every pair that merges. So the at most partitions generate the whole SP lattice, which is how programs list the SP partitions of a machine.
- State equivalence. The partition of into classes of equivalent states, the one that DFA minimization and Moore's algorithm compute, is the coarsest partition that is both SP and output consistent. It is SP and output consistent because equivalent states give equal outputs now and move to equivalent states. Conversely, if is SP and output consistent and , then by induction on the length of an input word the two runs from and from stay in one block of and so give equal outputs at every step; hence and are equivalent. This is the machine form of the Myhill-Nerode theorem.
Examples and non-examples
A counter with enable. Let , and .
- The parity partition is SP: if then . The quotient is a counter modulo 2.
- is not SP: the states 0 and 1 share a block, but with they go to 1 and 2, which do not. Here , since the pairs and together with the blocks of join everything, and , since every two distinct states are told apart by some input. So the only pairs with in them are the trivial ones and .
- More generally, for the counter modulo with enable, the SP partitions are exactly the partitions into cosets of a subgroup of the cyclic group . If is SP, then implies , so is invariant under translation; the block of 0 is then closed under addition (from , translating by gives , and ), so it is a subgroup, and holds exactly when . Conversely, a coset partition is invariant under translation. Modulo 4 there are three SP partitions, , and ; modulo 6 there are four, from the subgroups , , and .
A shift register. Let the states be the bit pairs , the input a bit , and . Let group the states by and by .
- is a pair: the new first bit is the input, whatever the state.
- is a pair: the next state depends only on and the input. So is SP, and .
- is not SP: and share a block of but go to and , which do not. Here : knowing tells nothing more about the next state than the input alone does.
The chain of pairs says that the register can be built from a first component that needs only the input and a second that needs only the first. This is the serial decomposition of FSM decomposition.
The order matters. is a pair for every , but need not be. In the counter, is not a pair: with the states 0 and 1 stay at 0 and 1, which are in different blocks of .
Related definitions
- Partition lattice and equivalence relation. A partition of is an equivalence relation on , and refinement is inclusion of relations; meet and join are as in the partition lattice.
- FSM decomposition. An SP partition and a partition with give a serial decomposition, and two SP partitions with meet give a parallel decomposition; see FSM decomposition, which proves both.
- State assignment. Hartmanis used SP partitions and partition pairs to choose state codes in which each bit depends on few others: a state variable that encodes the blocks of an SP partition has next-state functions that do not depend on the other variables. The later encoders KISS, NOVA and MUSTANG aim at two-level or multilevel logic instead; see state assignment.
- Minimization. The coarsest output-consistent SP partition is state equivalence (property 6), computed by partition refinement as in Hopcroft's algorithm. For machines with unspecified entries, the classes of compatible states may overlap, so covers take the place of partitions; see incompletely specified FSM minimization.
- Krohn-Rhodes theory. The quotient by an SP partition is a homomorphic image of the machine and the front part of a serial decomposition. The Krohn-Rhodes theorem states that every finite machine is covered by a cascade of components that are simple groups or two-state reset machines; partitions alone are not enough to reach that result, and its proofs use covers whose blocks may overlap.
References
- Juris Hartmanis and Richard E. Stearns, Pair algebra and its application to automata theory, Information and Control 7(4), 485 to 507, 1964, partition pairs, the operators m and M, and their lattice properties
- Juris Hartmanis and Richard E. Stearns, Algebraic Structure Theory of Sequential Machines, Prentice-Hall, 1966, the chapters on partitions with the substitution property, partition pairs, and serial and parallel decomposition
- Giovanni De Micheli, Synthesis and Optimization of Digital Circuits, McGraw-Hill, 1994, Chapter 9 (sequential logic optimization, state encoding and decomposition of finite state machines)
Where this leads
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 | W4 complete |
|
Tag 9YR4W3 Edit this page History Report an error Markdown