Manuscript Offprint
arXiv:2610.21237Compositional Automata Learning of Timed Synchronous Systems
Hanyue Chen , Chang Liu , and Miaomiao Zhang
School of Computer Science and Technology, Tongji University, Shanghai, China
{2111285,2433258,miaomiao}@tongji.edu.cn
Abstract. Active model learning is a crucial technique for automatically constructing formal models of black-box timed systems. However, existing learning approaches typically construct a single monolithic automaton for a timed system with multiple synchronous components, obscuring its component structure and hindering component-level analysis. We propose a compositional learning approach that constructs a deterministic real-time automaton (RTA) for each component with access only to the target system as a whole. Upon termination, the learned RTAs form a network that exhibits exactly the same timed behaviors as the target system. Within the respective resource limits, our implementation terminates successfully on 213 of the 240 (88.8%) randomly generated benchmark instances and all six adapted case-study benchmarks, and requires less learning time than monolithic approaches on some instances.
Keywords: Active model learning · Timed systems · Compositional learning · Real-time automata · Black-box systems
1 Introduction
Timed systems are widely used in real-world applications, including embedded systems, automotive control, and communication protocols. Model-based verification of such systems relies on formal models that faithfully capture their real-time behaviors. However, building such models manually is labor-intensive and error-prone, especially when the system is accessible only as a black box.
Active model learning [31], which collects information from a target system on demand to construct its model automatically, has therefore become an important modeling technique. The L* algorithm [7] formalizes this interaction through a learner that issues membership queries and equivalence queries to a teacher with access to the target system. A membership query asks whether the target system can exhibit a given behavior, whereas an equivalence query asks whether a hypothesis matches the target system. By organizing the teacher's answers in an observation table, the learner constructs a hypothesis and incrementally refines it until the teacher returns true for an equivalence query. Subsequent research has applied active model learning to various model classes [1,15,25] and developed more efficient learning algorithms [16,33,34]. For timed systems, active learning algorithms have been developed for real-time automata (RTAs) [4],
H. Chen et al.
Mealy machines with timers [17,32], and timed automata [3,30,35]. Tree-based information structures have also been introduced to improve the efficiency of learning timed systems [21,28,29]. However, these approaches construct a single monolithic automaton for the entire timed system. For a timed system composed of multiple synchronous components, a monolithic model obscures the component structure, making it difficult to perform component-level analysis or apply verification techniques such as compositional abstraction [9,10,20]. Moreover, the global state space can grow rapidly with the number and complexity of components, increasing the potential cost of monolithic learning.
Motivated by these considerations, this paper presents a compositional active learning approach for timed synchronous systems. Given the number of system components and their respective action sets, the approach constructs a separate deterministic RTA for each component. Upon termination, the learned RTAs form a network that exhibits exactly the same timed behaviors as the target system. Building on compositional active learning for untimed synchronous systems [23], our approach comprises multiple component learners, a query adapter, and a system-level teacher. Each learner learns an individual component by issuing component-level queries, such as whether the component can exhibit a given behavior. In contrast, the teacher can answer only system-level queries, such as whether the entire system can exhibit a given behavior. The query adapter translates component-level queries into system-level queries and derives component-level answers from the teacher's responses.
Although this architecture has been successfully applied to untimed synchronous systems, extending it to timed synchronous systems requires addressing several challenges. First, continuous time gives rise to infinitely many time delays, so information collected from individual timed words must be generalized. The adapter abstracts timed words as RTA region words and represents confirmed component behaviors as positive-evidence RTAs. Second, answering a component-level membership query may require lifting the queried component behavior to a system-level behavior that respects the timing and synchronization constraints of all components. The adapter uses timed reachability over these positive-evidence RTAs to find such a behavior. Finally, with only system-level access, the adapter may temporarily be unable to answer some component-level membership queries and may return spurious counterexamples to component-level equivalence queries. Each component learner runs an L*-style procedure that organizes incomplete timed information in a timed observation table with unknown entries (TOTU), uses SMT to construct RTA hypotheses, and employs a backtracking mechanism to handle possible spurious counterexamples.
In summary, the contributions of this paper are as follows.
– We present a compositional learning approach that learns an RTA for each component of a timed synchronous system using only system-level access.
– We develop a query adapter equipped with positive-evidence RTAs and TOTU-based component learners to address the challenges encountered in compositional learning of timed synchronous systems.
– We implement and evaluate our approach, which terminates successfully on 213 of the 240 (88.8%) randomly generated benchmark instances and all six adapted case-study benchmarks within the respective resource limits, and requires less learning time than monolithic approaches on some instances.
Let be a set of real-valued variables, called clocks. A clock valuation over is a function . We write for the clock valuation that assigns value to clock , for . All clocks grow at the same rate as time elapses. For , we write for the valuation that maps each clock to . We write for the set of constraints over , generated by , where and . We write if constraint evaluates to true under . A real-time automaton (RTA) is a finite automaton equipped with a single clock.
Definition 1 (Real-Time Automaton). A real-time automaton is a tuple , where is a finite set of locations, is the initial location, is the alphabet, is the single clock, and is the set of transitions.
Each transition represents a jump from the source location to the target location by performing an action when its guard is satisfied by the current clock valuation. After each transition, the clock is reset to 0. A state of is a pair , where is a location and is a clock valuation over . A run of on a timed word is a sequence such that and, for every , there exists a transition with , and . We call deterministic if it has at most one run on any given timed word.
In this paper, we focus on the execution behaviors of timed systems and use RTAs as executability models without distinguishing accepting and non-accepting locations. On this basis, the timed language of A is defined as
Thus, is prefix-closed, since every prefix of a run is again a run. To model a system composed of multiple interacting components, RTAs can be composed into a network of real-time automata (NRTA).
H. Chen et al.
Definition 2 (Network of Real-Time Automata). A network of real-time automata is a tuple , where each component is an RTA and the clocks are pairwise distinct.
For an NRTA , we instantiate the generic notation above as for its alphabet and for its clock set. For a valuation over and , is a new valuation over with if and otherwise, for every . We say that has a run on a timed word if there is a sequence
where each location vector , , for every , and for every :
-
For every component , there is a transition satisfying if , and otherwise;
-
Thus, NRTA components follow multicast synchronization: an action can occur only when all components with can take a -transition, and they take it simultaneously. The timed language of an NRTA is
Since every prefix of an NRTA run is again an NRTA run, is prefix-closed.
For a timed word , the behavior observed by component consists only of actions from its alphabet . This behavior is captured by the projection , which keeps only actions in and sums the delays between consecutive retained actions. For example, if and , then , where the delay before is and the delay before the final is . With this projection, the language of an NRTA admits the following component-wise characterization.
Lemma 1. For an NRTA and a timed word ,
This lemma follows from the definitions of NRTA languages and projections. The proof is provided in Appendix A.
3 Learning Setting and Approach Overview
3.1 Learning Setting
Consider a multi-component black-box timed system represented by an NRTA , where each is a deterministic RTA. The goal is to automatically construct an NRTA using limited prior information and a system-level teacher, such that .

Fig. 1. Learning architecture for compositional learning of N.
The prior information consists of the number of components n and the component alphabets , as assumed in compositional learning of un-timed synchronous systems [23]. Architecture descriptions commonly provide such interface-level information by identifying modules and synchronization actions. The components' internal locations and transitions remain unavailable.
The system-level teacher holds the underlying target NRTA N and is able to answer two kinds of queries:
– Membership query: given a timed word , it returns whether .
– Equivalence query: given a hypothesis NRTA , it returns if , and otherwise returns , where is a counterexample with minimal .
This teacher setting fits integrated timed systems whose components cannot be queried separately, such as cyber-physical systems or software modules exposed only through a system interface. As in prior active automata learning [3,4,7], the system-level teacher considered in this paper is idealized, with access to the target model N and exact answers to both query types. All subsequent development assumes this idealized teacher. In practical applications, membership queries can be controlled tests, whereas equivalence queries can be approximated by PAC-style testing or mutation testing [26,27].
Notably, the learned network need only satisfy , rather than for every . This is because some component behaviors cannot be identified from system-level queries alone, as illustrated in Section 6.
3.2 Approach Overview
Figure 1 shows our compositional learning architecture, which consists of a system-level teacher, a query adapter, and n component learners. Each learner runs an -style active learning algorithm to learn a hypothesis for the hidden component by issuing component-level membership and equivalence queries to the adapter. The adapter mediates between the learners and the system-level teacher by translating component-level queries into system-level queries and mapping returned counterexamples back to component-level refinements.
To answer a component-level membership query asking whether a timed word belongs to , the adapter builds a timed word from and asks the system-level teacher whether . If
H. Chen et al.
the teacher’s answer determines the component-level result, the adapter returns or ; otherwise, it returns , meaning unknown with the current information.
Once a learner constructs a hypothesis from the collected information, it submits a component-level equivalence query to the adapter on whether . The adapter does not answer this query immediately. Instead, it waits until all component hypotheses are available, assembles a hypothesis for the entire system , and submits a system-level equivalence query to the teacher. If the teacher returns , learning terminates. Otherwise, from the returned system-level counterexample , the adapter derives a component-level answer for each learner , where and indicates whether the learner should include in or exclude it from the language of its next hypothesis.
4 Query Adapter
For brevity, we write for the teacher's answer to the system-level membership query on whether , and for its answer to the system-level equivalence query on whether .
4.1 Positive Evidence
We call a timed word positive evidence for component if the adapter has established that .
Lemma 2. For a timed word and a component of , if for every , then
Proof. By Lemma 1, iff all its component projections belong to their respective component languages. The premise of Lemma 2 already establishes projection membership for every , leaving only , which proves the stated equivalence.
Based on Lemma 2, the adapter incrementally accumulates positive evidence for each component to help derive answers to component-level queries from the system-level teacher's responses. Because time is continuous, the adapter generalizes positive evidence beyond isolated timed words using RTA region words.
Definition 3 (RTA Region Word). Let be a timed word. Its RTA region word is , where, for each , if and otherwise .
For instance, if , then . Each pair in is called an RTA region action.
Unlike standard regions, which abstract clock valuations [2], these intervals abstract delays and can be viewed as a variant of region abstraction tailored to our setting.
Algorithm 1: Updating with positive evidence
input: the RTA ; positive evidence for .
1 ; 2 for to do 3 if then 4 ; 5 else 6 introduce a fresh location ; 7 ; 8 ; 9 ;
Lemma 3. For any timed words , if , then
This follows because RTA transition guards use only integer constants and the single clock is reset after every transition. The proof is detailed in Appendix B. Thus, once a timed word is confirmed as positive evidence for component , any timed word with is also positive evidence for .
For each component , the adapter maintains a positive-evidence RTA such that every is positive evidence for . Initially, contains only the initial location and no transitions, i.e., , and . When a timed word is confirmed as positive evidence for , the adapter updates according to Algorithm 1. The algorithm starts from the initial location of and scans the timed actions of (Lines 1–2). At a location , if there exists a transition such that the clock valuation satisfies the guard , the algorithm follows it and moves to (Lines 3–4). If no such transition exists, it creates a fresh successor and inserts (Lines 6–8), where is if , and otherwise. By construction, the followed or inserted transition sequence corresponds to the RTA region word . Hence, after the update, every timed word with belongs to . This update procedure is denoted by . Since is the only procedure that updates , its construction and Lemma 3 ensure that the language inclusion is preserved throughout learning.
4.2 Membership Query
Given a component-level membership query from on whether a timed word belongs to , the adapter answers it in three stages.
Stage 1. The adapter first directly views as a system-level timed word over and submits it to the teacher. By Lemma 1, if , then for every . In this case, the adapter calls for each and returns to . Conversely, if , then there must be some component with . In this case, the adapter proceeds to Stage 2.
H. Chen et al.
Stage 2. The adapter checks whether for every . If so, the language inclusion implies that for every . Since , Lemma 2 implies that , and the adapter returns . If some index satisfies , the adapter cannot yet determine whether and proceeds to Stage 3 for further analysis.
Stage 3. The adapter attempts to construct a system-level timed word such that and for every . Given , the adapter first builds an RTA , where consists of distinct locations , and . Thus, by construction, for any timed word with , iff . Then, the adapter constructs an NRTA
and checks whether has a run reaching a location vector whose -th entry is . If such a run is found, it induces the required timed word . The adapter then issues a system-level membership query to the teacher on whether , obtaining the answer . Since gives for every , Lemmas 2 and 3 imply that is also the answer to the original component-level membership query on whether . The adapter returns to and calls when . If no such run exists, the adapter cannot yet determine whether and returns ?.
4.3 Equivalence Query
Once learner constructs a hypothesis RTA , it submits a component-level equivalence query to the adapter, asking whether . The adapter waits until every learner has issued an equivalence query, collects their hypotheses, assembles , and asks the teacher whether . If , learning terminates. Otherwise, the adapter receives a counterexample . For each component , write . The adapter returns component-level refinements by considering the following two cases.
Case 1: . In this case, is a positive system-level counterexample. By Lemma 1, for every component . Therefore, the adapter calls and returns to learner , indicating that the learner should ensure in its next hypothesis.
Case 2: . In this case, is a negative system-level counterexample. Let be the timed word obtained from by removing its last timed action. Since is prefix-closed, . Because the teacher returns a shortest counterexample, cannot be a shorter system-level counterexample, and hence . By Lemma 1, for every component , so the adapter calls . The adapter then returns a component-level refinement to each learner according to the following rules.
-
If , then , and the adapter returns ;
-
If and , the adapter also returns ;
-
Otherwise, the adapter returns .
By Lemma 1 and the language inclusion , at least one word returned by the third rule is indeed outside the corresponding component language. Notably, when the third rule applies to several learners, a returned component-level counterexample may be spurious. For some such learner , may in fact belong to , although the collected evidence is insufficient for the adapter to infer this. Such spurious counterexamples may mislead component learners, and Section 5.3 describes how they are handled.
5 Component Learner
Each component learner runs an -style learning algorithm using a timed observation table with unknown entries (TOTU) to organize observed component behaviors. To describe TOTU operations, we use to denote the concatenation of RTA region words. For learner , we write for the adapter's answer to its component-level membership query on timed word .
5.1 Timed Observation Table with Unknown Entries
Definition 4 (TOTU). A timed observation table with unknown entries for component is a tuple . Its components are as follows.
– is the alphabet of ;
– S, R, and E are finite sets of RTA region words over , called the representative, boundary, and suffix sets, respectively;
- is a three-valued classification function, where records whether a timed word with is known to belong to ( ), known to be outside it ( ), or not yet determined (?).
Each pair indexes one table entry, whose value is . Each RTA region word indexes one row, whose value is . Since some entries may have value ?, we define the following potential equality relation between rows.
Definition 5 (Potential Equality). Given a TOTU , the rows indexed by are potentially equal, denoted by , if, for every , either , , or .
The value ? acts as a wildcard that may later match either or . If , then the two indexed rows are already distinguishable in the current table. The learner maintains the following four standard table properties.
-
Disjoint: ;
-
Reduced: ;
-
Closed: : ;
-
Consistent: : if and there is an RTA region action such that , then .
H. Chen et al.
Intuitively, rows indexed by words in S represent potential hypothesis locations, while R stores additional words used to discover locations and transitions. Disjointness keeps S and R separate, reducedness distinguishes rows indexed by S, closedness matches each R-indexed row to an S-indexed row, and consistency preserves potential equality under one-step extensions. A table is prepared when it satisfies all four properties.
Learner initializes with and . The initial classification satisfies , while every other entry has value . Then calls , which processes each with through up to three stages, stopping once a stage assigns .
Stage 1. Infer using the prefix-closure of . If there is some with and is a prefix of , set . If there is some with and is a prefix of , set .
Stage 2. Choose any timed word with and check whether . If so, set , since .
Stage 3. Issue a component-level membership query to the adapter on whether , and set .
The disjoint and reduced properties are preserved by all TOTU operations introduced later in this paper. If T is not closed or not consistent, the learner adjusts it by the following two operations, respectively.
Making T closed. If there exists such that for all , moves from to . For each , let . If , adds to and sets for all .
Making T consistent. In this case, there exist with and an RTA region action such that . For some , the values and are both in and are different. Then adds the suffix to and sets for all .
After either operation, calls Fill(T). Enforcing closedness may break consistency, and adding a distinguishing suffix for consistency may break closedness. Thus, the learner repeats these operations until the table is prepared.
5.2 Hypothesis Construction
To construct a hypothesis from a prepared TOTU, first uses an SMT solver to seek a concrete value in for each entry whose value is . defines a symbolic classification function over table entries. For each entry , is a fresh symbolic Boolean if , and otherwise. Using , row equality is encoded as
Such a timed word can be obtained by choosing one delay from each interval in the RTA region word, e.g., 3 from [3,3] and 2.5 from (2,3).
On this basis, the closedness and consistency of the table are encoded by
The prefix-closure constraint of is encoded by
In addition, entries inducing the same RTA region word are constrained to have the same value, as encoded by
A TOTU T is satisfiable if an SMT solver finds the conjunction satisfiable. In this case, a satisfying model induces a new classification function . For each RTA region word , let . The hypothesis is then constructed as follows.
Stage 1 (location generation). For each , introduces a location , with as the initial location.
Stage 2 (transition generation). For each and RTA region action with , finds such that and . The learner then introduces a transition , where is chosen arbitrarily.
Stage 3 (guard arrangement). Given a transition guard , let be its lower-bound constraint, i.e., a constraint of the form or . For each location and action , the learner selects all transitions whose source is and action is , and then orders them as , where and for all . Learner replaces the guard of each by for and the guard of by .
Stage 4 (non-executable-location pruning). The value means that the learner currently treats every timed word with as outside . Accordingly, the learner removes every location with , together with all transitions whose source or target location is , so that such words and their extensions are excluded from .
Notably, a prepared TOTU may still be unsatisfiable because potential row equality is nontransitive. For example, there may exist and with and , yet no classification function satisfies both and . In this case, applies a fallback strategy that sets , keeping the learning process moving. As learning proceeds, newly collected information may make the table satisfiable again.
Here, and are rewritten as and , respectively.
H. Chen et al.
Algorithm 2: Learning NRTA from a system-level teacher
input : the number of components; component alphabets . output: upon termination, an NRTA with .
1 initialize learners with TOTUs ; 2 initialize the adapter with RTAs ; 3 repeat 4 for to do 5 Fill(); 6 make prepared; 7 if is satisfiable then construct from ; 8 else ; 9 ; 10 ans ; 11 if ans = (, ) then 12 for to do 13 derive from ; 14 refine using ; 15 until ans = ; 16 return ;
5.3 Counterexample-Guided Refinement
After issuing a component-level equivalence query, learner receives if the algorithm has not terminated. Here is a component-level counterexample and . Let . The learner refines according to . To handle possible spurious counterexamples (cf. Section 4.3), each learner maintains a backtracking stack , which is initially empty.
– If , the learner first pushes the pair onto , where is a snapshot of . For each prefix of not in , the learner adds to and sets for all . It then sets .
– If , the learner first checks whether contains some pair such that is a prefix of . If so, was previously updated based on a spurious counterexample. The learner therefore chooses such a pair with the shortest , rolls back to the state recorded by , and pops the selected pair and all pairs above it from . After this check, for each prefix of not in , the learner adds to and sets for all . It then sets .
6 Compositional Learning Algorithm
Based on the preceding components, Algorithm 2 gives the overall compositional learning algorithm. It interacts with the system-level teacher for the target network and takes the number of components and the component alphabets as input. When it terminates, the timed language of the returned network is equivalent to that of . At initialization, each learner creates its initial TOTU , and the adapter initializes the positive-evidence RTA for component (Lines 1–2). The algorithm then proceeds in rounds. In each round, every learner first calls Fill( ), makes prepared, and constructs from if it is satisfiable; otherwise, it sets (Lines 5–8). After all component hypotheses are constructed, the adapter forms and submits a system-level equivalence query to the teacher (Lines 9–10). If the teacher returns , the algorithm terminates and returns . Otherwise, the teacher returns a system-level counterexample . For each component, the adapter derives a component-level answer from , and learner refines using (Lines 13–14). After all learners have refined their tables, the next round starts. Algorithm 2 returns only after the system-level teacher answers to the equivalence query on (Lines 15–16), yielding the following correctness result.
Theorem 1. If Algorithm 2 terminates and returns a hypothesis network , then .
Unlike learning algorithms for untimed synchronous systems [23] and individual RTAs [4], Algorithm 2 does not guarantee termination. For an individual RTA, termination relies on exact query answers and the finite behavioral partition induced by its clock ceiling, i.e., the largest integer constant in its guards. In our compositional setting, however, unknown answers and possible spurious counterexamples may cause repeated refinement and backtracking, so the same convergence argument does not apply. Nevertheless, the algorithm successfully completes most benchmark instances within the resource limits (cf. Section 7). As future work, we will investigate general termination guarantees, which may require additional prior knowledge about the target systems.
The learned components need not be individually language-equivalent to their targets, and such equivalence is generally unidentifiable from system-level queries. For example, Fig. 2 compares the target network with a hypothesis network , where .
Fig. 2. Target and hypothesis component RTAs.
By the definition of the timed language of an NRTA, in both and , an action can occur exactly when its preceding delay exceeds five time units. Hence, . However, , since a timed word such as belongs only to . The system-level teacher therefore cannot return a counterexample that exposes this component-level difference.
Despite this limitation, for any subset of components, the target and learned subnetworks have the same timed behaviors over actions not used by components outside the subset. This allows verification of such behaviors to focus on the selected components. The following lemma formalizes this property.
Lemma 4. Suppose Algorithm 2 terminates with . For every nonempty , let , , and . Then,
The proof is provided in Appendix C.
H. Chen et al.
Table 1. Experimental results on learning randomly generated benchmark instances
| Group | n | |Σ| | |Qi| | |Δi| | Solved | PAR-1 (in seconds) | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TOT | TCT | CL | TOT | TCT | CL | ||||||
| G1 | 2 | 3 | 2 | 3.88 | 7.85 | 21 | 30 | 28 | 98.587 | 6.107 | 31.521 |
| G2 | 3 | 3 | 2 | 3.77 | 7.78 | 7 | 20 | 26 | 240.342 | 123.023 | 72.827 |
| G3 | 2 | 4 | 2 | 3.73 | 7.83 | 17 | 30 | 30 | 149.354 | 12.268 | 13.989 |
| G4 | 2 | 3 | 3 | 4.08 | 7.67 | 16 | 30 | 28 | 146.130 | 6.606 | 31.840 |
| G5 | 2 | 3 | 2 | 7.93 | 7.97 | 9 | 23 | 26 | 213.846 | 104.549 | 60.191 |
| G6 | 2 | 3 | 2 | 3.85 | 15.85 | 16 | 30 | 29 | 143.062 | 21.598 | 19.637 |
| G7 | 3 | 4 | 3 | 5.96 | 7.93 | 0 | 8 | 23 | 300.000 | 236.655 | 108.065 |
| G8 | 4 | 5 | 2 | 3.87 | 7.89 | 3 | 4 | 23 | 276.780 | 260.566 | 97.315 |
| Overall | - | - | - | - | - | 89 | 175 | 213 | 196.013 | 96.422 | 54.423 |
7 Evaluation
We implement the compositional learning approach in Java with Z3 (v4.14.1.0) for SMT solving. We denote our approach by CL and compare it with two monolithic approaches that learn a single automaton, namely one based on timed observation tables (TOT) [30] and one based on timed classification trees (TCT) [28]. As public implementations of the baselines are unavailable, we reimplement them from their published algorithms in Java and provide the prior information required by their respective learning settings. All three approaches use the same system-level teacher backend. Experiments run on an Ubuntu 22.04 virtual machine with an AMD EPYC 9754 processor. The artifact repository provides the source code, benchmark instances, and raw data [13]. Further experimental setup details and an illustrative learning example are provided in Appendices D and F, respectively.
7.1 Randomly Generated Benchmark Instances
We first evaluate the approaches on eight groups of randomly generated synchronous RTA networks, each containing 30 benchmark instances. Each run is subject to a 300-second timeout and a 16-GB memory limit.
Table 1 reports the group-wise and overall results. For each group, and give the fixed number of components and the fixed size of the system alphabet, while is the fixed number of locations in each component. The quantities and are averaged over all components and benchmark instances in the group, where is the number of transitions and is the largest integer constant in the guards of component . “Solved” is the number of benchmark instances successfully learned within the time and memory limits. All other runs timed out without exhausting the available memory. PAR-1 is the average running time over all benchmark instances, with each timeout assigned the 300-second cutoff. Using G1 as the baseline, G2–G6 increase , , , , and , respectively. G7 and G8 simultaneously increase several structural parameters to form larger-scale benchmark instances.
Table 2. Experimental results on learning adapted case-study benchmark instances
| Benchmark | n | TOT | TCT | CL | ||||
|---|---|---|---|---|---|---|---|---|
| AUTOSAR | 9 | 7 | 3.11 | 4.78 | 3.33 | TO | TO | 39.956 |
| Fischer | 3 | 10 | 3.67 | 8.00 | 1.33 | 65.538 | 4.488 | 469.573 |
| IC Final-Test | 2 | 9 | 9.00 | 16.00 | 12.50 | TO | TO | 69.405 |
| 2Doors | 4 | 6 | 5.00 | 6.50 | 4.00 | TO | TO | 215.970 |
| Bridge | 4 | 6 | 4.50 | 9.00 | 1.75 | TO | TO | 70.606 |
| Not-Not-And | 5 | 8 | 4.00 | 6.00 | 1.40 | TO | 294.141 | 9.107 |
Across all groups, TCT consistently outperforms TOT, which is consistent with the reported efficiency advantage [28]. CL achieves success rates comparable to TCT on G1–G6, while solving substantially more instances than both monolithic approaches on the larger-scale groups G7 and G8. One possible explanation is that monolithic learning becomes more costly as the target system grows, particularly with increases in the number of components and component transitions, as suggested by G2 and G5. By learning component hypotheses separately, CL may mitigate the effect of growth along these dimensions. This potential advantage comes with additional processing for unknown entries and possible spurious counterexamples, which may offset the benefits of compositional learning on some instances. For instance, backtracking occurs in 112 of the 213 successful CL runs. Across these 213 runs, the mean and maximum backtracking counts are 1.30 and 11, respectively.
Figure 3 shows the overlap of the instances solved by the three approaches across all benchmark instances (areas not to scale). Overall, CL solves 213 of the 240 (88.8%) instances, compared with 89 for TOT and 175 for TCT. CL does not solve 13 instances solved by at least one monolithic approach, while uniquely solving 51 others.

Unsolved: 14
Fig. 3. Solved-instance overlap
On the 85 jointly solved instances, CL averages 14.3 system-level equivalence queries, fewer than TOT (33.8) and TCT (28.2), while its 367.7 system-level membership queries lie between TOT (214.6) and TCT (435.2). Since answering a system-level equivalence query generally requires more computation than answering a system-level membership query, the lower system-level equivalence query count may partly explain CL's runtime advantage on some instances. Additional analyses are provided in Appendix E.
7.2 Adapted Case-Study Benchmarks
We further evaluate the approaches on six benchmark instances adapted from case studies reported in the literature [5,9] and examples provided by verification tools [6,8]. The adaptations preserve component structure and relevant timed synchronization while re-encoding non-NRTA features, such as location invariants and shared variables, as documented in the artifact repository [13]. Each run is subject to a 600-second timeout and a 16-GB memory limit.
H. Chen et al.
Table 2 reports model sizes and learning times for each instance. The notation follows Table 1, except that reports the average number of locations per component because component sizes may vary within an instance. All running times are reported in seconds, and “TO” denotes a timeout. CL solves all six instances, while TCT solves two and TOT solves one. On Fischer, all three approaches terminate, with both monolithic approaches requiring substantially less learning time than CL. Although these results do not demonstrate a uniform runtime advantage, they support the feasibility of compositional learning across the diverse synchronization structures in these case studies.
8 Related Work
Active learning of timed systems has been studied for target models such as real-time automata [4,5], Mealy machines with timers [17,32], and timed automata [3,30,35]. Tree-based data structures have also been introduced to accelerate timed learning [21,28,29]. These works usually rely on an idealized teacher but construct a monolithic automaton, whereas our approach constructs a network of component RTAs using only system-level queries. The component learners are inspired by the learner design of RTA learning [4]. However, the compositional learning target requires additional mechanisms to deal with unknown answers and possible spurious counterexamples, such as TOTUs with unknown entries, SMT-based hypothesis construction, and adapter-driven refinement.
Compositional active learning has mainly focused on untimed systems. Some works consider settings with decomposable system outputs [22], no synchronization among components [18], or direct access to individual black-box components [12]. For untimed synchronous systems with the number of components and their alphabets known, prior work introduced a compositional learning architecture comprising component learners, an adapter, and a system-level teacher [23]. Our approach adopts this architecture for timed synchronous systems and addresses the resulting challenges by designing a query adapter equipped with positive-evidence RTAs and TOTU-based component learners. Recent untimed work further reduces prior knowledge of the number of components and their alphabets [14,24], which is a future direction for timed compositional learning.
9 Conclusion
In this paper, we present a compositional active learning approach for timed synchronous systems using only system-level access. It combines a query adapter equipped with positive-evidence RTAs and TOTU-based component learners. Upon termination, the approach learns a deterministic RTA for each component, and these RTAs form a network whose timed language is equivalent to that of the target system. Within the respective resource limits, our approach terminates successfully on 213 of the 240 (88.8%) randomly generated benchmark instances and all six adapted case-study benchmark instances. It also requires less learning time than the monolithic approaches on some instances. Future work includes characterizing termination conditions for the learning algorithm, reducing prior knowledge about the number of components and their alphabets, and extending the approach to more general timed component models.
References
-
Aarts, F., Vaandrager, F.W.: Learning I/O automata. In: 21st International Conference on Concurrency Theory. LNCS, vol. 6269, pp. 71–85 (2010). https://doi.org/10.1007/978-3-642-15375-4_6
-
Alur, R., Dill, D.L.: A theory of timed automata. Theor. Comput. Sci. 126(2), 183–235 (1994). https://doi.org/10.1016/0304-3975(94)90010-8
-
An, J., Chen, M., Zhan, B., Zhan, N., Zhang, M.: Learning one-clock timed automata. In: 26th International Conference on Tools and Algorithms for the Construction and Analysis of Systems. LNCS, vol. 12078, pp. 444–462 (2020). https://doi.org/10.1007/978-3-030-45190-5_25
-
An, J., Wang, L., Zhan, B., Zhan, N., Zhang, M.: Learning real-time automata. Sci. China Inf. Sci. 64(9), 192103:1–192103:17 (2021). https://doi.org/10.1007/s11432-019-2767-4
-
An, J., Zhan, B., Zhan, N., Zhang, M.: Learning nondeterministic real-time automata. ACM Trans. Embed. Comput. Syst. 20(5s), 99:1–99:26 (2021). https://doi.org/10.1145/3477030
-
André, É., Chatain, T., Rodríguez, C.: Preserving partial order runs in parametric time Petri nets. ACM Transactions on Embedded Computing Systems 16(2), 43:1–43:26 (2016). https://doi.org/10.1145/3012283
-
Angluin, D.: Learning regular sets from queries and counterexamples. Inf. Comput. 75(2), 87–106 (1987). https://doi.org/10.1016/0890-5401(87)90052-6
-
Behrmann, G., David, A., Larsen, K.G.: A tutorial on UPPAAL. In: International School on Formal Methods for the Design of Computer, Communication, and Software Systems. LNCS, vol. 3185, pp. 200–236 (2004). https://doi.org/10.1007/978-3-540-30080-9_7
-
Chen, H., Su, Y., Zhang, M., Liu, Z., Mi, J.: Learning assumptions for compositional verification of timed automata. In: 35th International Conference on Computer Aided Verification. LNCS, vol. 13964, pp. 40–61 (2023). https://doi.org/10.1007/978-3-031-37706-8_3
-
Chen, H., Zhang, M., Vaandrager, F.: Compositional abstraction for timed systems with broadcast synchronization. In: 37th International Conference on Computer Aided Verification. LNCS, vol. 15931, pp. 162–184 (2025). https://doi.org/10.1007/978-3-031-98668-0_8
-
Dill, D.L.: Timing assumptions and verification of finite-state concurrent systems. In: International Workshop on Automatic Verification Methods for Finite State Systems. LNCS, vol. 407, pp. 197–212 (1989). https://doi.org/10.1007/3-540-52148-8_17
-
Fujinami, H., Waga, M., An, J., Suenaga, K., Yanagisawa, N., Iseri, H., Hasuo, I.: Componentwise automata learning for system integration. In: 23rd International Symposium on Automated Technology for Verification and Analysis. LNCS, vol. 16145, pp. 3–26 (2025). https://doi.org/10.1007/978-3-032-08707-2_1
-
Hanyue Chen, Chang Liu, and Miaomiao Zhang: Artifact for compositional automata learning of timed synchronous systems. Source code and experimental data repository (2026), https://github.com/zeno-98/NRTA_Learning
H. Chen et al.
-
Henry, L., Mousavi, M.R., Neele, T., Sammartino, M.: Compositional active learning of synchronizing systems through automated alphabet refinement. In: 36th International Conference on Concurrency Theory. LIPIcs, vol. 348, pp. 20:1–20:22 (2025). https://doi.org/10.4230/LIPIcs.CONCUR.2025.20
-
Howar, F., Steffen, B., Jonsson, B., Cassel, S.: Inferring canonical register automata. In: 13th International Conference on Verification, Model Checking, and Abstract Interpretation. LNCS, vol. 7148, pp. 251–266 (2012). https://doi.org/10.1007/978-3-642-27940-9_17
-
Isberner, M., Howar, F., Steffen, B.: The TTT algorithm: A redundancy-free approach to active automata learning. In: 5th International Conference on Runtime Verification. LNCS, vol. 8734, pp. 307–322 (2014). https://doi.org/10.1007/978-3-319-11164-3_26
-
Kogel, P., Klös, V., Glesner, S.: Learning Mealy machines with local timers. In: 24th International Conference on Formal Engineering Methods. LNCS, vol. 14308, pp. 47–64 (2023). https://doi.org/10.1007/978-981-99-7584-6_4
-
Labbaf, F., Groote, J.F., Hojjat, H., Mousavi, M.R.: Compositional learning for interleaving parallel automata. In: 26th International Conference on Foundations of Software Science and Computation Structures. LNCS, vol. 13992, pp. 413–435 (2023). https://doi.org/10.1007/978-3-031-30829-1_20
-
Larsen, K.G., Pettersson, P., Yi, W.: UPPAAL in a nutshell. International Journal on Software Tools for Technology Transfer 1(1–2), 134–152 (1997). https://doi.org/10.1007/s100090050010
-
Lin, S.W., André, E., Liu, Y., Sun, J., Dong, J.S.: Learning assumptions for compositional verification of timed systems. IEEE Transactions on Software Engineering 40(2), 137–153 (2014). https://doi.org/10.1109/TSE.2013.57
-
Mi, J., Zhang, M., An, J., Du, B.: Learning deterministic one-clock timed automata based on timed classification tree. Journal of Software 33(8), 2797–2814 (2022). https://doi.org/10.13328/j.cnki.jos.006599, in Chinese
-
Moerman, J.: Learning product automata. In: 14th International Conference on Grammatical Inference. PMLR, vol. 93, pp. 54–66 (2019), https://proceedings.mlr.press/v93/moerman19a.html
-
Neele, T., Sammartino, M.: Compositional automata learning of synchronous systems. In: 26th International Conference on Fundamental Approaches to Software Engineering. LNCS, vol. 13991, pp. 47–66 (2023). https://doi.org/10.1007/978-3-031-30826-0_3
-
Samadi, M., Bastany, A., Hojjat, H.: Compositional learning for synchronous parallel automata. In: 28th International Conference on Fundamental Approaches to Software Engineering. LNCS, vol. 15693, pp. 101–121 (2025). https://doi.org/10.1007/978-3-031-90900-9_6
-
Shahbaz, M., Groz, R.: Inferring Mealy machines. In: Second World Congress on Formal Methods. LNCS, vol. 5850, pp. 207–222 (2009). https://doi.org/10.1007/978-3-642-05089-3_14
-
Shen, W., An, J., Zhan, B., Zhang, M., Xue, B., Zhan, N.: PAC learning of deterministic one-clock timed automata. In: 22nd International Conference on Formal Engineering Methods. LNCS, vol. 12531, pp. 129–146 (2020). https://doi.org/10.1007/978-3-030-63406-3_8
-
Tang, X., Shen, W., Zhang, M., An, J., Zhan, B., Zhan, N.: Learning deterministic one-clock timed automata via mutation testing. In: 20th International Symposium on Automated Technology for Verification and Analysis. LNCS, vol. 13505, pp. 233–248 (2022). https://doi.org/10.1007/978-3-031-19992-9_15
-
Teng, Y., Chen, H., Mi, J., Zhang, M., An, J., Zhan, N.: Active learning of deterministic timed automata via timed classification tree. Science China Information Sciences 68(12), 222101 (2025). https://doi.org/10.1007/s11432-024-4393-8
-
Teng, Y., Zhang, M.: Observation-tree-driven active learning of deterministic timed automata. Journal of Software 37(9), 3577–3597 (2026). https://doi.org/10.13328/j.cnki.jos.007607, in Chinese
-
Teng, Y., Zhang, M., An, J.: Learning deterministic multi-clock timed automata. In: 27th ACM International Conference on Hybrid Systems: Computation and Control. pp. 6:1–6:11 (2024). https://doi.org/10.1145/3641513.3650124
-
Vaandrager, F.: Model learning. Commun. ACM 60(2), 86–95 (Feb 2017). https://doi.org/10.1145/2967606
-
Vaandrager, F., Ebrahimi, M., Bloem, R.: Learning Mealy machines with one timer. Information and Computation 295, 105013 (2023). https://doi.org/10.1016/j.ic.2023.105013
-
Vaandrager, F.W., Garhewal, B., Rot, J., Wißmann, T.: A new approach for active automata learning based on apartness. In: 28th International Conference on Tools and Algorithms for the Construction and Analysis of Systems. LNCS, vol. 13243, pp. 223–243 (2022). https://doi.org/10.1007/978-3-030-99524-9_12
-
Vaandrager, F.W., Sanders, M.: for DFAs. In: Principles of Verification: Cycling the Probabilistic Landscape, LNCS, vol. 15262, pp. 155–172. Springer (2025). https://doi.org/10.1007/978-3-031-75778-5_8
-
Waga, M.: Active learning of deterministic timed automata with Myhill–Nerode style characterization. In: 35th International Conference on Computer Aided Verification. LNCS, vol. 13964, pp. 3–26 (2023). https://doi.org/10.1007/978-3-031-37706-8_1
H. Chen et al.
A Proof of Lemma 1
Let . For a component , let be exactly the indices such that , and let . By the definition of projection,
If there is no such index, then , which belongs to .
(⇒) Assume and fix a run of on . Between the actions at indices and , component takes no transition. Its location remains unchanged, while the value of continues to increase as time elapses. Since is initially zero and reset at , where denotes the initial instant, the value of when occurs, before reset, is
By the NRTA run condition, the global step at contains a -transition of whose guard is satisfied when has value . The transitions extracted at therefore form a run of on . Applying the same argument to every component gives for all .
(⇐) Assume for every component and, for each , fix a run of on . We construct a run of on by induction.
After a global prefix has been performed in , the location of each component is the location reached in after the actions of that prefix in . Moreover, the value of equals the sum of the delays since the most recent such action, or since the initial instant if none has occurred. This correspondence holds for the empty prefix.
Suppose the correspondence holds after the first actions and consider . For every with , the value of immediately before is exactly the next accumulated delay in . The next transition in is thus an enabled -transition from its current location. All participating components can take these transitions simultaneously, while every other component keeps its location.
The update resets exactly the clocks of the participating components. It therefore preserves the correspondence after the -th action. By induction, this construction yields a run of on , and hence .
B Proof of Lemma 3
We say that two delays lie in the same RTA delay region if, for some , either or . Then, for any atomic constraint
it follows that
Since every guard is a conjunction of such atomic constraints, this equivalence extends to every guard in . Let . Let .
(⇒) Since , we have and lie in the same RTA delay region for every . Suppose . Then, has a run on using transitions with for every . By the guard equivalence established above, whenever . Hence, the same transition sequence is also a run on , and .
(⇔) The reverse implication follows by exchanging and in the preceding argument, giving .
C Proof of Lemma 4
Fix a nonempty set and a timed word . For every , the definition of gives . The empty word belongs to the language of every RTA, so and for all . By Lemma 1 applied to and ,
The same argument applied to and gives
By the premise, Algorithm 2 has terminated with , so the preceding equivalences yield
The claim follows because was chosen arbitrarily from .
D Teacher Implementation and Baseline Settings
D.1 System-Level Teacher
All three approaches use the same model-based system-level teacher, which has direct access to the target NRTA N. For a membership query, the teacher checks whether the queried timed word belongs to . For an equivalence query, it performs a breadth-first symbolic exploration of the target and hypothesis networks, representing zones by difference-bound matrices (DBMs) [11,19]. The exploration checks their language difference in both directions and reconstructs a counterexample with the fewest timed actions when a difference is found. If the exploration finds no difference, the teacher returns . Using the same backend for all approaches avoids differences caused by the teacher implementation.
H. Chen et al.
D.2 Baseline Settings
Both TOT and TCT learn the target network as a single timed automaton with clocks and require the following information:
-
the system alphabet ;
-
the number of clocks;
-
the clock ceiling for each clock .
The first two requirements follow from and the fact that every RTA component has one clock. The clock ceiling is the largest integer constant in the guards of component . The region constructions in both original algorithms depend on these ceilings. We therefore supply the exact values to both baselines, whereas CL neither receives nor uses them. In this paper, the timed language of an NRTA is prefix-closed, and CL exploits this property in its TOTU operations. The original TOT and TCT algorithms instead target general timed languages defined by accepting locations and do not assume prefix closure. We retain their original learning settings in our implementations.
Moreover, the smart-teacher variant of TOT used in our experiments and TCT require the teacher to answer reset-information queries, which identify the clocks reset by each action in a timed word. For an NRTA, each component resets its clock whenever it participates in an action. Hence, the reset set of an action is and can be derived directly from the known component alphabets. Therefore, reset-information queries require no additional teacher capability in our setting.
E Additional Analyses for Randomly Generated Benchmark Instances
E.1 Sensitivity to Timeout Penalties
For a timeout and a penalty factor , PAR- is defined as
where is the set of all benchmark instances, and are its solved and timed-out subsets, respectively, and is the running time on a solved instance . Table 3 reports the results for seconds and three penalty factors. All PAR values are reported in seconds. The ordering of the approaches is unchanged for all three penalty factors, indicating that the comparison is robust to these choices.
Table 3. Sensitivity to timeout penalties.
| Approach | Solved | PAR-1 | PAR-2 | PAR-10 |
|---|---|---|---|---|
| TOT | 89/240 | 196.013 | 384.763 | 1894.763 |
| TCT | 175/240 | 96.422 | 177.672 | 827.672 |
| CL | 213/240 | 54.423 | 88.173 | 358.173 |
E.2 Cumulative Solved Benchmark Instances
Figure 4 shows the cumulative number of randomly generated benchmark instances solved within each running-time budget. The linear scale in Fig. 4(a) shows behavior over the full time budget, while the logarithmic scale in Fig. 4(b) expands the early completion times. Both plots use observed completion times, with timed-out runs remaining unsolved.

(a) Linear scale
(b) Logarithmic scale
Fig. 4. Cumulative solved instances by running time.
The linear view in Fig. 4(a) shows CL continuing to solve instances over a broader range of running times and ultimately reaching a higher total, whereas the logarithmic view in Fig. 4(b) shows TOT and TCT initially accumulating solved instances faster.
E.3 Query Statistics
For brevity, we use MQ and EQ to denote system-level membership and equivalence queries, respectively. To expose the per-instance trade-off, Fig. 5 plots the ratios of the query counts of CL to those of each monolithic approach.

(a) CL/TOT
(b) CL/TCT
Fig. 5. Per-instance query-count ratios.
For each jointly solved instance, the horizontal and vertical coordinates give the ratios of the MQ and EQ counts of CL to those of the corresponding monolithic approach, respectively. Thus, points farther left indicate relatively fewer
H. Chen et al.
MQs for CL, whereas points farther down indicate relatively fewer EQs. The dashed lines mark equal query counts. Both axes use logarithmic scales. Each point represents an instance solved by both approaches, giving 85 points in Fig. 5(a) and 162 in Fig. 5(b).
CL uses no more EQs than TOT and TCT on 70 of 85 and 129 of 162 jointly solved instances, respectively. The corresponding numbers for MQs are 47 and 114, while 45 and 103 instances satisfy both comparisons. Thus, CL's relative reduction is more consistent for EQs than MQs. This aligns with the algorithm structure, where the adapter submits an EQ only after collecting all component hypotheses, while resolving unknown TOTU entries may require additional MQs. Possible spurious counterexamples may also trigger backtracking. Overall, compositional learning changes the balance between query types rather than uniformly reducing both.
F Illustrative Example
Consider the target NRTA shown in Fig. 6 with and . The complete run uses 75 system-level membership queries and 10 system-level equivalence queries.

Fig. 6. Target components of the illustrative example
Let denote a snapshot of the prepared TOTU of learner at the -th system-level equivalence query, and the corresponding hypothesis. The TOTUs and component hypotheses for rounds 1–5 are shown after their corresponding descriptions. The TOTUs and hypotheses in rounds 6–10 are shown separately. In each TOTU, the rows above the horizontal division are indexed by , and those below it are indexed by . An entry with value is shown as “ ”, where is its concrete value in the satisfying model used to construct the hypothesis. Each system-level counterexample is shown to the right of the corresponding TOTUs, followed by its two component projections on separate lines.
Initialization. Each learner initializes its TOTU with and , where and all other entries have value ?. The adapter initializes each with only its initial location and no transitions, and each backtracking stack is empty.
Round 1. The learners fill and prepare and and construct the corresponding hypotheses. The first equivalence query returns . Its first projection has RTA region word , while its second projection is . Since , the adapter returns to . Since the last action does not belong to , it returns to . Learner pushes onto and processes the feedback. Figures 7 and 8 show the corresponding TOTUs and component hypotheses.
Fig. 7. TOTUs and counterexample in round 1
Fig. 8. Component hypotheses in round 1
Round 2. The negative counterexample concerns only the first component. Since , the adapter returns to . Since the last action does not belong to , it returns to . Learner pushes onto before processing the feedback. Indeed, the first moves from to , where the second cannot occur. Figures 9 and 10 show the corresponding TOTUs and component hypotheses.
Fig. 9. TOTUs and counterexample in round 2
Fig. 10. Component hypotheses in round 2
Round 3. For , the last action belongs to both component alphabets, and neither projection belongs to its positive-evidence RTA. The adapter therefore returns to each learner , which pushes onto before processing the feedback. In the target system, , whereas the accumulated delay of the projected is and hence . Thus, the component-level counterexample returned to is spurious, whereas that returned to is not. Figures 11 and 12 show the corresponding TOTUs and component hypotheses.
H. Chen et al.
| ([0,0],a) | ||
|---|---|---|
| ((4,5),a) | ||
| ([0,0],a) | ||
| ([0,0],b) | ?(⊥) | ?(⊥) |
| ([0,0],a)([0,0],a) | ||
| ([0,0],a)([0,0],b) |
| ([0,0],c) | |
| ([0,0],b) |
Fig. 11. TOTUs and counterexample in round 3

Fig. 12. Component hypotheses in round 3
Round 4. The teacher returns the positive counterexample . The adapter calls addPE and addPE on the two projections, whose RTA region words are and , respectively, and returns to each learner . For each , contains no such that is a prefix of the corresponding RTA region word, so both learners process the feedback without rollback. Figures 13 and 14 show the corresponding TOTUs and component hypotheses.
| ([0,0],a) | ||
|---|---|---|
| ((4,5),a) | ||
| ([0,0],a) | ||
| ((0,1),a) | ||
| ([0,0],b) | ||
| ((0,1),a)([2,2],b) | ||
| ([0,0],a)([0,0],a) | ||
| ([0,0],a)([0,0],b) |
| ([0,0],c) | |
| ((2,3),b) | |
| ([0,0],b) |
Fig. 13. TOTUs and counterexample in round 4

Fig. 14. Component hypotheses in round 4
Round 5. The teacher returns the negative counterexample
Since the last action belongs to both component alphabets and neither projection belongs to its positive-evidence RTA, the adapter returns to each learner . Each learner pushes onto and processes the feedback. In fact, its first projection belongs to , while its second projection does not belong to . Figures 15 and 16 show the corresponding TOTUs and component hypotheses.
Fig. 15. TOTUs and counterexample in round 5

Fig. 16. Component hypotheses in round 5
H. Chen et al.
Round 6. The positive counterexample
reveals the spurious feedback from round 5. The adapter adds both projections to the corresponding positive-evidence RTAs and returns to each learner . Its first projection has RTA region word
and was pushed onto in round 5. Learner restores , pops and all entries above it, and then processes the feedback, which in particular sets . The entries pushed in rounds 1–3 remain in .
For the second component,
contains no such that is a prefix of this RTA region word, so processes the feedback without rollback. For every positive projection in the remaining rounds, the corresponding backtracking stack contains no entry whose first element is its prefix, so no further rollback occurs.
| ([0,0],a) | ([2,2],b) | ([0,0],b) | ([0,0],b) | ||||
|---|---|---|---|---|---|---|---|
| ((0,1),a) | ([0,0],b) | ||||||
| ((4,5),a) | ([0,0],c) | ||||||
| ([0,0],a) | |||||||
| ([0,0],a)([0,0],b) | ?(⊥) | ((2,3),b) | |||||
| ([2,2],b) | ?(⊥) | ||||||
| ([0,0],b) | ([0,0],b)([0,0],b) | ||||||
| ((0,1),a)([0,0],a) | ([0,0],b)([0,0],c) | ?(⊥) | |||||
| ((0,1),a)([0,0],b) | ?(⊥) | ?(⊥) | |||||
| ((0,1),a)([2,2],b) | |||||||
| ([0,0],a)([0,0],a) | |||||||
| ([0,0],a)([2,2],b) | ?(⊥) | ?(⊥) | |||||
| ([0,0],a)([0,0],b)([0,0],a) | |||||||
| ([0,0],a)([0,0],b)([0,0],b) |
Fig. 17. TOTUs and counterexample in round 6


Fig. 18. Component hypotheses in round 6
Round 7. The positive counterexample further enriches both positive-evidence RTAs. The adapter returns each projection with label to its learner. Both learners then process the feedback.
| ([0, 0], ) | ([2, 2], ) | ||
|---|---|---|---|
| ((0, 1), ) | |||
| ((4, 5), ) | |||
| ([0, 0], ) | |||
| ([0, 0], ) | |||
| ((0, 1), )([0, 0], ) | |||
| ((0, 1), )([0, 0], ) | |||
| ((0, 1), )([2, 2], ) | |||
| ([0, 0], )([0, 0], ) | |||
| ((0, 0], )([0, 0], ) | |||
| ([0, 0], )([2, 2], ) | |||
| ([0, 0], )([0, 0], )([0, 0], ) |
| ([0, 0], ) | ||
|---|---|---|
| ([0, 0], ) | ||
| ([0, 0], ) | ||
| ((2, 3), ) | ||
| ([2, 2], ) | ?\left(\perp\right)$ | |
| ([0, 0], )([0, 0], ) | ||
| ([0, 0], )([0, 0], ) | ||
| ([0, 0], )([0, 0], )([0, 0], ) | ?\left(\perp\right)$ | |
Fig. 19. TOTUs and counterexample in round 7


Fig. 20. Component hypotheses in round 7
H. Chen et al.
Round 8. The next positive counterexample is
The adapter again adds both projections to the positive-evidence RTAs and returns to each learner .
| ([0,0],a) | ([2,2],b) | ||
|---|---|---|---|
| ((0,1),a) | |||
| ((4,5),a) | |||
| ([0,0],a) | |||
| ([0,0],b) | |||
| ((0,1),a)([0,0],a) | |||
| ((0,1),a)([0,0],b) | ?(⊥) | ||
| ((0,1),a)([2,2],b) | |||
| ([0,0],a)([0,0],a) | |||
| ([0,0],a)([0,0],b) | |||
| ([0,0],a)([2,2],b) | ?(⊥) | ||
| ([0,0],a)([0,0],b)([0,0],b) | ?(⊥) | ||
| ([0,0],a)([0,0],b)([2,2],b) | ?(⊥) |
| ([0,0],b) | ||
|---|---|---|
| ([0,0],b) | ||
| ([0,0],c) | ||
| ((2,3),b) | ||
| ([2,2],b) | ?(⊥) | |
| ([0,0],b)([0,0],b) | ||
| ([0,0],b)([0,0],c) | ||
| ([0,0],b)([0,0],c)([0,0],b) | ?(⊥) | |
| ([0,0],b)([0,0],c)([2,2],b) | ?(⊥) | |
Fig. 21. TOTUs and counterexample in round 8


Fig. 22. Component hypotheses in round 8
Round 9. The final counterexample is positive. The adapter adds its projections to the positive-evidence RTAs and returns to each learner .
| ([0, 0], ) | ([2, 2], ) | ||
|---|---|---|---|
| ((0, 1), ) | |||
| ((4, 5), ) | |||
| ([0, 0], ) | |||
| ([0, 0], ) | |||
| ((0, 1), )([0, 0], ) | |||
| ((0, 1), )([0, 0], ) | |||
| ((0, 1), )([2, 2], ) | |||
| ([0, 0], )([0, 0], ) | |||
| ([0, 0], )([0, 0], ) | |||
| ([0, 0], )([2, 2], ) | |||
| ([0, 0], )([0, 0], )([0, 0], ) | |||
| ([0, 0], )([0, 0], )([2, 2], ) | |||
| ([0, 0], )([2, 2], )([2, 2], ) |
| ([0, 0], ) | ([0, 0], ) | ||
|---|---|---|---|
| ([0, 0], ) | |||
| ([0, 0], ) | |||
| ((2, 3), ) | |||
| ([2, 2], ) | |||
| ([0, 0], )([0, 0], ) | |||
| ([0, 0], )([0, 0], ) | |||
| ([2, 2], )([0, 0], ) | |||
| ([0, 0], )([0, 0], )([0, 0], ) | |||
| ([0, 0], )([0, 0], )([2, 2], ) | |||
| ([2, 2], )([0, 0], )([2, 2], ) |
Fig. 23. TOTUs and counterexample in round 9


Fig. 24. Component hypotheses in round 9
H. Chen et al.
Round 10. The hypotheses constructed from and pass the final system-level equivalence query.
| ([0, 0], ) | ([2, 2], ) | ||
|---|---|---|---|
| ((0, 1), ) | |||
| ((4, 5), ) | |||
| ([0, 0], ) | |||
| ([0, 0], ) | |||
| ((0, 1), )[[0, 0], ) | |||
| ((0, 1), )((0, 1), ) | |||
| ((0, 1), )[[0, 0], ) | |||
| ((0, 1), )[[2, 2], ) | |||
| ([0, 0], )[[0, 0], ) | |||
| ([0, 0], )[[0, 0], ) | |||
| ([0, 0], )[[2, 2], ) | |||
| ((0, 1), )((0, 1), )[[2, 2], ) | |||
| ([0, 0], )[[0, 0], ][[0, 0], ) | |||
| ([0, 0], )[[0, 0], ][[2, 2], ) | |||
| ([0, 0], )[[2, 2], ][[2, 2], ) |
| ([0, 0], ) | ([0, 0], ) | ||
|---|---|---|---|
| ([0, 0], ) | |||
| ([0, 0], ) | |||
| ((0, 1), ) | |||
| ((2, 3), ) | |||
| ([2, 2], ) | |||
| ((0, 1), )((0, 1), ) | |||
| ([0, 0], )[[0, 0], ) | |||
| ([0, 0], )[[0, 0], ) | |||
| ([2, 2], )[[0, 0], ) | |||
| ((0, 1), )((0, 1), )((1, 2), ) | |||
| ([0, 0], )[[0, 0], ][[0, 0], ) | |||
| ([0, 0], )[[0, 0], ][[2, 2], ) | |||
| ([2, 2], )[[0, 0], ][[2, 2], ) |
Fig. 25. TOTUs at the final equivalence query


Fig. 26. Component hypotheses in round 10
The final hypotheses do not recover the target components exactly. In particular, , although the learned and target networks have the same timed language.