Algorithm Search⌘K

Definitioncore

Controllable language

Also called controllability of languages.

A specification language is controllable if no uncontrollable event of the plant can lead a legal string out of its prefix closure. It is exactly the language a supervisor can enforce.

A language KK is controllable with respect to a plant GG if no uncontrollable event that the plant can execute takes a prefix of KK outside the prefixes of KK. This is the condition of supervisory control theory: a supervisor that may only disable controllable events can make the closed-loop behavior equal to the prefixes of KK if and only if KK is controllable. The notion is about languages of a discrete-event system. It is not the controllability of a linear state-space system (reaching every state with some input), and it is not the dynamic controllability of temporal networks in AI planning.

Definition

Let GG be a plant automaton over Σ=Σc∪Σuc\Sigma = \Sigma_c \cup \Sigma_{uc}, with generated language L(G)L(G); Σuc\Sigma_{uc} is the set of uncontrollable events. For a language K⊆Σ∗K \subseteq \Sigma^*, let K‾\overline{K} be its prefix closure, the set of all prefixes of strings of KK.

KK is controllable with respect to L(G)L(G) and Σuc\Sigma_{uc} if K‾ Σuc∩L(G)⊆K‾.\displaystyle \overline{K}\,\Sigma_{uc} \cap L(G) \subseteq \overline{K}.

In words: for every s∈K‾s \in \overline{K} and every σ∈Σuc\sigma \in \Sigma_{uc}, if sσ∈L(G)s\sigma \in L(G) then sσ∈K‾s\sigma \in \overline{K}. Strings that leave L(G)L(G) do not count, because the plant cannot run them.

Facts that follow from the definition:

  • Controllability depends only on K‾\overline{K}. So KK is controllable if and only if K‾\overline{K} is.
  • ∅\emptyset is controllable, and so is L(G)L(G), and so is every KK with Σuc=∅\Sigma_{uc} = \emptyset.
  • Closure under union. If each KiK_i is controllable, so is ⋃iKi\bigcup_i K_i. Proof: ⋃iKi‾=⋃iKi‾\overline{\bigcup_i K_i} = \bigcup_i \overline{K_i}. If ss is in the left side and sσ∈L(G)s\sigma \in L(G) with σ∈Σuc\sigma \in \Sigma_{uc}, then s∈Ki‾s \in \overline{K_i} for some ii, so sσ∈Ki‾s\sigma \in \overline{K_i}. This gives the supremal controllable sublanguage sup⁡C(E)\sup C(E) of every language EE: the union of all controllable sublanguages of EE.
  • Intersection. The intersection of two prefix-closed controllable languages is controllable. The intersection of two controllable languages that are not prefix-closed need not be, because K1∩K2‾\overline{K_1 \cap K_2} can be smaller than K1‾∩K2‾\overline{K_1} \cap \overline{K_2}. An example is below.

The controllability theorem (Ramadge and Wonham 1987). Let K⊆L(G)K \subseteq L(G) be nonempty. There is a supervisor SS, which enables all uncontrollable events after every string, with L(S/G)=K‾L(S/G) = \overline{K} if and only if KK is controllable. Such a supervisor is S(s)=Σuc∪{σ∈Σc:sσ∈K‾}S(s) = \Sigma_{uc} \cup \{\sigma \in \Sigma_c : s\sigma \in \overline{K}\}. For the version with marked strings and no blocking, see nonblocking supervisor.

Proof. If KK is controllable, show L(S/G)=K‾L(S/G) = \overline{K} by induction on the length of strings. ε\varepsilon is in both. Let s∈L(S/G)=K‾s \in L(S/G) = \overline{K} at length ∣s∣|s|. If σ∈Σc\sigma \in \Sigma_c, then sσ∈L(S/G)s\sigma \in L(S/G) if and only if sσ∈L(G)s\sigma \in L(G) and sσ∈K‾s\sigma \in \overline{K}, and K‾⊆L(G)\overline{K} \subseteq L(G). If σ∈Σuc\sigma \in \Sigma_{uc}, then sσ∈L(S/G)s\sigma \in L(S/G) if and only if sσ∈L(G)s\sigma \in L(G), and by controllability this is the same as sσ∈K‾s\sigma \in \overline{K}. Conversely, if some SS gives L(S/G)=K‾L(S/G) = \overline{K}, take s∈K‾s \in \overline{K} and σ∈Σuc\sigma \in \Sigma_{uc} with sσ∈L(G)s\sigma \in L(G). SS enables σ\sigma after ss, so sσ∈L(S/G)=K‾s\sigma \in L(S/G) = \overline{K}. ■\blacksquare

Examples and non-examples

The plant is a machine with states idle II, working WW and down DD, and with I→aWI \xrightarrow{a} W, W→bIW \xrightarrow{b} I, W→fDW \xrightarrow{f} D and D→rID \xrightarrow{r} I. The start aa and the repair rr are controllable, and the finish bb and the failure ff are not.

  • Not controllable: "the machine never fails". Let KK be the set of strings of L(G)L(G) without ff. Then a∈K‾a \in \overline{K}, f∈Σucf \in \Sigma_{uc} and af∈L(G)af \in L(G), but af∉K‾af \notin \overline{K}. The largest controllable sublanguage is {ε}\{\varepsilon\}: a supervisor can avoid failures only by never starting the machine. A brute force check over all strings of length at most 8 gives the same result.
  • Controllable: "start at most once". K‾={ε,a,ab,af,afr}\overline{K} = \{\varepsilon, a, ab, af, afr\}. After ε\varepsilon, abab and afrafr the machine is idle, and no uncontrollable event is possible. After aa, both bb and ff lead into K‾\overline{K}. After afaf only rr is possible, and it is controllable. The supervisor disables aa after the first start.
  • Not controllable: a buffer that must not overflow. Machine M1M_1 puts parts into a buffer with one slot by its uncontrollable finish b1b_1, and it starts by the controllable a1a_1. The specification forbids b1b_1 when the buffer is full. The string a1b1a1a_1 b_1 a_1 is legal (the buffer is full and M1M_1 works again), but then b1b_1 overflows the buffer. The fix is to disable a1a_1 one step earlier, when the buffer is full. The example on supervisory control theory works this out.
  • An intersection that is not controllable. Let L(G)={aub,auc}‾L(G) = \overline{\{aub, auc\}} with Σuc={u}\Sigma_{uc} = \{u\}, and let K1={a,aub}K_1 = \{a, aub\} and K2={a,auc}K_2 = \{a, auc\}. Both are controllable, since auau is in both prefix closures. But K1∩K2={a}K_1 \cap K_2 = \{a\} has the prefix closure {ε,a}\{\varepsilon, a\}, and au∈L(G)au \in L(G) leaves it. So {a}\{a\} is not controllable.
  • Uncontrollable events outside L(G)L(G) do not count. If σ∈Σuc\sigma \in \Sigma_{uc} but the plant never executes σ\sigma after ss, then sσ∉L(G)s\sigma \notin L(G) puts no condition on KK.
  • Supremal controllable sublanguage. sup⁡C(E)\sup C(E) is the largest controllable sublanguage of EE. For regular EE it is regular, and the fixed point on the product automaton computes it.
  • Lm(G)L_m(G)-closed. K⊆Lm(G)K \subseteq L_m(G) is Lm(G)L_m(G)-closed if K=K‾∩Lm(G)K = \overline{K} \cap L_m(G). Together with controllability it gives a nonblocking supervisor with marked language KK.
  • Observability and normality. When some events are not observed, a supervisor also needs KK to be observable. Normality is a stronger condition that is closed under union.
  • State-based form. For a plant automaton and a set of states QQ, the analog is a set that no uncontrollable transition leaves, and that the supervisor can keep the state in. This is the discrete form of a control invariant set, and it is the safety part of a game in reactive synthesis.
  • Controllability of linear systems. The controllability of x′=Ax+Bux' = A x + B u is a different notion with a similar name: it asks whether every state can be reached, not whether a specification can be enforced.

References

  1. P. J. Ramadge and W. M. Wonham, Supervisory control of a class of discrete event processes, SIAM Journal on Control and Optimization 25(1), 1987, pages 206 to 230, the definition of controllability and the existence theorem for supervisors
  2. W. M. Wonham and P. J. Ramadge, On the supremal controllable sublanguage of a given language, SIAM Journal on Control and Optimization 25(3), 1987, pages 637 to 659, closure under union and the supremal controllable sublanguage
  3. Christos G. Cassandras and Stéphane Lafortune, Introduction to Discrete Event Systems, third edition, Springer, 2021, Chapter 3, Supervisory Control
  4. W. Murray Wonham and Kai Cai, Supervisory Control of Discrete-Event Systems, Springer, 2019, Chapter 3, Supervision of Discrete-Event Systems, Basics

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/QSGJ5D/text.yaml