Motivation
Supervisory control theory, introduced by Ramadge and Wonham (SIAM J. Control Optim. 25(1), 1987), models a manufacturing cell, a communication protocol or a resource-sharing system as an automaton whose transitions are events, some of which an external controller may disable. A controller, the supervisor, is itself an automaton that watches the event sequence and, in each of its states, decides which controllable events are currently allowed. The framework is the standard model for logical (untimed) control of discrete event systems and is the subject of textbooks such as Cassandras and Lafortune (Springer, 2008) and Wonham and Cai (Springer, 2019).
A practical concern is supervisor size. The synthesis procedure of the paper (§9) produces a supervisor whose automaton records exactly as much of the past as the desired closed-loop language requires, but there are many other supervisors realising the same behaviour. The paper's second main result, the quotient structure theorem (Theorem 10.1, p. 223), explains how they are related: any supervisor with two natural economy properties is obtained from a canonical one, built on a recognizer of the closed-loop language, by lumping states. This is the structural starting point of the later literature on supervisor reduction.
Setting
A generator is G=(Q,Σ,δ,q0,Qm): a state set Q, a finite alphabet Σ of events, a partial transition function δ:Σ×Q→Q, an initial state q0 and marker states Qm⊆Q. Extending δ to strings gives the generated language L(G) (strings along which δ is defined from q0) and the marked language Lm(G) (those that end in Qm). The closure Kˉ of a language K is its set of prefixes. Throughout, G is trim: L(G)=Lˉm(G). A recognizer for a language K is an accessible generator whose marked language is K.
A subset Σc⊆Σ of events is controllable. A supervisor is S=(S,ϕ) where S=(X,Σ,ξ,x0,Xm) is an accessible deterministic automaton with possibly infinite state set and ϕ:X→{0,1}Σc is a state feedback map; events outside Σc are always enabled. The closed loop S/G runs S and G in lockstep and allows σ from (x,q) iff ξ(σ,x) and δ(σ,q) are defined and ϕ(x)(σ)=1. Its languages are L(S/G), Lm(S/G) (marker set Xm×Qm) and Lc(S/G)=L(S/G)∩Lm(G).
S is complete if S never refuses an event that the plant can execute and ϕ enables: s∈L(S/G), sσ∈L(G) and ϕ(ξ(s,x0))(σ)=1 imply sσ∈L(S/G). It is proper if it is complete and Lˉm(S/G)=Lˉc(S/G)=L(S/G).
A projection π:S→S^ is a surjection X→X^ with π(x0)=x^0, Xm=π−1(X^m), ξ^(σ,π(x))=π(ξ(σ,x)) wherever ξ(σ,x) is defined, and ϕ^∘π=ϕ.
For a language K, strings s,s′ are Kˉ-equivalent if st∈Kˉ⟺s′t∈Kˉ for all t. The automaton S is Kˉ-reduced if Kˉ-equivalent strings of Kˉ lead to the same state, and Kˉ-trim if every state is reached by a string of Kˉ.
Formalization targets
Goal: Theorem 10.1 (quotient structure theorem)
Let S=(S,ϕ) be complete, K1:=Lm(S/G), K3:=L(S/G), with S K3-reduced and K3-trim, and let S^0=(X0,Σ,ξ0,x00,X0) be a trim recognizer for K3. Then there are Xm0⊆X0 and ϕ0 such that S0=((X0,Σ,ξ0,x00,Xm0),ϕ0) satisfies
S0 complete,Lm(S0/G)=K1,L(S0/G)=K3,∃π:S0→S,S proper⇒S0 proper.
Milestones
Proposition 8.1 (p. 219): for complete S and a projection π:S→S^, (i) π is unique; (ii) (Lm,Lc,L)(S/G)=(Lm,Lc,L)(S^/G); (iii) S^ is complete; (iv) nonblocking, nonrejecting and proper transfer in both directions.
The displayed steps of the proof of Theorem 10.1 (pp. 223–224): π(ξ0(s,x00)):=ξ(s,x0) is well defined on X0; it is a projection once Xm0:=π−1(Xm) and ϕ0:=ϕ∘π; L(S0/G)=K3 follows from two enablement conditions; S0 is complete; and Lm(S0/G)=K1.
Significance
Theorem 10.1 says that the reduction properties the synthesis procedure of §9 guarantees are exactly what makes a supervisor a quotient of the canonical supervisor on a recognizer of K3. Combined with Proposition 8.1, which shows that a projection preserves every closed-loop language, completeness and properness, it identifies supervisors with the same behaviour up to state lumping. This is the basis on which supervisor reduction and the comparison of supervisor realisations rest.
The result is proved in the paper. What this mission produces is a machine-checked version of the model (generators with partial transitions, supervisors with infinite state sets, the closed loop, completeness and properness) and of the two results above. No formalization of Ramadge–Wonham supervisory control was found on Prove2Me at the time of drafting; the definitions of this mission are reusable by any later mission on the theory, including the synthesis results of the first mission of the series.
Difficulty
The mathematics is elementary; the difficulty is bookkeeping with partial functions. Every step compares runs of three automata (the plant, S and the recognizer) that may be undefined at different strings, and a proof must track at each string which of them is defined. The tempting shortcut of treating the projection condition as full commutation, ξ^(σ,π(x))=π(ξ(σ,x)) for all σ,x, is not available: the page asks for it only where ξ(σ,x) is defined, and Proposition 8.1 (ii) holds only because completeness of S compensates for transitions that ξ^ has and ξ lacks. Likewise, the map π of Theorem 10.1 is defined through arbitrary representatives, and its well-definedness uses both that S^0 recognizes K3 with all states marked and that S is K3-reduced.
Formalization scope
The alphabet is a Lean type α with [Fintype α] (the page's Σ, which is Lean syntax); strings are List α, sσ is s ++ [σ]. A generator is a structure with its own state type in Type and a partial transition δ : α → Q → Option Q; its extended transition is the left fold. The feedback map has type X → Ec → Bool, and "σ enabled at x" means σ∈/Σc or ϕ(x)(σ)=1; the page's ϕ:X→{0,1}Σ is the same object under this extension. The closed loop is run from (x0,q0) without forming its accessible part, which changes none of its languages. Existential statements over supervisors quantify over state types in Type.
Standing assumptions that are hypotheses of every theorem: Σ finite; G trim, stated as 𝒢.L = pre 𝒢.Lm; every supervisor automaton accessible. Theorem 10.1 and its proof steps also assume S complete, S K3-reduced and K3-trim, and a trim recognizer R for K3 with all states marked, and S0 is built on that given R rather than on a recognizer chosen by the prover. The conclusion names K1 and K3 as the languages of S, not as free variables. A projection predicate that drops π(x0)=x^0, surjectivity or the marker equation would make the goal's clause (ii) trivially satisfiable by a constant map; the sanity check shipped with the mission rules this out on the primitive plant of §2.3.
Contributions welcome: proofs of the milestones, lemmas relating the fold-based extended transition to concatenation, and a reusable library for closed-loop runs.
Selected references
- P. J. Ramadge and W. M. Wonham, Supervisory Control of a Class of Discrete Event Processes, SIAM J. Control Optim. 25(1):206–230, 1987. https://doi.org/10.1137/0325013
- C. G. Cassandras and S. Lafortune, Introduction to Discrete Event Systems, 2nd ed., Springer, 2008. https://doi.org/10.1007/978-0-387-68612-7
- W. M. Wonham and K. Cai, Supervisory Control of Discrete-Event Systems, Springer, 2019. https://doi.org/10.1007/978-3-319-77452-7