Figure 1. Intervals constrain visit starts. The dashed interval contains two retained windows. Filled circles mark true samples. With a two-sample dwell, the visit ending at sample 2 serves I 2 I_2 I 2 and I 1 I_1 I 1 . The visit ending at 7 serves I 0 I_0 I 0 . The bottom trace records the first served index.
Introduction
An inspection robot checks two stations several times during a shift. The first reading at one station might be allowed in a narrow start window and the next reading in a wider one. A reading takes several consecutive samples. When the robot leaves a station to do other work, its position and the clock do not tell the controller which visits it still owes. Even a flag recording that the station has been visited loses the distinction between an early and a late reading. The controller needs enough of the executed history to decide whether it can still meet each deadline after the next disturbance. Figure 5 (a) shows what that distinction costs: at the same state and clock, returning from A or from B leaves disjoint sets of certified actions. Figure 2 shows how a short-horizon controller can certify a return that lies beyond its plan.
Figure 2. A three-sample dwell must start in each window [ 3 − d , 20 − d ] [3-d,20-d] [ 3 − d , 20 − d ] , d ∈ { 0 , … , 8 } d \in\{0,\ldots,8\} d ∈ { 0 , … , 8 } . (a) Measured and nominal quadrotor positions in MuJoCo. Every admissible nominal input leaves the centre outside the tightened target at samples 5–12. (b) The plan adopted at k = 6 k=6 k = 6 ends at t = 16 t=16 t = 16 with c = 1 c=1 c = 1 : offset zero is still owed. The model-certified continuation serves it at its deadline, k = 22 k=22 k = 22 .
Figure 5. Complete certified primitive sets ( v , θ r e f ) (v,\theta_{\mathrm{ref}}) ( v , θ ref ) in two fixed-offset unicycle examples. (a) The A-only and B-only prefixes end at the same full state x ⋆ = ( 25 / 4 , 15 / 4 , 0 ) x^\star=(25/4,15/4,0) x ⋆ = ( 25/4 , 15/4 , 0 ) at k = 12 k=12 k = 12 , with zero bits and runs. Colored dots mark dwell samples and the black dot marks the common endpoint. The frontiers ( 0 , 3 ) (0,3) ( 0 , 3 ) and ( 3 , 0 ) (3,0) ( 3 , 0 ) give disjoint action sets. (b) Markers show the midpoints of verified y y y -enclosures after the same primitive ( 1 , − 1 / 4 ) (1,-1/4) ( 1 , − 1/4 ) . Each side of y = 4 y=4 y = 4 m has a different singleton next-action set. Both panels use the declared transition model.
We study finite lists of such obligations known before execution. A measurement may count for every window containing its start. This convention fits an inspection record that can satisfy overlapping requirements, or a single request whose actual service window is one of several candidates. It also gives the usual constant-clock-offset interpretation when the candidate windows are equal-width translations. Separate work orders that each consume a measurement require a different assignment rule.
Our first result describes exactly what to remember. Removing a window that contains another preserves the task. Among the retained windows the served ones are consecutive in endpoint order on every history that can still meet its deadlines. A boundary index and the current dwell length therefore determine the response to every continuation. Second, we use this order to solve a feedback game on verified motion primitives. With one task type the winning boundary for each run length satisfies a scalar backward recursion. Several types share the same physical game but may compete for the next action and require a joint state. Third, we compare executable policies on identical queries and test the role of memory and branching in closed-loop robot simulation. We report the cost of constructing a certificate alongside the cost of querying it.
Window Histories and Feedback Completion
What a completed visit establishes
A task type g g g specifies one Boolean signal β g \beta_g β g and a dwell length ℓ g ≥ 0 \ell_g \ge0 ℓ g ≥ 0 . Its known integer intervals I g i = [ a g i , b g i ] I_{gi} = [a_{gi}, b_{gi}] I g i = [ a g i , b g i ] restrict the start of a visit. Together with sampled safety requirements S t S_t S t , the objective is
x t ∈ S t ( t active ) , ∀ g , i ∃ s ∈ I g i : ⋀ j = 0 ℓ g [ β g ( s + j ) = 1 ] . (1) x_t \in S_t\ (\text{t active}),\quad\forall g,i\ \exists s\in I_{gi}:\ \bigwedge_{j=0}^{\ell_g}[\beta_g(s+j)=1]. \tag*{(1)} x t ∈ S t ( t active ) , ∀ g , i ∃ s ∈ I g i : j = 0 ⋀ ℓ g [ β g ( s + j ) = 1 ] . (1)
The last admissible completion sample is b g i + ℓ g b_{gi}+\ell_g b g i + ℓ g . Several obligations may use the same witness s s s . A fixed clock offset d ∈ [ 0 , D ] d\in[0,D] d ∈ [ 0 , D ] gives the equal-width family [ a − d , b − d ] [a-d,b-d] [ a − d , b − d ] . Finite service windows can also have different widths and gaps. All candidate windows are enforced if they represent uncertainty unobserved by the policy. Sharing requires identical output map, predicate (including tightening and boundary convention), bit source and dwell length. Absolute indices may be negative. Equivalently one can shift the origin of the corresponding future-time STL formula to the earliest sample.
For one type, discard duplicates and intervals strictly containing another interval. Let the remaining M M M intervals have decreasing left endpoints, indexed from zero. Their right endpoints then decrease strictly as well. An empty family contributes no obligation. A listed interval with a > b a>b a > b makes the task infeasible. At time k k k a window is served if a witness in it has finished by k k k . An unserved window has expired when k ≥ b i + ℓ k\ge b_i+\ell k ≥ b i + ℓ . Write J ( s ) = { i : s ∈ I i } J(s)=\{i:s\in I_i\} J ( s ) = { i : s ∈ I i } and e k = min ( { i : b i + ℓ ≤ k } ∪ { M } ) e_k=\min(\{i:b_i+\ell\le k\}\cup\{M\}) e k = min ({ i : b i + ℓ ≤ k } ∪ { M }) .
Theorem 1 (Shared history). Removal preserves expiry failure at every sample and satisfaction of the original conjunction. Until failure, the served retained windows form a suffix { c , … , M − 1 } \{c,\ldots,M-1\} { c , … , M − 1 } . The pair ( c , r ) (c,r) ( c , r ) , with r r r the trailing run of ones capped at ℓ + 1 \ell+1 ℓ + 1 , determines acceptance of every future bit continuation at the same time. For G G G types the full representation has at most 1 + ∏ g ( M g + 1 ) ( ℓ g + 2 ) 1+\prod_g(M_g+1)(\ell_g+2) 1 + ∏ g ( M g + 1 ) ( ℓ g + 2 ) states, including absorbing failure.
Proof sketch: A witness in a retained subinterval serves every raw interval containing it, and its deadline is no later. If a served interval i i i has a witness starting at s s s but j > i j>i j > i remains unserved, then a j < a i ≤ s a_j<a_i\le s a j < a i ≤ s forces s > b j s>b_j s > b j . By the end of that dwell the unserved interval j j j has already expired. Thus a live served set is a suffix. Its boundary records every completed obligation; the final r r r true samples determine which unfinished dwells can extend across the current time. Reading the next bit updates both quantities deterministically, giving the same answer for every continuation of any two prefixes with equal state.
After sample k k k , the formal valid domain is Q k = { 0 ≤ c ≤ e k , 0 ≤ r ≤ ℓ + 1 } Q_k=\{0\le c\le e_k,\ 0\le r\le\ell+1\} Q k = { 0 ≤ c ≤ e k , 0 ≤ r ≤ ℓ + 1 } in integers. To process sample k + 1 k+1 k + 1 , let r ′ = min ( r + 1 , ℓ + 1 ) r'=\min(r+1,\ell+1) r ′ = min ( r + 1 , ℓ + 1 ) for bit one and r ′ = 0 r'=0 r ′ = 0 for bit zero. If r ′ = ℓ + 1 r'=\ell+1 r ′ = ℓ + 1 and J ( k + 1 − ℓ ) J(k+1-\ell) J ( k + 1 − ℓ ) is nonempty, set c ′ = min ( c , k + 1 − ℓ ) c'=\min(c,k+1-\ell) c ′ = min ( c , k + 1 − ℓ ) ; otherwise set c ′ = c c'=c c ′ = c . Return failure if c ′ > e k + 1 c'>e_{k+1} c ′ > e k + 1 . This order admits a visit ending on its deadline. Each further one after saturation yields another witness. The joint update Γ k + 1 \Gamma_{k+1} Γ k + 1 acts coordinatewise; any failure is absorbing. At L = − 1 L=-1 L = − 1 initialize ( M g , 0 ) (M_g,0) ( M g , 0 ) for every type, for $L\le0 covering all retained releases and required past safety checks. Read the recorded samples L , … , − 1 L,\ldots,-1 L , … , − 1 and the initial sample 0. Take H ≥ 0 H\ge0 H ≥ 0 covering the original deadlines and safety horizon.
Feedback game on a verified library
Let x + ∈ F ( x , u ) x^+\in F(x,u) x + ∈ F ( x , u ) . At k k k , RA k ( ρ ) \operatorname{RA}_k(\rho) RA k ( ρ ) certifies the state and active safety constraints throughout region P ρ P_\rho P ρ . Each edge e e e from ρ \rho ρ supplies an admissible control law and a nonempty branch list ( ρ b , σ b ) (\rho_b,\sigma_b) ( ρ b , σ b ) , where σ b \sigma_b σ b is a lower label. For every allowed successor under that law, verification must establish at least one branch with both x + ∈ P ρ b x^+\in P_{\rho_b} x + ∈ P ρ b and σ b ≤ β ( x + ) \sigma_b\le\beta(x^+) σ b ≤ β ( x + ) . The post-mission set K p o s t \mathcal{K}_{\mathrm{post}} K post admits a verified invariant controller. For x + = f ( x , u , w ) x^+=f(x,u,w) x + = f ( x , u , w ) , take F ( x , u ) = { f ( x , u , w ) : w ∈ W ( x ) } F(x,u)=\{f(x,u,w):w\in\mathcal{W}(x)\} F ( x , u ) = { f ( x , u , w ) : w ∈ W ( x )} . We seek one actual policy that satisfies (1) for every allowed disturbance sequence. Let q = ( ( c g , r g ) ) g = 1 G q=((c_g,r_g))_{g=1}^G q = (( c g , r g ) ) g = 1 G be a live joint state. At H H H , Win H ( ρ , q ) = 1 \operatorname{Win}_H(\rho,q)=1 Win H ( ρ , q ) = 1 exactly when RA H ( ρ ) \operatorname{RA}_H(\rho) RA H ( ρ ) , ρ ∈ K p o s t \rho\in\mathcal{K}_{\mathrm{post}} ρ ∈ K post and c g = 0 c_g=0 c g = 0 for every g g g . Failure or an invalid source loses at every time. For k < H k<H k < H , put q b + = Γ k + 1 ( q , σ b ) q_b^+=\Gamma_{k+1}(q,\sigma_b) q b + = Γ k + 1 ( q , σ b ) . Then
Win k ( ρ , q ) = RA k ( ρ ) ∧ ⋁ e ∈ A ( ρ ) ⋀ b ∈ Succ ( e ) Win k + 1 ( ρ b , q b + ) . (2) \operatorname{Win}_k(\rho,q)=\operatorname{RA}_k(\rho)\wedge\bigvee_{e\in A(\rho)}\bigwedge_{b\in\operatorname{Succ}(e)}\operatorname{Win}_{k+1}(\rho_b,q_b^+). \tag*{(2)} Win k ( ρ , q ) = RA k ( ρ ) ∧ e ∈ A ( ρ ) ⋁ b ∈ Succ ( e ) ⋀ Win k + 1 ( ρ b , q b + ) . (2)
One edge must cover every successor before the disturbance is known. Each observed branch can then choose its own next edge. The two-station controller solves this joint game; for one task type Theorem 2 reduces to a scalar recursion.
For a single type write T k , ρ ( r ) T_{k,\rho}(r) T k , ρ ( r ) for the largest winning c c c at run r r r , or − 1 -1 − 1 for none. At H H H store 0 in admissible post regions and − 1 -1 − 1 elsewhere. For a branch, compute the next run r b ′ r'_b r b ′ from its label and put t b = T k + 1 , ρ b ( r b ′ ) t_b=T_{k+1,\rho_b}(r'_b) t b = T k + 1 , ρ b ( r b ′ ) , J = J ( k + 1 − ℓ ) J=J(k+1-\ell) J = J ( k + 1 − ℓ ) . Then
p b = { − 1 , t b = − 1 , e k , r b ′ = ℓ + 1 , J ≠ ∅ , min J ≤ t b , min ( e k , t b ) , otherwise . (3) p_b=
\begin{cases}
-1, & t_b=-1,\\
e_k, & r'_b=\ell+1,\ J\ne\varnothing,\ \min J\le t_b,\\
\min(e_k,t_b), & \text{otherwise}.
\end{cases} \tag*{(3)} p b = ⎩ ⎨ ⎧ − 1 , e k , min ( e k , t b ) , t b = − 1 , r b ′ = ℓ + 1 , J = ∅ , min J ≤ t b , otherwise . (3)
T k , ρ ( r ) = max e ∈ A ( ρ ) min b ∈ Succ ( e ) p b . (4) T_{k,\rho}(r)=\max_{e\in A(\rho)}\min_{b\in\operatorname{Succ}(e)}p_b. \tag*{(4)} T k , ρ ( r ) = e ∈ A ( ρ ) max b ∈ Succ ( e ) min p b . (4)
An inadmissible source or empty action set gives − 1 -1 − 1 .
Theorem 2 (Single-type threshold). For every formal state in Q k Q_k Q k , the explicit library game wins exactly when c ≤ T k , ρ ( r ) c\le T_{k,\rho}(r) c ≤ T k , ρ ( r ) . An edge attaining a nonnegative maximum in (4) certifies all such c c c . With window indices and admissibility precomputed, the recursion takes O ( ( ℓ + 2 ) ( ( H + 1 ) ∣ R ∣ + H ∑ e ∣ Succ ( e ) ∣ ) ) O((\ell+2)((H+1)|\mathcal{R}|+H\sum_e|\operatorname{Succ}(e)|)) O (( ℓ + 2 ) (( H + 1 ) ∣ R ∣ + H ∑ e ∣ Succ ( e ) ∣ )) arithmetic operations and O ( ( H + 1 ) ∣ R ∣ ( ℓ + 2 ) ) O((H+1)|\mathcal{R}|(\ell+2)) O (( H + 1 ) ∣ R ∣ ( ℓ + 2 )) storage for the threshold and policy entries.
Proof sketch: For a nonempty J ( s ) = [ u , v ] J(s)=[u,v] J ( s ) = [ u , v ] at s = k + 1 − ℓ s=k+1-\ell s = k + 1 − ℓ , integer endpoints give v + 1 = e k v+1=e_k v + 1 = e k : both count the intervals with b i + ℓ > k b_i+\ell>k b i + ℓ > k . All valid sources satisfy c ≤ e k c\le e_k c ≤ e k , so an eligible new visit moves the boundary to min ( c , u ) \min(c,u) min ( c , u ) . If u ≤ t b u\le t_b u ≤ t b , every source boundary passes; otherwise only c ≤ t b c\le t_b c ≤ t b . Intersecting these prefixes across branches takes their minimum, and taking their union across actions takes their maximum. Induction from the terminal layer proves the claim.
For several types the winning set can have incomparable frontiers. For example, take two zero-dwell types with one start window [ 0 , 1 ] [0,1] [ 0 , 1 ] each. After sample zero one action can serve A at sample one and a second can serve B. A prefix with A already served wins, as does one with B served. A prefix with neither served loses. Both its coordinates occur separately in winning states. The joint relation is therefore essential even with a single sample left.
A sparse implementation searches the joint game from a query. An ordered implementation stores the minimal winning pairs in the order ( c , r ) ⪯ ( d , t ) (c,r) \preceq(d,t) ( c , r ) ⪯ ( d , t ) iff c ≥ d c \ge d c ≥ d and r ≤ t r \le t r ≤ t , componentwise across types. For illustration, fix a one-bit branch whose target is ( d , t ) (d,t) ( d , t ) . On a valid source, domination of this target requires one of ( d , max ( 0 , t − 1 ) ) (d,\max(0,t-1)) ( d , max ( 0 , t − 1 )) or ( e k , ℓ ) (e_k,\ell) ( e k , ℓ ) as a lower bound in completion order. The second candidate is available only when J ≠ ∅ J \ne\varnothing J = ∅ and min J ≤ d \min J \le d min J ≤ d . The first candidate uses coverage already present. The second finishes a new dwell. A zero-bit branch requires t = 0 t=0 t = 0 and has generator ( d , 0 ) (d,0) ( d , 0 ) . Grouping branches with equal bits intersects their requested frontiers and run bounds. After this intersection at most two candidates remain per type for each fixed tuple of branch targets. Choosing a target for every branch can still require many tuples.
Theorem 3 (Feedback completion). Given verified edges, a safe prehistory and a winning actual initial region and history, choosing a certified edge and then a branch matching the observed region and lower label preserves a certificate at every step. Every admissible disturbance sequence satisfies (1) at its original deadlines and reaches a post region at H H H .
Proof sketch: Terminal acceptance is upward closed. Increasing a source state or a bit cannot shorten the next run or undo an earned visit, so backward induction makes each winning set upward closed. Every actual successor is covered by a verified branch. Updating with its measured bits therefore dominates the winning lower-label update on that branch. Induction to H H H proves safety and completion; the interval reduction returns the guarantee to each raw deadline.
For observed-state feedback the update uses the observed bits. A tube MPC instance instead uses the exact bits of its executed nominal centre and a tightening that transfers these bits to the physical output. Exactness of the game compares controllers on the declared labelled library; its physical guarantee concerns the verified sampled model.
Using the Certificate
The filter accepts a proposed edge when it passes every branch test in (2). A failed or late proposal triggers the stored winning edge for the current tick, region and history. For one type, c ≤ min b ρ b c \le\min_b \rho_b c ≤ min b ρ b recovers every permitted edge. After execution, a measured successor in P ρ b P_{\rho_b} P ρ b with actual bits at least σ b \sigma_b σ b determines a valid continuation. This deadline rule requires a winning starting pair and a backup available before the input deadline. For one type any maximizer in (4) supplies that backup. For multiple types each edge must pass the joint successor test, since two separate station tests may select different edges.
Short-horizon MPC. Raman et al. [12 ] encode STL constraints in mixed-integer MPC. Sadraddini and Belta [16 ] treat bounded additive disturbances. Time-interval decomposition links STL subtasks on disjoint horizons [22 ] . Backward-reachable terminal sets also support infinitely recurring tasks [21 ] . Here the terminal set depends on which finite windows the candidate has already served. For a linear tube, propagate the nominal centre z + = A z + B v z^+ = Az + Bv z + = A z + B v across ticks without resetting it to the measurement, and apply u = v + K ( x − z ) u = v + K(x-z) u = v + K ( x − z ) [10 ] . For additive disturbances in W \mathcal{W} W , let ( A + B K ) E ⊕ W ⊆ E (A+BK)\mathcal{E} \oplus\mathcal{W} \subseteq\mathcal{E} ( A + B K ) E ⊕ W ⊆ E . Tighten state and input sets by E \mathcal{E} E and K E K\mathcal{E} K E , respectively, and output predicates by C E C\mathcal{E} C E for y = C x y=Cx y = C x . Compute Win z \operatorname{Win}^z Win z on the nominal library with tightened predicates and constraints. At tick k k k plan to t = min ( k + N , H ) t=\min(k+N,H) t = min ( k + N , H ) , N ≥ 1 N \ge1 N ≥ 1 . Enforce tightened input and sampled state/safety constraints. Update the executed history q k q_k q k along the plan with lower bounds on its tightened bits and impose
z t ∣ k ∈ T ^ ( q t ∣ k ) , T ^ ( q ) = ⋃ ρ : Win z ( ρ , q ) = 1 P ρ . (5) z_{t|k} \in\widehat{\mathcal{T}}(q_{t|k}), \qquad\widehat{\mathcal{T}}(q)=\bigcup_{\rho:\operatorname{Win}^{z}(\rho,q)=1} P_\rho. \tag*{(5)} z t ∣ k ∈ T ( q t ∣ k ) , T ( q ) = ρ : Win z ( ρ , q ) = 1 ⋃ P ρ . (5)
Corollary 4 (Short-horizon completion). Assume valid tightenings for an invariant tube containing the initial error, a verified initial plan for the actual centre and safe history, and a verified one-step extension from each winning nominal pair before H H H . Executing verified plans under (5) preserves feasibility and meets every original deadline.
Proof: The executed centre’s true tightened bits dominate the planned bits. Shift the remaining inputs at their original times and recompute history. Monotonicity preserves feasibility and terminal membership. Append one certified step if t < H t < H t < H . A plan ending at H H H simply shortens. Store this plan as backup. At H H H all windows are served, and the tube tightening transfers sampled safety and the dwell witnesses to the plant.
In Figure 2 , requiring all visits to finish inside the ten-step plan would discard this feasible candidate. At its endpoint, condition (5) certifies the return that is still due.
A dwell with allowed starts [ a , b ] [a,b] [ a , b ] is expressible in STL [9 ] or as a hold within [ a , b + ℓ ] [a,b+\ell] [ a , b + ℓ ] in Time Window Temporal Logic [20 ] . Temporal robustness measures tolerance to common or predicate-specific shifts [15 ] and to shifts in both directions [14 ] . Synthesis can exploit redundancy across time shifts [23 ] . Spatiotemporal monitors quantify tradeoffs between spatial and temporal perturbations [17 ] . Here even a deterministic schedule can give visits unequal windows. Uncertain travel durations pose a different planning problem [8 ] .
Partial formula evaluation and robustness-to-go carry prefix information into STL control [4 , 5 ] . Feasibility can also be indexed by a subset of remaining obligations [24 ] . Theorem 1 shows that before failure the served windows of each type form a suffix, represented by one frontier. For example, a predicate with zero dwell reduces to repeated eventualities over that same predicate. The frontier specifies which remain to be served when the controller chooses an edge with several possible successors.
STL runtime assurance and value functions filter proposed actions [1 , 18 ] . Reachability gives completion guarantees under disturbances [6 ] . Feedback refinement relates symbolic policies to physical systems [13 ] , and antichain algorithms exploit ordered states [3 , 2 ] . For one dwell type, our order yields a scalar winning threshold and a feedback action for every frontier it covers.
Experiments
Correctness against independent oracles
We compared the monitor to a direct enumeration of dwell starts in each original window, including duplicated and nested intervals, zero dwell, negative indices and completion on the deadline. The outputs agreed on 33,356 prefixes. Exhaustive future extensions gave 10,800 agreements on the remaining language. Explicit source-state enumeration also agreed on the complete set of minimal predecessors for 3,508 fixed-target queries. On 16 seeded branching graphs, explicit coverage and the policy implementations agreed on 5,856 legal states and 16,704 state–action checks. The original clock-offset graphs also reproduced their complete action sets at the recorded branch and history witnesses. These checks supplement the proof on the entire formal domain.
What does sharing save?
Every method uses the same canonical windows, labelled branches, admissible regions and terminal conditions. The sparse methods memoize the reachable subproblem for each query. They store either one run per outstanding clause, a shared frontier, a bit mask of pending obligations, or a reduced ordered Boolean decision diagram for the residual formula. The diagram compiles an OR over possible dwell starts per clause and shares identical Boolean subfunctions. It uses the same sparse game solver. The ordered method stores minimal winning states for the full domain. The scalar threshold method also constructs the full policy and applies only to a single type.
Table 1. Single-station quadrotor library. Median wall time in ms for an executable policy from one start, five cached batches of 12 queries, and all 26,880 formal states. Each workload includes policy construction. Physical verification is common to all rows and excluded.
The workload matters even on the same verified quadrotor graph. With 160 regions, 344 edges and 4.39 successor branches per edge on average, 19,734 of 26,880 time–region–history queries were winning for station A. For complete-domain coverage the threshold method took 18.36 ms against 41.07 ms for the sparse decision diagram; a single cold query took 18.41 ms and 1.53 ms, respectively. The physical graph, including verification and post-set construction, cost 623 ms before either method could run. Including this shared step, producing a full policy took about 641 and 664 ms, respectively.
Across seven synthetic settings and the robot library, the methods agreed on all matched initial and batch queries and their full action sets. Seven complete domains were also checked. The four-type full enumeration had 4,602,096 states and exceeded the prescribed 45,000-state coverage limit. Its sparse batch queries all lost. On the synthetic two-successor graphs, raising the number of retained windows from four to twenty at a fixed horizon left the threshold build near 0.8–0.9 ms. The sparse diagram required about 3–14 ms for a full policy Figure 3 . At four successors the mostly losing game favored ordered recursion. On the verified library the sparse diagram won on all five cached batches combined as well as on the isolated start (Table I).
Figure 3. Full-domain policies on synthetic one-type graphs at a fixed horizon of 36 samples. Left: two successors per edge. Right: ten retained windows. In the four-successor case only 21 of 6,072 queries win; the ordered recursion terminates many branches early.
Table II. PAIRED TWO-STATION PATROLS. ARM INIT.: STARTS FEASIBLE FOR THAT METHOD. MISSION: ALL WINDOWS MET. RETAIN AND EXEC.: ROBUST MEMBERSHIP AND A CERTIFIED ACTION AT EVERY TICK, OUT OF EIGHT ROBUST-CERTIFIED STARTS. FALLBACK COUNTS TICKS WITH AN EMPTY PRIMARY ACTION SET, OUT OF 360 PER ARM.
Figure 4. Simulated patrol from x 0 = 1.1875 x_0 = 1.1875 x 0 = 1.1875 m with wind seed 101. Shaded rectangles show the station extent and allowed dwell-start samples. Points show measured longitudinal position at each decision tick.
Repeated inspection in robot simulation
Both the revisit in Figure 2 and the patrol use MuJoCo [19 ] and the Bitcraze Crazyflie 2 model from MuJoCo Menagerie [25 ] . On patrol the quadrotor must return to two stations while also tracking a patrol reference that can be redirected during the mission. Each measurement requires two consecutive samples. The allowed start windows are [ 0 , 3 ] [0, 3] [ 0 , 3 ] and [ 14 , 20 ] [14, 20] [ 14 , 20 ] at A and [ 6 , 10 ] [6, 10] [ 6 , 10 ] and [ 23 , 29 ] [23, 29] [ 23 , 29 ] at B. One decision tick comprises eight outer-loop samples of 0.2 s. Each method receives the current reference change at the same tick.
Three filters rank the same five longitudinal velocity primitives using the same one-step tracking cost, unfinished-inspection cost and control penalty. They allow, respectively, robust completion actions, robust safety actions or nominal completion actions. A fourth controller (Full-H) minimizes the sum of the stage costs on a deterministic cell-centroid graph with all original window constraints and replans after each observation. Its primitive grid is finite and its planning model is nominal. The other arms use whole-cell transition covers.
The paired trial crosses three fixed start positions with four wind seeds for each arm. All 48 patrols reach the 30-tick horizon. The robust, safety-only and nominal filters each complete all four windows in 12/12 runs. Full-H completes 8/12; each miss occurs at the first B window. Eight of the twelve initial pairs carry a robust certificate; four of these eight also complete under Full-H. Among the certified starts, the numbers that retain robust membership throughout are 8, 3, 3 and 0. Requiring every executed action also to be certified gives 8, 3, 0 and 0. The four successful robust-filter runs from uncertified initial states count as observed completions only.
The robust filter’s mean total cost is 19.33, compared with 21.19 for safety-only. The paired difference is −1.85 (descriptive 95% seed-block interval [−2.03, −1.76], conditional on the three starts). Full-H costs less: on the eight runs where both methods finish every inspection its mean advantage over the robust filter is 6.70. All 56 trajectories, including four single-station threshold runs and four branch-mechanism runs, stay within the sampled state, input and residual bounds. The largest absolute residual component divided by its allowed bound is 0.343 over 13,440 fine steps.
a) What changes the action?: In a separate four-seed mechanism test, all runs begin at the same measured state with the same history and execute hover. Two wind seeds lead to a western successor and two to an eastern successor. The shared tracking objective selects +0.25 m/s in the west and hover in the east. The complete next-action sets are identical, {−0.25, 0, +0.25} m/s, and both proposals pass. The robot executes branch-dependent feedback, but either command would have retained the certificate in either cell.
A different comparison on the declared outer model isolates the effect of history at a fixed state and clock. At tick 7, two certified prefixes end at exactly the same four-dimensional state. One has finished B’s first dwell; the other has one true sample at B. The complete action sets are {0, +0.25} and {0} m/s, respectively. Both the run length and the window coverage differ. This witness concerns modeled trajectories.
When history and feedback change the permitted action
Figure 5 separates two decisions on verified unicycle libraries. In Figure 5 (a), the current measurement cannot distinguish two legal histories. Whichever primitive a controller selects using only the state, clock, bits and runs, it cannot certify that primitive for both histories. A one-station example also distinguishes partial service: at k = 14 k = 14 k = 14 the same state, visited flag, bit and zero run admit only ( 1 , 1 ) (1,1) ( 1 , 1 ) at c = 2 c = 2 c = 2 , and also ( 1 / 2 , 1 / 2 ) (1/2,1/2) ( 1/2 , 1/2 ) at c = 1 c = 1 c = 1 . In Figure 5 (b) both successors have the same updated history ( c , r ) = ( 3 , 0 ) (c,r) = (3,0) ( c , r ) = ( 3 , 0 ) . The first primitive is certified because its next action can depend on the observed cell, as allowed by (2).
On 20 ordinary unicycle configurations all three filters finish the task. Disjoint sets demonstrate where feedback is necessary for certification; their frequency depends on the task and the transition cover.
In the experiment of Figure 5 (a), a third legal prefix serves both stations and reaches the same endpoint, clock, bits and runs. Its certified set contains both of the plotted successors.
The physical abstraction affects the outcome. In the original quadrotor branch experiment ten wind seeds follow identical branches. An outer-model pair with disjoint next-action sets reaches distinct cells with nested sets in MuJoCo. In fixed-offset scaling tests, explicit bitset and compact sparse caches visit equally many states; whole-domain ordered recursion is 6.0–45.9 times slower than sparse compact on the matched initial-region queries. An optimized full-horizon STL encoding is fastest in the original linear feasibility comparison, and the sign of the replanning cost difference changes with geometry and execution window. These checks limit extrapolation to other graphs and control objectives.
Which comparison answers which question?
Table 3. Matched inputs and scope of the policy comparisons.
The distinction between retaining membership and taking a certified action matters empirically. A nominal action can leave a winning pair on the observed branch even though another allowed branch loses. Three nominal patrols remained in the robust winning set through H H H , yet none used a robust-certified action on every step. Conversely, some simulations met all deadlines even from a start that the whole-cell library could not certify. These outcomes measure different properties of an abstraction.
The synthetic two-type game at four retained windows per type illustrates why no single representation dominates. Its ordered full-domain build took 5.51 ms; the sparse diagram took 41.62 ms. At four types the predefined full-query cap bound the evaluation. On the verified one-type graph the ordered construction examined 8,912 grouped target tuples; the scalar sweep examined none. In the repeated application timing run, full-workload process peaks were approximately 36.3 MiB for threshold and 35.1 MiB for the diagram, including the interpreter, inputs and separate audit. The measured threshold advantage is construction time. It gives a precomputed lookup over the domain without establishing a memory or closed-loop timing advantage.
Scope and Conclusion
A finite family of inspection windows can have unequal widths, overlapping releases and different deadlines. Reuse of a visit is what permits the frontier representation. Independent work orders, arrivals after the start of the task, and different precision requirements at a station can change the remaining language. The threshold sweep is useful when a policy for every legal history must be available before execution. A sparse solver was cheaper both from one prescribed initial state and on five cached query batches. For several types the joint winning set may have many incomparable histories. Finally, the guarantee is relative to the labelled library and its stated disturbance envelope. A measured simulation trajectory tests that interface; establishing it for hardware requires additional evidence.
Window Histories, Predecessors and Policies
Notation and initialization
Table 4. Symbols for the general-window game. Time k k k follows processing of sample k k k .
All intervals below contain integers. For one type with a fixed effective predicate, write K K K for the raw number of windows, M M M for the number remaining, I i = [ a i , b i ] I_i=[a_i,b_i] I i = [ a i , b i ] for a retained interval and ℓ + 1 \ell+1 ℓ + 1 for the number of consecutive true samples required. For a bit prefix ending at k k k , define directly from the raw history
D I ( k ) = { s ∈ I : s + ℓ ≤ k , β ( s ) = ⋯ = β ( s + ℓ ) = 1 } . D_I(k)=\{s\in I:s+\ell\le k,\ \beta(s)=\cdots=\beta(s+\ell)=1\}. D I ( k ) = { s ∈ I : s + ℓ ≤ k , β ( s ) = ⋯ = β ( s + ℓ ) = 1 } .
A window is served iff D I ( k ) ≠ ∅ D_I(k)\ne\varnothing D I ( k ) = ∅ . Its expiry failure means D I ( k ) = ∅ D_I(k)=\varnothing D I ( k ) = ∅ and k ≥ max I + ℓ k\ge\max I+\ell k ≥ max I + ℓ . Failure here checks expired deadlines; a prefix may already admit no winning continuation because of its current run, safety or the dynamics. The independent safety requirements are checked at their own active times.
Proof of Theorem 1: If I ′ ⊆ I I' \subseteq I I ′ ⊆ I , then D I ′ ( k ) ⊆ D I ( k ) D_{I'}(k) \subseteq D_I(k) D I ′ ( k ) ⊆ D I ( k ) for every k k k . Every raw interval contains a minimal one, so serving all minimal intervals serves every raw interval. If a raw interval I I I has expired unserved, its contained minimal interval I ′ I' I ′ is also unserved and its deadline is at most that of I I I . Conversely, an expired unserved retained interval is itself raw. Expiry is irrevocable: after b i + ℓ b_i+\ell b i + ℓ no new witness in I i I_i I i can finish. These arguments concern the conjunction; a removed window can be served before any interval retained inside it.
After duplicates are removed, equal left or right endpoints would give containment. Order the retained intervals by strictly decreasing a i a_i a i . If i < j i<j i < j and b i ≤ b j b_i\le b_j b i ≤ b j , then I j I_j I j contains I i I_i I i , a contradiction. Thus b i b_i b i decreases strictly. Put
u ( s ) = min ( { i : a i ≤ s } ∪ { M } ) , u(s)=\min(\{i:a_i\le s\}\cup\{M\}), u ( s ) = min ({ i : a i ≤ s } ∪ { M }) ,
v ( s ) = max ( { i : b i ≥ s } ∪ { − 1 } ) . v(s)=\max(\{i:b_i\ge s\}\cup\{-1\}). v ( s ) = max ({ i : b i ≥ s } ∪ { − 1 }) .
The release condition gives a suffix, the right-endpoint condition a prefix. Thus J ( s ) = [ u ( s ) , v ( s ) ] J(s)=[u(s),v(s)] J ( s ) = [ u ( s ) , v ( s )] when u ( s ) ≤ v ( s ) u(s)\le v(s) u ( s ) ≤ v ( s ) , and is empty otherwise. Suppose window i i i is served by s s s and j > i j>i j > i is unserved. Then a j < a i ≤ s a_j<a_i\le s a j < a i ≤ s and s ∉ I j s\notin I_j s ∈ / I j imply s > b j s>b_j s > b j . The unserved window j j j had therefore expired by s + ℓ ≤ k s+\ell\le k s + ℓ ≤ k . On a nonfailed prefix this is impossible. The served set is consequently a suffix, possibly empty (c = M c=M c = M ) or full (c = 0 c=0 c = 0 ). Its expiry check is c ≤ e k c\le e_k c ≤ e k because the expired deadlines form the suffix beginning at e k e_k e k .
The update from k k k to k + 1 k+1 k + 1 uses the integer-time identity
v ( k + 1 − ℓ ) + 1 = e k . (6) v(k+1-\ell)+1=e_k. \tag*{(6)} v ( k + 1 − ℓ ) + 1 = e k . (6)
Indeed b i ≥ k + 1 − ℓ b_i\ge k+1-\ell b i ≥ k + 1 − ℓ holds exactly when b i + ℓ > k b_i+\ell>k b i + ℓ > k . The number of such indices is both sides of (6), including the empty and full prefix cases. For any valid source, c ≤ e k c\le e_k c ≤ e k ; hence every nonempty new witness interval intersects or abuts the old suffix (including adjacency to an empty suffix). A saturated next run finishes exactly one candidate start at this sample. The explicit union of covered indices is then the suffix starting at min ( c , u ) \min(c,u) min ( c , u ) if J J J is nonempty. Otherwise it is unchanged. Testing expiry after this union gives the stated update on every formal source in Q k Q_k Q k . An invalid source cannot be supplied as a live state, and failure maps to itself for every later bit.
No valid retained witness starts before L L L ; true samples before L L L are therefore unnecessary to establish a valid start. Initializing the trailing count at zero at L − 1 L-1 L − 1 counts precisely runs in the supplied history. Induction from L L L gives the stated suffix, capped run and expiry. For every continuation the deterministic update extends the prefix exactly; at H H H all retained intervals must be served, which is equivalent to all raw obligations. Taking the product over types preserves this equivalence. Distinct prefixes with the same state may disagree about a removed window or the identity of a past witness; neither can change the remaining conjunction. The size bound follows by counting the formal pairs for each type and one common failure. It counts neither a minimal automaton nor the number of history-consistent states actually visited. ■
An empty family is a true conjunction and is removed; if all families are empty the game retains only safety and post constraints. An interval with a > b a>b a > b has no witness, even with an identically true signal. Recorded history also covers all pre-mission safety samples. When window data are changed after execution begins, a previously compressed history need not initialize the changed task.
One visit and one witness:
A common start is possible on a given signal iff some s ∈ ⋂ i I i s\in\bigcap_i I_i s ∈ ⋂ i I i starts a true dwell. The completed witness within one true segment [ p , q ] [p,q] [ p , q ] has starts [ p , q − ℓ ] [p,q-\ell] [ p , q − ℓ ] when q − p ≥ ℓ q-p\ge\ell q − p ≥ ℓ . It serves every window iff q − p ≥ ℓ q-p\ge\ell q − p ≥ ℓ and I i ∩ [ p , q − ℓ ] ≠ ∅ I_i\cap[p,q-\ell]\ne\varnothing I i ∩ [ p , q − ℓ ] = ∅ for all i i i (nonempty family). For example, disjoint singleton windows [ 0 , 0 ] , [ 2 , 2 ] [0,0],[2,2] [ 0 , 0 ] , [ 2 , 2 ] with ℓ = 1 \ell=1 ℓ = 1 can both use the uninterrupted segment [ 0 , 3 ] [0,3] [ 0 , 3 ] . A requirement for physically separated visits needs constraints that exclude every such uninterrupted segment. The fixed-offset baseline relations that use a common width or shift bound apply to [ a − d , b − d ] [a-d,b-d] [ a − d , b − d ] , not to arbitrary interval families.
Order and exact robust predecessors
Write ( c , r ) ⪯ ( d , s ) (c,r)\preceq(d,s) ( c , r ) ⪯ ( d , s ) when c ≥ d c\ge d c ≥ d and r ≤ s r\le s r ≤ s , take the componentwise product over types, and put ⊥ \bot ⊥ below every live state. For valid formal sources, the next run is nondecreasing in both current run and bit. When one update yields a witness, any dominating source and larger bit also yield a witness at the same start. The frontier map is either the identity or c ↦ min ( c , u ) c\mapsto\min(c,u) c ↦ min ( c , u ) , both nondecreasing in the ordinary order on c c c ; gaining a witness only decreases c c c . If the lesser state survives expiry, the greater one does too. Thus Γ \Gamma Γ is monotone in state and label on the full formal domain. One can extend it by mapping all out-of-domain sources to ⊥ \bot ⊥ : each Q k Q_k Q k is upward closed. Terminal acceptance is upward closed as well.
One branch:
Fix k k k , s = k + 1 − ℓ s=k+1-\ell s = k + 1 − ℓ , a target ( d , t ) ∈ Q k + 1 (d,t)\in Q_{k+1} ( d , t ) ∈ Q k + 1 , and let u = u ( s ) u=u(s) u = u ( s ) , v = v ( s ) v=v(s) v = v ( s ) . The desired predecessors are live sources whose updated pair dominates ( d , t ) (d,t) ( d , t ) . A zero branch has no predecessors when t > 0 t>0 t > 0 and otherwise has generator ( d , 0 ) (d,0) ( d , 0 ) . For a one branch form
( d , max ( 0 , t − 1 ) ) , ( e k , ℓ ) if J ( s ) ≠ ∅ and u ≤ d . (d,\max(0,t-1)),\qquad(e_k,\ell)\text{ if }J(s)\ne\varnothing\text{ and }u\le d. ( d , max ( 0 , t − 1 )) , ( e k , ℓ ) if J ( s ) = ∅ and u ≤ d .
Keep only distinct minimal candidates in completion order (delete y y y if x ⪯ y x\preceq y x ⪯ y and x ≠ y x\ne y x = y ). Indeed d ≤ e k + 1 ≤ e k d\le e_{k+1}\le e_k d ≤ e k + 1 ≤ e k . The updated run dominates t t t iff r ≥ max ( 0 , t − 1 ) r\ge\max(0,t-1) r ≥ max ( 0 , t − 1 ) . If c ≤ d c\le d c ≤ d this already suffices. Otherwise only a newly completed witness can suffice; it requires r ≥ ℓ r\ge\ell r ≥ ℓ , nonempty J J J and u ≤ d u\le d u ≤ d . Equation (6) supplies adjacency for every valid c c c . The bound d ≤ e k + 1 d\le e_{k+1} d ≤ e k + 1 also ensures no successful predecessor is rejected by the next expiry check.
Several branches and types:
For a fixed edge and one target per branch, work in one coordinate with targets ( d b , t b ) (d_b,t_b) ( d b , t b ) . Write I z = { b : t b = σ z } I_z=\{b:t_b=\sigma_z\} I z = { b : t b = σ z } for z = 0 , 1 z=0,1 z = 0 , 1 . If a zero branch requests t b > 0 t_b>0 t b > 0 , the feasible set is empty. Otherwise put C 0 = min ( { e k } ∪ { d b : b ∈ I 0 } ) C_0=\min(\{e_k\}\cup\{d_b:b\in I_0\}) C 0 = min ({ e k } ∪ { d b : b ∈ I 0 }) . Zero branches together impose c ≤ C 0 c\le C_0 c ≤ C 0 . When I 1 I_1 I 1 is empty the sole candidate is ( C 0 , 0 ) (C_0,0) ( C 0 , 0 ) . Otherwise let C 1 = min b ∈ I 1 d b C_1=\min_{b\in I_1}d_b C 1 = min b ∈ I 1 d b and R 1 = max b ∈ I 1 t b R_1=\max_{b\in I_1}t_b R 1 = max b ∈ I 1 t b . All one branches have the same updated state in this coordinate, so their targets jointly request c ′ ≤ C 1 c'\le C_1 c ′ ≤ C 1 and r ′ ≥ R 1 r'\ge R_1 r ′ ≥ R 1 . Intersecting the preceding one-branch cases with c ≤ C 0 c \le C_0 c ≤ C 0 gives
( min ( C 0 , C 1 ) , max ( 0 , R 1 − 1 ) ) , (\min(C_0,C_1),\max(0,R_1-1)), ( min ( C 0 , C 1 ) , max ( 0 , R 1 − 1 )) ,
( C 0 , ℓ ) (C_0,\ell) ( C 0 , ℓ ) if J ( s ) ≠ ∅ J(s) \ne\varnothing J ( s ) = ∅ and u ≤ C 1 u \le C_1 u ≤ C 1 .
Again minimize. For multiple types take the Cartesian product of per-type candidates and retain its minima, since coordinate conditions for a fixed target tuple are conjunctive. This supplies at most 2 G 2^G 2 G candidates per tuple. To recurse on antichains, take the union over edges and one winning generator per successor branch, then retain the minima of that union. Finite upward-closed sets equal the upward closure of their minima; backward induction therefore recovers the explicit winning set. Different branches can require different generators. Tuple enumeration in this general construction may be expensive.
c) Why independent coordinate thresholds can fail: Take two distinct types with ℓ 1 = ℓ 2 = 0 \ell_1=\ell_2=0 ℓ 1 = ℓ 2 = 0 , one window [ 0 , 1 ] [0,1] [ 0 , 1 ] each and H = 1 H=1 H = 1 . At k = 0 k=0 k = 0 let one edge ensure bits ( 1 , 0 ) (1,0) ( 1 , 0 ) at the next sample and another ensure ( 0 , 1 ) (0,1) ( 0 , 1 ) , all regions admissible and post. An initial history which has served either type is winning. A history which has served neither is losing, although its individual coordinates each occur in a winning history. This rules out reconstructing the winning product solely from its coordinate projections.
Threshold computation and action recovery
Proof of Theorem 2: Terminal acceptance gives T H ( r ) = 0 T_H(r)=0 T H ( r ) = 0 at admissible post regions and − 1 -1 − 1 otherwise, even when H = 0 H=0 H = 0 . For the induction step assume exact successor thresholds. Upon fixing a run and an edge, the next run on each branch is independent of c c c . A negative successor threshold rules out the branch for all c c c . Otherwise, a new witness in a nonempty J J J yields c ′ = min ( c , u ) c'=\min(c,u) c ′ = min ( c , u ) , so c ′ ≤ t b c' \le t_b c ′ ≤ t b holds for every c ≤ e k c \le e_k c ≤ e k if u ≤ t b u \le t_b u ≤ t b , and exactly for c ≤ t b c \le t_b c ≤ t b if u > t b u>t_b u > t b . Without such a witness c ′ = c c'=c c ′ = c . This gives (3) , including expiry because t b ≤ e k + 1 t_b \le e_{k+1} t b ≤ e k + 1 . The intersection across branches is the prefix through their minimum; the union across edges is the prefix through the largest of these minima. No action witnesses an empty edge set. This proves the formula for all formal states, including history-inconsistent ones. A maximizing edge covers its entire prefix. The complete certified action set at c c c consists of all outgoing edges with branch minimum at least c c c at an admissible source. It can be recovered by scanning the edges without materializing a policy for every c c c .
For each run, each time layer initializes ∣ R ∣ |\mathcal{R}| ∣ R ∣ entries and performs constant arithmetic work per branch for each outgoing edge. Storing the maximizer and threshold costs a constant number of entries per ( k , ρ , r ) (k,\rho,r) ( k , ρ , r ) , with no edge needed at H H H . An antichain for one region and time has at most ℓ + 2 \ell+2 ℓ + 2 elements because all states within the same run are comparable. Threshold entries are integers in [ − 1 , M ] [-1,M] [ − 1 , M ] . These are arithmetic-operation and entry bounds; bit width grows with the range, and the verified library is an input. Two value layers suffice for the initial feasibility decision alone; recovering the time-indexed policy from them may require recomputation.
Window preprocessing is separate. For example, sorting by decreasing release and increasing right endpoint on ties permits a linear scan after the sort: discard the next interval if its right endpoint is at least the smallest previously seen right endpoint. A previously retained interval realizing that minimum witnesses the containment. Otherwise retain the interval and update the minimum. Moving indices through the two strictly ordered endpoint arrays then tabulate u , v , e u,v,e u , v , e by time in O ( M + H − L + 1 ) O(M+H-L+1) O ( M + H − L + 1 ) per type. Thus the single-type preprocessing can be implemented in O ( K log ( K + 1 ) + H − L + 1 ) O(K\log(K+1)+H-L+1) O ( K log ( K + 1 ) + H − L + 1 ) arithmetic operations. Certifying physical edges, computing RA and answering online queries incur additional costs.
Algorithm 1 Single-type backward sweep on a fixed library
Require: canonical time indices, verified branches, RA, K_post, H
1: initialize T_{H,\rho}(r) as above for all \rho,r
2: for k = H - 1,\ldots,0 do
3: for each \rho,r do
4: set T_{k,\rho}(r) \leftarrow -1; clear the edge witness
5: if RA_k(\rho) then
6: for each edge e \in A(\rho) do
7: v \leftarrow \min_{b\in Succ(e)} p_b by (3)
8: if v > T_{k,\rho}(r) then
9: store e and \rho for this (k,\rho,r)
10: end if
11: end for
12: end if
13: end for
14: end for
Lifting the policy to the executed system
Proof of Theorem 3: Induct backward for upward closure. At the terminal time it follows from acceptance. If some edge wins for a given state, increasing that state in completion order preserves admissibility and improves every branch update. Every branch still wins at the next layer by induction. The game on explicit retained sets and runs is identical under suffix decoding of every valid formal pair by (6). For raw windows, exactness holds on states generated by a common bit prefix: Theorem 1 gives the same rejection and terminal acceptance under every extension. Induction on the future tree preserves the existential action and universal branch decisions because both recursions use the same labels, regions, safety and post conditions.
At a winning region and live state take any certified edge. By verification its law is admissible. For each actual disturbance there is at least one branch for the measured successor with both region containment and σ b ≤ β ( x + ) \sigma_b \le\beta(x^+) σ b ≤ β ( x + ) . The lower-label update wins on that branch; choosing the realized bits gives a dominating state by monotonicity and still wins. Induction forward from the initialized state gives admissibility until H H H and acceptance in K p o s t \mathcal{K}_{\mathrm{post}} K post . A verified invariant post law can maintain the post constraints thereafter. Historical safety was checked during initialization. Each minimal window has a witness at its own deadline, and each deleted window contains such a witness by its own deadline. This proves the original task for every disturbance.
In a proposal filter, use a currently certified proposed edge when available and otherwise use the stored winning edge for the current tick, region and monitor state. Any delayed proposal requires revalidation for the decision to which it is applied. A branch matching only the measured region can have an incorrect lower label and cannot justify the induction.
a) Tube MPC instantiation: For a linear tube with invariant error set, propagate the centre with its executed nominal dynamics. Assume the checked nominal plan satisfies tightened safety and one-sided labels, terminates in a certified nominal region, and the nominal certifying library supplies a verified one-step extension from each winning pair. Actual nominal-centre predicate bits at the executed successor dominate the planned lower bits, so the executed monitor state dominates the planned one. Shift the overlapping plan using the same absolute times, nominal inputs and lower bits. Its monitor suffix still dominates the old planned suffix. If its endpoint is H H H , upward closure preserves that terminal certificate; otherwise append the one-step verified extension at its endpoint. Thus a verified plan for the next tick exists after each executed step before H H H . At the last step the terminal state accepts; each true tightened nominal predicate implies the intended physical predicate for every state in the tube. Historical nominal bits and tightening bounds must be available on the active pre-mission samples. This proof does not mix measured nonlinear bits with nominal-centre bits in the same run.
b) Integer monitor rows for an arbitrary window family: At successor time t t t , impose valid source 0 ≤ c ≤ e t − 1 0 \le c \le e_{t-1} 0 ≤ c ≤ e t − 1 and 0 ≤ r ≤ ℓ + 1 0 \le r \le\ell+ 1 0 ≤ r ≤ ℓ + 1 . For a claimed bit z z z , use integral next states c ′ , r ′ c', r' c ′ , r ′ and auxiliary binaries u , w u,w u , w :
( ℓ + 1 ) u ≤ r ≤ ℓ + u , ( ℓ + 1 ) w ≤ r ′ ≤ ℓ + w , 0 ≤ r ′ ≤ ( ℓ + 1 ) z , r ′ ≤ r + 1 − u , r ′ ≥ r + 1 − u − ( ℓ + 1 ) ( 1 − z ) . \begin{aligned}
(\ell+ 1)u &\le r \le\ell+ u, \qquad(\ell+ 1)w \le r' \le\ell+ w,\\
0 &\le r' \le(\ell+ 1)z,\qquad r' \le r + 1 - u,\\
r' &\ge r + 1 - u - (\ell+ 1)(1-z).
\end{aligned} ( ℓ + 1 ) u 0 r ′ ≤ r ≤ ℓ + u , ( ℓ + 1 ) w ≤ r ′ ≤ ℓ + w , ≤ r ′ ≤ ( ℓ + 1 ) z , r ′ ≤ r + 1 − u , ≥ r + 1 − u − ( ℓ + 1 ) ( 1 − z ) .
These rows force u = [ r = ℓ + 1 ] u=[r=\ell+1] u = [ r = ℓ + 1 ] , w = [ r ′ = ℓ + 1 ] w=[r'=\ell+1] w = [ r ′ = ℓ + 1 ] and the required capped run. If J ( t − ℓ ) = ∅ J(t-\ell)=\varnothing J ( t − ℓ ) = ∅ , impose c ′ = c c'=c c ′ = c . Otherwise let d = min J ( t − ℓ ) d=\min J(t-\ell) d = min J ( t − ℓ ) , introduce binaries v , h v,h v , h and impose
( d + 1 ) v ≤ c ≤ d + ( M − d ) v , h ≤ w , h ≤ v , h ≥ w + v − 1 , c − M h ≤ c ′ ≤ c , ∣ c ′ − d ∣ ≤ M ( 1 − h ) . \begin{aligned}
(d+1)v &\le c \le d+(M-d)v,\\
h &\le w,\qquad h\le v,\qquad h\ge w+v-1,\\
c-Mh &\le c' \le c,\qquad\lvert c'-d\rvert\le M(1-h).
\end{aligned} ( d + 1 ) v h c − M h ≤ c ≤ d + ( M − d ) v , ≤ w , h ≤ v , h ≥ w + v − 1 , ≤ c ′ ≤ c , ∣ c ′ − d ∣ ≤ M ( 1 − h ) .
Here v = [ c > d ] v=[c>d] v = [ c > d ] and h = w ∧ v h=w\land v h = w ∧ v . Thus c ′ = d c'=d c ′ = d exactly when an eligible witness lowers the frontier; otherwise c ′ = c c'=c c ′ = c (which can also equal d d d ). Finally impose 0 ≤ c ′ ≤ e t 0\le c'\le e_t 0 ≤ c ′ ≤ e t . By (6) no additional adjacency indicator is needed on this source domain. The integer rows are feasible for given source and bit exactly when the monitor survives, and then return its unique next pair. This step needs at most two new integer variables and four auxiliary binaries besides the supplied bit. Geometry, terminal selection and the plant equations have separate rows.
Repeated-Window Certificate Benchmark Protocol
The seven synthetic settings use eight regions on a ring, three actions per region, a four-region terminal set, and a fixed horizon of 36. Each additional successor is a distinct shift around the ring. Every type has ℓ = 1 \ell=1 ℓ = 1 . Four partially overlapping sectors define the potential predicates. Opposite sectors compete. Every method receives the same canonical intervals, edge order, lower labels and admissibility table. Each synthetic type includes one duplicate and one containing interval in its raw inputs. The verified application uses the two original inspection windows of station A. One query workload starts from the specified initial sample. A second consumes five consecutive batches of 12 queries drawn from fixed lower-label walks, retaining all caches. After timing, every permitted edge is enumerated for each query. For full-domain preparation the sparse methods populate their policy from all legal formal states, including unreachable histories. The eager representations cover the same domain directly. A separate readback pass compares membership for all 88,704 formal queries in the seven enumerated settings. Five solvers apply to multiple types, and six to one type. The first campaign ran on an arm64 macOS host with CPython 3.11.16. It used one worker and one BLAS thread at a time. Other project processes could use the host. Seed 83017 fixes the histories, tasks and job order. A separate process ran each case, method and workload; three repetitions rebuilt the policy. All 399 repetitions completed within ten seconds and 600 MiB per process. Peak RSS includes the interpreter, inputs, repeated builds and audit; on the robot full-domain workload it ranged from 35 to 39 MiB. Runtime distributions and all labelled edges accompany the raw results. The application ordered recursion examined 8,912 joined target tuples from 12,563 ungrouped tuples, with at most two generators in a region at a time. The threshold recursion examined zero target tuples. In a separate preprocessing ablation the same per-window sparse solver received either all original clauses or their inclusion-minimal subset and replayed the entire input history in both arms. All eight sets of 60 answers agreed. Across synthetic settings the ratio of raw to canonical median wall time ranged from 0.95 to 1.95 for five batches. Input reduction helps some configurations more than others.
Repeated Inspection Protocol and Scope of the Interface
A macro action commands one of five longitudinal speeds, { − 1 / 2 , − 1 / 4 , 0 , 1 / 4 , 1 / 2 } \{-1/2,-1/4,0,1/4,1/2\} { − 1/2 , − 1/4 , 0 , 1/4 , 1/2 } m/s, with a fixed lateral feedback law. The two inspection strips have longitudinal extents [ 0.75 , 1.75 ] [0.75,1.75] [ 0.75 , 1.75 ] and [ 2.25 , 3.25 ] [2.25,3.25] [ 2.25 , 3.25 ] m. The workspace, velocity and input constraints are checked on the eight four-model samples within a macro primitive. The measured initial longitudinal positions are chosen by resetting the simulator at 1.1875, 1.6875 or 3.0625 m. Four fixed wind seeds (101–104) are crossed with all three starts and four methods. Each start is repeated under all seeds and has the same nominal initial bits. The physical graph has 160 regions, 344 verified actions and 134 post regions. A separate single-station run uses the threshold policy and the four wind seeds. The ordinary two-station runs instead use the joint game.
Table V. Full-domain construction in the initial campaign (median wall ms, three builds per cell). The matched column counts winning queries across five batches of 12. B B B is the actual number of successors per edge on the ring and the mean on the application. The four-type full sweep exceeded the declared 45,000-state enumeration limit. The threshold only applies to one type.
At each sample the shared stage cost is ( x + − p k ) 2 + 0.45 ( x + − a k ) 2 + 0.06 ( v r e f − v x ) 2 (x^{+}-p_k)^2 + 0.45(x^{+}-a_k)^2 + 0.06(v_{\mathrm{ref}}-v_x)^2 ( x + − p k ) 2 + 0.45 ( x + − a k ) 2 + 0.06 ( v ref − v x ) 2 , where x + x^{+} x + is the next longitudinal position, p k p_k p k the current patrol target and a k a_k a k the station with the earliest unfinished deadline, or p k p_k p k if no inspection remains. The current target changes at prescribed samples; a controller sees each redirect upon issue. Costs are evaluated on the measured trajectory. The three filters share the one-step proposer. The full-horizon comparator minimizes the sum of this cost on nominal cell-centre transitions, using exact original-window masks, a terminal post constraint and all announced reference information. It replans after the next measurement. This differs from both the whole-cell nominal completion filter and the continuous-input linear STL reference in the fixed-offset study.
The model-history comparison matches the full four-dimensional state at tick 7. Both modeled prefixes start from the same state, and their final disturbances are within the declared componentwise bounds. The partial B visit has changed both the run and the coverage. In the distinct MuJoCo branch experiment, the four wind seeds 111–114 share an initial hover. The first two tracking preferences are designed to distinguish measured successors near a cell boundary. The two possible next decisions pass the certificate on both branches. Exact action-set equality was checked by original-window enumeration in addition to the grouped policy.
The robot simulations stop at or before the terminal sample. The invariant post condition is checked on the model. Residual checks on the measured state and input trace refer to sampled outer dynamics, with contact checks in simulation. A finite set of traces does not certify a disturbance bound on hardware. An elapsed-time overrun in the simulator is checked after the decision routine returns; wall-clock measurements therefore describe the implementation and cannot establish hard real-time preemption.
Wind seeds are the units for paired resampling: for each of four resampled seeds retain the entire paired block of three fixed starts. The descriptive 95% percentile intervals are conditional on these starts and on the small collection of observed wind phases; multiple ticks within a trajectory are never counted as independent runs. Completion, safety-
only, nominal and Full-H respectively have mean total costs 19.33, 21.19, 21.37 and 14.03 over all twelve configurations, including the four missed Full-H missions. On configurations where both missions finish every window, the robust filter costs 6.70 more than Full-H (paired interval [6.13, 7.28]). Respectively, 12, 0, 4 and 80 decisions use a backup because the primary action set is empty. These counts are out of 360 decisions per arm. No optimizer outage is injected. The 95th percentiles for action selection are 0.075, 0.018, 0.063 and 7.194 ms. A separate replay of observed branch, bit and monitor updates takes 0.031–0.032 ms at the 95th percentile. No decision exceeds the 1.6-s budget in the 1,440 ordinary-patrol ticks. Individual percentiles of these two timing scopes cannot be added to infer an end-to-end latency percentile.
An initial comparison incorrectly required a robust backup before even calling the nominal full-horizon optimizer. That dispatch rule truncated four Full-H runs at tick 7. The corrected experiment uses an available nominal plan and checks backup availability only when needed. Every original configuration was rerun with the same seeds, costs and geometry; the corrected trajectories are the ones summarized here.
Fixed-offset specialization and supporting experiments
The following sections give the equal-width specialization, the linear tube implementation, its verification assumptions and the original clock-offset experiments. In these sections d d d indexes a translation of a common window. The strict shared-witness comparisons are specific to that family.
Nominal system and tube interface
We consider the constrained linear system
x k + 1 = A x k + B u k + w k , y k = C x k , (7) x_{k+1}=Ax_k+Bu_k+w_k,\qquad y_k=Cx_k, \tag*{(7)} x k + 1 = A x k + B u k + w k , y k = C x k , (7)
with x k ∈ R n x_k \in\mathbb{R}^{n} x k ∈ R n , u k ∈ R m u_k \in\mathbb{R}^{m} u k ∈ R m , y k ∈ R p y_k \in\mathbb{R}^{p} y k ∈ R p , polytopic constraints x k ∈ X x_k \in\mathcal{X} x k ∈ X , u k ∈ U u_k \in\mathcal{U} u k ∈ U , and disturbances w k w_k w k in a compact set W \mathcal{W} W . We use the standard tube interface [10 , 11 ] : a nominal state evolves as z k + 1 = A z k + B v k z_{k+1}=Az_k+Bv_k z k + 1 = A z k + B v k under a nominal input v k v_k v k , the applied input is u k = v k + K ( x k − z k ) u_k=v_k+K(x_k-z_k) u k = v k + K ( x k − z k ) , and the error e k = x k − z k e_k=x_k-z_k e k = x k − z k obeys e k + 1 = ( A + B K ) e k + w k e_{k+1}=(A+BK)e_k+w_k e k + 1 = ( A + B K ) e k + w k .
Assumption 1 (Tube interface). The set E \mathcal{E} E satisfies ( A + B K ) E ⊕ W ⊆ E (A+BK)\mathcal{E}\oplus\mathcal{W}\subseteq\mathcal{E} ( A + B K ) E ⊕ W ⊆ E and e 0 ∈ E e_0\in\mathcal{E} e 0 ∈ E . The nominal constraints are Z = X ⊖ E \mathcal{Z}=\mathcal{X}\ominus\mathcal{E} Z = X ⊖ E and V = U ⊖ K E \mathcal{V}=\mathcal{U}\ominus K\mathcal{E} V = U ⊖ K E , and C E ⊆ B ε = { η ∈ R p : ∥ η ∥ ∞ ≤ ε } C\mathcal{E}\subseteq\mathbb{B}_{\varepsilon}=\{\eta\in\mathbb{R}^p:\lVert\eta\rVert_{\infty}\leq\varepsilon\} C E ⊆ B ε = { η ∈ R p : ∥ η ∥ ∞ ≤ ε } .
The interface is standard (nominal case W = E = { 0 } \mathcal{W}=\mathcal{E}=\{0\} W = E = { 0 } ); the nominal center is never reset to the measured state, and all arguments below refer to it.
Timing offsets and the guaranteed signal family
Time is discrete, and all time intervals are integer intervals. Let D ∈ N D\in\mathbb{N} D ∈ N , D = [ 0 , D ] \mathbb{D}=[0,D] D = [ 0 , D ] , and let y ˉ t = C z t \bar{y}_t=Cz_t y ˉ t = C z t be the nominal output for t ≥ 0 t\geq0 t ≥ 0 .
Assumption 2 (Pre-mission history). A recorded nominal output y ˉ t \bar{y}_t y ˉ t is available for t ∈ [ − D , − 1 ] t\in[-D,-1] t ∈ [ − D , − 1 ] ; the actual pre-mission outputs satisfy y t − y ˉ t ∈ B ε y_t-\bar{y}_t\in\mathbb{B}_{\varepsilon} y t − y ˉ t ∈ B ε for t ∈ [ − D , − 1 ] t\in[-D,-1] t ∈ [ − D , − 1 ] (for example, because e t ∈ E e_t\in\mathcal{E} e t ∈ E already held before the mission); and y ˉ t \bar{y}_t y ˉ t satisfies the tightened safety predicates of Definition 7 at every t ∈ [ − D , − 1 ] t\in[-D,-1] t ∈ [ − D , − 1 ] at which they are active (Section D).
Without such a history, the windows must be shifted or D D D reduced; a fictitious history must not be substituted, since offset d d d reads y t − d y_{t-d} y t − d with t − d < 0 t-d<0 t − d < 0 for t < d t<d t < d .
Definition 5 (Guaranteed signal family). For d ∈ D d\in\mathbb{D} d ∈ D and η : Z → B ε \eta:\mathbb{Z}\to\mathbb{B}_{\varepsilon} η : Z → B ε , let y ~ d , η ( t ) = y ˉ t − d + η ( t ) \tilde{y}^{d,\eta}(t)=\bar{y}_{t-d}+\eta(t) y ~ d , η ( t ) = y ˉ t − d + η ( t ) for t ∈ [ 0 , H ] t\in[0,H] t ∈ [ 0 , H ] .
The offset d ≥ 0 d\geq0 d ≥ 0 is constant and common to all outputs: a fixed misalignment of at most h D hD h D seconds between task clock and trajectory, as for a start command with bounded latency. Componentwise shifts, input or measurement delays and time-varying retiming (Remark 9) are different models and are not covered.
Task fragment
Definition 6 (Reach–dwell–avoid fragment). For closed sets S i , R j ⊆ R p S_i,R_j\subseteq\mathbb{R}^p S i , R j ⊆ R p and integers 0 ≤ α i ≤ ω i 0\leq\alpha_i\leq\omega_i 0 ≤ α i ≤ ω i , 0 ≤ a j ≤ b j 0\leq a_j\leq b_j 0 ≤ a j ≤ b j and ℓ j ≥ 0 \ell_j\geq0 ℓ j ≥ 0 , let
φ = ⋀ i = 1 n s G [ α i , ω i ] μ S i ∧ ⋀ j = 1 n r F [ a j , b j ] G [ 0 , ℓ j ] μ R j , (8) \varphi=\bigwedge_{i=1}^{n_s}\mathsf{G}_{[\alpha_i,\omega_i]}\mu_{S_i}\ \land\ \bigwedge_{j=1}^{n_r}\mathsf{F}_{[a_j,b_j]}\mathsf{G}_{[0,\ell_j]}\mu_{R_j}, \tag*{(8)} φ = i = 1 ⋀ n s G [ α i , ω i ] μ S i ∧ j = 1 ⋀ n r F [ a j , b j ] G [ 0 , ℓ j ] μ R j , (8)
where ( y , t ) ⊨ μ S (y,t)\models\mu_S ( y , t ) ⊨ μ S iff y ( t ) ∈ S y(t)\in S y ( t ) ∈ S , and G \mathsf{G} G and F \mathsf{F} F carry the usual discrete-time semantics [9 ] . Let hrz ( φ ) = max { max i ω i , max j ( b j + ℓ j ) } \operatorname{hrz}(\varphi)=\max\{\max_i\omega_i,\max_j(b_j+\ell_j)\} hrz ( φ ) = max { max i ω i , max j ( b j + ℓ j )} , Δ j = b j − a j \Delta_j=b_j-a_j Δ j = b j − a j , and choose a terminal certification horizon H ≥ hrz ( φ ) H\geq\operatorname{hrz}(\varphi) H ≥ hrz ( φ ) . Each task keeps its window (offset d d d of reach task j j j expires at nominal time $b_j-d+\ell_j); only the post-mission terminal condition is imposed at H H H .
Predicate sets are closed; an avoid requirement is a closed safety set with an explicit clearance (Section B-D), and a conjunction of two eventualities imposes no order.
Spatial tightening and the Boolean abstraction
Definition 7 (Tightening). Tightened sets satisfy S ˉ i ⊕ B ε ⊆ S i \bar{S}_i\oplus\mathbb{B}_{\varepsilon}\subseteq S_i S ˉ i ⊕ B ε ⊆ S i and R ˉ j ⊕ B ε ⊆ R j \bar{R}_j\oplus\mathbb{B}_{\varepsilon}\subseteq R_j R ˉ j ⊕ B ε ⊆ R j . The bit map χ : R p → { 0 , 1 } n r \chi:\mathbb{R}^p\to\{0,1\}^{n_r} χ : R p → { 0 , 1 } n r is χ j ( y ) = 1 \chi_j(y)=1 χ j ( y ) = 1 iff y ∈ R ˉ j y\in\bar{R}_j y ∈ R ˉ j . For t ∈ [ − D , H ] t\in[-D,H] t ∈ [ − D , H ] , the nominal bit signals are β j ( t ) = χ j ( y ˉ t ) \beta_j(t)=\chi_j(\bar{y}_t) β j ( t ) = χ j ( y ˉ t ) and γ i ( t ) = 1 \gamma_i(t)=1 γ i ( t ) = 1 iff y ˉ t ∈ S ˉ i \bar{y}_t\in\bar{S}_i y ˉ t ∈ S ˉ i . The Boolean task φ β \varphi_\beta φ β is (8) with μ S i \mu_{S_i} μ S i and μ R j \mu_{R_j} μ R j replaced by γ i \gamma_i γ i and β j \beta_j β j .
For { y : G y ≤ f } \{y:Gy\leq f\} { y : G y ≤ f } the largest choice is { y : G y ≤ f − ε G 1 } \{y:Gy\leq f-\varepsilon G\mathbf{1}\} { y : G y ≤ f − εG 1 } . The tightening is sufficient, not the exact robust semantics. Obstacles. For a closed obstacle O i \mathcal{O}_i O i and a clearance δ i > 0 \delta_i>0 δ i > 0 , S i = { y : dist ∞ ( y , O i ) ≥ δ i } S_i=\{y:\operatorname{dist}_{\infty}(y,\mathcal{O}_i)\geq\delta_i\} S i = { y : dist ∞ ( y , O i ) ≥ δ i } and S ˉ i ⊆ { y : dist ∞ ( y , O i ) ≥ δ i + ε } \bar{S}_i\subseteq\{y:\operatorname{dist}_{\infty}(y,\mathcal{O}_i)\geq\delta_i+\varepsilon\} S ˉ i ⊆ { y : dist ∞ ( y , O i ) ≥ δ i + ε } in the ℓ ∞ \ell_{\infty} ℓ ∞ distance; the supplement gives a polyhedral choice.
Lemma 8 (Spatial soundness). Let d ∈ D d\in\mathbb{D} d ∈ D . If the tightened Boolean task holds for the shifted bit signals, ( ( γ , β ) ( ⋅ − d ) , 0 ) ⊨ φ β ((\gamma,\beta)(\cdot-d),0)\models\varphi_\beta (( γ , β ) ( ⋅ − d ) , 0 ) ⊨ φ β , then ( y ~ d , η , 0 ) ⊨ φ (\tilde{y}^{d,\eta},0)\models\varphi ( y ~ d , η , 0 ) ⊨ φ for every η : Z → B ε \eta:\mathbb{Z}\to\mathbb{B}_{\varepsilon} η : Z → B ε .
Proof: If β j ( t − d ) = 1 \beta_j(t-d)=1 β j ( t − d ) = 1 , then y ˉ t − d ∈ R ˉ j \bar{y}_{t-d}\in\bar{R}_j y ˉ t − d ∈ R ˉ j and y ~ d , η ( t ) ∈ R ˉ j ⊕ B ε ⊆ R j \tilde{y}^{d,\eta}(t)\in\bar{R}_j\oplus\mathbb{B}_{\varepsilon}\subseteq R_j y ~ d , η ( t ) ∈ R ˉ j ⊕ B ε ⊆ R j ; the same holds for γ i \gamma_i γ i . Since (8) contains negation, satisfaction is preserved. ▪
Problem 1. Given (7), Assumptions 1–2, the task (8), and a prediction horizon N ≥ 1 N\geq1 N ≥ 1 that may be much shorter than H H H , design a receding-horizon controller such that, once a verified feasible candidate for its first optimization problem is available, for every disturbance sequence the constraints hold and ( y ~ d , η , 0 ) ⊨ φ (\tilde{y}^{d,\eta},0)\models\varphi ( y ~ d , η , 0 ) ⊨ φ for all d ∈ D d\in\mathbb{D} d ∈ D and all η : Z → B ε \eta:\mathbb{Z}\to\mathbb{B}_{\varepsilon} η : Z → B ε .
Since θ ∈ D \theta\in\mathbb{D} θ ∈ D and C e t ∈ B ε C e_t\in\mathbb{B}_{\varepsilon} C e t ∈ B ε , the actual sampled output then satisfies φ \varphi φ under every offset. Guarantees concern sampling instants of the linear model; inter-sample behaviour and the nonlinear vehicle are empirical evidence only.
Remark 9 (Fixed offsets are not jitter). For F [ 1 , 2 ] μ \mathsf{F}_{[1,2]}\mu F [ 1 , 2 ] μ , D = { 0 , 1 } \mathbb{D}=\{0,1\} D = { 0 , 1 } and bits 1 , 0 , 1 1,0,1 1 , 0 , 1 at t = 0 , 1 , 2 t=0,1,2 t = 0 , 1 , 2 , each fixed offset succeeds, but d ( 1 ) = 0 d(1)=0 d ( 1 ) = 0 , d ( 2 ) = 1 d(2)=1 d ( 2 ) = 1 reads the bit at t = 1 t=1 t = 1 twice and fails.
Disturbed nonlinear systems and causal policies
The compact state does not use linearity; Section D-D also treats a known discrete-time system
x k + 1 = f ( x k , u k , w k ) , w k ∈ W ( x k , u k ) , u k ∈ U ( x k ) , (9) x_{k+1}=f(x_k,u_k,w_k),\qquad w_k\in\mathcal{W}(x_k,u_k),\qquad u_k\in\mathcal{U}(x_k), \tag*{(9)} x k + 1 = f ( x k , u k , w k ) , w k ∈ W ( x k , u k ) , u k ∈ U ( x k ) , (9)
with measured state, output h ( x k ) h(x_k) h ( x k ) and bits χ j ( h ( x ) ) . \chi_j(h(x)). χ j ( h ( x )) . The objective is a causal policy u k = π k ( x − D , … , x k ) u_k=\pi_k(x_{-D},\ldots,x_k) u k = π k ( x − D , … , x k ) with
∃ π ∀ ( w 0 , … , w H − 1 ) ∀ d ∈ D : ( ( γ , β ) π , w ( ⋅ − d ) , 0 ) ⊨ φ β , \exists\pi\ \forall(w_0,\ldots,w_{H-1})\ \forall d\in\mathbb{D}:\ ((\gamma,\beta)^{\pi,w}(\cdot-d),0)\models\varphi_\beta, ∃ π ∀ ( w 0 , … , w H − 1 ) ∀ d ∈ D : (( γ , β ) π , w ( ⋅ − d ) , 0 ) ⊨ φ β ,
over admissible disturbance sequences and the recorded history; the completing witness may differ between realizations and offsets, and the future must be feedback (counterexamples in the supplement). Guarantees concern the declared discrete system.
Appendix C: History-Consistent Completion State
We work with the tightened bits (Lemma 8 transfers the results) and drop the index j j j for one reach task.
Offset coverage
A dwell witness is a start time s ≥ − D s\geq-D s ≥ − D with β ( s ) = ⋯ = β ( s + ℓ ) = 1 \beta(s)=\cdots=\beta(s+\ell)=1 β ( s ) = ⋯ = β ( s + ℓ ) = 1 ; it is completed at s + ℓ s+\ell s + ℓ . Under offset d d d the witness appears at task time s + d s+d s + d , so it serves exactly the offsets
I ( s ) = { d ∈ D : a ≤ s + d ≤ b } = [ a − s , b − s ] ∩ D . (10) I(s)=\{d\in\mathbb{D}:a\le s+d\le b\}=[a-s,b-s]\cap\mathbb{D}. \tag*{(10)} I ( s ) = { d ∈ D : a ≤ s + d ≤ b } = [ a − s , b − s ] ∩ D . (10)
Definition 10 (Coverage, run length, failure). The coverage at time k k k is C ( k ) = ⋃ { I ( s ) : s a witness , s + ℓ ≤ k } C(k)=\bigcup\{I(s):s\text{ a witness},\ s+\ell\le k\} C ( k ) = ⋃ { I ( s ) : s a witness , s + ℓ ≤ k } . The run length r ( k ) r(k) r ( k ) is the number of consecutive ones of β \beta β ending at k k k , truncated at ℓ + 1 \ell+1 ℓ + 1 . Offset d d d is expired at k k k if d ∉ C ( k ) d\notin C(k) d ∈ / C ( k ) and k ≥ b − d + ℓ k\ge b-d+\ell k ≥ b − d + ℓ ; the task is failed at k k k if some offset is expired.
Only executed samples enter C ( k ) C(k) C ( k ) . One “visited” flag is insufficient: for F [ 1 , 1 ] μ \mathrm{F}_{[1,1]}\mu F [ 1 , 1 ] μ , D = { 0 , 1 } \mathbb{D}=\{0,1\} D = { 0 , 1 } and bits 0 , 1 0,1 0 , 1 , only offset 0 0 0 is served.
Lemma 11 (Coverage semantics). Fix Boolean signals ( γ , β ) (\gamma,\beta) ( γ , β ) on [ − D , H ] [-D,H] [ − D , H ] . (a) For every reach task j j j , ∀ d ∈ D ∃ t ∈ [ a j , b j ] ∀ r ∈ [ 0 , ℓ j ] : β j ( t + r − d ) = 1 \forall d\in\mathbb{D}\ \exists t\in[a_j,b_j]\ \forall r\in[0,\ell_j]:\beta_j(t+r-d)=1 ∀ d ∈ D ∃ t ∈ [ a j , b j ] ∀ r ∈ [ 0 , ℓ j ] : β j ( t + r − d ) = 1 if and only if C j ( H ) = D C_j(H)=\mathbb{D} C j ( H ) = D . (b) For every safety task i i i , ∀ d ∈ D ∀ t ∈ [ α i , ω i ] : γ i ( t − d ) = 1 \forall d\in\mathbb{D}\ \forall t\in[\alpha_i,\omega_i]:\gamma_i(t-d)=1 ∀ d ∈ D ∀ t ∈ [ α i , ω i ] : γ i ( t − d ) = 1 if and only if γ i ( t ) = 1 \gamma_i(t)=1 γ i ( t ) = 1 for all t ∈ [ α i − D , ω i ] t\in[\alpha_i-D,\omega_i] t ∈ [ α i − D , ω i ] .
Proof. (a) Substitute s = t − d s=t-d s = t − d : every d d d needs a witness s s s with a ≤ s + d ≤ b a\le s+d\le b a ≤ s + d ≤ b , i.e., d ∈ I ( s ) d\in I(s) d ∈ I ( s ) , and every such witness has s ≤ b s\le b s ≤ b and is completed by b + ℓ ≤ H b+\ell\le H b + ℓ ≤ H . (b) { t − d : t ∈ [ α , ω ] , d ∈ D } = [ α − D , ω ] \{t-d:t\in[\alpha,\omega],d\in\mathbb{D}\}=[\alpha-D,\omega] { t − d : t ∈ [ α , ω ] , d ∈ D } = [ α − D , ω ] .
Proposition 12 (Exact compilation of the tightened task). Let ξ \xi ξ be a Boolean signal on [ − D , H ] [-D,H] [ − D , H ] and ψ \psi ψ a Boolean STL formula, possibly with negation and bounded until U I U_I U I , whose evaluation at time 0 0 0 reads ξ \xi ξ only on [ 0 , H ] [0,H] [ 0 , H ] . Then
∀ d ∈ D : ( ξ ( ⋅ − d ) , 0 ) ⊨ ψ ⟺ ( ξ , − D ) ⊨ G [ 0 , D ] ψ . \forall d\in\mathbb{D}:\;(\xi(\cdot-d),0)\models\psi\Longleftrightarrow(\xi,-D)\models\mathbf{G}_{[0,D]}\psi. ∀ d ∈ D : ( ξ ( ⋅ − d ) , 0 ) ⊨ ψ ⟺ ( ξ , − D ) ⊨ G [ 0 , D ] ψ .
In particular, the tightened Boolean task holds under every offset iff ( ( γ , β ) , − D ) ⊨ G [ 0 , D ] φ β ((\gamma,\beta),-D)\models\mathbf{G}_{[0,D]}\varphi_\beta (( γ , β ) , − D ) ⊨ G [ 0 , D ] φ β .
Proof. Boolean STL is shift invariant, ( ξ ( ⋅ − d ) , t ) ⊨ ψ ⟺ ( ξ , t − d ) ⊨ ψ (\xi(\cdot-d),t)\models\psi\Longleftrightarrow(\xi,t-d)\models\psi ( ξ ( ⋅ − d ) , t ) ⊨ ψ ⟺ ( ξ , t − d ) ⊨ ψ , by induction on ψ \psi ψ ; the supplement treats every operator, including bounded until. With τ = D − d \tau=D-d τ = D − d the left side reads ∀ τ ∈ [ 0 , D ] : ( ξ , − D + τ ) ⊨ ψ \forall\tau\in[0,D]:(\xi,-D+\tau)\models\psi ∀ τ ∈ [ 0 , D ] : ( ξ , − D + τ ) ⊨ ψ .
Generic STL-MPC with history handling [4 , 5 , 22 ] therefore applies directly and is a baseline; the rest of this section quantifies what the structure of (8) saves.
Coverage is a suffix
Lemma 13 (Irrevocable expiry). Fix a reach task and a Boolean signal. If offset d d d is expired at k k k , then d ∉ C ( k ′ ) d\notin C(k') d ∈ / C ( k ′ ) for every k ′ ≥ k k'\ge k k ′ ≥ k ; hence the task is failed at every k ′ ≥ k k'\ge k k ′ ≥ k and C ( H ) ≠ D C(H)\ne\mathbb{D} C ( H ) = D . Moreover, for k ≥ b + ℓ k\ge b+\ell k ≥ b + ℓ the task is not failed at k k k if and only if C ( k ) = D C(k)=\mathbb{D} C ( k ) = D .
Theorem 14 (Suffix coverage). Fix a reach task, a Boolean signal and k ≥ − D − 1 k\ge-D-1 k ≥ − D − 1 . If the task is not failed at k k k , then C ( k ) = { c , c + 1 , … , D } C(k)=\{c,c+1,\ldots,D\} C ( k ) = { c , c + 1 , … , D } for some c ∈ [ 0 , D + 1 ] c\in[0,D+1] c ∈ [ 0 , D + 1 ] , where c = D + 1 c=D+1 c = D + 1 denotes C ( k ) = ∅ C(k)=\varnothing C ( k ) = ∅ .
Proof. Let d ∈ C ( k ) d\in C(k) d ∈ C ( k ) be served by a witness s s s with a ≤ s + d ≤ b a\le s+d\le b a ≤ s + d ≤ b and s + ℓ ≤ k s+\ell\le k s + ℓ ≤ k , and let d ′ ∈ D d'\in\mathbb{D} d ′ ∈ D with d ′ > d d'>d d ′ > d . Then s + d ′ > s + d ≥ a s+d'>s+d\ge a s + d ′ > s + d ≥ a , so d ′ ∉ I ( s ) d'\notin I(s) d ′ ∈ / I ( s ) forces s + d ′ > b s+d'>b s + d ′ > b , i.e., b − d ′ + ℓ < s + ℓ ≤ k b-d'+\ell<s+\ell\le k b − d ′ + ℓ < s + ℓ ≤ k . If also d ′ ∉ C ( k ) d'\notin C(k) d ′ ∈ / C ( k ) , then d ′ d' d ′ is expired at k k k , contradicting non-failure. Hence d ∈ C ( k ) d\in C(k) d ∈ C ( k ) implies [ d , D ] ⊆ C ( k ) [d,D]\subseteq C(k) [ d , D ] ⊆ C ( k ) .
Larger offsets see the trajectory later in task time, so their deadlines come first.
Compact monitor
Theorem 14 replaces the ( D + 1 ) (D+1) ( D + 1 ) -bit coverage by one integer. For task j j j let Q j = [ 0 , D + 1 ] × [ 0 , ℓ j + 1 ] Q_j=[0,D+1]\times[0,\ell_j+1] Q j = [ 0 , D + 1 ] × [ 0 , ℓ j + 1 ] , let Q = ∏ j Q j Q=\prod_j Q_j Q = ∏ j Q j , and add an absorbing failure state ⊥ \perp ⊥ , to which all failed histories are mapped; their coverage need not be a suffix. Let c ˉ j , k = min { D + 1 , max { 0 , b j + ℓ j − k } } \bar c_{j,k}=\min\{D+1,\max\{0,b_j+\ell_j-k\}\} c ˉ j , k = min { D + 1 , max { 0 , b j + ℓ j − k }} .
Definition 15 (Compact monitor). For task j j j , time k k k , state ( c , r ) ∈ Q j (c,r)\in Q_j ( c , r ) ∈ Q j and bit β ∈ { 0 , 1 } \beta\in\{0,1\} β ∈ { 0 , 1 } , let r + = min { ℓ + 1 , r + 1 } r^+=\min\{\ell+1,r+1\} r + = min { ℓ + 1 , r + 1 } if β = 1 \beta=1 β = 1 and r + = 0 r^+=0 r + = 0 otherwise. If r + ≤ ℓ r^+\le\ell r + ≤ ℓ , let c + = c c^+=c c + = c . If r + = ℓ + 1 r^+=\ell+1 r + = ℓ + 1 , let s = k − ℓ s=k-\ell s = k − ℓ , l o = max { 0 , a − s } \mathrm{lo}=\max\{0,a-s\} lo = max { 0 , a − s } , h i = min { D , b − s } \mathrm{hi}=\min\{D,b-s\} hi = min { D , b − s } , and
c + = { min { c , l o } , l o ≤ h i and h i ≥ c − 1 , c , otherwise . (11) c^+=
\begin{cases}
\min\{c,\mathrm{lo}\}, & \mathrm{lo}\le\mathrm{hi}\text{ and }\mathrm{hi}\ge c-1,\\
c, & \text{otherwise}.
\end{cases} \tag*{(11)} c + = { min { c , lo } , c , lo ≤ hi and hi ≥ c − 1 , otherwise . (11)
Set Γ j , k ( ( c , r ) , β ) = ⊥ \Gamma_{j,k}((c,r),\beta)=\perp Γ j , k (( c , r ) , β ) =⊥ if c + > c ˉ j , k c^+>\bar c_{j,k} c + > c ˉ j , k , and ( c + , r + ) (c^+,r^+) ( c + , r + ) otherwise. The joint update Γ k ( q , β ) \Gamma_k(q,\beta) Γ k ( q , β ) applies Γ j , k \Gamma_{j,k} Γ j , k to each component and returns ⊥ \perp ⊥ if any component does; Γ k ( ⊥ , ⋅ ) = ⊥ \Gamma_k(\perp,\cdot)=\perp Γ k ( ⊥ , ⋅ ) =⊥ . The monitor starts from q i n i t = ( ( D + 1 , 0 ) ) j q_{\mathrm{init}}=((D+1,0))_j q init = (( D + 1 , 0 ) ) j at time − D − 1 -D-1 − D − 1 and processes q t = Γ t ( q t − 1 , χ ( y ˉ t ) ) q_t=\Gamma_t(q_{t-1},\chi(\bar y_t)) q t = Γ t ( q t − 1 , χ ( y ˉ t )) .
The test checks expiry of the largest uncovered offset c + − 1 c^+-1 c + − 1 , which has the earliest deadline. Let Q k = { q ∈ Q : c j ≤ c ˉ j , k ∀ j } Q_k=\{q\in Q:c_j\le\bar c_{j,k}\ \forall j\} Q k = { q ∈ Q : c j ≤ c ˉ j , k ∀ j } ; non-failure does not imply that a satisfying continuation exists, which Section D certifies.
Corollary 16 (Equivalence and size). Fix a Boolean signal β \beta β on [ − D , H ] [-D,H] [ − D , H ] , let q − D − 1 = q i n i t q_{-D-1}=q^{\mathrm{init}} q − D − 1 = q init and q k = Γ k ( q k − 1 , β ( k ) ) q_k=\Gamma_k(q_{k-1},\beta(k)) q k = Γ k ( q k − 1 , β ( k )) . For every k ∈ [ − D − 1 , H ] k\in[-D-1,H] k ∈ [ − D − 1 , H ] : q k = ⊥ q_k=\perp q k =⊥ iff some reach task is failed at k k k ; otherwise q k = ( ( c j , r j ) ) j ∈ Q q_k=((c_j,r_j))_j\in Q q k = (( c j , r j ) ) j ∈ Q with C j ( k ) = { c j , … , D } C_j(k)=\{c_j,\ldots,D\} C j ( k ) = { c j , … , D } and r j = r j ( k ) r_j=r_j(k) r j = r j ( k ) for every j j j . The monitor therefore takes at most 1 + ∏ j ( D + 2 ) ( ℓ j + 2 ) 1+\prod_j(D+2)(\ell_j+2) 1 + ∏ j ( D + 2 ) ( ℓ j + 2 ) values.
Proof sketch. Induction on k k k . If no witness completes at k k k , the coverage is unchanged. If s = k − ℓ s=k-\ell s = k − ℓ completes, C ( k ) = [ c , D ] ∪ [ l o , h i ] C(k)=[c,D]\cup[\mathrm{lo},\mathrm{hi}] C ( k ) = [ c , D ] ∪ [ lo , hi ] . This is the suffix min { c , l o } , D \min\{c,\mathrm{lo}\},D min { c , lo } , D when h i ≥ c − 1 \mathrm{hi}\ge c-1 hi ≥ c − 1 ; otherwise offset c − 1 c-1 c − 1 stays uncovered, with b − ( c − 1 ) + ℓ < k b-(c-1)+\ell<k b − ( c − 1 ) + ℓ < k , which the test detects. The supplement gives the full argument.
Arbitrary bitsets need 2 n r ( D + 1 ) ∏ j ( ℓ j + 2 ) 2^{n_r(D+1)}\prod_j(\ell_j+2) 2 n r ( D + 1 ) ∏ j ( ℓ j + 2 ) states: the dependence on D D D drops from exponential to linear per task, still exponential in n r n_r n r . This counts encodable states, not running time.
Order and monotonicity
Definition 17 (Completion order). For q , q ′ ∈ Q q,q'\in Q q , q ′ ∈ Q , q ⪯ q ′ q\preceq q' q ⪯ q ′ iff c j ≥ c j ′ c_j\ge c'_j c j ≥ c j ′ and r j ≤ r j ′ r_j\le r'_j r j ≤ r j ′ for all j j j ; moreover ⊥ ⪯ q \perp\preceq q ⊥⪯ q for all q q q . Acc ( q ) \operatorname{Acc}(q) Acc ( q ) holds iff q ≠ ⊥ q\ne\perp q = ⊥ and c j = 0 c_j=0 c j = 0 for all j j j .
The order is a product of 2 n r 2n_r 2 n r chains.
Lemma 18 (Monotonicity). For every k k k , all q ⪯ q ′ q\preceq q' q ⪯ q ′ in Q ∪ { ⊥ } Q\cup\{\perp\} Q ∪ { ⊥ } and all bit vectors β ≤ β ′ \beta\le\beta' β ≤ β ′ (componentwise), Γ k ( q , β ) ⪯ Γ k ( q ′ , β ′ ) \Gamma_k(q,\beta)\preceq\Gamma_k(q',\beta') Γ k ( q , β ) ⪯ Γ k ( q ′ , β ′ ) . Moreover, Q k Q_k Q k and the acceptance set { q : Acc ( q ) } \{q:\operatorname{Acc}(q)\} { q : Acc ( q )} are upward closed in Q ∪ { ⊥ } Q\cup\{\perp\} Q ∪ { ⊥ } . Proof sketch: Componentwise, r + r^{+} r + is nondecreasing in r r r and β \beta β ; the right side of (11) is nondecreasing in c c c and never exceeds c c c ; the failure test is monotone in c + c^{+} c + . The statement holds on all of Q Q Q , not only on reachable states.
When more than one visit is needed
Definition 19 (Semantic baselines). For one reach task and a bit signal β \beta β on [ − D , b + ℓ ] [-D,b+\ell] [ − D , b + ℓ ] : β ∈ F e x a c t \beta\in\mathcal{F}_{\mathrm{exact}} β ∈ F exact (exact coverage, possibly by separated visits ) iff C ( b + ℓ ) = D C(b+\ell)=\mathbb{D} C ( b + ℓ ) = D ; β ∈ F s h a r e d \beta\in\mathcal{F}_{\mathrm{shared}} β ∈ F shared (shared task time) iff some t ∈ [ a , b ] t\in[a,b] t ∈ [ a , b ] has β = 1 \beta=1 β = 1 on [ t − D , t + ℓ ] [t-D,t+\ell] [ t − D , t + ℓ ] , so that one task time serves all offsets; β ∈ F s h r i n k \beta\in\mathcal{F}_{\mathrm{shrink}} β ∈ F shrink (single witness) iff some s ∈ [ a , b − D ] s\in[a,b-D] s ∈ [ a , b − D ] has β = 1 \beta=1 β = 1 on [ s , s + ℓ ] [s,s+\ell] [ s , s + ℓ ] , i.e., ( β , 0 ) ⊨ F [ a , b − D ] G [ 0 , ℓ ] β (\beta,0)\models\mathrm{F}_{[a,b-D]}\mathrm{G}_{[0,\ell]}\beta ( β , 0 ) ⊨ F [ a , b − D ] G [ 0 , ℓ ] β ; β ∈ F s i n g l e \beta\in\mathcal{F}_{\mathrm{single}} β ∈ F single (single continuous visit) iff the witnesses inside one true segment [ p , q ] [p,q] [ p , q ] of β \beta β cover D \mathbb{D} D .
A single continuous visit may need several witnesses (e.g., a = b = 2 a=b=2 a = b = 2 , D = 1 D=1 D = 1 , ℓ = 1 \ell=1 ℓ = 1 , β = 1 \beta=1 β = 1 on [ 1 , 3 ] [1,3] [ 1 , 3 ] ); a true segment [ p , q ] [p,q] [ p , q ] covers D \mathbb{D} D iff q − p ≥ ℓ q-p\ge\ell q − p ≥ ℓ , p ≤ b − D p\le b-D p ≤ b − D and q ≥ a + ℓ q\ge a+\ell q ≥ a + ℓ , which gives an STL form of F s i n g l e \mathcal{F}_{\mathrm{single}} F single (supplement).
Proposition 20 (Baseline hierarchy). Fix one reach task with parameters ( a , b , ℓ , D ) (a,b,\ell,D) ( a , b , ℓ , D ) and Δ = b − a \Delta=b-a Δ = b − a . If Δ ≥ D \Delta\ge D Δ ≥ D , then F s h a r e d ⊆ F s h r i n k = F s i n g l e ⊆ F e x a c t \mathcal{F}_{\mathrm{shared}}\subseteq\mathcal{F}_{\mathrm{shrink}}=\mathcal{F}_{\mathrm{single}}\subseteq\mathcal{F}_{\mathrm{exact}} F shared ⊆ F shrink = F single ⊆ F exact . If Δ < D \Delta<D Δ < D , then F s h r i n k = ∅ \mathcal{F}_{\mathrm{shrink}}=\varnothing F shrink = ∅ and F s h a r e d ⊆ F s i n g l e ⊆ F e x a c t \mathcal{F}_{\mathrm{shared}}\subseteq\mathcal{F}_{\mathrm{single}}\subseteq\mathcal{F}_{\mathrm{exact}} F shared ⊆ F single ⊆ F exact .
Proposition 21 (When exact coverage adds signals). Fix one reach task and consider all Boolean signals on [ − D , b + ℓ ] [-D,b+\ell] [ − D , b + ℓ ] . Then F s i n g l e ⊊ F e x a c t \mathcal{F}_{\mathrm{single}}\subsetneq\mathcal{F}_{\mathrm{exact}} F single ⊊ F exact if and only if D ≥ 1 D\ge1 D ≥ 1 and Δ ≥ ℓ + 1 \Delta\ge\ell+1 Δ ≥ ℓ + 1 . If D = 0 D=0 D = 0 or Δ ≤ ℓ \Delta\le\ell Δ ≤ ℓ , every signal in F e x a c t \mathcal{F}_{\mathrm{exact}} F exact has a single true segment whose witnesses cover D \mathbb{D} D .
Proof sketch: Witnesses from distinct maximal true segments are at least ℓ + 2 \ell+2 ℓ + 2 apart. The intervals (10) of two starts leave no gap only if the starts differ by at most Δ + 1 \Delta+1 Δ + 1 , so for Δ ≤ ℓ \Delta\le\ell Δ ≤ ℓ a single segment must cover D \mathbb{D} D . For D ≥ 1 D\ge1 D ≥ 1 and Δ ≥ ℓ + 1 \Delta\ge\ell+1 Δ ≥ ℓ + 1 , the segments [ a − D , a − 1 + ℓ ] [a-D,a-1+\ell] [ a − D , a − 1 + ℓ ] and [ b , b + ℓ ] [b,b+\ell] [ b , b + ℓ ] cover [ 1 , D ] [1,D] [ 1 , D ] and { 0 } \{0\} { 0 } , respectively, and neither covers D \mathbb{D} D alone (Figure 6 ).
Figure 6. E1 on one closed-loop MuJoCo run; F [ 3 , 20 ] G [ 0 , 2 ] μ R 1 \mathbb{F}_{[3,20]}\mathbb{G}_{[0,2]}\mu_{R_1} F [ 3 , 20 ] G [ 0 , 2 ] μ R 1 , D = 8 D=8 D = 8 , H = 30 H=30 H = 30 . (a) Every admissible nominal input leaves R ˉ 1 \bar{R}_1 R ˉ 1 at samples 5–12 (gray). (b) Reward offsets form the suffix [ c , D ] [c,D] [ c , D ] ; the first visit serves [ 1 , D ] [1,D] [ 1 , D ] , the second { 0 } \{0\} { 0 } . (c) Without the second visit both monitors fail at k = 22 k=22 k = 22 . (d) The candidate applied at k = 6 k=6 k = 6 (N = 10 N=10 N = 10 ) ends at τ = 16 \tau=16 τ = 16 with offset 0 unserved; the certified library tail serves it at $k=22 (selection rule in the supplement).
The signals that F e x a c t \mathcal{F}_{\mathrm{exact}} F exact adds to F s i n g l e \mathcal{F}_{\mathrm{single}} F single are those served only by separated visits; with dynamics they matter only if every single witness and continuous visit is excluded, and for Δ ≤ ℓ \Delta\le\ell Δ ≤ ℓ the single-visit encoding is exact.
Appendix D: Completion Certificates
A physically invariant set does not certify a deadline, so the terminal object must depend on absolute time and on the completion state.
Exact completion family
Let S ˉ k = ⋂ { S i : k ∈ [ α i − D , ω i ] } \bar{S}_k=\bigcap\{S_i:k\in[\alpha_i-D,\omega_i]\} S ˉ k = ⋂ { S i : k ∈ [ α i − D , ω i ]} , with S ˉ k = R p \bar{S}_k=\mathbb{R}^p S ˉ k = R p if no safety task is active at k k k ; by Lemma 11(b) these are exactly the times at which safety must hold for some offset. Define
Adm k ( z , q ) ⟺ z ∈ Z , C z ∈ S ˉ k , q ∈ Q k . \operatorname{Adm}_k(z,q)\Longleftrightarrow z\in\mathcal{Z},\ C z\in\bar{S}_k,\ q\in Q_k. Adm k ( z , q ) ⟺ z ∈ Z , C z ∈ S ˉ k , q ∈ Q k .
Assumption 3 (Post-mission set). Z p o s t ⊆ Z \mathcal{Z}_{\mathrm{post}}\subseteq\mathcal{Z} Z post ⊆ Z is control invariant for the nominal dynamics with inputs in V \mathcal{V} V , and a controller rendering it invariant is available.
Entry into Z p o s t \mathcal{Z}_{\mathrm{post}} Z post is a design restriction imposed on all baselines.
Definition 22 (Exact completion family). Let T H ( q ) = { z ∈ Z p o s t : C z ∈ S ˉ H } \mathcal{T}_H(q)=\{z\in\mathcal{Z}_{\mathrm{post}}:Cz\in\bar{S}_H\} T H ( q ) = { z ∈ Z post : C z ∈ S ˉ H } if Acc ( q ) \operatorname{Acc}(q) Acc ( q ) and T H ( q ) ≠ ∅ \mathcal{T}_H(q)\ne\varnothing T H ( q ) = ∅ otherwise. For k < H k<H k < H ,
T k ( q ) = { z : Adm k ( z , q ) , ∃ v ∈ V : z + = A z + B v , z + ∈ T k + 1 ( Γ k + 1 ( q , χ ( C z + ) ) ) } . \mathcal{T}_k(q)=\{z:\operatorname{Adm}_k(z,q),\ \exists v\in\mathcal{V}:z^{+}=Az+Bv,\ z^{+}\in\mathcal{T}_{k+1}(\Gamma_{k+1}(q,\chi(Cz^{+})))\}. T k ( q ) = { z : Adm k ( z , q ) , ∃ v ∈ V : z + = A z + B v , z + ∈ T k + 1 ( Γ k + 1 ( q , χ ( C z + )))} .
This recursion, in the spirit of [22 , 21 ] , defines the problem and is not a contribution.
Each T k \mathcal{T}_k T k is monotone: q ⪯ q ′ q\preceq q' q ⪯ q ′ implies T k ( q ) ⊆ T k ( q ′ ) \mathcal{T}_k(q)\subseteq\mathcal{T}_k(q') T k ( q ) ⊆ T k ( q ′ ) (supplement).
Verified transition library
Assumption 4 (Convex tightened sets). Each R ˉ i \bar{R}_i R ˉ i is a convex polytope. Each S ˉ i \bar{S}_i S ˉ i is a finite union of closed convex polyhedra, called cells. The sets Z \mathcal{Z} Z , V \mathcal{V} V and Z p o s t \mathcal{Z}_{\mathrm{post}} Z post are convex polytopes.
Definition 23 (Verified transition library). A library L \mathcal{L} L consists of finitely many regions P ρ P_\rho P ρ , ρ ∈ R \rho\in\mathcal{R} ρ ∈ R , each a convex polytope, and edges e = ( ρ e , ρ e ′ , F e , g e , σ e ) e=(\rho_e,\rho'_e,F_e,g_e,\sigma_e) e = ( ρ e , ρ e ′ , F e , g e , σ e ) , each with a source region, a successor region, an affine law v = F e z + g e v=F_e z+g_e v = F e z + g e and a label σ e ∈ { 0 , 1 } n \sigma_e\in\{0,1\}^n σ e ∈ { 0 , 1 } n . The library is verified if every edge satisfies, on the whole source region P ρ e P_{\rho_e} P ρ e : (V1) F e z + g e ∈ V F_e z+g_e\in\mathcal{V} F e z + g e ∈ V for all z ∈ P ρ e z\in P_{\rho_e} z ∈ P ρ e ; (V2) ( A + B F e ) P ρ e + B g e ⊆ P ρ e ′ (A+BF_e)P_{\rho_e}+Bg_e\subseteq P_{\rho'_e} ( A + B F e ) P ρ e + B g e ⊆ P ρ e ′ ; (V3) σ e , j = 1 \sigma_{e,j}=1 σ e , j = 1 only if C ( ( A + B F e ) P ρ e + B g e ) ⊆ R ˉ j C((A+BF_e)P_{\rho_e}+Bg_e)\subseteq\bar{R}_j C (( A + B F e ) P ρ e + B g e ) ⊆ R ˉ j . Region ρ \rho ρ is admissible at k k k , written RA k ( ρ ) \operatorname{RA}_k(\rho) RA k ( ρ ) , if P ρ ⊆ Z P_\rho\subseteq\mathcal{Z} P ρ ⊆ Z and, for every safety task active at k k k , C P ρ CP_\rho C P ρ lies in a single cell of S ˉ i \bar{S}_i S ˉ i .
Targets are convex, so (V1)–(V3) are checked at the vertices of P ρ P_\rho P ρ or by linear programming (nonconvex safe sets never through vertices). An edge certifies its entire source region.
Plain and ordered backward recursion
On the formal domain Q ∪ { ⊥ } \mathcal{Q}\cup\{\perp\} Q ∪ { ⊥ } (the full chain product, not only the reachable states) define Win k ( ρ , q ) ∈ { 0 , 1 } \operatorname{Win}_k(\rho,q)\in\{0,1\} Win k ( ρ , q ) ∈ { 0 , 1 } by
Win H ( ρ , q ) = [ Acc ( q ) ∧ R A H ( ρ ) ∧ P ρ ⊆ Z p o s t ] , (12) \operatorname{Win}_H(\rho,q)=[\operatorname{Acc}(q)\wedge R_A{}_H(\rho)\wedge P_\rho\subseteq Z_{\mathrm{post}}], \tag*{(12)} Win H ( ρ , q ) = [ Acc ( q ) ∧ R A H ( ρ ) ∧ P ρ ⊆ Z post ] , (12)
Win k ( ρ , q ) = [ q ∈ Q k ∧ R A k ( ρ ) ] ∧ ⋁ e : ρ e = ρ Win k + 1 ( ρ e ′ , Γ k + 1 ( q , σ e ) ) . (13) \operatorname{Win}_k(\rho,q)=[q\in\mathcal{Q}_k\wedge R_A{}_k(\rho)]\wedge\bigvee_{e:\rho_e=\rho}\operatorname{Win}_{k+1}(\rho'_e,\Gamma_{k+1}(q,\sigma_e)). \tag*{(13)} Win k ( ρ , q ) = [ q ∈ Q k ∧ R A k ( ρ )] ∧ e : ρ e = ρ ⋁ Win k + 1 ( ρ e ′ , Γ k + 1 ( q , σ e )) . (13)
The plain algorithm evaluates (12)–(13) at every ( k , ρ , q ) (k,\rho,q) ( k , ρ , q ) , i.e., O ( H ∣ L ∣ ∣ Q ∣ ) O(H|\mathcal{L}||\mathcal{Q}|) O ( H ∣ L ∣∣ Q ∣ ) monitor updates. The ordered one stores only M k ( ρ ) = min { q : Win k ( ρ , q ) = 1 } M_k(\rho)=\min\{q:\operatorname{Win}_k(\rho,q)=1\} M k ( ρ ) = min { q : Win k ( ρ , q ) = 1 } : M H ( ρ ) = { ( ( 0 , 0 ) ) j } M_H(\rho)=\{((0,0))_j\} M H ( ρ ) = {(( 0 , 0 ) ) j } if R A H ( ρ ) R_A{}_H(\rho) R A H ( ρ ) and P ρ ⊆ Z p o s t P_\rho\subseteq Z_{\mathrm{post}} P ρ ⊆ Z post , and, if R A k ( ρ ) R_A{}_k(\rho) R A k ( ρ ) (∅ \varnothing ∅ otherwise),
M k ( ρ ) = min ⋃ { min Pre k ( g , σ e ) : ρ e = ρ , g ∈ M k + 1 ( ρ e ′ ) } , (14) M_k(\rho)=\min\bigcup\{\min\operatorname{Pre}_k(g,\sigma_e):\rho_e=\rho,\ g\in M_{k+1}(\rho'_e)\}, \tag*{(14)} M k ( ρ ) = min ⋃ { min Pre k ( g , σ e ) : ρ e = ρ , g ∈ M k + 1 ( ρ e ′ )} , (14)
with the closed-form predecessors below.
Lemma 24 (Minimal predecessors). Fix k ∈ [ − D , H − 1 ] k\in[-D,H-1] k ∈ [ − D , H − 1 ] , a label σ ∈ { 0 , 1 } n r \sigma\in\{0,1\}^{n_r} σ ∈ { 0 , 1 } n r and a target g = ( ( c j ∗ , r j ∗ ) ) j ∈ Q k + 1 g=((c_j^*,r_j^*))_j\in\mathcal{Q}_{k+1} g = (( c j ∗ , r j ∗ ) ) j ∈ Q k + 1 , and let Pre k ( g , σ ) = { q ∈ Q k : Γ k + 1 ( q , σ ) ⪰ g } \operatorname{Pre}_k(g,\sigma)=\{q\in\mathcal{Q}_k:\Gamma_{k+1}(q,\sigma)\succeq g\} Pre k ( g , σ ) = { q ∈ Q k : Γ k + 1 ( q , σ ) ⪰ g } . With s j = k + 1 − ℓ j s_j=k+1-\ell_j s j = k + 1 − ℓ j , ℓ 0 j = max { 0 , a j − s j } \ell_{0j}=\max\{0,a_j-s_j\} ℓ 0 j = max { 0 , a j − s j } and h 1 j = min { D , b j − s j } h_{1j}=\min\{D,b_j-s_j\} h 1 j = min { D , b j − s j } , let X j = { ( c j ∗ , 0 ) } X_j=\{(c_j^*,0)\} X j = {( c j ∗ , 0 )} if σ j = 0 \sigma_j=0 σ j = 0 and r j ∗ = 0 r_j^*=0 r j ∗ = 0 , X j = ∅ X_j=\varnothing X j = ∅ if σ j = 0 \sigma_j=0 σ j = 0 and r j ∗ > 0 r_j^*>0 r j ∗ > 0 , and, if σ j = 1 \sigma_j=1 σ j = 1 , X j = { ( c j ∗ , max { 0 , r j ∗ − 1 } ) } ∪ { ( min { D + 1 , h 1 j + 1 } , ℓ j ) : ℓ 0 j ≤ h 1 j , ℓ 0 j ≤ c j ∗ } X_j=\{(c_j^*,\max\{0,r_j^*-1\})\}\cup\{(\min\{D+1,h_{1j}+1\},\ell_j):\ell_{0j}\le h_{1j},\ \ell_{0j}\le c_j^*\} X j = {( c j ∗ , max { 0 , r j ∗ − 1 })} ∪ {( min { D + 1 , h 1 j + 1 } , ℓ j ) : ℓ 0 j ≤ h 1 j , ℓ 0 j ≤ c j ∗ } . Then Pre k ( g , σ ) \operatorname{Pre}_k(g,\sigma) Pre k ( g , σ ) is upward closed in Q \mathcal{Q} Q , X 1 × ⋯ × X n r ⊆ Pre k ( g , σ ) X_1\times\cdots\times X_{n_r}\subseteq\operatorname{Pre}_k(g,\sigma) X 1 × ⋯ × X n r ⊆ Pre k ( g , σ ) , and
min Pre k ( g , σ ) = min ( X 1 × ⋯ × X n r ) . \min\operatorname{Pre}_k(g,\sigma)=\min(X_1\times\cdots\times X_{n_r}). min Pre k ( g , σ ) = min ( X 1 × ⋯ × X n r ) .
Thus, for a fixed time, label and target generator, each task contributes at most two candidates, all candidates are valid predecessors, and there are at most 2 n r 2^{n_r} 2 n r of them.
The bound 2 n r 2^{n_r} 2 n r is per generator and edge, not a bound on ∣ M k ( ρ ) ∣ |M_k(\rho)| ∣ M k ( ρ ) ∣ .
Theorem 25 (Plain and ordered recursions coincide). For every k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] , ρ ∈ R \rho\in\mathcal{R} ρ ∈ R and q ∈ Q ∪ { ⊥ } q\in\mathcal{Q}\cup\{\perp\} q ∈ Q ∪ { ⊥ } , Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 iff m ⪯ q m\preceq q m ⪯ q for some m ∈ M k ( ρ ) m\in M_k(\rho) m ∈ M k ( ρ ) . Hence the plain recursion (12)–(13) and the ordered recursion (14) certify identical sets on the same library.
Proof. Backward induction on k k k . At H H H , Acc ( q ) \operatorname{Acc}(q) Acc ( q ) holds iff q ⪰ ( ( 0 , 0 ) ) j q\succeq((0,0))_j q ⪰ (( 0 , 0 ) ) j . For k < H k<H k < H , by (13) and the induction hypothesis, Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 iff R A k ( ρ ) R_A{}_k(\rho) R A k ( ρ ) holds and q ∈ Pre k ( g , σ e ) q\in\operatorname{Pre}_k(g,\sigma_e) q ∈ Pre k ( g , σ e ) for some edge e e e from ρ \rho ρ and some g ∈ M k + 1 ( ρ e ′ ) g\in M_{k+1}(\rho'_e) g ∈ M k + 1 ( ρ e ′ ) ; the case Γ k + 1 ( q , σ e ) = ⊥ \Gamma_{k+1}(q,\sigma_e)=\perp Γ k + 1 ( q , σ e ) =⊥ is excluded because ⊥ \perp ⊥ dominates no g g g . Each Pre k ( g , σ e ) \operatorname{Pre}_k(g,\sigma_e) Pre k ( g , σ e ) is upward closed in the finite poset Q \mathcal{Q} Q (Lemma 24), so q q q belongs to it iff q q q dominates one of its minimal elements. Taking minima of the union preserves this property. ■
Theorem 26 (Soundness of the library family). Let Assumption 4 hold, let L \mathcal{L} L be verified, and let T ^ k ( q ) = ⋃ { P ρ : Win k ( ρ , q ) = 1 } \widehat{T}_k(q)=\bigcup\{P_\rho:\operatorname{Win}_k(\rho,q)=1\} T k ( q ) = ⋃ { P ρ : Win k ( ρ , q ) = 1 } . Then, for all k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] : (a) q ⪯ q ′ q\preceq q' q ⪯ q ′ implies T ^ k ( q ) ⊆ T ^ k ( q ′ ) \widehat{T}_k(q)\subseteq\widehat{T}_k(q') T k ( q ) ⊆ T k ( q ′ ) ; (b) if k < H k<H k < H , z ∈ P ρ z\in P_\rho z ∈ P ρ and Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 , then Adm k ( z , q ) \operatorname{Adm}_k(z,q) Adm k ( z , q ) holds and some edge e e e with ρ e = ρ \rho_e=\rho ρ e = ρ satisfies z + = F e z + g e ∈ V z^+=F_e z+g_e\in\mathcal{V} z + = F e z + g e ∈ V , z + = A z + B v ∈ P ρ e ′ z^+=Az+Bv\in P_{\rho'_e} z + = A z + B v ∈ P ρ e ′ , and z + ∈ T ^ k + 1 ( Γ k + 1 ( q , β ) ) z^+\in\widehat{T}_{k+1}(\Gamma_{k+1}(q,\beta)) z + ∈ T k + 1 ( Γ k + 1 ( q , β )) for every β ⪰ σ e \beta\succeq\sigma_e β ⪰ σ e ; (c) T ^ H ( q ) ≠ ∅ \widehat{T}_H(q)\ne\varnothing T H ( q ) = ∅ implies Acc ( q ) \operatorname{Acc}(q) Acc ( q ) , and T ^ H ( q ) ⊆ Z p o s t \widehat{T}_H(q)\subseteq Z_{\mathrm{post}} T H ( q ) ⊆ Z post ; (d) T ^ k ( q ) ⊆ T k ( q ) \widehat{T}_k(q)\subseteq T_k(q) T k ( q ) ⊆ T k ( q ) .
Proof sketch. (a) follows from Theorem 25. For (b), choose an edge attaining the disjunction in (13). (V1)–(V3) give v ∈ V v\in\mathcal{V} v ∈ V , z + ∈ P ρ e ′ z^+\in P_{\rho'_e} z + ∈ P ρ e ′ and σ e ⪯ χ ( C z + ) \sigma_e\preceq\chi(Cz^+) σ e ⪯ χ ( C z + ) , and Lemma 18 together with (a) lifts Win k + 1 ( ρ e ′ , Γ k + 1 ( q , σ e ) ) = 1 \operatorname{Win}_{k+1}(\rho'_e,\Gamma_{k+1}(q,\sigma_e))=1 Win k + 1 ( ρ e ′ , Γ k + 1 ( q , σ e )) = 1 to every β ⪰ σ e \beta\succeq\sigma_e β ⪰ σ e . (c) is (12). (d) follows by backward induction from (b) and (c) with β = χ ( C z + ) \beta=\chi(Cz^+) β = χ ( C z + ) . ■
Ordering loses nothing relative to the plain recursion on the same library, but says nothing about the library’s loss relative to T k T_k T k ; antichains [3 , 2 ] in 2 n r 2n_r 2 n r chains can be large, so no worst-case gain is claimed.
Branching libraries for disturbed systems
For (9), one state and input can reach different regions that need different continuations, which a single-successor library cannot express.
Definition 27 (Verified branching library). A branching library B \mathcal{B} B has finitely many regions P ρ P_\rho P ρ and edges e ∈ A ( ρ e ) e\in A(\rho_e) e ∈ A ( ρ e ) , each with a feedback law κ e \kappa_e κ e defined on the whole source region and a nonempty finite set Succ ( e ) = { ( ρ b , σ b ) } b = 1 B e \operatorname{Succ}(e)=\{(\rho_b,\sigma^b)\}_{b=1}^{B_e} Succ ( e ) = {( ρ b , σ b ) } b = 1 B e of successor regions with labels. It is verified iff, for every edge, (B1) κ e ( x ) ∈ U ( x ) \kappa_e(x)\in U(x) κ e ( x ) ∈ U ( x ) for all x ∈ P ρ e x\in P_{\rho_e} x ∈ P ρ e , and (B2) for all x ∈ P ρ e x\in P_{\rho_e} x ∈ P ρ e and all w ∈ W ( x , κ e ( x ) ) w\in\mathcal{W}(x,\kappa_e(x)) w ∈ W ( x , κ e ( x )) there is a branch b b b with x + = f ( x , κ e ( x ) , w ) ∈ P ρ b x^+=f(x,\kappa_e(x),w)\in P_{\rho_b} x + = f ( x , κ e ( x ) , w ) ∈ P ρ b and σ b ⪯ χ ( h ( x + ) ) \sigma^b\preceq\chi(h(x^+)) σ b ⪯ χ ( h ( x + )) . R A k ( ρ ) R_A{}_k(\rho) R A k ( ρ ) requires P ρ P_\rho P ρ to satisfy the state and safety constraints active at k k k .
Branches are matched only after x + x^+ x + is observed. Our verifier bisects the source region and W \mathcal{W} W jointly in rational interval arithmetic and adds one branch per grid region that a sub-enclosure meets, labelled on the intersection.
On Q ∪ { ⊥ } \mathcal{Q}\cup\{\perp\} Q ∪ { ⊥ } the robust recursion is an AND/OR game,
Win H ( ρ , q ) = [ Acc ( q ) ∧ R A H ( ρ ) ∧ ρ ∈ K p o s t ] , (15) \operatorname{Win}_H(\rho,q)=[\operatorname{Acc}(q)\wedge R_A{}_H(\rho)\wedge\rho\in\mathcal{K}_{\mathrm{post}}], \tag*{(15)} Win H ( ρ , q ) = [ Acc ( q ) ∧ R A H ( ρ ) ∧ ρ ∈ K post ] , (15)
Win k ( ρ , q ) = [ q ∈ Q k ∧ R A k ( ρ ) ] ∧ ⋁ e ∈ A ( ρ ) ⋀ b ∈ Succ ( e ) Win k + 1 ( ρ b , Γ k + 1 ( q , σ b ) ) . (16) \operatorname{Win}_k(\rho,q)=[q\in\mathcal{Q}_k\wedge R_A{}_k(\rho)]\wedge\bigvee_{e\in A(\rho)}\bigwedge_{b\in\operatorname{Succ}(e)}\operatorname{Win}_{k+1}(\rho_b,\Gamma_{k+1}(q,\sigma^b)). \tag*{(16)} Win k ( ρ , q ) = [ q ∈ Q k ∧ R A k ( ρ )] ∧ e ∈ A ( ρ ) ⋁ b ∈ Succ ( e ) ⋀ Win k + 1 ( ρ b , Γ k + 1 ( q , σ b )) . (16)
The recursion is standard; what is specific is that its predecessors stay closed form on the compact state.
Proposition 28 (Robust minimal predecessors). Fix k ∈ [ − D , H − 1 ] k\in[-D,H-1] k ∈ [ − D , H − 1 ] , an edge with branches ( ρ b , σ b ) (\rho_b,\sigma^b) ( ρ b , σ b ) , b = 1 , … , B ≥ 1 b=1,\ldots,B\ge1 b = 1 , … , B ≥ 1 , and targets g b = ( ( c j b , r j b ) ) j ∈ Q k + 1 g^b=((c_j^b,r_j^b))_j\in\mathcal{Q}_{k+1} g b = (( c j b , r j b ) ) j ∈ Q k + 1 , and let Pre k ∀ = { q ∈ Q k : Γ k + 1 ( q , σ b ) ⪰ g b ∀ b } \operatorname{Pre}_k^{\forall}=\{q\in\mathcal{Q}_k:\Gamma_{k+1}(q,\sigma^b)\succeq g^b\ \forall b\} Pre k ∀ = { q ∈ Q k : Γ k + 1 ( q , σ b ) ⪰ g b ∀ b } . For task j j j let I j 0 = { b : σ j b = 0 } I_j^0=\{b:\sigma_j^b=0\} I j 0 = { b : σ j b = 0 } and I j 1 = { b : σ j b = 1 } I_j^1=\{b:\sigma_j^b=1\} I j 1 = { b : σ j b = 1 } . If r j b > 0 r_j^b>0 r j b > 0 for some b ∈ I j 1 b\in I_j^1 b ∈ I j 1 , let X j = ∅ X_j=\varnothing X j = ∅ . Otherwise let C j 0 = min b ∈ I j 0 c j b C_j^0=\min_{b\in I_j^0}c_j^b C j 0 = min b ∈ I j 0 c j b (the inner minimum is + ∞ +\infty + ∞ if I j 0 = ∅ I_j^0=\varnothing I j 0 = ∅ ); let X j = { ( C j 0 , 0 ) } X_j=\{(C_j^0,0)\} X j = {( C j 0 , 0 )} if I j 1 = ∅ I_j^1=\varnothing I j 1 = ∅ , and otherwise, with C j 1 = min b ∈ I j 1 c j b C_j^1=\min_{b\in I_j^1}c_j^b C j 1 = min b ∈ I j 1 c j b , R j 1 = max b ∈ I j 1 r j b R_j^1=\max_{b\in I_j^1}r_j^b R j 1 = max b ∈ I j 1 r j b and s j , ℓ 0 j , h 1 j s_j,\ell_{0j},h_{1j} s j , ℓ 0 j , h 1 j as in Lemma 24, $X_j={(\min{C_j^0,C_j^1},\max{0,R_j^1-1})}\cup
{ ( min { C j 0 , D + 1 , h i j + 1 } , ℓ j ) : l o j ≤ h i j , l o j ≤ C j 1 } \{(\min\{C_j^0,D+1,h_{ij}+1\},\ell_j):l_{o_j}\le h_{ij},\ l_{o_j}\le C_j^1\} {( min { C j 0 , D + 1 , h ij + 1 } , ℓ j ) : l o j ≤ h ij , l o j ≤ C j 1 } . Then Pre k ∀ \operatorname{Pre}_k^\forall Pre k ∀ is upward closed in Q \mathcal{Q} Q , X 1 × ⋯ × X n r ⊆ Pre k ∀ X_1\times\cdots\times X_{n_r}\subseteq\operatorname{Pre}_k^\forall X 1 × ⋯ × X n r ⊆ Pre k ∀ , and min Pre k ∀ = min ( X 1 × ⋯ × X n r ) \min\operatorname{Pre}_k^\forall=\min(X_1\times\cdots\times X_{n_r}) min Pre k ∀ = min ( X 1 × ⋯ × X n r ) . In particular, for every B B B and every fixed target vector there are at most 2 n r 2^{n_r} 2 n r candidates.
For each fixed target vector, the candidate-count upper bound decreases from 2 n r B 2^{n_rB} 2 n r B to 2 n r 2^{n_r} 2 n r . The ∏ b ∣ M k + 1 ( ρ b ) ∣ \prod_b|M_{k+1}(\rho_b)| ∏ b ∣ M k + 1 ( ρ b ) ∣ target vectors remain, and branches sharing a label are joined first. Let ι ( q ) = ( ( { c j , … , D } , r j ) ) j \iota(q)=((\{c_j,\ldots,D\},r_j))_j ι ( q ) = (({ c j , … , D } , r j ) ) j map compact states to explicit (served set, run length) states, and let Γ k b i t \Gamma_k^{\mathrm{bit}} Γ k bit add the offsets served by a witness completing at k k k and fail if an offset is expired. Then Γ k b i t ( ι ( q ) , β ) \Gamma_k^{\mathrm{bit}}(\iota(q),\beta) Γ k bit ( ι ( q ) , β ) fails iff Γ k ( q , β ) = ⊥ \Gamma_k(q,\beta)=\bot Γ k ( q , β ) = ⊥ and otherwise equals ι ( Γ k ( q , β ) ) \iota(\Gamma_k(q,\beta)) ι ( Γ k ( q , β )) (supplement).
Theorem 29 (Robust certificates). Let B \mathcal{B} B be a branching library, K p o s t \mathcal{K}_{\mathrm{post}} K post a set of regions and Win \operatorname{Win} Win the recursion (15)–(16). (a) For every k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] and ρ \rho ρ , Win k ( ρ , ⋅ ) \operatorname{Win}_k(\rho,\cdot) Win k ( ρ , ⋅ ) is upward closed in Q ∪ { ⊥ } \mathcal{Q}\cup\{\bot\} Q ∪ { ⊥ } , and Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 iff m ⪯ q m\preceq q m ⪯ q for some m ∈ M k ( ρ ) m\in M_k(\rho) m ∈ M k ( ρ ) , where M H ( ρ ) = { ( ( 0 , 0 ) ) j } M_H(\rho)=\{((0,0))_j\} M H ( ρ ) = {(( 0 , 0 ) ) j } if RA H ( ρ ) \operatorname{RA}_H(\rho) RA H ( ρ ) and ρ ∈ K p o s t \rho\in\mathcal{K}_{\mathrm{post}} ρ ∈ K post (∅ \varnothing ∅ otherwise) and M k ( ρ ) = min ⋃ { min Pre k ∀ ( ( g b ) b ) : e ∈ A ( ρ ) , g b ∈ M k + 1 ( ρ b ) } M_k(\rho)=\min\bigcup\{\min\operatorname{Pre}_k^\forall((g^b)_b):e\in A(\rho),\ g^b\in M_{k+1}(\rho_b)\} M k ( ρ ) = min ⋃ { min Pre k ∀ (( g b ) b ) : e ∈ A ( ρ ) , g b ∈ M k + 1 ( ρ b )} if RA k ( ρ ) \operatorname{RA}_k(\rho) RA k ( ρ ) (∅ \varnothing ∅ otherwise). (b) The explicit recursion over (served set, run length) states, with Γ k b i t \Gamma_k^{\mathrm{bit}} Γ k bit and the same library, satisfies Win k b i t ( ρ , ι ( q ) ) = Win k ( ρ , q ) \operatorname{Win}_k^{\mathrm{bit}}(\rho,\iota(q))=\operatorname{Win}_k(\rho,q) Win k bit ( ρ , ι ( q )) = Win k ( ρ , q ) for all k k k , ρ \rho ρ and q ∈ Q q\in\mathcal{Q} q ∈ Q . (c) If every edge has a single branch, (16) is (13) and M k M_k M k is the set of Theorem 25.
Theorem 30 (Branch-feedback closed loop). Let B \mathcal{B} B be verified (Definition 27), let K p o s t \mathcal{K}_{\mathrm{post}} K post satisfy (17) with witness edges e p o s t ( ρ ) e_{\mathrm{post}}(\rho) e post ( ρ ) , and let x 0 ∈ P ρ 0 x_0\in P_{\rho_0} x 0 ∈ P ρ 0 , with q 0 q_0 q 0 obtained by running Γ \Gamma Γ on the actual bits of the recorded history and of x 0 x_0 x 0 , satisfy Win 0 ( ρ 0 , q 0 ) = 1 \operatorname{Win}_0(\rho_0,q_0)=1 Win 0 ( ρ 0 , q 0 ) = 1 ; let the actual pre-mission states x t x_t x t , t ∈ [ − D , − 1 ] t\in[-D,-1] t ∈ [ − D , − 1 ] , satisfy every tightened safety predicate active at t t t . Let the closed loop at each k < H k<H k < H apply u k = κ e ( x k ) u_k=\kappa_e(x_k) u k = κ e ( x k ) for an edge e ∈ A ( ρ k ) e\in A(\rho_k) e ∈ A ( ρ k ) with Win k + 1 ( ρ b , Γ k + 1 ( q k , σ b ) ) = 1 \operatorname{Win}_{k+1}(\rho_b,\Gamma_{k+1}(q_k,\sigma^b))=1 Win k + 1 ( ρ b , Γ k + 1 ( q k , σ b )) = 1 for every branch b b b , then select any branch b b b with x k + 1 ∈ P ρ b x_{k+1}\in P_{\rho_b} x k + 1 ∈ P ρ b and σ b ≤ χ ( h ( x k + 1 ) ) \sigma^b\le\chi(h(x_{k+1})) σ b ≤ χ ( h ( x k + 1 )) , and set ρ k + 1 = ρ b \rho_{k+1}=\rho_b ρ k + 1 = ρ b , q k + 1 = Γ k + 1 ( q k , χ ( h ( x k + 1 ) ) ) q_{k+1}=\Gamma_{k+1}(q_k,\chi(h(x_{k+1}))) q k + 1 = Γ k + 1 ( q k , χ ( h ( x k + 1 ))) ; for k ≥ H k\ge H k ≥ H let it apply κ e p o s t ( ρ k ) \kappa_{e_{\mathrm{post}}(\rho_k)} κ e post ( ρ k ) and select branches in the same way. Then, for every admissible disturbance sequence, such an edge and such a branch exist at every step, Win k ( ρ k , q k ) = 1 \operatorname{Win}_k(\rho_k,q_k)=1 Win k ( ρ k , q k ) = 1 for k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] , the state and input constraints hold, Acc ( q H ) \operatorname{Acc}(q_H) Acc ( q H ) , and ρ k ∈ K p o s t \rho_k\in\mathcal{K}_{\mathrm{post}} ρ k ∈ K post for every k ≥ H k\ge H k ≥ H . Consequently the tightened safety tasks hold under every offset d ∈ D d\in\mathcal{D} d ∈ D , and every reach task j j j is completed under offset d d d by nominal time b j − d + ℓ j b_j-d+\ell_j b j − d + ℓ j .
Adding verified multi-successor edges to a library on the same regions never shrinks the certified set (supplement).
Post-mission set. With bidirectional position disturbances, no single position box is robustly invariant for the unicycle below (supplement). We therefore take the terminal set as a safety fixed point on the verified graph: starting from the regions inside a declared static safe set Z p o s t Z_{\mathrm{post}} Z post ,
K i + 1 = { ρ ∈ K i : ∃ e ∈ A ( ρ ) ∀ b ∈ Succ ( e ) : ρ b ∈ K i } , (17) \mathcal{K}^{i+1}=\{\rho\in\mathcal{K}^i:\exists e\in A(\rho)\ \forall b\in\operatorname{Succ}(e):\rho_b\in\mathcal{K}^i\}, \tag*{(17)} K i + 1 = { ρ ∈ K i : ∃ e ∈ A ( ρ ) ∀ b ∈ Succ ( e ) : ρ b ∈ K i } , (17)
until a fixed point K p o s t \mathcal{K}_{\mathrm{post}} K post , with one witness edge e p o s t ( ρ ) e_{\mathrm{post}}(\rho) e post ( ρ ) per retained region. K p o s t \mathcal{K}_{\mathrm{post}} K post is the greatest such fixed point, and applying e p o s t e_{\mathrm{post}} e post in the current region keeps the state in K p o s t \mathcal{K}_{\mathrm{post}} K post under every admissible disturbance sequence (supplement).
Instance. The prototype is the declared discrete unicycle
p k + 1 = p k + h v k ( cos θ k , sin θ k ) + ( w x , k , w y , k ) , θ k + 1 = θ k + h ω k + w θ , k , (18) p_{k+1}=p_k+h v_k(\cos\theta_k,\sin\theta_k)+(w_{x,k},w_{y,k}),\qquad
\theta_{k+1}=\theta_k+h\omega_k+w_{\theta,k}, \tag*{(18)} p k + 1 = p k + h v k ( cos θ k , sin θ k ) + ( w x , k , w y , k ) , θ k + 1 = θ k + h ω k + w θ , k , (18)
with box disturbances and primitives v v v constant, ω = κ θ ( θ r e f − θ ) \omega=\kappa_\theta(\theta_{\mathrm{ref}}-\theta) ω = κ θ ( θ ref − θ ) ; θ \theta θ ranges over a bounded interval that does not wrap.
Appendix E: Receding-Horizon Controller and Guarantees
Online problem
Let N , H ≥ 1 N,H\ge1 N , H ≥ 1 and N k = min { N , H − k } N_k=\min\{N,H-k\} N k = min { N , H − k } . At k < H k<H k < H , with executed nominal state z k z_k z k and monitor state q k q_k q k , the controller solves P k ( z k , q k ) \mathcal{P}_k(z_k,q_k) P k ( z k , q k ) :
min ∑ i = 0 N k − 1 L ( z i ∣ k , v i ∣ k ) s.t. z 0 ∣ k = z k , q 0 ∣ k = q k , z i + 1 ∣ k = A z i ∣ k + B v i ∣ k , β ^ i + 1 ∣ k ∈ { 0 , 1 } n r , β ^ i + 1 ∣ k , j = 1 ⇒ C z i + 1 ∣ k ∈ R ~ j , q i + 1 ∣ k = Γ k + i + 1 ( q i ∣ k , β ^ i + 1 ∣ k ) , v i ∣ k ∈ V , Adm k + i ( z i ∣ k , q i ∣ k ) , i ∈ [ 0 , N k − 1 ] , z N k ∣ k ∈ T ~ k + N k ( q N k ∣ k ) . (19) \begin{aligned}
\min\quad&\sum_{i=0}^{N_k-1}L(z_{i|k},v_{i|k})\\
\text{s.t.}\quad&z_{0|k}=z_k,\qquad q_{0|k}=q_k,\\
&z_{i+1|k}=Az_{i|k}+Bv_{i|k},\\
&\hat{\beta}_{i+1|k}\in\{0,1\}^{n_r},\\
&\hat{\beta}_{i+1|k,j}=1\Rightarrow Cz_{i+1|k}\in\widetilde{R}_j,\\
&q_{i+1|k}=\Gamma_{k+i+1}(q_{i|k},\hat{\beta}_{i+1|k}),\\
&v_{i|k}\in\mathcal{V},\quad\operatorname{Adm}_{k+i}(z_{i|k},q_{i|k}),\quad i\in[0,N_k-1],\\
&z_{N_k|k}\in\widetilde{\mathcal{T}}_{k+N_k}(q_{N_k|k}). \tag*{(19)}
\end{aligned} min s.t. i = 0 ∑ N k − 1 L ( z i ∣ k , v i ∣ k ) z 0∣ k = z k , q 0∣ k = q k , z i + 1∣ k = A z i ∣ k + B v i ∣ k , β ^ i + 1∣ k ∈ { 0 , 1 } n r , β ^ i + 1∣ k , j = 1 ⇒ C z i + 1∣ k ∈ R j , q i + 1∣ k = Γ k + i + 1 ( q i ∣ k , β ^ i + 1∣ k ) , v i ∣ k ∈ V , Adm k + i ( z i ∣ k , q i ∣ k ) , i ∈ [ 0 , N k − 1 ] , z N k ∣ k ∈ T k + N k ( q N k ∣ k ) . (19)
Membership z ∈ T ~ k ( q ) z\in\widetilde{\mathcal{T}}_k(q) z ∈ T k ( q ) is a disjunction over regions and terminal goal conditions under binary selectors. The prediction need not complete the task; the terminal certificate carries the remaining obligations. L L L is arbitrary, and no stability property is claimed.
Assumption 5 (One-sided encoding). (a) Every candidate used by the controller satisfies all constraints of (19), including the implications β ^ i ∣ k , j = 1 ⇒ C z i ∣ k ∈ R ~ j \hat{\beta}_{i|k,j}=1\Rightarrow Cz_{i|k}\in\widetilde{R}_j β ^ i ∣ k , j = 1 ⇒ C z i ∣ k ∈ R j ; this is checked after the solve. (b) The sets R ~ j \widetilde{R}_j R j in (19) are the ones used for the labels in (V3) and by the executed monitor, including on the recorded history.
The converse implication is not assumed. Big-M rows G j h C z ≤ f j h + M j h ( 1 − β ^ j ) G_{jh}Cz\le f_{jh}+M_{jh}(1-\hat{\beta}_j) G j h C z ≤ f j h + M j h ( 1 − β ^ j ) for R ~ j = { y : G j y ≤ f j } \widetilde{R}_j=\{y:G_jy\le f_j\} R j = { y : G j y ≤ f j } must be redundant on Z \mathcal{Z} Z when β ^ j = 0 \hat{\beta}_j=0 β ^ j = 0 (constants in the supplement). Solver tolerances are not certificates, hence the check in Assumption 5(a); a solver bit 0 where the monitor records 1 is absorbed by monotonicity (Theorem 31).
Monitor encoding. Per task and step, Γ \Gamma Γ uses integers c , r , r ′ c,r,r' c , r , r ′ , binaries for r = ℓ + 1 r=\ell+1 r = ℓ + 1 , r ′ = ℓ + 1 r'=\ell+1 r ′ = ℓ + 1 , c ≤ h i + 1 c\le h_i+1 c ≤ h i + 1 and c ≥ l o + 1 c\ge l_o+1 c ≥ l o + 1 , and two products ( r ′ = β ^ i ( r + 1 , ℓ { + 1 } ) (r'=\hat{\beta}_{i}(r+1,\ell\{+1\}) ( r ′ = β ^ i ( r + 1 , ℓ { + 1 }) ; c = min { c , l o } c=\min\{c,l_o\} c = min { c , l o } exactly when a dwell completes at a start adjacent to the served suffix); the hard row c ′ ≤ c ˉ j , t c'\le\bar{c}_{j,t} c ′ ≤ c ˉ j , t excludes ⊥ \bot ⊥ . With constants from c ∈ [ 0 , D + 1 ] c\in[0,D+1] c ∈ [ 0 , D + 1 ] , r ∈ [ 0 , ℓ + 1 ] r\in[0,\ell+1] r ∈ [ 0 , ℓ + 1 ] , this takes at most 8 variables and 22 rows per task and step, independent of D D D and ℓ \ell ℓ ; each terminal option ( ρ , m ) (\rho,m) ( ρ , m ) adds one selector. In E2 (N = 10 N=10 N = 10 ), P 0 \mathcal{P}_0 P 0 has 183 variables and 1259 rows, of which 70/200 belong to the monitor (all rows and solver settings in the supplement).
Algorithm 2 Closed loop
Require: N ≥ 1 N \ge1 N ≥ 1 , H ≥ 1 H \ge1 H ≥ 1 ; verified library and M k ( ρ ) M_k(\rho) M k ( ρ ) ; E \mathcal{E} E , K K K (Assumption 1); recorded history y ˉ − D , … , y ˉ − 1 \bar{y}_{-D},\ldots,\bar{y}_{-1} y ˉ − D , … , y ˉ − 1
choose z 0 z_0 z 0 with x 0 − z 0 ∈ E x_0-z_0 \in\mathcal{E} x 0 − z 0 ∈ E ; run the monitor with exact bits on y ˉ − D , … , y ˉ − 1 \bar{y}_{-D},\ldots,\bar{y}_{-1} y ˉ − D , … , y ˉ − 1 , C z 0 Cz_0 C z 0 to obtain q 0 q_0 q 0
by the first input deadline, have a candidate for P 0 ( z 0 , q 0 ) \mathcal{P}_0(z_0,q_0) P 0 ( z 0 , q 0 ) , for the actual nominal state, monitor state, recorded history and task clock, verified as in Assumption 5(a); store it
for k = 0 , … , H − 1 k=0,\ldots,H-1 k = 0 , … , H − 1 do
attempt a new candidate for P k ( z k , q k ) \mathcal{P}_k(z_k,q_k) P k ( z k , q k ) ; select it if it passes the check of Assumption 5(a), else select the stored candidate
apply u k = v 0 ∣ k + K ( x k − z k ) u_k=v_{0|k}+K(x_k-z_k) u k = v 0∣ k + K ( x k − z k )
z k + 1 ← A z k + B v 0 ∣ k z_{k+1}\leftarrow Az_k+Bv_{0|k} z k + 1 ← A z k + B v 0∣ k ▷ never reset to x k + 1 x_{k+1} x k + 1
q k + 1 ← Γ k + 1 ( q k , χ ( C z k + 1 ) ) q_{k+1}\leftarrow\Gamma_{k+1}(q_k,\chi(Cz_{k+1})) q k + 1 ← Γ k + 1 ( q k , χ ( C z k + 1 )) ▷ exact bits
if k < H − 1 k<H-1 k < H − 1 then
shift the selected candidate, recompute its monitor states from q k + 1 q_{k+1} q k + 1 , append a library edge if k + N k < H k+N_k<H k + N k < H (Theorem 31), and store the result
end if
end for
switch to the post-mission controller (Assumption 3), keeping the feedback K ( x k − z k ) K(x_k-z_k) K ( x k − z k )
Guarantees
Theorem 31 (Recursive feasibility). Let Assumptions 1, 3, 4 and 5 hold, let L \mathcal{L} L be verified, and let N ≥ 1 N \ge1 N ≥ 1 . Let k ∈ [ 0 , H − 2 ] k \in[0,H-2] k ∈ [ 0 , H − 2 ] and let ( v ∗ , β ^ ∗ ) (v^*,\hat{\beta}^*) ( v ∗ , β ^ ∗ ) be feasible for P k ( z ˉ k , q k ) \mathcal{P}_k(\bar{z}_k,q_k) P k ( z ˉ k , q k ) , with predicted states z i ∣ k ∗ z^*_{i|k} z i ∣ k ∗ and monitor states q i ∣ k ∗ q^*_{i|k} q i ∣ k ∗ . Suppose that (i) the nominal center is not reset, z k + 1 = z 1 ∣ k ∗ z_{k+1}=z^*_{1|k} z k + 1 = z 1∣ k ∗ , and (ii) the executed monitor processes the executed nominal output with exact tightened bits, q k + 1 = Γ k + 1 ( q k , χ ( C z k + 1 ) ) q_{k+1}=\Gamma_{k+1}(q_k,\chi(Cz_{k+1})) q k + 1 = Γ k + 1 ( q k , χ ( C z k + 1 )) . Then q 1 ∣ k ∗ ⪯ q k + 1 q^*_{1|k}\preceq q_{k+1} q 1∣ k ∗ ⪯ q k + 1 and P k + 1 ( z k + 1 , q k + 1 ) \mathcal{P}_{k+1}(z_{k+1},q_{k+1}) P k + 1 ( z k + 1 , q k + 1 ) is feasible. A feasible solution reuses v i ∣ k ∗ v^*_{i|k} v i ∣ k ∗ and β ^ i ∣ k ∗ \hat{\beta}^*_{i|k} β ^ i ∣ k ∗ for the overlapping steps and, if k + N k < H k+N_k<H k + N k < H , appends the input F e z N k ∣ k ∗ + g e F_ez^*_{N_k|k}+g_e F e z N k ∣ k ∗ + g e and the label σ e \sigma_e σ e of a library edge given by Theorem 26(b).
Proof: Write n = N k n=N_k n = N k . By Assumption 5(a), β ^ 1 ∣ k ∗ ≤ χ ( C z 1 ∣ k ∗ ) = χ ( C z k + 1 ) \hat{\beta}^*_{1|k}\le\chi(Cz^*_{1|k})=\chi(Cz_{k+1}) β ^ 1∣ k ∗ ≤ χ ( C z 1∣ k ∗ ) = χ ( C z k + 1 ) , so Lemma 18 gives q 1 ∣ k ∗ = Γ k + 1 ( q k , β ^ 1 ∣ k ∗ ) ⪯ q k + 1 q^*_{1|k}=\Gamma_{k+1}(q_k,\hat{\beta}^*_{1|k})\preceq q_{k+1} q 1∣ k ∗ = Γ k + 1 ( q k , β ^ 1∣ k ∗ ) ⪯ q k + 1 . For the overlapping steps, set v i ∣ k + 1 = v i + 1 ∣ k ∗ v_{i|k+1}=v^*_{i+1|k} v i ∣ k + 1 = v i + 1∣ k ∗ and β ^ i ∣ k + 1 = β ^ i + 1 ∣ k ∗ \hat{\beta}_{i|k+1}=\hat{\beta}^*_{i+1|k} β ^ i ∣ k + 1 = β ^ i + 1∣ k ∗ . Then z i ∣ k + 1 = z i + 1 ∣ k ∗ z_{i|k+1}=z^*_{i+1|k} z i ∣ k + 1 = z i + 1∣ k ∗ , and by induction with Lemma 18, q i ∣ k + 1 ⪰ q i + 1 ∣ k ∗ q_{i|k+1}\succeq q^*_{i+1|k} q i ∣ k + 1 ⪰ q i + 1∣ k ∗ . The input, state, safety and one-sided constraints are inherited because absolute times coincide, and q i ∣ k + 1 ∈ Q k + 1 + i q_{i|k+1}\in Q_{k+1+i} q i ∣ k + 1 ∈ Q k + 1 + i because Q k + 1 + i Q_{k+1+i} Q k + 1 + i is upward closed. If k + n = H k+n=H k + n = H , then N k + 1 = n − 1 ≥ 1 N_{k+1}=n-1\ge1 N k + 1 = n − 1 ≥ 1 , and z n ∣ k ∗ ∈ T ~ H ( q n ∣ k ∗ ) ⊆ T ~ H ( q n − 1 ∣ k + 1 ) z^*_{n|k}\in\widetilde{\mathcal{T}}_H(q^*_{n|k})\subseteq\widetilde{\mathcal{T}}_H(q_{n-1|k+1}) z n ∣ k ∗ ∈ T H ( q n ∣ k ∗ ) ⊆ T H ( q n − 1∣ k + 1 ) by Theorem 26(a). If k + n < H k+n<H k + n < H , then N k + 1 = n N_{k+1}=n N k + 1 = n , and Theorem 26(a) gives z n ∣ k ∗ ∈ P ρ z^*_{n|k}\in P_\rho z n ∣ k ∗ ∈ P ρ with Win k + n ( ρ , q n − 1 ∣ k + 1 ) = 1 \operatorname{Win}_{k+n}(\rho,q_{n-1|k+1})=1 Win k + n ( ρ , q n − 1∣ k + 1 ) = 1 . Theorem 26(b) then supplies an edge e e e . Appending v n − 1 ∣ k + 1 = F e z n ∣ k ∗ + g e v_{n-1|k+1}=F_ez^*_{n|k}+g_e v n − 1∣ k + 1 = F e z n ∣ k ∗ + g e and β ^ n ∣ k + 1 = σ e \hat{\beta}_{n|k+1}=\sigma_e β ^ n ∣ k + 1 = σ e satisfies Adm k + n \operatorname{Adm}_{k+n} Adm k + n , the input constraint and the one-sided implication, and the terminal constraint holds with β = σ e \beta=\sigma_e β = σ e .
Theorem 32 (Closed-loop guarantees). Let the assumptions of Theorem 31 and Assumption 2 hold, and let H ≥ 1 H\ge1 H ≥ 1 . Assume that an initial feasible candidate satisfying Assumption 5 has been obtained for P 0 ( z 0 , q 0 ) \mathcal{P}_0(z_0,q_0) P 0 ( z 0 , q 0 ) , with the z 0 z_0 z 0 , q 0 q_0 q 0 and recorded history used at task time 0, and let the closed loop follow Algorithm 2. Then, for every disturbance sequence in W \mathcal{W} W : (i) for every k ∈ [ 0 , H − 1 ] k\in[0,H-1] k ∈ [ 0 , H − 1 ] , the candidate selected at task time k k k is feasible for P k ( z k , q k ) \mathcal{P}_k(z_k,q_k) P k ( z k , q k ) ; (ii) x k ∈ X x_k\in\mathcal{X} x k ∈ X for k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] and u k ∈ U u_k\in\mathcal{U} u k ∈ U for k ∈ [ 0 , H − 1 ] k\in[0,H-1] k ∈ [ 0 , H − 1 ] ; (iii) Acc ( q H ) \operatorname{Acc}(q_H) Acc ( q H ) , i.e., q H ≠ ⊥ q_H\ne\bot q H = ⊥ and c j ( q H ) = 0 c_j(q_H)=0 c j ( q H ) = 0 for all j j j , and z H ∈ Z p o s t z_H\in\mathcal{Z}_{\mathrm{post}} z H ∈ Z post ; (iv) ( y ˉ d , η , 0 ) ⊨ φ (\bar{y}^{d,\eta},0)\models\varphi ( y ˉ d , η , 0 ) ⊨ φ for all d ∈ D d\in\mathbb{D} d ∈ D and all η : Z → B e \eta:\mathbb{Z}\to\mathbb{B}_e η : Z → B e . In particular, the sampled closed-loop output y t = C x t y_t=Cx_t y t = C x t , t ∈ [ 0 , H ] t\in[0,H] t ∈ [ 0 , H ] , satisfies φ \varphi φ .
Proof sketch: (i) follows by induction from the verified initial candidate: if the candidate selected at k ≤ H − 2 k\le H-2 k ≤ H − 2 is feasible, Theorem 31 makes the stored shifted candidate feasible for P k + 1 ( z k + 1 , q k + 1 ) \mathcal{P}_{k+1}(z_{k+1},q_{k+1}) P k + 1 ( z k + 1 , q k + 1 ) . (ii) is the tube argument: e k ∈ E e_k\in\mathcal{E} e k ∈ E , so x k ∈ Z ⊕ E ⊆ X x_k\in\mathcal{Z}\oplus\mathcal{E}\subseteq\mathcal{X} x k ∈ Z ⊕ E ⊆ X and u k ∈ V ⊕ K E ⊆ U u_k\in\mathcal{V}\oplus K\mathcal{E}\subseteq\mathcal{U} u k ∈ V ⊕ K E ⊆ U . (iii) The candidate selected at H − 1 H-1 H − 1 gives z H ∈ T ~ H ( q 1 ∣ H − 1 ∗ ) ≠ ∅ z_H\in\widetilde{\mathcal{T}}_H(q^*_{1|H-1})\ne\varnothing z H ∈ T H ( q 1∣ H − 1 ∗ ) = ∅ , so Acc ( q 1 ∣ H − 1 ∗ ) \operatorname{Acc}(q^*_{1|H-1}) Acc ( q 1∣ H − 1 ∗ ) holds by Theorem 26(c); since q 1 ∣ H − 1 ∗ ⪯ q H q^*_{1|H-1}\preceq q_H q 1∣ H − 1 ∗ ⪯ q H , Acc ( q H ) \operatorname{Acc}(q_H) Acc ( q H ) follows. (iv) q H q_H q H is the compact monitor of the executed nominal bits, so Corollary 16 and Lemma 11(a) give every reach task under every offset. Adm k \operatorname{Adm}_k Adm k for k < H k<H k < H , RA H \operatorname{RA}_H RA H at H H H and Assumption 2 give safety through Lemma 11(b), and Lemma 8 transfers both to y ˉ d , η \bar{y}^{d,\eta} y ˉ d , η .
Implementation boundaries. Theorem 32 assumes a verified initial candidate for the actual z 0 z_0 z 0 , q 0 q_0 q 0 , history and task clock, which computation never restarts; Theorem 31 guarantees a backup, not solver success, and no cost decrease. An early attempt is used only if z k z_k z k , q k q_k q k and the executed inputs match exactly. A quadrotor needs a certified inner-loop error in E \mathcal{E} E , which empirical errors are not.
Completion filter on a branching certificate
On a verified branching library, the certificate itself is an executable feedback policy (Theorem 30), and a performance controller can propose actions. At ( k , ρ , q ) (k,\rho,q) ( k , ρ , q ) with Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 , the admissible set is
A k c o m p ( ρ , q ) = { e ∈ A ( ρ ) : Win k + 1 ( ρ b , Γ k + 1 ( q , σ b ) ) = 1 ∀ b ∈ Succ ( e ) } , A_k^{\mathrm{comp}}(\rho,q)=\{e\in A(\rho):\operatorname{Win}_{k+1}(\rho_b,\Gamma_{k+1}(q,\sigma^b))=1\ \forall b\in\operatorname{Succ}(e)\}, A k comp ( ρ , q ) = { e ∈ A ( ρ ) : Win k + 1 ( ρ b , Γ k + 1 ( q , σ b )) = 1 ∀ b ∈ Succ ( e )} ,
evaluated by enumerating every outgoing edge. A continuous proposal is projected to the nearest library primitive, executed if its edge lies in A k c o m p A_k^{\mathrm{comp}} A k comp , and otherwise replaced by the nearest primitive that does; permissiveness is relative to the library. Every member of A k c o m p A_k^{\mathrm{comp}} A k comp preserves the induction of Theorem 30, so the guarantees hold for any proposer. All steps share one wall-clock budget per tick, after which the witness edge runs; a late proposal is adopted only if its tick, region and monitor state are current.
Appendix F: Evaluation
Platform and libraries. MuJoCo [19 ] simulates a Crazyflie model [25 ] (modified actuators, not a hardware calibration) at 500 Hz under an attitude and height loop; the outer model is a planar double integrator per axis (h = 0.2 s h = 0.2\,\mathrm{s} h = 0.2 s ) with tube gain K K K and bounded wind. Regions are translates c ⊕ T c \oplus T c ⊕ T of one tube shape with laws v = g + K ( z − c ) v = g + K(z-c) v = g + K ( z − c ) (E1–E3) or grid cells with fixed feedback primitives (R1–R6). Every edge is verified in exact arithmetic on its whole source region, for all of W \mathcal{W} W where disturbed; HiGHS candidates are used only after exact validation, and every run is reported. On 21 untuned runs the tube interface held at every sample (finite empirical evidence). A change of model, W \mathcal{W} W , obstacles or primitives requires re-verification; with the library unchanged, a new window or D D D needs only a new recursion, new targets new labels, and a new terminal set or controller its terminal conditions.
E1: mechanism. In F [ 3 , 20 ] G [ 0 , 2 ] μ R 1 \mathrm{F}_{[3,20]}\mathrm{G}_{[0,2]}\mu R_1 F [ 3 , 20 ] G [ 0 , 2 ] μ R 1 with D = 8 D = 8 D = 8 , H = 30 H = 30 H = 30 , the vehicle enters R 1 R_1 R 1 at 0.8 m/s. An exact lower bound over all admissible nominal inputs places it outside R ‾ 1 \overline{R}_1 R 1 at samples 5–12 (Figure 6 a), excluding every single witness and continuous visit. All 10 runs complete with the interface intact; on nominal, measured and counterfactual histories both monitors agree at every sample (Figure 6 b), and without the second visit both fail at k = 22 k = 22 k = 22 (Figure 6 c).
E2 and E3 (supplement). An exact full-horizon reference verifies 60 of 60 test queries; library-certified horizons N = 5 , 10 , 30 N = 5, 10, 30 N = 5 , 10 , 30 verify 63, 100 and 100% within 2 s. A full-horizon STL encoding verifies 100% and plans fastest; it drops the converse half of every equivalence of [12 ] , whose two-sided form, in our implementation, verifies 60/60 at median 176 ms. In a branching scene (H = 107 H = 107 H = 107 ), re-solving lowers the revealed cost relative to the verified backup alone by 118 and 108 on two geometries, and the backup carries an optimizer outage of 15 samples; against full-horizon replanning the sign depends on the execution window and geometry.
R1–R6: robust completion
Setup. The system is ((18) ) with h = 1 h = 1 h = 1 , ∣ w x ∣ , ∣ w y ∣ ≤ 0.1 \lvert w_x\rvert,\lvert w_y\rvert\le0.1 ∣ w x ∣ , ∣ w y ∣ ≤ 0.1 m and ∣ w θ ∣ ≤ 0.05 \lvert w_\theta\rvert\le0.05 ∣ w θ ∣ ≤ 0.05 rad, a grid of 0.5 m by 1/4 rad cells and 28 primitives (four speeds, seven θ r e f \theta_{\mathrm{ref}} θ ref , deadbeat heading feedback). R1–R3 use an 8 × 5 8 \times5 8 × 5 m workspace, one obstacle, a recorded history, F [ 13 , 16 ] G [ 0 , 1 ] μ R \mathrm{F}_{[13,16]}\mathrm{G}_{[0,1]}\mu R F [ 13 , 16 ] G [ 0 , 1 ] μ R , D = 2 D = 2 D = 2 and H = 19 H = 19 H = 19 .
R1: prototype gates (all four passed). (1) 27,076 edges are verified on whole cells for all of W \mathcal{W} W ; K p o s t \mathcal{K}_{\mathrm{post}} K post keeps 378 of 432 regions. (2) Γ \Gamma Γ on the actual history gives q 0 = ( 3 , 0 ) q_0 = (3,0) q 0 = ( 3 , 0 ) ; the start is certified and 200/200 sampled rollouts complete in K p o s t \mathcal{K}_{\mathrm{post}} K post . (3) At k = 0 k = 0 k = 0 , two admissible disturbances send the whole start enclosure under v = 1 v=1 v = 1 , θ r e f = − 1 / 4 \theta_{\mathrm{ref}}=-1/4 θ ref = − 1/4 strictly inside different cells, whose respective feasible sets A 1 = { v = 1 , θ r e f = 1 / 4 } A_1 = \{v=1,\theta_{\mathrm{ref}}=1/4\} A 1 = { v = 1 , θ ref = 1/4 } and A 2 = { v = 1 , θ r e f = − 1 / 4 } A_2 = \{v=1,\theta_{\mathrm{ref}}=-1/4\} A 2 = { v = 1 , θ ref = − 1/4 } are disjoint (figure in the supplement). (4) Explicit-bitset, compact and ordered recursions agree at every ( k , ρ , q ) (k,\rho,q) ( k , ρ , q ) . R2 (supplement): the single-successor sub-library certifies 0 regions against 650, and as 2 w ‾ a ≥ ∣ R ‾ ∣ 2\overline{w}_a \ge\lvert\overline{R}\rvert 2 w a ≥ ∣ R ∣ no product-box partition does better.
R3: filter in closed loop. A shared task-aware CEM proposer feeds a robust filter, a nominal certificate (w = 0 w = 0 w = 0 ) and a robust safety-only filter, with seeded disturbances and a 100 ms budget (0 overruns). In all 20 frozen configurations every arm completes; the nominal certificate is lost in 5, and the robust filter intervenes most (100 against 21 and 20). In four
preregistered cases (supplement), with a proposer pursuing a distant safe waypoint only the robust arm completes, and through an optimizer outage it completes on certified fallbacks.
R4: quadrotor. On the platform’s declared outer model (1 s ticks, 1 / 8 1/8 1/8 m cells), 224,094 edges are verified on whole cells, inputs and intermediate samples included. From a measured history, 10/10 MuJoCo wind seeds start certified, complete safely, stay in K p o s t \mathcal{K}_{\mathrm{post}} K post and keep every residual in W \mathcal{W} W , with identical branches. The outer model admits 8/710 candidate pairs with disjoint certified next-action sets; in MuJoCo these reach different regions with nested primitives.
R5: same state, different histories. On a mirror-symmetric two-target version of the scene, three legal prefixes end exactly at one state x ⋆ x^\star x ⋆ at k = 12 k = 12 k = 12 with equal bits and dwell counters; each last disturbance is proved in W \mathcal{W} W by interval arithmetic. After visiting only A, the complete certified set at x ⋆ x^\star x ⋆ is { ( − 1 / 4 , − 1 ) , ( 1 / 4 , − 1 ) } \{(-1/4,-1),(1/4,-1)\} {( − 1/4 , − 1 ) , ( 1/4 , − 1 )} ( v , θ r e f ) (v,\theta_{\mathrm{ref}}) ( v , θ ref ) ; after only B it is { ( − 1 / 4 , 1 ) , ( 1 / 4 , 1 ) } \{(-1/4,1),(1/4,1)\} {( − 1/4 , 1 ) , ( 1/4 , 1 )} , disjoint from it; after both, all 28 primitives. One common proposal ( 1 / 2 , 0 ) (1/2,0) ( 1/2 , 0 ) is therefore replaced by ( 1 / 4 , − 1 ) (1/4,-1) ( 1/4 , − 1 ) , by ( 1 / 4 , 1 ) (1/4,1) ( 1/4 , 1 ) or kept (Figure 7 ). Resetting all monitor memory at x ⋆ x^\star x ⋆ (clock kept) leaves no certified action. With memory, 30/30 seeded continuations, certified from k = 12 k = 12 k = 12 (the legal prefixes are not certified throughout), complete; the reset controller, judged by an unreset monitor, completes 0/10 after A and 0/10 after B (for this proposer and fallback only). Partial coverage alone also matters: on the R1 library, two legal prefixes end at one state at $k = 14 with served offsets { 2 } \{2\} { 2 } and { 1 , 2 } \{1,2\} { 1 , 2 } , and certified sets { ( 1 , 1 ) } ⊊ { ( 1 , 1 ) , ( 1 / 2 , 1 / 2 ) } \{(1,1)\} \subsetneq\{(1,1),(1/2,1/2)\} {( 1 , 1 )} ⊊ {( 1 , 1 ) , ( 1/2 , 1/2 )} (supplement).
Figure 7. R5: three legal histories end exactly at x ⋆ x^\star x ⋆ at k = 12 k = 12 k = 12 ; dashed: continuations with memory after A (red) and B (blue), dotted: the all-monitor-memory reset controller (identical for every history), one seed.
R6: what do the compact and ordered states cost? On an obstacle-free four-target scene (n ≤ 4 n \le4 n ≤ 4 tasks, D ≤ 16 D \le16 D ≤ 16 ), all methods answer the same matched sparse queries (all regions at k = 0 k = 0 k = 0 ) and agree; bitset and compact states are equally many in every setting (Theorem 14 ), with no clear resource gain; the main difference is in whole-domain tables, where the full bitset table exceeds the time or memory budget in 7 of 11 settings. The ordered recursion covers the whole domain; it is 6.0–45.9 times slower than sparse compact, at best draws level over 16 online batches and saves memory only at ( n , D ) = ( 3 , 4 ) (n,D)=(3,4) ( n , D ) = ( 3 , 4 ) and with four tasks.
Proofs for Section B
Lemma 8 (restated). Let d ∈ D d \in\mathbb{D} d ∈ D . If the tightened Boolean task holds for the shifted bit signals, ( ( γ , β ) ( ⋅ − d ) , 0 ) ⊨ φ β ((\gamma,\beta)(\cdot-d),0)\models\varphi_\beta (( γ , β ) ( ⋅ − d ) , 0 ) ⊨ φ β , then ( y ~ d , η , 0 ) ⊨ φ (\widetilde{y}^{d,\eta},0)\models\varphi ( y d , η , 0 ) ⊨ φ for every η : Z → B ε \eta:\mathbb{Z}\to\mathbb{B}_\varepsilon η : Z → B ε .
Proof: For Boolean signals ξ , ξ ′ \xi,\xi' ξ , ξ ′ on a common domain write ξ ≤ ξ ′ \xi\leq\xi' ξ ≤ ξ ′ if every component satisfies ξ p ( t ) ≤ ξ p ′ ( t ) \xi_p(t)\leq\xi'_p(t) ξ p ( t ) ≤ ξ p ′ ( t ) at every t t t . A negation-free Boolean STL formula ψ \psi ψ is monotone: ξ ≤ ξ ′ \xi\leq\xi' ξ ≤ ξ ′ and ( ξ , t ) ⊨ ψ (\xi,t)\models\psi ( ξ , t ) ⊨ ψ imply ( ξ ′ , t ) ⊨ ψ (\xi',t)\models\psi ( ξ ′ , t ) ⊨ ψ . This follows by induction on ψ \psi ψ , because atomic propositions, conjunction, disjunction, G I G_I G I and F I F_I F I all preserve ≤ \leq ≤ .
Let ξ = ( γ , β ) ( ⋅ − d ) \xi=(\gamma,\beta)(\cdot-d) ξ = ( γ , β ) ( ⋅ − d ) , and let ξ ′ \xi' ξ ′ collect the truth values of the original predicates along y ~ d , η \widetilde{y}^{d,\eta} y d , η , i.e., ξ i ′ ( t ) = 1 \xi'_{i}(t)=1 ξ i ′ ( t ) = 1 iff y ~ d , η ( t ) ∈ S i \widetilde{y}^{d,\eta}(t)\in S_i y d , η ( t ) ∈ S i and ξ j ′ ( t ) = 1 \xi'_{j}(t)=1 ξ j ′ ( t ) = 1 iff y ~ d , η ( t ) ∈ R j \widetilde{y}^{d,\eta}(t)\in R_j y d , η ( t ) ∈ R j , for t ∈ [ 0 , H ] t\in[0,H] t ∈ [ 0 , H ] . If β j ( t − d ) = 1 \beta_j(t-d)=1 β j ( t − d ) = 1 , then y ˉ t − d ∈ R ˉ j \bar{y}_{t-d}\in\bar{R}_j y ˉ t − d ∈ R ˉ j , and since η ( t ) ∈ B ε \eta(t)\in\mathbb{B}_\varepsilon η ( t ) ∈ B ε ,
y ~ d , η ( t ) = y ˉ t − d + η ( t ) ∈ R ˉ j ⊕ B ε ⊆ R j , \widetilde{y}^{d,\eta}(t)=\bar{y}_{t-d}+\eta(t)\in\bar{R}_j\oplus\mathbb{B}_\varepsilon\subseteq R_j, y d , η ( t ) = y ˉ t − d + η ( t ) ∈ R ˉ j ⊕ B ε ⊆ R j ,
so ξ j ′ ( t ) = 1 \xi'_j(t)=1 ξ j ′ ( t ) = 1 . The same argument applies to γ i \gamma_i γ i and S i S_i S i . Hence ξ ≤ ξ ′ \xi\leq\xi' ξ ≤ ξ ′ on [ 0 , H ] [0,H] [ 0 , H ] . Since ( ξ , 0 ) ⊨ φ β (\xi,0)\models\varphi_\beta ( ξ , 0 ) ⊨ φ β and φ \varphi φ is negation-free with the same structure, ( y ~ d , η , 0 ) ⊨ φ (\widetilde{y}^{d,\eta},0)\models\varphi ( y d , η , 0 ) ⊨ φ .
Admissible tightenings. The Pontryagin difference R j ⊖ B ε R_j\ominus\mathbb{B}_\varepsilon R j ⊖ B ε is the largest choice of R ˉ j \bar{R}_j R ˉ j ; for { y : G y ≤ f } \{y:Gy\leq f\} { y : G y ≤ f } it is { y : G y ≤ f − ε ∣ G ∣ 1 } \{y:Gy\leq f-\varepsilon|G|_1\} { y : G y ≤ f − ε ∣ G ∣ 1 } , and for a predicate h j ≥ 0 h_j\geq0 h j ≥ 0 with ℓ ∞ \ell_\infty ℓ ∞ -Lipschitz constant L j L_j L j the set { y : h j ( y ) ≥ L j ε } \{y:h_j(y)\geq L_j\varepsilon\} { y : h j ( y ) ≥ L j ε } is admissible.
Obstacles. With S i = { y : dist ∞ ( y , O i ) ≥ δ i } S_i=\{y:\operatorname{dist}_\infty(y,O_i)\geq\delta_i\} S i = { y : dist ∞ ( y , O i ) ≥ δ i } and S ˉ i ⊆ { y : dist ∞ ( y , O i ) ≥ δ i + ε } \bar{S}_i\subseteq\{y:\operatorname{dist}_\infty(y,O_i)\geq\delta_i+\varepsilon\} S ˉ i ⊆ { y : dist ∞ ( y , O i ) ≥ δ i + ε } , both sets are closed and exclude contact with O i O_i O i , and dist ∞ ( y + η , O i ) ≥ dist ∞ ( y , O i ) − ∥ η ∥ ∞ \operatorname{dist}_\infty(y+\eta,O_i)\geq\operatorname{dist}_\infty(y,O_i)-\|\eta\|_\infty dist ∞ ( y + η , O i ) ≥ dist ∞ ( y , O i ) − ∥ η ∥ ∞ gives S ˉ i ⊕ B ε ⊆ S i \bar{S}_i\oplus\mathbb{B}_\varepsilon\subseteq S_i S ˉ i ⊕ B ε ⊆ S i . For a polytopic obstacle { y : A i y ≤ b i } \{y:A_i y\leq b_i\} { y : A i y ≤ b i } with rows a i h ≠ 0 a_{ih}\ne0 a ih = 0 , the half-spaces { y : a i h y ≥ b i h + ( δ i + ε ) ∥ a i h ∥ 1 } \{y:a_{ih}y\geq b_{ih}+(\delta_i+\varepsilon)\|a_{ih}\|_1\} { y : a ih y ≥ b ih + ( δ i + ε ) ∥ a ih ∥ 1 } keep this clearance, so their union is an admissible S ˉ i \bar{S}_i S ˉ i (conservative near vertices). Nonconvex sets are never checked through vertices.
Quantifier order for disturbed systems. Two mistakes must be avoided in the objective of Section B-E. For x + = u + w x^+=u+w x + = u + w , u , w ∈ { − 1 , 1 } u,w\in\{-1,1\} u , w ∈ { − 1 , 1 } and goal x + = 0 x^+=0 x + = 0 , every known w w w admits u = − w u=-w u = − w but no u u u works for both, so ∀ w ∃ u \forall w\exists u ∀ w ∃ u is unsound. For x 1 = w 0 ∈ { − 1 , 1 } x_1=w_0\in\{-1,1\} x 1 = w 0 ∈ { − 1 , 1 } , x 2 = x 1 + u 1 x_2=x_1+u_1 x 2 = x 1 + u 1 , no fixed u 1 u_1 u 1 reaches 0 0 0 while u 1 = − x 1 u_1=-x_1 u 1 = − x 1 does, so the future must be feedback.
Proofs for Section C
Throughout, a single reach task has parameters ( a , b , ℓ ) (a,b,\ell) ( a , b , ℓ ) , window length Δ = b − a \Delta=b-a Δ = b − a , and bit signal β \beta β on [ − D , H ] [-D,H] [ − D , H ] with H ≥ b + ℓ H\geq b+\ell H ≥ b + ℓ . Witnesses start at s ≥ − D s\geq-D s ≥ − D by definition.
Coverage semantics and compilation
Lemma 11 (restated). Fix Boolean signals ( γ , β ) (\gamma,\beta) ( γ , β ) on [ − D , H ] [-D,H] [ − D , H ] . (a) For every reach task j j j , ∀ d ∈ D ∃ t ∈ [ a j , b j ] ∀ r ∈ [ 0 , ℓ j ] : β j ( t + r − d ) = 1 \forall d\in\mathbb{D}\ \exists t\in[a_j,b_j]\ \forall r\in[0,\ell_j]:\ \beta_j(t+r-d)=1 ∀ d ∈ D ∃ t ∈ [ a j , b j ] ∀ r ∈ [ 0 , ℓ j ] : β j ( t + r − d ) = 1 if and only if C j ( H ) = D C_j(H)=\mathbb{D} C j ( H ) = D . (b) For every safety task i i i , ∀ d ∈ D ∀ t ∈ [ α i , ω i ] : γ i ( t − d ) = 1 \forall d\in\mathbb{D}\ \forall t\in[\alpha_i,\omega_i]:\ \gamma_i(t-d)=1 ∀ d ∈ D ∀ t ∈ [ α i , ω i ] : γ i ( t − d ) = 1 if and only if γ i ( t ) = 1 \gamma_i(t)=1 γ i ( t ) = 1 for all t ∈ [ α i − D , ω i ] t\in[\alpha_i-D,\omega_i] t ∈ [ α i − D , ω i ] .
Proof: (a, ⇒ \Rightarrow ⇒ ) Fix d ∈ D d\in\mathbb{D} d ∈ D and t d ∈ [ a , b ] t_d\in[a,b] t d ∈ [ a , b ] with β ( t d + r − d ) = 1 \beta(t_d+r-d)=1 β ( t d + r − d ) = 1 for all r ∈ [ 0 , ℓ ] r\in[0,\ell] r ∈ [ 0 , ℓ ] , and let s = t d − d s=t_d-d s = t d − d . Then s ≥ a − D ≥ − D s\geq a-D\geq-D s ≥ a − D ≥ − D and β ( s ) = ⋯ = β ( s + ℓ ) = 1 \beta(s)=\cdots=\beta(s+\ell)=1 β ( s ) = ⋯ = β ( s + ℓ ) = 1 , so s s s is a witness. Moreover, a ≤ s + d = t d ≤ b a\leq s+d=t_d\leq b a ≤ s + d = t d ≤ b gives d ∈ I ( s ) d\in I(s) d ∈ I ( s ) , and s + ℓ ≤ b − d + ℓ ≤ H s+\ell\leq b-d+\ell\leq H s + ℓ ≤ b − d + ℓ ≤ H . Hence d ∈ C ( H ) d\in C(H) d ∈ C ( H ) .
(a, ⇐ \Leftarrow ⇐ ) If d ∈ C ( H ) d\in C(H) d ∈ C ( H ) , some witness s s s has d ∈ I ( s ) d\in I(s) d ∈ I ( s ) . Put t = s + d ∈ [ a , b ] t=s+d\in[a,b] t = s + d ∈ [ a , b ] . Then β ( t + r − d ) = β ( s + r ) = 1 \beta(t+r-d)=\beta(s+r)=1 β ( t + r − d ) = β ( s + r ) = 1 for all r ∈ [ 0 , ℓ ] r\in[0,\ell] r ∈ [ 0 , ℓ ] .
(b) The indices read by the left side are { t − d : t ∈ [ α , ω ] , d ∈ [ 0 , D ] } = [ α − D , ω ] \{t-d:t\in[\alpha,\omega],d\in[0,D]\}=[\alpha-D,\omega] { t − d : t ∈ [ α , ω ] , d ∈ [ 0 , D ]} = [ α − D , ω ] , which lies in [ − D , H ] [-D,H] [ − D , H ] because α ≥ 0 \alpha\geq0 α ≥ 0 and ω ≤ H \omega\leq H ω ≤ H .
■
Proposition 12 (restated). Let ξ \xi ξ be a Boolean signal on [ − D , H ] [-D,H] [ − D , H ] and ψ \psi ψ a Boolean STL formula, possibly with negation and bounded until U I U_I U I , whose evaluation at time 0 0 0 reads ξ \xi ξ only on [ 0 , H ] [0,H] [ 0 , H ] . Then
[ ∀ d ∈ D : ( ξ ( ⋅ − d ) , 0 ) ⊨ ψ ] ⟺ ( ξ , − D ) ⊨ G [ 0 , D ] ψ . \left[\forall d\in\mathbb{D}:(\xi(\cdot-d),0)\models\psi\right]\Longleftrightarrow(\xi,-D)\models G_{[0,D]}\psi. [ ∀ d ∈ D : ( ξ ( ⋅ − d ) , 0 ) ⊨ ψ ] ⟺ ( ξ , − D ) ⊨ G [ 0 , D ] ψ . In particular, the tightened Boolean task holds under every offset iff ( γ , β ) , − D ) ⊨ G [ 0 , D ] φ β (\gamma,\beta),-D)\models G_{[0,D]}\varphi_\beta ( γ , β ) , − D ) ⊨ G [ 0 , D ] φ β .
Proof: Boolean STL formulas are generated by ψ : : = p ∣ ¬ ψ ∣ ψ 1 ∧ ψ 2 ∣ G I ψ ∣ F I ψ ∣ ψ 1 U I ψ 2 \psi::=p\mid\neg\psi\mid\psi_1\wedge\psi_2\mid G_I\psi\mid F_I\psi\mid\psi_1U_I\psi_2 ψ ::= p ∣ ¬ ψ ∣ ψ 1 ∧ ψ 2 ∣ G I ψ ∣ F I ψ ∣ ψ 1 U I ψ 2 with ( ξ , t ) ⊨ p (\xi,t)\models p ( ξ , t ) ⊨ p iff ξ p ( t ) = 1 \xi_p(t)=1 ξ p ( t ) = 1 , ( ξ , t ) ⊨ G I ψ (\xi,t)\models G_I\psi ( ξ , t ) ⊨ G I ψ iff ( ξ , t ′ ) ⊨ ψ (\xi,t')\models\psi ( ξ , t ′ ) ⊨ ψ for all t ′ ∈ t + I t'\in t+I t ′ ∈ t + I , dually for F I F_I F I , and ( ξ , t ) ⊨ ψ 1 U I ψ 2 (\xi,t)\models\psi_1U_I\psi_2 ( ξ , t ) ⊨ ψ 1 U I ψ 2 iff some s ∈ t + I s\in t+I s ∈ t + I has ( ξ , s ) ⊨ ψ 2 (\xi,s)\models\psi_2 ( ξ , s ) ⊨ ψ 2 and ( ξ , u ) ⊨ ψ 1 (\xi,u)\models\psi_1 ( ξ , u ) ⊨ ψ 1 for every integer u ∈ [ t , s − 1 ] u\in[t,s-1] u ∈ [ t , s − 1 ] . Another endpoint convention for U I U_I U I changes only the range of $u and is handled identically. We claim
( ξ ( ⋅ − d ) , t ) ⊨ ψ ⟺ ( ξ , t − d ) ⊨ ψ (20) (\xi(\cdot-d),t)\models\psi\Longleftrightarrow(\xi,t-d)\models\psi \tag*{(20)} ( ξ ( ⋅ − d ) , t ) ⊨ ψ ⟺ ( ξ , t − d ) ⊨ ψ (20) whenever the evaluations on both sides read only defined samples. For atomic p p p , both sides state ξ p ( t − d ) = 1 \xi_p(t-d)=1 ξ p ( t − d ) = 1 . Negation and conjunction are immediate.
( ξ ( ⋅ − d ) , t ) ⊨ G I ψ ⟺ ∀ t ′ ∈ t + I : ( ξ , t ′ − d ) ⊨ ψ ⟺ ( ξ , t − d ) ⊨ G I ψ , (\xi(\cdot-d),t)\models G_I\psi\Longleftrightarrow\forall t'\in t+I:(\xi,t'-d)\models\psi
\Longleftrightarrow(\xi,t-d)\models G_I\psi, ( ξ ( ⋅ − d ) , t ) ⊨ G I ψ ⟺ ∀ t ′ ∈ t + I : ( ξ , t ′ − d ) ⊨ ψ ⟺ ( ξ , t − d ) ⊨ G I ψ , using the induction hypothesis and t ′ − d ∈ ( t − d ) + I t'-d\in(t-d)+I t ′ − d ∈ ( t − d ) + I ; F I F_I F I is analogous. For U I U_I U I , ( ξ ( ⋅ − d ) , t ) ⊨ ψ 1 U I ψ 2 (\xi(\cdot-d),t)\models\psi_1U_I\psi_2 ( ξ ( ⋅ − d ) , t ) ⊨ ψ 1 U I ψ 2 holds iff some s ∈ t + I s\in t+I s ∈ t + I has ( ξ ( ⋅ − d ) , s ) ⊨ ψ 2 (\xi(\cdot-d),s)\models\psi_2 ( ξ ( ⋅ − d ) , s ) ⊨ ψ 2 and ( ξ ( ⋅ − d ) , u ) ⊨ ψ 1 (\xi(\cdot-d),u)\models\psi_1 ( ξ ( ⋅ − d ) , u ) ⊨ ψ 1 for every integer u ∈ [ t , s − 1 ] u\in[t,s-1] u ∈ [ t , s − 1 ] . By the induction hypothesis, this reads ( ξ , s − d ) ⊨ ψ 2 (\xi,s-d)\models\psi_2 ( ξ , s − d ) ⊨ ψ 2 and ( ξ , u − d ) ⊨ ψ 1 (\xi,u-d)\models\psi_1 ( ξ , u − d ) ⊨ ψ 1 . Substituting s ′ = s − d ∈ ( t − d ) + I s'=s-d\in(t-d)+I s ′ = s − d ∈ ( t − d ) + I and u ′ = u − d ∈ [ t − d , s ′ − 1 ] u'=u-d\in[t-d,s'-1] u ′ = u − d ∈ [ t − d , s ′ − 1 ] gives exactly ( ξ , t − d ) ⊨ ψ 1 U I ψ 2 (\xi,t-d)\models\psi_1U_I\psi_2 ( ξ , t − d ) ⊨ ψ 1 U I ψ 2 . All evaluations are restricted to defined samples. Since ψ \psi ψ read at time 0 uses only [ 0 , H ] [0,H] [ 0 , H ] , the signal ξ ( ⋅ − d ) \xi(\cdot-d) ξ ( ⋅ − d ) is read on [ − d , H − d ] ⊆ [ − D , H ] [-d,H-d]\subseteq[-D,H] [ − d , H − d ] ⊆ [ − D , H ] . Applying (20) with t = 0 t=0 t = 0 and substituting τ = D − d \tau=D-d τ = D − d ,
∀ d ∈ [ 0 , D ] : ( ξ , − d ) ⊨ ψ ⟺ ∀ τ ∈ [ 0 , D ] : ( ξ , − D + τ ) ⊨ ψ ⟺ ( ξ , − D ) ⊨ G [ 0 , D ] ψ . \begin{aligned}
\forall d\in[0,D]:(\xi,-d)\models\psi
&\Longleftrightarrow\forall\tau\in[0,D]:(\xi,-D+\tau)\models\psi\\
&\Longleftrightarrow(\xi,-D)\models G_{[0,D]}\psi.
\end{aligned} ∀ d ∈ [ 0 , D ] : ( ξ , − d ) ⊨ ψ ⟺ ∀ τ ∈ [ 0 , D ] : ( ξ , − D + τ ) ⊨ ψ ⟺ ( ξ , − D ) ⊨ G [ 0 , D ] ψ . ■
Expiry, suffix structure and the compact monitor Lemma 13 (restated). Fix a reach task and a Boolean signal. If offset d d d is expired at k k k , then d ∉ C ( k ′ ) d\notin C(k') d ∈ / C ( k ′ ) for every k ′ ≥ k k'\geq k k ′ ≥ k ; hence the task is failed at every k ′ ≥ k k'\geq k k ′ ≥ k and C ( H ) ≠ D C(H)\ne\mathbb{D} C ( H ) = D .
Moreover, for k ≥ b + ℓ k \ge b+\ell k ≥ b + ℓ the task is not failed at k k k if and only if C ( k ) = D C(k)=\mathbb{D} C ( k ) = D .
Proof: Let d ∉ C ( k ) d \notin C(k) d ∈ / C ( k ) with k ≥ b − d + ℓ k \ge b-d+\ell k ≥ b − d + ℓ . Every witness s s s with d ∈ I ( s ) d \in I(s) d ∈ I ( s ) satisfies s ≤ b − d s \le b-d s ≤ b − d , so it is completed at s + ℓ ≤ b − d + ℓ ≤ k s+\ell\le b-d+\ell\le k s + ℓ ≤ b − d + ℓ ≤ k and would already be counted in C ( k ) C(k) C ( k ) . Hence no such witness exists, and d ∉ C ( k ′ ) d \notin C(k') d ∈ / C ( k ′ ) for all k ′ k' k ′ . For k ′ ≥ k k' \ge k k ′ ≥ k we also have k ′ ≥ b − d + ℓ k' \ge b-d+\ell k ′ ≥ b − d + ℓ , so d d d stays expired and the task stays failed. If H ≥ b + ℓ H \ge b+\ell H ≥ b + ℓ , then d d d is expired at H H H , so C ( H ) ≠ D C(H) \ne\mathbb{D} C ( H ) = D .
For k ≥ b + ℓ k \ge b+\ell k ≥ b + ℓ , every d ∈ D d \in\mathbb{D} d ∈ D has b − d + ℓ ≤ k b-d+\ell\le k b − d + ℓ ≤ k , so the task is failed at k k k iff some d ∈ D d \in\mathbb{D} d ∈ D is not in C ( k ) C(k) C ( k ) .
Theorem 14 (restated). Fix a reach task, a Boolean signal and k ≥ − D − 1 k \ge-D-1 k ≥ − D − 1 . If the task is not failed at k k k , then C ( k ) = { c , c + 1 , … , D } C(k)=\{c,c+1,\ldots,D\} C ( k ) = { c , c + 1 , … , D } for some c ∈ [ 0 , D + 1 ] c \in[0,D+1] c ∈ [ 0 , D + 1 ] , where c = D + 1 c=D+1 c = D + 1 denotes C ( k ) = ∅ C(k)=\varnothing C ( k ) = ∅ .
Proof: If C ( k ) = ∅ C(k)=\varnothing C ( k ) = ∅ , take c = D + 1 c=D+1 c = D + 1 . Otherwise let d ∈ C ( k ) d \in C(k) d ∈ C ( k ) be served by a witness s s s with a ≤ s + d ≤ b a \le s+d \le b a ≤ s + d ≤ b and s + ℓ ≤ k s+\ell\le k s + ℓ ≤ k , and let d ′ ∈ D d' \in\mathbb{D} d ′ ∈ D with d ′ > d d'>d d ′ > d . Since s + d ′ > s + d ≥ a s+d'>s+d \ge a s + d ′ > s + d ≥ a , the only way to have d ′ ∉ I ( s ) d' \notin I(s) d ′ ∈ / I ( s ) is s + d ′ > b s+d'>b s + d ′ > b , which gives
b − d ′ + ℓ < s + ℓ ≤ k . b-d'+\ell< s+\ell\le k. b − d ′ + ℓ < s + ℓ ≤ k .
If also d ′ ∉ C ( k ) d' \notin C(k) d ′ ∈ / C ( k ) , then d ′ d' d ′ is expired at k k k , which contradicts non-failure. Hence d ∈ C ( k ) d \in C(k) d ∈ C ( k ) implies [ d , D ] ⊆ C ( k ) [d,D] \subseteq C(k) [ d , D ] ⊆ C ( k ) , and C ( k ) = [ c , D ] C(k)=[c,D] C ( k ) = [ c , D ] with c = min C ( k ) c=\min C(k) c = min C ( k ) .
We use the following reformulation of the failure test. For c ∈ [ 0 , D + 1 ] c \in[0,D+1] c ∈ [ 0 , D + 1 ] ,
c > c ˉ k ⟺ c ≥ 1 and k ≥ b − ( c − 1 ) + ℓ . (21) c > \bar{c}_k \Longleftrightarrow c \ge1\ \text{and}\ k \ge b-(c-1)+\ell. \tag*{(21)} c > c ˉ k ⟺ c ≥ 1 and k ≥ b − ( c − 1 ) + ℓ . (21)
Indeed, if b + ℓ − k ≥ D + 1 b+\ell-k \ge D+1 b + ℓ − k ≥ D + 1 , then c ˉ k = D + 1 \bar{c}_k=D+1 c ˉ k = D + 1 and both sides are false, because the right side would require c ≥ b + ℓ − k + 1 ≥ D + 2 c \ge b+\ell-k+1 \ge D+2 c ≥ b + ℓ − k + 1 ≥ D + 2 . Otherwise c ˉ k = max { 0 , b + ℓ − k } \bar{c}_k=\max\{0,b+\ell-k\} c ˉ k = max { 0 , b + ℓ − k } , and c > max { 0 , b + ℓ − k } c>\max\{0,b+\ell-k\} c > max { 0 , b + ℓ − k } iff c ≥ 1 c\ge1 c ≥ 1 and c ≥ b + ℓ − k + 1 c\ge b+\ell-k+1 c ≥ b + ℓ − k + 1 .
Corollary 16 (restated). Fix a Boolean signal β \beta β on [ − D , H ] [-D,H] [ − D , H ] , let q − D − 1 = q i n i t q_{-D-1}=q^{\mathrm{init}} q − D − 1 = q init and q k = Γ k ( q k − 1 , β ( k ) ) q_k=\Gamma_k(q_{k-1},\beta(k)) q k = Γ k ( q k − 1 , β ( k )) . For every k ∈ [ − D − 1 , H ] k\in[-D-1,H] k ∈ [ − D − 1 , H ] : q k = ⊥ q_k=\bot q k = ⊥ iff some reach task is failed at k k k ; otherwise q k = ( ( c j , r j ) ) j ∈ Q k q_k=((c_j,r_j))_j\in Q_k q k = (( c j , r j ) ) j ∈ Q k with C j ( k ) = { c j , … , D } C_j(k)=\{c_j,\ldots,D\} C j ( k ) = { c j , … , D } and r j = r j ( k ) r_j=r_j(k) r j = r j ( k ) for every j j j . The monitor therefore takes at most 1 + ∏ j ( D + 2 ) ( ℓ j + 2 ) 1+\prod_j(D+2)(\ell_j+2) 1 + ∏ j ( D + 2 ) ( ℓ j + 2 ) values.
Proof: Since both the joint update and failure are componentwise, with ⊥ \bot ⊥ as soon as one component fails, it suffices to prove the following for one task, by induction on k ∈ [ − D − 1 , H ] k\in[-D-1,H] k ∈ [ − D − 1 , H ] : either the task is failed at k k k and q k = ⊥ q_k=\bot q k = ⊥ , or it is not failed and q k = ( c k , r k ) q_k=(c_k,r_k) q k = ( c k , r k ) with C ( k ) = [ c k , D ] C(k)=[c_k,D] C ( k ) = [ c k , D ] and r k = r ( k ) r_k=r(k) r k = r ( k ) .
Base. At k = − D − 1 k=-D-1 k = − D − 1 no sample has been read, C = ∅ = [ D + 1 , D ] C=\varnothing=[D+1,D] C = ∅ = [ D + 1 , D ] , r = 0 r=0 r = 0 , and no offset is expired because every deadline satisfies b − d + ℓ ≥ − D > − D − 1 b-d+\ell\ge-D>-D-1 b − d + ℓ ≥ − D > − D − 1 . This matches q i n i t = ( D + 1 , 0 ) q^{\mathrm{init}}=(D+1,0) q init = ( D + 1 , 0 ) .
Step. Assume the claim at k − 1 k-1 k − 1 . If the task is failed at k − 1 k-1 k − 1 , it is failed at k k k by Lemma 13, and ⊥ \bot ⊥ is absorbing. Otherwise let q k − 1 = ( c , r ) q_{k-1}=(c,r) q k − 1 = ( c , r ) with C ( k − 1 ) = [ c , D ] C(k-1)=[c,D] C ( k − 1 ) = [ c , D ] and r = r ( k − 1 ) r=r(k-1) r = r ( k − 1 ) . The run length satisfies r ( k ) = min { ℓ + 1 , r ( k − 1 ) + 1 } r(k)=\min\{\ell+1,r(k-1)+1\} r ( k ) = min { ℓ + 1 , r ( k − 1 ) + 1 } if β ( k ) = 1 \beta(k)=1 β ( k ) = 1 and r ( k ) = 0 r(k)=0 r ( k ) = 0 otherwise, which is r + r^+ r + . The witness s = k − ℓ s=k-\ell s = k − ℓ is completed at k k k iff β ( k − ℓ ) = ⋯ = β ( k ) = 1 \beta(k-\ell)=\cdots=\beta(k)=1 β ( k − ℓ ) = ⋯ = β ( k ) = 1 with k − ℓ ≥ − D k-\ell\ge-D k − ℓ ≥ − D , i.e., iff r ( k ) = ℓ + 1 r(k)=\ell+1 r ( k ) = ℓ + 1 . Its interval is I ( s ) = [ l o , h i ] I(s)=[\mathrm{lo},\mathrm{hi}] I ( s ) = [ lo , hi ] , which is empty if l o > h i \mathrm{lo}>\mathrm{hi} lo > hi . Since C ( k ) = [ c , D ] ∪ [ l o , h i ] C(k)=[c,D]\cup[\mathrm{lo},\mathrm{hi}] C ( k ) = [ c , D ] ∪ [ lo , hi ] if r + = ℓ + 1 r^+=\ell+1 r + = ℓ + 1 and C ( k ) = [ c , D ] C(k)=[c,D] C ( k ) = [ c , D ] otherwise. There are three cases.
Case A: r + ≤ ℓ r^+\le\ell r + ≤ ℓ , or l o > h i \mathrm{lo}>\mathrm{hi} lo > hi . Then C ( k ) = [ c , D ] C(k)=[c,D] C ( k ) = [ c , D ] and c + = c c^+=c c + = c .
Case B: r + = ℓ + 1 r^+=\ell+1 r + = ℓ + 1 , l o ≤ h i \mathrm{lo}\le\mathrm{hi} lo ≤ hi and h i ≥ c − 1 \mathrm{hi}\ge c-1 hi ≥ c − 1 . The intervals [ l o , h i ] [\mathrm{lo},\mathrm{hi}] [ lo , hi ] and [ c , D ] [c,D] [ c , D ] overlap or are adjacent and h i ≤ D \mathrm{hi}\le D hi ≤ D , so C ( k ) = min { c , l o } , D = [ c + , D ] C(k)=\min\{c,\mathrm{lo}\},D=[c^+,D] C ( k ) = min { c , lo } , D = [ c + , D ] .
Case C: r + = ℓ + 1 r^+=\ell+1 r + = ℓ + 1 and l o ≤ h i < c − 1 \mathrm{lo}\le\mathrm{hi}<c-1 lo ≤ hi < c − 1 . Then 0 ≤ c − 1 ≤ D 0\le c-1\le D 0 ≤ c − 1 ≤ D and c − 1 ∉ C ( k ) c-1\notin C(k) c − 1 ∈ / C ( k ) . Because c − 1 ≤ D c-1\le D c − 1 ≤ D , the inequality min { D , b − s } < c − 1 \min\{D,b-s\}<c-1 min { D , b − s } < c − 1 gives b − s < c − 1 b-s<c-1 b − s < c − 1 , i.e., b − ( c − 1 ) + ℓ < s + ℓ ≤ k b-(c-1)+\ell<s+\ell\le k b − ( c − 1 ) + ℓ < s + ℓ ≤ k . So c − 1 c-1 c − 1 is expired and the task is failed at k k k . The update gives c + = c c^+=c c + = c , and by (21) with c ≥ 1 c\ge1 c ≥ 1 and k > b − ( c − 1 ) + ℓ k>b-(c-1)+\ell k > b − ( c − 1 ) + ℓ , c + > c ˉ k c^+>\bar{c}_k c + > c ˉ k , so q k = ⊥ q_k=\bot q k = ⊥ .
In Cases A and B, C ( k ) = [ c + , D ] C(k)=[c^+,D] C ( k ) = [ c + , D ] . The uncovered offsets are [ 0 , c + − 1 ] [0,c^+-1] [ 0 , c + − 1 ] , and among them c + − 1 c^+-1 c + − 1 has the earliest deadline. Hence the task is failed at k k k iff c + > 1 c^+>1 c + > 1 and k > b − ( c + − 1 ) + ℓ k>b-(c^+-1)+\ell k > b − ( c + − 1 ) + ℓ , iff c + > c ˉ k c^+>\bar{c}_k c + > c ˉ k by (21), iff q k = ⊥ q_k=\bot q k = ⊥ . If not failed, q k = ( c + , r + ) q_k=(c^+,r^+) q k = ( c + , r + ) has the claimed form, and c + ≤ c ˉ k c^+\le\bar{c}_k c + ≤ c ˉ k means q k ∈ Q k q_k\in Q_k q k ∈ Q k .
Every non-failed value lies in Q Q Q , and ∣ Q ∣ = ∏ j ( D + 2 ) ( ℓ j + 2 ) |Q|=\prod_j(D+2)(\ell_j+2) ∣ Q ∣ = ∏ j ( D + 2 ) ( ℓ j + 2 ) ; adding ⊥ \bot ⊥ gives the bound.
Monotonicity
Lemma 18 (restated). For every k k k , all q ≤ q ′ q\le q' q ≤ q ′ in Q ∪ { ⊥ } Q\cup\{\bot\} Q ∪ { ⊥ } and all bit vectors β ≤ β ′ \beta\le\beta' β ≤ β ′ (componentwise), Γ k ( q , β ) ≤ Γ k ( q ′ , β ′ ) \Gamma_k(q,\beta)\le\Gamma_k(q',\beta') Γ k ( q , β ) ≤ Γ k ( q ′ , β ′ ) . Moreover, Q k Q_k Q k and the acceptance set { q : Acc ( q ) } \{q:\operatorname{Acc}(q)\} { q : Acc ( q )} are upward closed in Q ∪ { ⊥ } Q\cup\{\bot\} Q ∪ { ⊥ } .
Proof: If q = ⊥ q=\bot q = ⊥ , then Γ k ( q , β ) = ⊥ \Gamma_k(q,\beta)=\bot Γ k ( q , β ) = ⊥ and there is nothing to show. Otherwise q ′ ≠ ⊥ q'\ne\bot q ′ = ⊥ . Since the joint update is componentwise and returns ⊥ \bot ⊥ if any component does, it suffices to prove, for one task with ( c , r ) ⪯ ( c ′ , r ′ ) (c,r)\preceq(c',r') ( c , r ) ⪯ ( c ′ , r ′ ) (i.e., c ≥ c ′ c\ge c' c ≥ c ′ , r ≤ r ′ r\le r' r ≤ r ′ ) and bits β ≤ β ′ \beta\le\beta' β ≤ β ′ , that Γ k ( ( c , r ) , β ) ⪯ Γ k ( ( c ′ , r ′ ) , β ′ ) \Gamma_k((c,r),\beta)\preceq\Gamma_k((c',r'),\beta') Γ k (( c , r ) , β ) ⪯ Γ k (( c ′ , r ′ ) , β ′ ) , and that the right side is ⊥ \bot ⊥ only if the left side is.
Run length. If β = 0 \beta=0 β = 0 then r + = 0 ≤ r ′ + r^+=0\le r'^+ r + = 0 ≤ r ′ + . If β = 1 \beta=1 β = 1 , then β ′ = 1 \beta'=1 β ′ = 1 and min { ℓ + 1 , r + 1 } ≤ min { ℓ + 1 , r ′ + 1 } \min\{\ell+1,r+1\}\le\min\{\ell+1,r'+1\} min { ℓ + 1 , r + 1 } ≤ min { ℓ + 1 , r ′ + 1 } .
Coverage index. Let u ( c ) u(c) u ( c ) be the right side of (11), which applies when a witness completes. Then u ( c ) ≤ c u(c)\le c u ( c ) ≤ c , and u u u is nondecreasing: if c ≥ c ′ c\ge c' c ≥ c ′ and the condition in (11) holds for c c c , it holds for c ′ c' c ′ since h i ≥ c − 1 ≥ c ′ − 1 \mathrm{hi}\ge c-1\ge c'-1 hi ≥ c − 1 ≥ c ′ − 1 , and then u ( c ) = min { c , l o } ≥ min { c ′ , l o } = u ( c ′ ) u(c)=\min\{c,\mathrm{lo}\}\ge\min\{c',\mathrm{lo}\}=u(c') u ( c ) = min { c , lo } ≥ min { c ′ , lo } = u ( c ′ ) ; if the condition fails for c c c , then u ( c ) = c ≥ c ′ ≥ u ( c ′ ) u(c)=c\ge c'\ge u(c') u ( c ) = c ≥ c ′ ≥ u ( c ′ ) . Let κ \kappa κ and κ ′ \kappa' κ ′ indicate completion, i.e., r + = ℓ + 1 r^+=\ell+1 r + = ℓ + 1 and r ′ + = ℓ + 1 r'^+=\ell+1 r ′ + = ℓ + 1 ; by the previous step κ ≤ κ ′ \kappa\le\kappa' κ ≤ κ ′ . If κ = κ ′ = 0 \kappa=\kappa'=0 κ = κ ′ = 0 , then c + = c ≥ c ′ = c ′ + c^+=c\ge c'=c'^+ c + = c ≥ c ′ = c ′ + . If κ = κ ′ = 1 \kappa=\kappa'=1 κ = κ ′ = 1 , then c + = u ( c ) ≥ u ( c ′ ) = c ′ + c^+=u(c)\ge u(c')=c'^+ c + = u ( c ) ≥ u ( c ′ ) = c ′ + . If κ = 0 \kappa=0 κ = 0 and κ ′ = 1 \kappa'=1 κ ′ = 1 , then c + = c ≥ c ′ ≥ u ( c ′ ) = c ′ + c^+=c\ge c'\ge u(c')=c'^+ c + = c ≥ c ′ ≥ u ( c ′ ) = c ′ + .
Failure. The test c + > c ˉ k c^+>\bar{c}_k c + > c ˉ k is monotone in c + c^+ c + . Since c + ≥ c ′ + c^+\ge c'^+ c + ≥ c ′ + , if the right side fails, so does the left side. If neither fails, ( c + , r + ) ⪯ ( c ′ + , r ′ + ) (c^+,r^+)\preceq(c'^+,r'^+) ( c + , r + ) ⪯ ( c ′ + , r ′ + ) .
Finally, Q k Q_k Q k is defined by upper bounds on the c j c_j c j , so it is upward closed, and Acc \operatorname{Acc} Acc requires c j = 0 c_j=0 c j = 0 , which is preserved when moving up.
Baselines
Lemma S1 (Single continuous visit). Fix one reach task and a true segment [ p , q ] ⊆ [ − D , b + ℓ ] [p,q]\subseteq[-D,b+\ell] [ p , q ] ⊆ [ − D , b + ℓ ] of β \beta β with q − p ≥ ℓ q-p\ge\ell q − p ≥ ℓ . The
witnesses s ∈ [ p , q − ℓ ] s \in[p,q-\ell] s ∈ [ p , q − ℓ ] cover D \mathbb{D} D iff p ≤ b − D p \le b-D p ≤ b − D and q ≥ a + ℓ q \ge a+\ell q ≥ a + ℓ . Consequently, β ∈ F s i n g l e \beta\in\mathcal{F}_{\mathrm{single}} β ∈ F single iff β \beta β satisfies
ψ s i n g l e = { F [ a , b − D ] G [ 0 , ℓ ] β at time 0 , Δ ≥ D , G [ b , a + ℓ + D ] β at time − D , Δ < D , \psi_{\mathrm{single}} =
\begin{cases}
\mathbf{F}_{[a,b-D]}\mathbf{G}_{[0,\ell]}\beta\ \text{at time }0, & \Delta\ge D,\\
\mathbf{G}_{[b,a+\ell+D]}\beta\ \text{at time }-D, & \Delta< D,
\end{cases} ψ single = { F [ a , b − D ] G [ 0 , ℓ ] β at time 0 , G [ b , a + ℓ + D ] β at time − D , Δ ≥ D , Δ < D ,
where the second case states β ( t ) = 1 \beta(t)=1 β ( t ) = 1 for all t ∈ [ b − D , a + ℓ ] t\in[b-D,a+\ell] t ∈ [ b − D , a + ℓ ] in absolute nominal time; negative times read the recorded history.
Proof: The starts s ∈ [ p , q − ℓ ] s\in[p,q-\ell] s ∈ [ p , q − ℓ ] are witnesses. For consecutive starts, the integer intervals [ a − s − 1 , b − s − 1 ] [a-s-1,b-s-1] [ a − s − 1 , b − s − 1 ] and [ a − s , b − s ] [a-s,b-s] [ a − s , b − s ] overlap or are adjacent because b ≥ a b\ge a b ≥ a . Hence
⋃ s ∈ [ p , q − ℓ ] [ a − s , b − s ] = [ a − q + ℓ , b − p ] , \bigcup_{s\in[p,q-\ell]}[a-s,b-s]=[a-q+\ell,b-p], s ∈ [ p , q − ℓ ] ⋃ [ a − s , b − s ] = [ a − q + ℓ , b − p ] ,
and its intersection with D \mathbb{D} D equals D \mathbb{D} D iff a − q + ℓ ≤ 0 a-q+\ell\le0 a − q + ℓ ≤ 0 and b − p ≥ D b-p\ge D b − p ≥ D , i.e., iff q ≥ a + ℓ q\ge a+\ell q ≥ a + ℓ and p ≤ b − D p\le b-D p ≤ b − D .
Case Δ ≥ D \Delta\ge D Δ ≥ D . If a segment [ p , q ] [p,q] [ p , q ] covers D \mathbb{D} D , let s = max { p , a } s=\max\{p,a\} s = max { p , a } . Then s ≤ b − D s\le b-D s ≤ b − D , because p ≤ b − D p\le b-D p ≤ b − D and a ≤ b − D a\le b-D a ≤ b − D . Also s + ℓ ≤ q s+\ell\le q s + ℓ ≤ q : if s = p s=p s = p this is q − p ≥ ℓ q-p\ge\ell q − p ≥ ℓ , and if s = a s=a s = a it is q ≥ a + ℓ q\ge a+\ell q ≥ a + ℓ . So β = 1 \beta=1 β = 1 on [ s , s + ℓ ] [s,s+\ell] [ s , s + ℓ ] with s ∈ [ a , b − D ] s\in[a,b-D] s ∈ [ a , b − D ] . Conversely, such an s s s gives the segment [ s , s + ℓ ] [s,s+\ell] [ s , s + ℓ ] with s ≤ b − D s\le b-D s ≤ b − D and s + ℓ ≥ a + ℓ s+\ell\ge a+\ell s + ℓ ≥ a + ℓ .
Case Δ < D \Delta<D Δ < D . If [ p , q ] [p,q] [ p , q ] covers D \mathbb{D} D , then p ≤ b − D < a ≤ a + ℓ ≤ q p\le b-D<a\le a+\ell\le q p ≤ b − D < a ≤ a + ℓ ≤ q , so β = 1 \beta=1 β = 1 on [ b − D , a + ℓ ] [b-D,a+\ell] [ b − D , a + ℓ ] . Conversely, if β = 1 \beta=1 β = 1 on [ b − D , a + ℓ ] [b-D,a+\ell] [ b − D , a + ℓ ] , take p = b − D ≥ − D p=b-D\ge-D p = b − D ≥ − D and q = a + ℓ q=a+\ell q = a + ℓ ; then q − p = ℓ + D − Δ > ℓ q-p=\ell+D-\Delta>\ell q − p = ℓ + D − Δ > ℓ and both conditions hold. ▪
Proposition 20 (restated). Fix one reach task with parameters ( a , b , ℓ , D ) (a,b,\ell,D) ( a , b , ℓ , D ) and Δ = b − a \Delta=b-a Δ = b − a . If Δ ≥ D \Delta\ge D Δ ≥ D , then F s h a r e d ⊆ F s h r i n k = F s i n g l e ⊆ F e x a c t \mathcal{F}_{\mathrm{shared}}\subseteq\mathcal{F}_{\mathrm{shrink}}=\mathcal{F}_{\mathrm{single}}\subseteq\mathcal{F}_{\mathrm{exact}} F shared ⊆ F shrink = F single ⊆ F exact . If Δ < D \Delta<D Δ < D , then F s h r i n k = ∅ \mathcal{F}_{\mathrm{shrink}}=\varnothing F shrink = ∅ and F s h a r e d ⊆ F s i n g l e ⊆ F e x a c t \mathcal{F}_{\mathrm{shared}}\subseteq\mathcal{F}_{\mathrm{single}}\subseteq\mathcal{F}_{\mathrm{exact}} F shared ⊆ F single ⊆ F exact .
Proof: F s i n g l e ⊆ F e x a c t \mathcal{F}_{\mathrm{single}}\subseteq\mathcal{F}_{\mathrm{exact}} F single ⊆ F exact : the witnesses of the segment are witnesses of β \beta β , and all of them are completed by b + ℓ b+\ell b + ℓ because the signal ends there. F s h a r e d ⊆ F s i n g l e \mathcal{F}_{\mathrm{shared}}\subseteq\mathcal{F}_{\mathrm{single}} F shared ⊆ F single : the segment [ t − D , t + ℓ ] [t-D,t+\ell] [ t − D , t + ℓ ] with t ∈ [ a , b ] t\in[a,b] t ∈ [ a , b ] has p = t − D ≤ b − D p=t-D\le b-D p = t − D ≤ b − D , q = t + ℓ ≥ a + ℓ q=t+\ell\ge a+\ell q = t + ℓ ≥ a + ℓ , q − p = D + ℓ ≥ ℓ q-p=D+\ell\ge\ell q − p = D + ℓ ≥ ℓ and p ≥ − D p\ge-D p ≥ − D , so Lemma S1 applies. F s h r i n k ⊆ F s i n g l e \mathcal{F}_{\mathrm{shrink}}\subseteq\mathcal{F}_{\mathrm{single}} F shrink ⊆ F single : the segment [ s , s + ℓ ] [s,s+\ell] [ s , s + ℓ ] with s ∈ [ a , b − D ] s\in[a,b-D] s ∈ [ a , b − D ] satisfies both conditions. If Δ ≥ D \Delta\ge D Δ ≥ D , Lemma S1 gives F s i n g l e = F s h r i n k \mathcal{F}_{\mathrm{single}}=\mathcal{F}_{\mathrm{shrink}} F single = F shrink . If Δ < D \Delta<D Δ < D , then [ a , b − D ] [a,b-D] [ a , b − D ] is empty and F s h r i n k = ∅ \mathcal{F}_{\mathrm{shrink}}=\varnothing F shrink = ∅ . ▪
Proposition 21 (restated). Fix one reach task and consider all Boolean signals on [ − D , b + ℓ ] [-D,b+\ell] [ − D , b + ℓ ] . Then F s i n g l e ⊊ F e x a c t \mathcal{F}_{\mathrm{single}}\subsetneq\mathcal{F}_{\mathrm{exact}} F single ⊊ F exact if and only if D ≥ 1 D\ge1 D ≥ 1 and Δ ≥ ℓ + 1 \Delta\ge\ell+1 Δ ≥ ℓ + 1 . If D = 0 D=0 D = 0 or Δ ≤ ℓ \Delta\le\ell Δ ≤ ℓ , every signal in F e x a c t \mathcal{F}_{\mathrm{exact}} F exact has a single true segment whose witnesses cover D \mathbb{D} D .
Proof: (⇐ \Leftarrow ⇐ ) Let D ≥ 1 D\ge1 D ≥ 1 and Δ ≥ ℓ + 1 \Delta\ge\ell+1 Δ ≥ ℓ + 1 , and let β = 1 \beta=1 β = 1 exactly on [ a − D , a − 1 + ℓ ] ∪ [ b , b + ℓ ] ⊆ [ − D , b + ℓ ] [a-D,a-1+\ell]\cup[b,b+\ell]\subseteq[-D,b+\ell] [ a − D , a − 1 + ℓ ] ∪ [ b , b + ℓ ] ⊆ [ − D , b + ℓ ] . Since b ≥ a + ℓ + 1 b\ge a+\ell+1 b ≥ a + ℓ + 1 , the time a + ℓ a+\ell a + ℓ separates the two segments. The first segment has ℓ + D ≥ ℓ + 1 \ell+D\ge\ell+1 ℓ + D ≥ ℓ + 1 samples and witnesses s ∈ [ a − D , a − 1 ] s\in[a-D,a-1] s ∈ [ a − D , a − 1 ] ; by the first part of Lemma S1 its coverage is [ a − ( a − 1 ) , b − ( a − D ) ] ∩ D = [ 1 , Δ + D ] ∩ D = [ 1 , D ] [a-(a-1),b-(a-D)]\cap\mathbb{D}=[1,\Delta+D]\cap\mathbb{D}=[1,D] [ a − ( a − 1 ) , b − ( a − D )] ∩ D = [ 1 , Δ + D ] ∩ D = [ 1 , D ] . The second segment has the witness s = b s=b s = b with I ( b ) = [ a − b , b − b ] ∩ D = [ a − b , 0 ] ∩ D = { 0 } I(b)=[a-b,b-b]\cap\mathbb{D}=[a-b,0]\cap\mathbb{D}=\{0\} I ( b ) = [ a − b , b − b ] ∩ D = [ a − b , 0 ] ∩ D = { 0 } . Hence β ∈ F e x a c t \beta\in\mathcal{F}_{\mathrm{exact}} β ∈ F exact . The first segment violates q ≥ a + ℓ q\ge a+\ell q ≥ a + ℓ , and the second violates p ≤ b − D p\le b-D p ≤ b − D because D ≥ 1 D\ge1 D ≥ 1 .
Both conditions only become harder on sub-segments, so β ∉ F s i n g l e \beta\notin\mathcal{F}_{\mathrm{single}} β ∈ / F single .
(⇒ \Rightarrow ⇒ ) We show F e x a c t ⊆ F s i n g l e \mathcal{F}_{\mathrm{exact}}\subseteq\mathcal{F}_{\mathrm{single}} F exact ⊆ F single when D = 0 D=0 D = 0 or Δ ≤ ℓ \Delta\le\ell Δ ≤ ℓ . If D = 0 D=0 D = 0 , some witness s s s has a ≤ s ≤ b a\le s\le b a ≤ s ≤ b , and the segment [ s , s + ℓ ] [s,s+\ell] [ s , s + ℓ ] satisfies p ≤ b = b − D p\le b=b-D p ≤ b = b − D and q ≥ a + ℓ q\ge a+\ell q ≥ a + ℓ .
Let Δ ≤ ℓ \Delta\le\ell Δ ≤ ℓ and β ∈ F e x a c t \beta\in\mathcal{F}_{\mathrm{exact}} β ∈ F exact . Let σ 1 , … , σ m \sigma_1,\ldots,\sigma_m σ 1 , … , σ m be the maximal true segments that contain witnesses, ordered in time, with σ i = [ p i , q i ] \sigma_i=[p_i,q_i] σ i = [ p i , q i ] . By Lemma S1, σ i \sigma_i σ i covers U i = J i ∩ D U_i=J_i\cap\mathbb{D} U i = J i ∩ D with J i = [ a − q i + ℓ , b − p i ] J_i=[a-q_i+\ell,b-p_i] J i = [ a − q i + ℓ , b − p i ] . For i < i ′ i<i' i < i ′ we have p i ′ ≥ q i + 2 p_{i'}\ge q_i+2 p i ′ ≥ q i + 2 , so, using b ≤ a + ℓ b\le a+\ell b ≤ a + ℓ ,
max J i ′ = b − p i ′ ≤ b − q i − 2 ≤ a + ℓ − q i − 2 = min J i − 2. (22) \max J_{i'}=b-p_{i'}\le b-q_i-2\le a+\ell-q_i-2=\min J_i-2. \tag*{(22)} max J i ′ = b − p i ′ ≤ b − q i − 2 ≤ a + ℓ − q i − 2 = min J i − 2. (22)
Thus the J i J_i J i are ordered decreasingly and separated by at least one integer. Suppose two segments contribute, i.e., U i ≠ ∅ ≠ U i ′ U_i\ne\varnothing\ne U_{i'} U i = ∅ = U i ′ for some i < i ′ i<i' i < i ′ , and choose i ′ i' i ′ as the next contributing index after i i i . Let g = min J i − 1 g=\min J_i-1 g = min J i − 1 . Since U i ′ ≠ ∅ U_{i'}\ne\varnothing U i ′ = ∅ , max J i ′ ≥ 0 \max J_{i'}\ge0 max J i ′ ≥ 0 , and (22) gives g > max J i ′ ≥ 0 g>\max J_{i'}\ge0 g > max J i ′ ≥ 0 . Since U i ≠ ∅ U_i\ne\varnothing U i = ∅ , min J i ≤ D \min J_i\le D min J i ≤ D , so g ≤ D − 1 g\le D-1 g ≤ D − 1 . Thus g ∈ D g\in\mathbb{D} g ∈ D . Now g ∉ J i g\notin J_i g ∈ / J i ; for i ′ ′ ≥ i ′ i''\ge i' i ′′ ≥ i ′ , max J i ′ ′ ≤ max J i ′ < g \max J_{i''}\le\max J_{i'}<g max J i ′′ ≤ max J i ′ < g ; for i ′ ′ < i i''<i i ′′ < i , min J i ′ ′ ≥ min J i + 2 > g \min J_{i''}\ge\min J_i+2>g min J i ′′ ≥ min J i + 2 > g by (22); and the segments strictly between i i i and i ′ i' i ′ do not contribute. Hence g ∉ C ( b + ℓ ) g\notin C(b+\ell) g ∈ / C ( b + ℓ ) , which contradicts β ∈ F e x a c t \beta\in\mathcal{F}_{\mathrm{exact}} β ∈ F exact . Therefore exactly one segment contributes, it covers D \mathbb{D} D , and β ∈ F s i n g l e \beta\in\mathcal{F}_{\mathrm{single}} β ∈ F single . ▪
Appendix I: Proofs for Section D
Proposition S2 (Monotone exact family). If q ⪯ q ′ q\preceq q' q ⪯ q ′ , then T k ( q ) ⊆ T k ( q ′ ) \mathcal{T}_k(q)\subseteq\mathcal{T}_k(q') T k ( q ) ⊆ T k ( q ′ ) for every k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] .
Proof: Backward induction on k k k . At H H H , if T H ( q ) ≠ ∅ \mathcal{T}_H(q)\ne\varnothing T H ( q ) = ∅ then Acc ( q ) \operatorname{Acc}(q) Acc ( q ) , hence Acc ( q ′ ) \operatorname{Acc}(q') Acc ( q ′ ) because Acc \operatorname{Acc} Acc is upward closed (Lemma 18), and T H ( q ) = T H ( q ′ ) \mathcal{T}_H(q)=\mathcal{T}_H(q') T H ( q ) = T H ( q ′ ) . Let k < H k<H k < H and z ∈ T k ( q ) z\in\mathcal{T}_k(q) z ∈ T k ( q ) with witness input v v v and successor z + = A z + B v z^+=Az+Bv z + = A z + B v . Then Adm k ( z , q ′ ) \operatorname{Adm}_k(z,q') Adm k ( z , q ′ ) holds because Q k \mathcal{Q}_k Q k is upward closed. By Lemma 18, Γ k + 1 ( q , χ ( C z + ) ) ⪯ Γ k + 1 ( q ′ , χ ( C z + ) ) \Gamma_{k+1}(q,\chi(Cz^+))\preceq\Gamma_{k+1}(q',\chi(Cz^+)) Γ k + 1 ( q , χ ( C z + )) ⪯ Γ k + 1 ( q ′ , χ ( C z + )) , so the induction hypothesis gives z + ∈ T k + 1 ( Γ k + 1 ( q , χ ( C z + ) ) ) ⊆ T k + 1 ( Γ k + 1 ( q ′ , χ ( C z + ) ) ) z^+\in\mathcal{T}_{k+1}(\Gamma_{k+1}(q,\chi(Cz^+)))\subseteq\mathcal{T}_{k+1}(\Gamma_{k+1}(q',\chi(Cz^+))) z + ∈ T k + 1 ( Γ k + 1 ( q , χ ( C z + ))) ⊆ T k + 1 ( Γ k + 1 ( q ′ , χ ( C z + ))) , and the same v v v shows z ∈ T k ( q ′ ) z\in\mathcal{T}_k(q') z ∈ T k ( q ′ ) . ▪
Lemma 24 (restated). Fix k ∈ [ − D , H − 1 ] k\in[-D,H-1] k ∈ [ − D , H − 1 ] , a label σ ∈ { 0 , 1 } n r \sigma\in\{0,1\}^{n_r} σ ∈ { 0 , 1 } n r and a target g = ( ( c j ∗ , r j ∗ ) ) j ∈ Q k + 1 g=((c_j^*,r_j^*))_{j\in\mathcal{Q}_{k+1}} g = (( c j ∗ , r j ∗ ) ) j ∈ Q k + 1 , and let Pre k ( g , σ ) = { q ∈ Q k : Γ k + 1 ( q , σ ) ⪰ g } \operatorname{Pre}_k(g,\sigma)=\{q\in\mathcal{Q}_k:\Gamma_{k+1}(q,\sigma)\succeq g\} Pre k ( g , σ ) = { q ∈ Q k : Γ k + 1 ( q , σ ) ⪰ g } . With s j = k + 1 − ℓ j s_j=k+1-\ell_j s j = k + 1 − ℓ j , let l j 0 = max { 0 , a j − s j } l_{j0}=\max\{0,a_j-s_j\} l j 0 = max { 0 , a j − s j } and h j = min { D , b j − s j } h_j=\min\{D,b_j-s_j\} h j = min { D , b j − s j } , let X j = { ( c j ∗ , 0 ) } X_j=\{(c_j^*,0)\} X j = {( c j ∗ , 0 )} if σ j = 0 \sigma_j=0 σ j = 0 and r j ∗ = 0 r_j^*=0 r j ∗ = 0 , X j = ∅ X_j=\varnothing X j = ∅ if σ j = 0 \sigma_j=0 σ j = 0 and r j ∗ > 0 r_j^*>0 r j ∗ > 0 , and, if σ j = 1 \sigma_j=1 σ j = 1 , X j = { ( c j ∗ , max { 0 , r j ∗ − 1 } ) } ∪ { ( min { D + 1 , h j + 1 } , ℓ j ) : l j 0 ≤ h j , l j 0 < j j } X_j=\{(c_j^*,\max\{0,r_j^*-1\})\}\cup\{(\min\{D+1,h_j+1\},\ell_j):l_{j0}\le h_j,l_{j0}<j_j\} X j = {( c j ∗ , max { 0 , r j ∗ − 1 })} ∪ {( min { D + 1 , h j + 1 } , ℓ j ) : l j 0 ≤ h j , l j 0 < j j } : l j 0 ≤ h j l_{j0}\le h_j l j 0 ≤ h j , l j 0 < j j < c j ∗ l_{j0}<j_j<c_j^* l j 0 < j j < c j ∗ . Then Pre k ( g , σ ) \operatorname{Pre}_k(g,\sigma) Pre k ( g , σ ) is upward closed in Q k \mathcal{Q}_k Q k , X 1 × ⋯ × X n r X_1\times\cdots\times X_{n_r} X 1 × ⋯ × X n r is a subset of Pre k ( g , σ ) \operatorname{Pre}_k(g,\sigma) Pre k ( g , σ ) , and
min Pre k ( g , σ ) = min ( X 1 × ⋯ × X n r ) . \min\operatorname{Pre}_k(g,\sigma)=\min(X_1\times\cdots\times X_{n_r}). min Pre k ( g , σ ) = min ( X 1 × ⋯ × X n r ) . Thus, for a fixed time, label and target generator, each task contributes at most two candidates, all candidates are valid predecessors, and there are at most 2 n r 2^{n_r} 2 n r of them.
Proof: Upward closure. Let q ∈ Pre k ( g , σ ) q\in\operatorname{Pre}_k(g,\sigma) q ∈ Pre k ( g , σ ) and q ⪯ q ′ ∈ Q q\preceq q'\in\mathcal{Q} q ⪯ q ′ ∈ Q . Then q ′ ∈ Q k q'\in\mathcal{Q}_k q ′ ∈ Q k by Lemma 18, and Γ k + 1 ( q ′ , σ ) ⪰ Γ k + 1 ( q , σ ) ⪰ g \Gamma_{k+1}(q',\sigma)\succeq\Gamma_{k+1}(q,\sigma)\succeq g Γ k + 1 ( q ′ , σ ) ⪰ Γ k + 1 ( q , σ ) ⪰ g .
Reduction to one task. Membership in Q k Q_k Q k , the update, the order, and the condition Γ k + 1 ( q , σ ) ⪰ g \Gamma_{k+1}(q,\sigma) \succeq g Γ k + 1 ( q , σ ) ⪰ g with g ≠ ⊥ g \ne\bot g = ⊥ are all componentwise (the last requires every component to be non-failed). Hence Pre k ( g , σ ) = ∏ j Pre j \operatorname{Pre}_k(g,\sigma)=\prod_j \operatorname{Pre}_j Pre k ( g , σ ) = ∏ j Pre j with Pre j = { q j ∈ Q j : c j ≤ c ˉ j , k , Γ j , k + 1 ( q j , σ j ) ⪰ g j } \operatorname{Pre}_j=\{q_j\in Q_j:c_j\le\bar{c}_{j,k},\ \Gamma_{j,k+1}(q_j,\sigma_j)\succeq g_j\} Pre j = { q j ∈ Q j : c j ≤ c ˉ j , k , Γ j , k + 1 ( q j , σ j ) ⪰ g j } , and minimal elements of a product of posets are the products of minimal elements. It therefore suffices to show, for one task (index dropped), that
X j ⊆ Pre j and ∀ q ∈ Pre j ∃ x ∈ X j : x ⪯ q . (23) X_j\subseteq\operatorname{Pre}_j\quad\text{and}\quad\forall q\in\operatorname{Pre}_j\ \exists x\in X_j:x\preceq q. \tag*{(23)} X j ⊆ Pre j and ∀ q ∈ Pre j ∃ x ∈ X j : x ⪯ q . (23)
Then min Pre j = min X j \min\operatorname{Pre}_j=\min X_j min Pre j = min X j . Indeed, if m ∈ min Pre j m\in\min\operatorname{Pre}_j m ∈ min Pre j , some x ∈ X j x\in X_j x ∈ X j satisfies x ⪯ m x\preceq m x ⪯ m and x ∈ Pre j x\in\operatorname{Pre}_j x ∈ Pre j , so x = m x=m x = m , and m m m is minimal in X j ⊆ Pre j X_j\subseteq\operatorname{Pre}_j X j ⊆ Pre j . Conversely, if x ∈ min X j x\in\min X_j x ∈ min X j and q ∈ Pre j q\in\operatorname{Pre}_j q ∈ Pre j with q ⪯ x q\preceq x q ⪯ x , some x ′ ∈ X j x'\in X_j x ′ ∈ X j satisfies x ′ ⪯ q ⪯ x x'\preceq q\preceq x x ′ ⪯ q ⪯ x , so x ′ = x x'=x x ′ = x and q = x q=x q = x .
Two facts are used throughout. First, c ˉ k + 1 ≤ c ˉ k \bar{c}_{k+1}\le\bar{c}_k c ˉ k + 1 ≤ c ˉ k , and g ∈ Q k + 1 g\in Q_{k+1} g ∈ Q k + 1 gives c ∗ ≤ c ˉ k + 1 c^*\le\bar{c}_{k+1} c ∗ ≤ c ˉ k + 1 . Second, if a state has image ( c ^ + , r ^ + ) (\hat{c}_+,\hat{r}_+) ( c ^ + , r ^ + ) before the failure test with c ^ + ≤ c ∗ \hat{c}_+\le c^* c ^ + ≤ c ∗ , then the image is not ⊥ \bot ⊥ , because c ∗ ≤ c ˉ k + 1 c^*\le\bar{c}_{k+1} c ∗ ≤ c ˉ k + 1 .
Candidates are predecessors. If σ j = 0 \sigma_j=0 σ j = 0 and r ∗ = 0 r^*=0 r ∗ = 0 , the candidate ( c ∗ , 0 ) (c^*,0) ( c ∗ , 0 ) lies in Q k Q_k Q k since c ∗ ≤ c ˉ k + 1 ≤ c ˉ k c^*\le\bar{c}_{k+1}\le\bar{c}_k c ∗ ≤ c ˉ k + 1 ≤ c ˉ k ; its image is ( c ∗ , 0 ) ⪰ ( c ∗ , r ∗ ) (c^*,0)\succeq(c^*,r^*) ( c ∗ , 0 ) ⪰ ( c ∗ , r ∗ ) . If σ j = 1 \sigma_j=1 σ j = 1 , the candidate x A = ( c ∗ , max { 0 , r ∗ − 1 } ) x_A=(c^*,\max\{0,r^*-1\}) x A = ( c ∗ , max { 0 , r ∗ − 1 }) lies in Q k Q_k Q k for the same reason; its run length becomes min { ℓ + 1 , max { 0 , r ∗ − 1 } + 1 } ≥ r ∗ \min\{\ell+1,\max\{0,r^*-1\}+1\}\ge r^* min { ℓ + 1 , max { 0 , r ∗ − 1 } + 1 } ≥ r ∗ because r ∗ ≤ ℓ + 1 r^*\le\ell+1 r ∗ ≤ ℓ + 1 , and its coverage index cannot increase, so its image dominates g g g . For x B = ( c B , ℓ ) x_B=(c_B,\ell) x B = ( c B , ℓ ) with c B = min { D + 1 , h i + 1 } c_B=\min\{D+1,h_i+1\} c B = min { D + 1 , h i + 1 } and l o ≤ h i l_o\le h_i l o ≤ h i , we have h i ≥ 0 h_i\ge0 h i ≥ 0 and h i ≤ b − s = b + ℓ − k − 1 h_i\le b-s=b+\ell-k-1 h i ≤ b − s = b + ℓ − k − 1 , so c B ≤ min { D + 1 , b + ℓ − k } = c ˉ k c_B\le\min\{D+1,b+\ell-k\}=\bar{c}_k c B ≤ min { D + 1 , b + ℓ − k } = c ˉ k and x B ∈ Q k x_B\in Q_k x B ∈ Q k . Its image completes the witness, with run length ℓ + 1 ≥ r ∗ \ell+1\ge r^* ℓ + 1 ≥ r ∗ ; since l o ≤ h i l_o\le h_i l o ≤ h i and h i ≥ c B − 1 h_i\ge c_B-1 h i ≥ c B − 1 , the coverage index becomes min { c B , l o } ≤ l o ≤ c ∗ \min\{c_B,l_o\}\le l_o\le c^* min { c B , l o } ≤ l o ≤ c ∗ .
Every predecessor dominates a candidate. Let q = ( c , r ) ∈ Pre j q=(c,r)\in\operatorname{Pre}_j q = ( c , r ) ∈ Pre j with image ( c + , r + ) ≠ ⊥ (c^+,r^+)\ne\bot ( c + , r + ) = ⊥ , c + ≤ c ∗ c^+\le c^* c + ≤ c ∗ and r + ≥ r ∗ r^+\ge r^* r + ≥ r ∗ . If σ j = 0 \sigma_j=0 σ j = 0 , then r + = 0 ≥ r ∗ r^+=0\ge r^* r + = 0 ≥ r ∗ forces r ∗ = 0 r^*=0 r ∗ = 0 , and c = c + ≤ c ∗ c=c^+\le c^* c = c + ≤ c ∗ , so ( c ∗ , 0 ) ⪯ q (c^*,0)\preceq q ( c ∗ , 0 ) ⪯ q . If σ j = 1 \sigma_j=1 σ j = 1 and c ≤ c ∗ c\le c^* c ≤ c ∗ , then r + = min { ℓ + 1 , r + 1 } ≥ r ∗ r^+=\min\{\ell+1,r+1\}\ge r^* r + = min { ℓ + 1 , r + 1 } ≥ r ∗ gives r ≥ r ∗ − 1 r\ge r^*-1 r ≥ r ∗ − 1 , so x A ⪯ q x_A\preceq q x A ⪯ q . If σ j = 1 \sigma_j=1 σ j = 1 and c > c ∗ c>c^* c > c ∗ , then c + < c c^+<c c + < c , which requires a completion, so r ≥ ℓ r\ge\ell r ≥ ℓ , and the first branch of (11) with l o < c l_o<c l o < c : l o ≤ h i l_o\le h_i l o ≤ h i , h i ≥ c − 1 h_i\ge c-1 h i ≥ c − 1 and c + = l o ≤ c ∗ c^+=l_o\le c^* c + = l o ≤ c ∗ . Hence x B ∈ X j x_B\in X_j x B ∈ X j , and c ≤ min { D + 1 , h i + 1 } = c B c\le\min\{D+1,h_i+1\}=c_B c ≤ min { D + 1 , h i + 1 } = c B together with r ≥ ℓ r\ge\ell r ≥ ℓ gives x B ⪯ q x_B\preceq q x B ⪯ q .
This establishes (23). Each X j X_j X j has at most two elements, so ∣ X 1 × ⋯ × X n r ∣ ≤ 2 n r |X_1\times\cdots\times X_{n_r}|\le2^{n_r} ∣ X 1 × ⋯ × X n r ∣ ≤ 2 n r .
Theorem 25 (restated). For every k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] , ρ ∈ R \rho\in\mathcal{R} ρ ∈ R and q ∈ Q ∪ { ⊥ } q\in Q\cup\{\bot\} q ∈ Q ∪ { ⊥ } , Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 iff m ⪯ q m\preceq q m ⪯ q for some m ∈ M k ( ρ ) m\in M_k(\rho) m ∈ M k ( ρ ) . Hence the plain recursion (12)–(13) and the ordered recursion (14) certify identical sets on the same library.
Proof: Backward induction on k k k .
Base. By (12), Win H ( ρ , q ) = 1 \operatorname{Win}_H(\rho,q)=1 Win H ( ρ , q ) = 1 iff RA H ( ρ ) \operatorname{RA}_H(\rho) RA H ( ρ ) , P ρ ⊆ Z p o s t P_\rho\subseteq Z_{\mathrm{post}} P ρ ⊆ Z post and Acc ( q ) \operatorname{Acc}(q) Acc ( q ) . Now Acc ( q ) \operatorname{Acc}(q) Acc ( q ) iff q ≠ ⊥ q\ne\bot q = ⊥ and c j = 0 c_j=0 c j = 0 for all j j j , iff q ⪰ ( ( 0 , 0 ) ) j q\succeq((0,0))_j q ⪰ (( 0 , 0 ) ) j . This matches the initialization in (14).
Step. Assume the claim at k + 1 ≤ H k+1\le H k + 1 ≤ H . If RA k ( ρ ) \operatorname{RA}_k(\rho) RA k ( ρ ) fails, both sides are false. Otherwise, by (13),
Win k ( ρ , q ) = 1 ⟺ q ∈ Q k ∧ ∃ e : ρ e = ρ , Win k + 1 ( ρ e ′ , Γ k + 1 ( q , σ e ) ) = 1 \operatorname{Win}_k(\rho,q)=1
\Longleftrightarrow q\in Q_k\land\exists e:\rho_e=\rho,\ \operatorname{Win}_{k+1}(\rho'_e,\Gamma_{k+1}(q,\sigma_e))=1 Win k ( ρ , q ) = 1 ⟺ q ∈ Q k ∧ ∃ e : ρ e = ρ , Win k + 1 ( ρ e ′ , Γ k + 1 ( q , σ e )) = 1 ⟺ q ∈ Q k ∧ ∃ e , ∃ g ∈ M k + 1 ( ρ e ′ ) : g ⪯ Γ k + 1 ( q , σ e ) \Longleftrightarrow q\in Q_k\land\exists e,\ \exists g\in M_{k+1}(\rho'_e):g\preceq\Gamma_{k+1}(q,\sigma_e) ⟺ q ∈ Q k ∧ ∃ e , ∃ g ∈ M k + 1 ( ρ e ′ ) : g ⪯ Γ k + 1 ( q , σ e ) ⟺ ∃ e , ∃ g ∈ M k + 1 ( ρ e ′ ) : q ∈ Pre k ( g , σ e ) . \Longleftrightarrow\exists e,\ \exists g\in M_{k+1}(\rho'_e):q\in\operatorname{Pre}_k(g,\sigma_e). ⟺ ∃ e , ∃ g ∈ M k + 1 ( ρ e ′ ) : q ∈ Pre k ( g , σ e ) . The second equivalence is the induction hypothesis; if Γ k + 1 ( q , σ e ) = ⊥ \Gamma_{k+1}(q,\sigma_e)=\bot Γ k + 1 ( q , σ e ) = ⊥ , both sides are false, since Win \operatorname{Win} Win vanishes at ⊥ \bot ⊥ and no g ∈ Q g\in Q g ∈ Q satisfies g ⪯ ⊥ g\preceq\bot g ⪯ ⊥ . The elements of M k + 1 ( ρ e ′ ) M_{k+1}(\rho'_e) M k + 1 ( ρ e ′ ) lie in Q k + 1 Q_{k+1} Q k + 1 , as required by Lemma 24, because Win k + 1 ( ρ e ′ , g ) = 1 \operatorname{Win}_{k+1}(\rho'_e,g)=1 Win k + 1 ( ρ e ′ , g ) = 1 implies g ∈ Q k + 1 g\in Q_{k+1} g ∈ Q k + 1 (for k + 1 < H k+1<H k + 1 < H by (13); for k + 1 = H k+1=H k + 1 = H because Acc ( g ) \operatorname{Acc}(g) Acc ( g ) implies c j = 0 ≤ c ˉ j , H c_j=0\le\bar{c}_{j,H} c j = 0 ≤ c ˉ j , H ). By Lemma 24, each Pre k ( g , σ e ) \operatorname{Pre}_k(g,\sigma_e) Pre k ( g , σ e ) is upward closed in the finite poset Q Q Q , so q q q belongs to it iff m ⪯ q m\preceq q m ⪯ q for some m ∈ min Pre k ( g , σ e ) m\in\min\operatorname{Pre}_k(g,\sigma_e) m ∈ min Pre k ( g , σ e ) . Let U U U be the union of these minimal sets over all e e e and g g g . Then Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 iff q q q dominates some element of U U U , iff q q q dominates some element of min U = M k ( ρ ) \min U=M_k(\rho) min U = M k ( ρ ) .
Theorem 26 (restated). Let Assumption 4 hold, let L \mathcal{L} L be verified, and let T ^ k ( q ) = ⋃ { P ρ : Win k ( ρ , q ) = 1 } \widehat{\mathcal{T}}_k(q)=\bigcup\{P_\rho:\operatorname{Win}_k(\rho,q)=1\} T k ( q ) = ⋃ { P ρ : Win k ( ρ , q ) = 1 } . Then, for all k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] : (a) q ⪯ q ′ q\preceq q' q ⪯ q ′ implies T ^ k ( q ) ⊆ T ^ k ( q ′ ) \widehat{\mathcal{T}}_k(q)\subseteq\widehat{\mathcal{T}}_k(q') T k ( q ) ⊆ T k ( q ′ ) ; (b) if k < H k<H k < H , z ∈ P ρ z\in P_\rho z ∈ P ρ and Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 , then Adm k ( z , q ) \operatorname{Adm}_k(z,q) Adm k ( z , q ) holds and some edge e e e with ρ e = ρ \rho_e=\rho ρ e = ρ satisfies v = F e z + + g e v=F_e z^++g_e v = F e z + + g e for z + ∈ P ρ e ′ z^+\in P_{\rho'_e} z + ∈ P ρ e ′ , σ e ≤ χ ( C z + ) \sigma_e\le\chi(Cz^+) σ e ≤ χ ( C z + ) , and z + ∈ T ^ k + 1 ( Γ k + 1 ( q , β ) ) z^+\in\widehat{\mathcal{T}}_{k+1}(\Gamma_{k+1}(q,\beta)) z + ∈ T k + 1 ( Γ k + 1 ( q , β )) for every β ≥ σ e \beta\ge\sigma_e β ≥ σ e ; (c) T ^ H ( q ) ≠ ∅ \widehat{\mathcal{T}}_H(q)\ne\varnothing T H ( q ) = ∅ implies Acc ( q ) \operatorname{Acc}(q) Acc ( q ) , and T ^ H ( q ) ⊆ Z p o s t \widehat{\mathcal{T}}_H(q)\subseteq Z_{\mathrm{post}} T H ( q ) ⊆ Z post ; (d) T ^ k ( q ) ⊆ T k ( q ) \widehat{\mathcal{T}}_k(q)\subseteq\mathcal{T}_k(q) T k ( q ) ⊆ T k ( q ) .
Proof: (a) By Theorem 25, Win k ( ρ , ⋅ ) \operatorname{Win}_k(\rho,\cdot) Win k ( ρ , ⋅ ) is the indicator of the upward closure of M k ( ρ ) M_k(\rho) M k ( ρ ) , so it is monotone, and so is the union T ^ k \widehat{\mathcal{T}}_k T k .
(b) Let z ∈ P ρ z\in P_\rho z ∈ P ρ with Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 and k < H k<H k < H . By (13), q ∈ Q k q\in Q_k q ∈ Q k , RA k ( ρ ) \operatorname{RA}_k(\rho) RA k ( ρ ) holds, and some edge e e e with ρ e = ρ \rho_e=\rho ρ e = ρ satisfies Win k + 1 ( ρ e ′ , Γ k + 1 ( q , σ e ) ) = 1 \operatorname{Win}_{k+1}(\rho'_e,\Gamma_{k+1}(q,\sigma_e))=1 Win k + 1 ( ρ e ′ , Γ k + 1 ( q , σ e )) = 1 . RA k ( ρ ) \operatorname{RA}_k(\rho) RA k ( ρ ) gives z ∈ Z z\in Z z ∈ Z and C z ∈ S ~ k Cz\in\widetilde{S}_k C z ∈ S k , hence Adm k ( z , q ) \operatorname{Adm}_k(z,q) Adm k ( z , q ) . (V1) gives v = F e z + g e ∈ V v=F_e z+g_e\in V v = F e z + g e ∈ V . (V2) gives z + ∈ P ρ e ′ z^+\in P_{\rho'_e} z + ∈ P ρ e ′ . (V3) gives C z + ∈ R ~ j Cz^+\in\widetilde{R}_j C z + ∈ R j whenever σ e = 1 \sigma_e=1 σ e = 1 , i.e., σ e ≤ χ ( C z + ) \sigma_e\le\chi(Cz^+) σ e ≤ χ ( C z + ) . For every β ≥ σ e \beta\ge\sigma_e β ≥ σ e , Lemma 18 gives Γ k + 1 ( q , β ) ⪰ Γ k + 1 ( q , σ e ) \Gamma_{k+1}(q,\beta)\succeq\Gamma_{k+1}(q,\sigma_e) Γ k + 1 ( q , β ) ⪰ Γ k + 1 ( q , σ e ) , and by (a) applied to Win k + 1 ( ρ e ′ , ⋅ ) \operatorname{Win}_{k+1}(\rho'_e,\cdot) Win k + 1 ( ρ e ′ , ⋅ ) , Win k + 1 ( ρ e ′ , Γ k + 1 ( q , β ) ) = 1 \operatorname{Win}_{k+1}(\rho'_e,\Gamma_{k+1}(q,\beta))=1 Win k + 1 ( ρ e ′ , Γ k + 1 ( q , β )) = 1 . Therefore z + ∈ P ρ e ′ ⊆ T ^ k + 1 ( Γ k + 1 ( q , β ) ) z^+\in P_{\rho'_e}\subseteq\widehat{\mathcal{T}}_{k+1}(\Gamma_{k+1}(q,\beta)) z + ∈ P ρ e ′ ⊆ T k + 1 ( Γ k + 1 ( q , β )) .
(c) If T ^ H ( q ) ≠ ∅ \widehat{\mathcal{T}}_H(q)\ne\varnothing T H ( q ) = ∅ , some ρ \rho ρ with P ρ ≠ ∅ P_\rho\ne\varnothing P ρ = ∅ has Win H ( ρ , q ) = 1 \operatorname{Win}_H(\rho,q)=1 Win H ( ρ , q ) = 1 , so Acc ( q ) \operatorname{Acc}(q) Acc ( q ) by (12). Every such ρ \rho ρ has P ρ ⊆ Z p o s t P_\rho\subseteq Z_{\mathrm{post}} P ρ ⊆ Z post .
(d) Backward induction on k k k . At H H H , z ∈ T ^ H ( q ) z\in\widehat{\mathcal{T}}_H(q) z ∈ T H ( q ) lies in some P ρ P_\rho P ρ with Win H ( ρ , q ) = 1 \operatorname{Win}_H(\rho,q)=1 Win H ( ρ , q ) = 1 . Then Acc ( q ) \operatorname{Acc}(q) Acc ( q ) , z ∈ Z p o s t z\in Z_{\mathrm{post}} z ∈ Z post , and C z ∈ S ~ H Cz\in\widetilde{S}_H C z ∈ S H by RA H ( ρ ) \operatorname{RA}_H(\rho) RA H ( ρ ) , so z ∈ T H ( q ) z\in\mathcal{T}_H(q) z ∈ T H ( q ) . For k < H k<H k < H , let z ∈ T ^ k ( q ) z\in\widehat{\mathcal{T}}_k(q) z ∈ T k ( q ) . Part (b) with β = χ ( C z + ) \beta=\chi(Cz^+) β = χ ( C z + ) gives Adm k ( z , q ) \operatorname{Adm}_k(z,q) Adm k ( z , q ) and an input v ∈ V v\in V v ∈ V with z + ∈ T ^ k + 1 ( Γ k + 1 ( q , χ ( C z + ) ) ) z^+\in\widehat{\mathcal{T}}_{k+1}(\Gamma_{k+1}(q,\chi(Cz^+))) z + ∈ T k + 1 ( Γ k + 1 ( q , χ ( C z + ))) , which is contained in T k + 1 ( Γ k + 1 ( q , χ ( C z + ) ) ) \mathcal{T}_{k+1}(\Gamma_{k+1}(q,\chi(Cz^+))) T k + 1 ( Γ k + 1 ( q , χ ( C z + ))) by the induction hypothesis. Hence z ∈ T k ( q ) z\in\mathcal{T}_k(q) z ∈ T k ( q ) .
Branching libraries
Proposition 28 (restated). Fix k ∈ [ − D , H − 1 ] k\in[-D,H-1] k ∈ [ − D , H − 1 ] , an edge with branches ( ρ b , σ b ) (\rho_b,\sigma^b) ( ρ b , σ b ) , b = 1 , … , B b=1,\ldots,B b = 1 , … , B , B ≥ 1 B\ge1 B ≥ 1 , and targets g b = ( ( c j b , r j b ) ) j ∈ Q k + 1 g^b=((c_j^b,r_j^b))_j\in Q_{k+1} g b = (( c j b , r j b ) ) j ∈ Q k + 1 , and let Pre k d = { q ∈ Q k : Γ k + 1 ( q , σ b ) ⪰ g b ∀ b } \operatorname{Pre}_k^d=\{q\in Q_k:\Gamma_{k+1}(q,\sigma^b)\succeq g^b\ \forall b\} Pre k d = { q ∈ Q k : Γ k + 1 ( q , σ b ) ⪰ g b ∀ b } . For task j j j let I j 0 = { b : σ j b = 0 } I_j^0=\{b:\sigma_j^b=0\} I j 0 = { b : σ j b = 0 } and I j 1 = { b : I_j^1=\{b: I j 1 = { b :
σ j b = 1 \sigma_j^b=1 σ j b = 1 . If r j b > 0 r_j^b>0 r j b > 0 for some b ∈ I j 0 b\in I_j^0 b ∈ I j 0 , let X j = ∅ X_j=\varnothing X j = ∅ . Otherwise let C j 0 = min { c ˉ j , k , min b ∈ I j 0 c j b } C_j^0=\min\{\bar c_{j,k},\min_{b\in I_j^0}c_j^b\} C j 0 = min { c ˉ j , k , min b ∈ I j 0 c j b } (the inner minimum is + ∞ +\infty + ∞ if I j 0 = ∅ I_j^0=\varnothing I j 0 = ∅ ); let X j = { ( C j 0 , 0 ) } X_j=\{(C_j^0,0)\} X j = {( C j 0 , 0 )} if I j 1 = ∅ I_j^1=\varnothing I j 1 = ∅ , and otherwise, with C j 1 = min b ∈ I j 1 c j b C_j^1=\min_{b\in I_j^1}c_j^b C j 1 = min b ∈ I j 1 c j b , R j 1 = max b ∈ I j 1 r j b R_j^1=\max_{b\in I_j^1}r_j^b R j 1 = max b ∈ I j 1 r j b and s j s_j s j , l o j lo_j l o j , h i j hi_j h i j as in Lemma 24, X j = { ( min { C j 0 , C j 1 } , max { 0 , R j 1 − 1 } ) } ∪ { ( min { C j 0 , D + 1 , h i j + 1 } , ℓ j ) : l o j ≤ h i j , l o j ≤ C j 1 } X_j=\{(\min\{C_j^0,C_j^1\},\max\{0,R_j^1-1\})\}\cup\{(\min\{C_j^0,D+1,hi_j+1\},\ell_j):lo_j\le hi_j,\ lo_j\le C_j^1\} X j = {( min { C j 0 , C j 1 } , max { 0 , R j 1 − 1 })} ∪ {( min { C j 0 , D + 1 , h i j + 1 } , ℓ j ) : l o j ≤ h i j , l o j ≤ C j 1 } . Then Pre k ∀ \operatorname{Pre}_k^\forall Pre k ∀ is upward closed in Q Q Q , X 1 × ⋯ × X n r ⊆ Pre k ∀ X_1\times\cdots\times X_{n_r}\subseteq\operatorname{Pre}_k^\forall X 1 × ⋯ × X n r ⊆ Pre k ∀ , and min Pre k ∀ = min ( X 1 × ⋯ × X n r ) \min\operatorname{Pre}_k^\forall=\min(X_1\times\cdots\times X_{n_r}) min Pre k ∀ = min ( X 1 × ⋯ × X n r ) . In particular, for every B B B and every fixed target vector there are at most 2 n r 2^{n_r} 2 n r candidates.
Proof. Upward closure is as in Lemma 24: if q ∈ Pre k ∀ q\in\operatorname{Pre}_k^\forall q ∈ Pre k ∀ and q ⪯ q ′ ∈ Q q\preceq q'\in Q q ⪯ q ′ ∈ Q , then q ′ ∈ Q k q'\in Q_k q ′ ∈ Q k and Γ k + 1 ( q ′ , σ b ) ⪰ Γ k + 1 ( q , σ b ) ⪰ g b \Gamma_{k+1}(q',\sigma^b)\succeq\Gamma_{k+1}(q,\sigma^b)\succeq g^b Γ k + 1 ( q ′ , σ b ) ⪰ Γ k + 1 ( q , σ b ) ⪰ g b for every b b b by Lemma 18.
Reduction to one task. Membership in Q k Q_k Q k , the update and the order are componentwise, and every g b ≠ ⊥ g^b\ne\bot g b = ⊥ , so Pre k ∀ = ∏ j Pre j ∀ \operatorname{Pre}_k^\forall=\prod_j\operatorname{Pre}_j^\forall Pre k ∀ = ∏ j Pre j ∀ with Pre j ∀ = { q j ∈ Q j : c j ≤ c ˉ j , k , Γ j , k + 1 ( q j , σ j b ) ⪰ g j b ∀ b } \operatorname{Pre}_j^\forall=\{q_j\in Q_j:c_j\le\bar c_{j,k},\ \Gamma_{j,k+1}(q_j,\sigma_j^b)\succeq g_j^b\ \forall b\} Pre j ∀ = { q j ∈ Q j : c j ≤ c ˉ j , k , Γ j , k + 1 ( q j , σ j b ) ⪰ g j b ∀ b } ; minimal elements of a product are products of minimal elements. Fix j j j and drop the index.
Grouping by bit. Γ k + 1 ( q , σ b ) \Gamma_{k+1}(q,\sigma^b) Γ k + 1 ( q , σ b ) depends on b b b only through the bit, so the condition reads Γ k + 1 ( q , 0 ) ⪰ g b \Gamma_{k+1}(q,0)\succeq g^b Γ k + 1 ( q , 0 ) ⪰ g b for b ∈ I 0 b\in I^0 b ∈ I 0 and Γ k + 1 ( q , 1 ) ⪰ g b \Gamma_{k+1}(q,1)\succeq g^b Γ k + 1 ( q , 1 ) ⪰ g b for b ∈ I 1 b\in I^1 b ∈ I 1 . On Q j Q_j Q j the order ⪯ \preceq ⪯ is a lattice with join ( c , r ) ∨ ( c ′ , r ′ ) = ( min { c , c ′ } , max { r , r ′ } ) (c,r)\vee(c',r')=(\min\{c,c'\},\max\{r,r'\}) ( c , r ) ∨ ( c ′ , r ′ ) = ( min { c , c ′ } , max { r , r ′ }) , and an element dominates every g b g^b g b of a set iff it dominates their join; the join of elements of Q k + 1 Q_{k+1} Q k + 1 lies in Q k + 1 Q_{k+1} Q k + 1 . With bit 0 0 0 the run length resets and no witness completes, so Γ k + 1 ( q , 0 ) = ( c , 0 ) \Gamma_{k+1}(q,0)=(c,0) Γ k + 1 ( q , 0 ) = ( c , 0 ) unless it is ⊥ \bot ⊥ . Hence the bit-0 condition holds iff r b = 0 r^b=0 r b = 0 for all b ∈ I 0 b\in I^0 b ∈ I 0 and c ≤ c b c\le c^b c ≤ c b for all b ∈ I 0 b\in I^0 b ∈ I 0 (the failure test is then implied by c b ≤ c ˉ k + 1 c^b\le\bar c_{k+1} c b ≤ c ˉ k + 1 ). If some r b > 0 r^b>0 r b > 0 , Pre j ∀ = ∅ = X j \operatorname{Pre}_j^\forall=\varnothing=X_j Pre j ∀ = ∅ = X j . Otherwise, together with q ∈ Q k q\in Q_k q ∈ Q k , the bit-0 condition and membership define U 0 = { ( c , r ) ∈ Q j : c ≤ C 0 } U^0=\{(c,r)\in Q_j:c\le C^0\} U 0 = {( c , r ) ∈ Q j : c ≤ C 0 } , which is upward closed with the single minimal element ( C 0 , 0 ) (C^0,0) ( C 0 , 0 ) . If I 1 = ∅ I^1=\varnothing I 1 = ∅ , Pre j ∀ = U 0 \operatorname{Pre}_j^\forall=U^0 Pre j ∀ = U 0 and min Pre j ∀ = { ( C 0 , 0 ) } = X j \min\operatorname{Pre}_j^\forall=\{(C^0,0)\}=X_j min Pre j ∀ = {( C 0 , 0 )} = X j . Otherwise the bit-1 condition is q ∈ Pre j ( G 1 , 1 ) q\in\operatorname{Pre}_j(G^1,1) q ∈ Pre j ( G 1 , 1 ) with the joined target G 1 = ( C 1 , R 1 ) ∈ Q k + 1 G^1=(C^1,R^1)\in Q_{k+1} G 1 = ( C 1 , R 1 ) ∈ Q k + 1 , and Pre j ∀ = U 0 ∩ Pre j ( G 1 , 1 ) \operatorname{Pre}_j^\forall=U^0\cap\operatorname{Pre}_j(G^1,1) Pre j ∀ = U 0 ∩ Pre j ( G 1 , 1 ) .
Intersection. By Lemma 24, Pre j ( G 1 , 1 ) \operatorname{Pre}_j(G^1,1) Pre j ( G 1 , 1 ) is upward closed with minimal elements among x A = ( C 1 , max { 0 , R 1 − 1 } ) x_A=(C^1,\max\{0,R^1-1\}) x A = ( C 1 , max { 0 , R 1 − 1 }) and, if l o ≤ h i lo\le hi l o ≤ hi and l o ≤ C 1 lo\le C^1 l o ≤ C 1 , x B = ( min { D + 1 , h i + 1 } , ℓ ) x_B=(\min\{D+1,hi+1\},\ell) x B = ( min { D + 1 , hi + 1 } , ℓ ) . The intersection of two upward closed sets is generated by the joins of their generators: every q ∈ Pre j ∀ q\in\operatorname{Pre}_j^\forall q ∈ Pre j ∀ dominates ( C 0 , 0 ) (C^0,0) ( C 0 , 0 ) and some x ∈ { x A , x B } x\in\{x_A,x_B\} x ∈ { x A , x B } , hence x ∨ ( C 0 , 0 ) ⪯ q x\vee(C^0,0)\preceq q x ∨ ( C 0 , 0 ) ⪯ q ; conversely each join dominates a generator of each set and lies in Q j Q_j Q j , so it belongs to both. The joins are ( min { C 0 , C 1 } , max { 0 , R 1 − 1 } ) (\min\{C^0,C^1\},\max\{0,R^1-1\}) ( min { C 0 , C 1 } , max { 0 , R 1 − 1 }) and ( min { C 0 , D + 1 , h i + 1 } , ℓ ) (\min\{C^0,D+1,hi+1\},\ell) ( min { C 0 , D + 1 , hi + 1 } , ℓ ) , which is X j X_j X j . As in Lemma 24, X j ⊆ Pre j ∀ X_j\subseteq\operatorname{Pre}_j^\forall X j ⊆ Pre j ∀ and every element of Pre j ∀ \operatorname{Pre}_j^\forall Pre j ∀ dominates an element of X j X_j X j , so min Pre j ∀ = min X j \min\operatorname{Pre}_j^\forall=\min X_j min Pre j ∀ = min X j , and ∣ X j ∣ ≤ 2 |X_j|\le2 ∣ X j ∣ ≤ 2 . ■
Lemma S3 (Suffix simulation). Let ι ( q ) = ( ( c j , … , D ) , r j ) \iota(q)=((c_j,\ldots,D),r_j) ι ( q ) = (( c j , … , D ) , r j ) map compact states to explicit (served set, run length) states, and let Γ k b i t \Gamma_k^{\mathrm{bit}} Γ k bit be the explicit update that adds the offsets served by a witness completing at k k k and returns failure if some offset is expired at k k k . For every k k k , q ∈ Q q\in Q q ∈ Q and bit vector β \beta β : Γ k ( q , β ) \Gamma_k(q,\beta) Γ k ( q , β ) is failure iff Γ k ( q , β ) = ⊥ \Gamma_k(q,\beta)=\bot Γ k ( q , β ) = ⊥ , and otherwise equals ι ( Γ k ( q , β ) ) \iota(\Gamma_k(q,\beta)) ι ( Γ k ( q , β )) . Moreover ι ( q ) \iota(q) ι ( q ) is not failed at k k k iff q ∈ Q k q\in Q_k q ∈ Q k .
Proof. Fix one task (failure and the update are componentwise) and q = ( c , r ) q=(c,r) q = ( c , r ) . An offset d d d is expired at k k k iff d d d is unserved and d ≥ b + ℓ − k d\ge b+\ell-k d ≥ b + ℓ − k . For ι ( q ) \iota(q) ι ( q ) the unserved offsets are [ 0 , c − 1 ] [0,c-1] [ 0 , c − 1 ] , so ι ( q ) \iota(q) ι ( q ) is failed iff c − 1 ≥ max { 0 , b + ℓ − k } c-1\ge\max\{0,b+\ell-k\} c − 1 ≥ max { 0 , b + ℓ − k } , i.e., iff c ≥ ℓ c\ge\ell c ≥ ℓ recall c ≤ D + 1 c\le D+1 c ≤ D + 1 ; this is the last claim. The run length evolves identically in both monitors. If no witness completes at k k k , or the served interval [ l o , h i ] [lo,hi] [ l o , hi ] of the completing witness ( s = k − ℓ ) (s=k-\ell) ( s = k − ℓ ) is empty, both monitors keep the served set and the claim follows from the failure characterization. If l o ≤ h i lo\le hi l o ≤ hi and h i ≥ c − 1 hi\ge c-1 hi ≥ c − 1 , then [ l o , h i ] ∪ [ c , D ] = [ min { c , l o } , D ] = [ c + ] [lo,hi]\cup[c,D]=[\min\{c,lo\},D]=[c^+] [ l o , hi ] ∪ [ c , D ] = [ min { c , l o } , D ] = [ c + ] , and again both fail iff c + > c ˉ k c^+>\bar c_k c + > c ˉ k . If l o ≤ h i < c − 1 lo\le hi<c-1 l o ≤ hi < c − 1 , then h i < D hi<D hi < D , so h i = b − s = b + ℓ − k hi=b-s=b+\ell-k hi = b − s = b + ℓ − k ; offset c − 1 c-1 c − 1 is unserved and c − 1 > b + ℓ − k c-1>b+\ell-k c − 1 > b + ℓ − k , so it is expired and the explicit monitor fails, while c + = c ≥ max { 0 , b + ℓ − k } + 1 > c ˉ k c^+=c\ge\max\{0,b+\ell-k\}+1>\bar c_k c + = c ≥ max { 0 , b + ℓ − k } + 1 > c ˉ k gives Γ k ( q , β ) = ⊥ \Gamma_k(q,\beta)=\bot Γ k ( q , β ) = ⊥ . ■
Theorem 29 (restated). Let B \mathcal B B be a branching library, K p o s t \mathcal K_{\mathrm{post}} K post a set of regions and Win the recursion (15) –(16) . (a) For every k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] and ρ \rho ρ , Win k ( ρ , ⋅ ) \operatorname{Win}_k(\rho,\cdot) Win k ( ρ , ⋅ ) is upward closed in Q ∪ { ⊥ } Q\cup\{\bot\} Q ∪ { ⊥ } , and Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 iff m ⪯ q m\preceq q m ⪯ q for some m ∈ M k ( ρ ) m\in M_k(\rho) m ∈ M k ( ρ ) , where M H ( ρ ) = { ( ( 0 , 0 ) ) j } M_H(\rho)=\{((0,0))_j\} M H ( ρ ) = {(( 0 , 0 ) ) j } if RA H ( ρ ) \operatorname{RA}_H(\rho) RA H ( ρ ) and ρ ∈ K p o s t \rho\in\mathcal K_{\mathrm{post}} ρ ∈ K post (otherwise) and M k ( ρ ) = { min Pre k ∀ ( ( p b ) b ) : e ∈ A ( ρ ) , g b ∈ M k + 1 ( ρ b ) } M_k(\rho)=\{\min\operatorname{Pre}_k^\forall((p_b)_{b}):e\in A(\rho),\ g^b\in M_{k+1}(\rho_b)\} M k ( ρ ) = { min Pre k ∀ (( p b ) b ) : e ∈ A ( ρ ) , g b ∈ M k + 1 ( ρ b )} if RA k ( ρ ) \operatorname{RA}_k(\rho) RA k ( ρ ) (otherwise). (b) The explicit recursion over (served set, run length) states, with the same library, satisfies Win k b i t ( ρ , ι ( q ) ) = Win k ( ρ , q ) \operatorname{Win}^{\mathrm{bit}}_k(\rho,\iota(q))=\operatorname{Win}_k(\rho,q) Win k bit ( ρ , ι ( q )) = Win k ( ρ , q ) for all k k k , ρ \rho ρ and q ∈ Q q\in Q q ∈ Q . (c) If every edge has a single branch, (16) is (13) and Q Q Q is the set of Theorem 25.
Proof. (a) Backward induction on k k k . At H H H , Win H ( ρ , q ) = 1 \operatorname{Win}_H(\rho,q)=1 Win H ( ρ , q ) = 1 iff RA H ( ρ ) \operatorname{RA}_H(\rho) RA H ( ρ ) , ρ ∈ K p o s t \rho\in\mathcal K_{\mathrm{post}} ρ ∈ K post and q ∈ { ( ( 0 , 0 ) ) j } q\in\{((0,0))_j\} q ∈ {(( 0 , 0 ) ) j } , so M H M_H M H and is upward closed. Let k < H k<H k < H and assume the claim at k + 1 k+1 k + 1 . If RA k ( ρ ) \operatorname{RA}_k(\rho) RA k ( ρ ) fails both sides vanish. Otherwise, by (16) and the induction hypothesis, Win k ( ρ , q ) = 1 \operatorname{Win}_k(\rho,q)=1 Win k ( ρ , q ) = 1 iff q ∈ Q k q\in Q_k q ∈ Q k and there are an edge e ∈ A ( ρ ) e\in A(\rho) e ∈ A ( ρ ) and, for every branch b b b , a generator g b ∈ M k + 1 ( ρ b ) g^b\in M_{k+1}(\rho_b) g b ∈ M k + 1 ( ρ b ) with g b ⪯ Γ k + 1 ( q , σ b ) g^b\preceq\Gamma_{k+1}(q,\sigma^b) g b ⪯ Γ k + 1 ( q , σ b ) (if some Γ k + 1 ( q , σ b ) = ⊥ \Gamma_{k+1}(q,\sigma^b)=\bot Γ k + 1 ( q , σ b ) = ⊥ both sides vanish). This is q ∈ Pre k ∀ ( ( g b ) b ) q\in\operatorname{Pre}_k^\forall((g^b)_b) q ∈ Pre k ∀ (( g b ) b ) for some e e e and some target vector. Each Pre k ∀ \operatorname{Pre}_k^\forall Pre k ∀ is upward closed in the finite poset Q Q Q (Proposition 28), so membership is domination of one of its minimal elements, and the union over e e e and target vectors is generated by M k ( ρ ) M_k(\rho) M k ( ρ ) . Upward closure of Win k ( ρ , ⋅ ) \operatorname{Win}_k(\rho,\cdot) Win k ( ρ , ⋅ ) follows, and ⊥ \bot ⊥ dominates no generator.
(b) Backward induction. At H H H , ι ( q ) \iota(q) ι ( q ) serves every offset iff c j = 0 c_j=0 c j = 0 for all j j j , iff Acc ( q ) \operatorname{Acc}(q) Acc ( q ) . For k < H k<H k < H the explicit recursion requires only that no offset failed at k k k , which by Lemma S3 is q ∈ Q k q\in Q_k q ∈ Q k , and evaluates every branch at Γ k + 1 b i t ( ι ( q ) , σ b ) \Gamma^{\mathrm{bit}}_{k+1}(\iota(q),\sigma^b) Γ k + 1 bit ( ι ( q ) , σ b ) , which by the same lemma is failure exactly when Γ k + 1 ( q , σ b ) = ⊥ \Gamma_{k+1}(q,\sigma^b)=\bot Γ k + 1 ( q , σ b ) = ⊥ and otherwise ι ( Γ k + 1 ( q , σ b ) ) \iota(\Gamma_{k+1}(q,\sigma^b)) ι ( Γ k + 1 ( q , σ b )) ; the induction hypothesis gives equal branch values, hence equal disjunctions.
(c) With one branch, the conjunction in (16) has one term, and Pre k ∀ \operatorname{Pre}_k^\forall Pre k ∀ is Pre k ( ρ , σ e ) \operatorname{Pre}_k(\rho,\sigma_e) Pre k ( ρ , σ e ) of Lemma 24. ■
Theorem 30 (restated). Let B \mathcal B B be verified (Definition 27), let K p o s t \mathcal K_{\mathrm{post}} K post satisfy (17) with witness edges e p o s t ( ρ ) e_{\mathrm{post}}(\rho) e post ( ρ ) , and let x 0 ∈ P ρ 0 x_0\in P_{\rho_0} x 0 ∈ P ρ 0 , with q 0 q_0 q 0 obtained by running Γ \Gamma Γ on the actual bits of the recorded history of x 0 x_0 x 0 , satisfy Win 0 ( ρ 0 , q 0 ) = 1 \operatorname{Win}_0(\rho_0,q_0)=1 Win 0 ( ρ 0 , q 0 ) = 1 ; let the actual pre-mission states x t x_t x t , t ∈ [ − D , − 1 ] t\in[-D,-1] t ∈ [ − D , − 1 ] , satisfy every tightened safety predicate active at t t t . Let the closed loop at each k < H k<H k < H apply u k = κ e ( x k ) u_k=\kappa_e(x_k) u k = κ e ( x k ) for an edge e ∈ A ( ρ k ) e\in A(\rho_k) e ∈ A ( ρ k ) with Win k + 1 ( ρ b , Γ k + 1 ( q k , σ b ) ) = 1 \operatorname{Win}_{k+1}(\rho_b,\Gamma_{k+1}(q_k,\sigma^b))=1 Win k + 1 ( ρ b , Γ k + 1 ( q k , σ b )) = 1 for every branch b b b , then select
any branch b b b with x k + 1 ∈ P ρ b x_{k+1} \in P_{\rho_b} x k + 1 ∈ P ρ b and σ b ≤ χ ( h ( x k + 1 ) ) \sigma^b \le\chi(h(x_{k+1})) σ b ≤ χ ( h ( x k + 1 )) , and set ρ k + 1 = ρ b \rho_{k+1} = \rho_b ρ k + 1 = ρ b , q k + 1 = Γ k + 1 ( q k , χ ( h ( x k + 1 ) ) ) q_{k+1} = \Gamma_{k+1}(q_k, \chi(h(x_{k+1}))) q k + 1 = Γ k + 1 ( q k , χ ( h ( x k + 1 ))) ; for k ≥ H k \ge H k ≥ H let it apply κ e p o s t ( ρ k ) \kappa_{\mathrm{epost}}(\rho_k) κ epost ( ρ k ) and select branches in the same way. Then, for every admissible disturbance sequence, such an edge and such a branch exist at every step, Win k ( ρ k , q k ) = 1 \operatorname{Win}_k(\rho_k,q_k) = 1 Win k ( ρ k , q k ) = 1 for k ∈ [ 0 , H ] k \in[0,H] k ∈ [ 0 , H ] , the state and input constraints hold, Acc ( q H ) \operatorname{Acc}(q_H) Acc ( q H ) , and ρ k ∈ K p o s t \rho_k \in\mathcal{K}_{\mathrm{post}} ρ k ∈ K post for every k ≥ H k \ge H k ≥ H . Consequently the tightened safety tasks hold under every offset d ∈ D d \in D d ∈ D , and every reach task j j j is completed under offset d d d by nominal time b j − d + ℓ j b_j-d+\ell_j b j − d + ℓ j .
Proof. Induction on k ∈ [ 0 , H − 1 ] k \in[0,H-1] k ∈ [ 0 , H − 1 ] with hypothesis Win k ( ρ k , q k ) = 1 \operatorname{Win}_k(\rho_k,q_k)=1 Win k ( ρ k , q k ) = 1 and x k ∈ P ρ k x_k \in P_{\rho_k} x k ∈ P ρ k , true at k = 0 k=0 k = 0 . By (16), q k ∈ Q k q_k \in Q_k q k ∈ Q k , RA k ( ρ k ) \operatorname{RA}_k(\rho_k) RA k ( ρ k ) holds, so the state constraints active at k k k hold on P ρ k ∋ x k P_{\rho_k} \ni x_k P ρ k ∋ x k , and an edge e ∈ A ( ρ k ) e \in A(\rho_k) e ∈ A ( ρ k ) with Win k + 1 ( ρ b , Γ k + 1 ( q k , σ b ) ) = 1 \operatorname{Win}_{k+1}(\rho_b,\Gamma_{k+1}(q_k,\sigma^b))=1 Win k + 1 ( ρ b , Γ k + 1 ( q k , σ b )) = 1 for every b b b exists. (B1) gives u k = κ e ( x k ) ∈ U ( x k ) u_k=\kappa_e(x_k) \in U(x_k) u k = κ e ( x k ) ∈ U ( x k ) . For the realized w k w_k w k , (B2) provides a branch b b b with x k + 1 ∈ P ρ b x_{k+1} \in P_{\rho_b} x k + 1 ∈ P ρ b and σ b ≤ χ ( h ( x k + 1 ) ) \sigma^b \le\chi(h(x_{k+1})) σ b ≤ χ ( h ( x k + 1 )) ; the controller selects such a branch (if several match, any of them). By Lemma 18, q k + 1 = Γ k + 1 ( q k , χ ( h ( x k + 1 ) ) ) ⪰ Γ k + 1 ( q k , σ b ) q_{k+1}=\Gamma_{k+1}(q_k,\chi(h(x_{k+1}))) \succeq\Gamma_{k+1}(q_k,\sigma^b) q k + 1 = Γ k + 1 ( q k , χ ( h ( x k + 1 ))) ⪰ Γ k + 1 ( q k , σ b ) , and Theorem 29(a) gives Win k + 1 ( ρ b , q k + 1 ) = 1 \operatorname{Win}_{k+1}(\rho_b,q_{k+1})=1 Win k + 1 ( ρ b , q k + 1 ) = 1 . At H H H , (15) gives Acc ( q H ) \operatorname{Acc}(q_H) Acc ( q H ) , RA H ( ρ H ) \operatorname{RA}_H(\rho_H) RA H ( ρ H ) and ρ H ∈ K p o s t \rho_H \in\mathcal{K}_{\mathrm{post}} ρ H ∈ K post . For k ≥ H k \ge H k ≥ H , Proposition S5 keeps ρ k ∈ K p o s t \rho_k \in\mathcal{K}_{\mathrm{post}} ρ k ∈ K post . Since q k q_k q k is the monitor run on the actual bits from the recorded history, the compact monitor theorem gives C j ( H ) = D C_j(H)=D C j ( H ) = D for every j j j , so every reach task holds under every offset for the tightened bits. Moreover q k ∈ Q k q_k \in Q_k q k ∈ Q k for every k ≤ H k \le H k ≤ H , so no task is failed at any k ≤ H k \le H k ≤ H ; since b j − d + ℓ j ≤ H b_j-d+\ell_j \le H b j − d + ℓ j ≤ H , offset d d d is not expired at b j − d + ℓ j b_j-d+\ell_j b j − d + ℓ j , i.e., d ∈ C j ( b j − d + ℓ j ) d \in C_j(b_j-d+\ell_j) d ∈ C j ( b j − d + ℓ j ) . A safety task under offset d d d at time t t t reads x t − d x_{t-d} x t − d : for t − d ∈ [ − D , − 1 ] t-d \in[-D,-1] t − d ∈ [ − D , − 1 ] the pre-mission premise gives it, for t − d ∈ [ 0 , H ] t-d \in[0,H] t − d ∈ [ 0 , H ] the region invariant x k ∈ P ρ k x_k \in P_{\rho_k} x k ∈ P ρ k with RA k ( ρ k ) \operatorname{RA}_k(\rho_k) RA k ( ρ k ) does, and for t − d > H t-d>H t − d > H the regions of K p o s t \mathcal{K}_{\mathrm{post}} K post , which lie in the static safe set Z p o s t Z_{\mathrm{post}} Z post , do. The clock is the original task clock throughout.
Proposition S4 (Multi-successor enlargement). Let B ⊆ B ′ \mathcal{B} \subseteq\mathcal{B}' B ⊆ B ′ be branching libraries on the same regions, with the same RA and K p o s t \mathcal{K}_{\mathrm{post}} K post . Then Win k B ≤ Win k B ′ \operatorname{Win}^{\mathcal{B}}_k \le\operatorname{Win}^{\mathcal{B}'}_k Win k B ≤ Win k B ′ pointwise for every k k k . In particular, adding verified multi-successor edges to a single-successor library never shrinks the certified set; the enlargement is relative to this fixed abstraction.
Proof. Backward induction: the terminal values coincide, and at k < H k<H k < H the disjunction in (16) for B ′ \mathcal{B}' B ′ ranges over a superset of edges whose conjunctions are pointwise larger by the induction hypothesis.
Proposition S5 (Robust post-mission set). Let K p o s t \mathcal{K}_{\mathrm{post}} K post be the greatest fixed point of K ↦ { ρ ∈ K : ∃ e ∈ A ( ρ ) ∀ b … } \mathcal{K} \mapsto\{\rho\in\mathcal{K} : \exists e \in A(\rho)\ \forall b \ldots\} K ↦ { ρ ∈ K : ∃ e ∈ A ( ρ ) ∀ b … } below K 0 \mathcal{K}^0 K 0 , computed by the decreasing iteration from K 0 \mathcal{K}^0 K 0 . For a verified B \mathcal{B} B , the switching law that applies a witness edge e p o s t ( ρ ) e_{\mathrm{post}}(\rho) e post ( ρ ) in the current region keeps x k ∈ ⋃ ρ ∈ K p o s t P ρ x_k \in\bigcup_{\rho\in\mathcal{K}_{\mathrm{post}}} P_\rho x k ∈ ⋃ ρ ∈ K post P ρ for all k k k and every admissible disturbance sequence. Proof. The iteration is decreasing on a finite set, so it stops at a fixed point K p o s t \mathcal{K}_{\mathrm{post}} K post , and every ρ ∈ K p o s t \rho\in\mathcal{K}_{\mathrm{post}} ρ ∈ K post has an edge e p o s t ( ρ ) e_{\mathrm{post}}(\rho) e post ( ρ ) whose branch destinations all lie in K p o s t \mathcal{K}_{\mathrm{post}} K post . If x k ∈ P ρ k x_k \in P_{\rho_k} x k ∈ P ρ k with ρ k ∈ K p o s t \rho_k \in\mathcal{K}_{\mathrm{post}} ρ k ∈ K post , (B1) makes the input admissible and (B2) places x k + 1 x_{k+1} x k + 1 in a branch region of e p o s t ( ρ k ) , w h i c h b e l o n g s t o e_{\mathrm{post}}(\rho_k), which belongs to e post ( ρ k ) , w hi c hb e l o n g s t o \mathcal{K}_{\mathrm{post}}$. Every other fixed point below K 0 \mathcal{K}^0 K 0 is contained in each iterate, so K p o s t \mathcal{K}_{\mathrm{post}} K post is the greatest one. ■
Proposition S6 (No single invariant position box). For the unicycle (18) with W ⊇ [ − w ˉ x , w ˉ x ] × [ − w ˉ y , w ˉ y ] × { 0 } \mathcal{W} \supseteq[-\bar{w}_x,\bar{w}_x] \times[-\bar{w}_y,\bar{w}_y] \times\{0\} W ⊇ [ − w ˉ x , w ˉ x ] × [ − w ˉ y , w ˉ y ] × { 0 } , w ˉ x , w ˉ y > 0 \bar{w}_x,\bar{w}_y>0 w ˉ x , w ˉ y > 0 , no feedback κ : X → U \kappa:X \to U κ : X → U renders a set X = B ⊕ Θ X=B\oplus\Theta X = B ⊕ Θ , with B B B a closed box in position and Θ \Theta Θ nonempty, robustly invariant.
Proof. Let B = [ x ‾ , x ‾ ] × [ y ‾ , y ‾ ] B=[\underline{x},\overline{x}] \times[\underline{y},\overline{y}] B = [ x , x ] × [ y , y ] and fix θ ∈ Θ \theta\in\Theta θ ∈ Θ . At x 1 = ( x ‾ , y ‾ , θ ) x^1=(\overline{x},\overline{y},\theta) x 1 = ( x , y , θ ) and x 2 = ( x ‾ , y ‾ , θ ) x^2=(\overline{x},\underline{y},\theta) x 2 = ( x , y , θ ) , let v i v_i v i be the speed of κ ( x i ) \kappa(x^i) κ ( x i ) . With w = ( w ˉ x , w ˉ y , 0 ) w=(\bar{w}_x,\bar{w}_y,0) w = ( w ˉ x , w ˉ y , 0 ) at x 1 x^1 x 1 , invariance needs h v 1 cos θ ≤ − w ˉ x < 0 hv_1\cos\theta\le-\bar{w}_x<0 h v 1 cos θ ≤ − w ˉ x < 0 and h v 1 sin θ ≤ − w ˉ y < 0 hv_1\sin\theta\le-\bar{w}_y<0 h v 1 sin θ ≤ − w ˉ y < 0 , so cos θ \cos\theta cos θ and sin θ \sin\theta sin θ are nonzero with the sign of − v 1 -v_1 − v 1 . With w = ( w ˉ x , − w ˉ y , 0 ) w=(\bar{w}_x,-\bar{w}_y,0) w = ( w ˉ x , − w ˉ y , 0 ) at x 2 x^2 x 2 , it needs h v 2 cos θ < 0 < h v 2 sin θ hv_2\cos\theta<0<hv_2\sin\theta h v 2 cos θ < 0 < h v 2 sin θ , so cos θ \cos\theta cos θ and sin θ \sin\theta sin θ have opposite signs, a contradiction. Subdividing B B B into smaller regions does not help, because the argument only uses the two corners of B B B . ■
Partition cost of single-successor libraries
Fix one position coordinate p p p of x x x and write x = ( p , x − p ) x=(p,x_{-p}) x = ( p , x − p ) . Consider libraries whose regions are product boxes, P ρ = I ρ × P ρ − p P_\rho=I_\rho\times P_\rho^{-p} P ρ = I ρ × P ρ − p with I ρ I_\rho I ρ a closed interval of positive width ∣ I ρ ∣ |I_\rho| ∣ I ρ ∣ , for systems in which W = [ − w ˉ , w ˉ ] × W − p \mathcal{W}=[-\bar{w},\bar{w}] \times\mathcal{W}_{-p} W = [ − w ˉ , w ˉ ] × W − p , w ˉ > 0 \bar{w}>0 w ˉ > 0 , does not depend on ( x , u ) (x,u) ( x , u ) and every edge’s closed loop has the form
p + = p + g e ( x − p , w − p ) + w p , (24) p^+ = p + g_e(x_{-p},w_{-p}) + w_p, \tag*{(24)} p + = p + g e ( x − p , w − p ) + w p , (24)
with g e g_e g e independent of p p p . Heading primitives of the unicycle (18) belong to this class, with g e = h v cos θ g_e=hv\cos\theta g e = h v cos θ for p = p x p=p_x p = p x ; position-feedback primitives do not. An edge is single-successor if ∣ Succ ( e ) ∣ = 1 |\operatorname{Succ}(e)|=1 ∣ Succ ( e ) ∣ = 1 .
Lemma S7. For a verified single-successor edge from ρ \rho ρ to ρ ′ \rho' ρ ′ in this class, ∣ I ρ ′ ∣ ≥ ∣ I ρ ∣ + 2 w ˉ |I_{\rho'}| \ge|I_\rho|+2\bar{w} ∣ I ρ ′ ∣ ≥ ∣ I ρ ∣ + 2 w ˉ , with the p p p -projection of its reachable set S e = { x + : x ∈ P ρ , w ∈ W } S_e=\{x^+ : x \in P_\rho,\ w \in\mathcal{W}\} S e = { x + : x ∈ P ρ , w ∈ W } contains an interval of width at least ∣ I ρ ∣ + 2 w ˉ |I_\rho|+2\bar{w} ∣ I ρ ∣ + 2 w ˉ .
Proof. Fix any x − p ∈ P ρ − p x_{-p} \in P_\rho^{-p} x − p ∈ P ρ − p and w − p ∈ W − p w_{-p} \in\mathcal{W}_{-p} w − p ∈ W − p , and let c = g e ( x − p , w − p ) c=g_e(x_{-p},w_{-p}) c = g e ( x − p , w − p ) . Because P ρ p P_\rho^p P ρ p and W \mathcal{W} W are products, p ∈ I ρ p \in I_\rho p ∈ I ρ and w p ∈ [ − w ˉ , w ˉ ] w_p \in[-\bar{w},\bar{w}] w p ∈ [ − w ˉ , w ˉ ] vary freely, so by (24) the p p p -projection of S e S_e S e contains [ min I ρ + c − w ˉ , max I ρ + c + w ˉ ] [\min I_\rho+c-\bar{w},\max I_\rho+c+\bar{w}] [ min I ρ + c − w ˉ , max I ρ + c + w ˉ ] . By (B2) with a single branch, S e ⊆ P ρ ′ S_e \subseteq P_{\rho'} S e ⊆ P ρ ′ , so this interval lies in I ρ ′ I_{\rho'} I ρ ′ . ■
Corollary S8 (Common terminal set). Let B 1 ⊆ B \mathcal{B}_1 \subseteq\mathcal{B} B 1 ⊆ B be the single-successor edges of a verified library in this class, on the same regions with the same RA and K p o s t \mathcal{K}_{\mathrm{post}} K post . Let reach task j j j have R ˉ j = I ˉ × R ˉ j − p \bar{R}_j=\bar{I} \times\bar{R}_j^{-p} R ˉ j = I ˉ × R ˉ j − p , and let q 0 q_0 q 0 leave its offset 0 unserved, so that completion needs a one of task j j j at some time k ≥ a j k \ge a_j k ≥ a j . If 2 w ˉ d ≥ ∣ I ˉ ∣ 2\bar{w}_d \ge|\bar{I}| 2 w ˉ d ≥ ∣ I ˉ ∣ , then Win 0 B 1 ( ρ , q 0 ) = 0 \operatorname{Win}^{\mathcal{B}_1}_0(\rho,q_0)=0 Win 0 B 1 ( ρ , q 0 ) = 0 for every region ρ \rho ρ , for every partition into product boxes.
Proof. Under B 1 \mathcal{B}_1 B 1 every branch choice is forced, so a certificate fixes one region sequence ρ 0 , ρ 1 , … \rho_0,\rho_1,\ldots ρ 0 , ρ 1 , … with edges e k e_k e k from ρ k \rho_k ρ k to ρ k + 1 \rho_{k+1} ρ k + 1 , and (16) advances the monitor with the labels σ k \sigma_k σ k of e k e_k e k only. By Lemma S7 and induction, ∣ I ρ k ∣ ≥ ∣ I ρ 0 ∣ + 2 k w ˉ |I_{\rho_k}| \ge|I_{\rho_0}|+2k\bar{w} ∣ I ρ k ∣ ≥ ∣ I ρ 0 ∣ + 2 k w ˉ , and the p p p -projection of the reachable set of e k − 1 e_{k-1} e k − 1 contains an interval of width at least ∣ I ρ 0 ∣ + 2 w ˉ ≥ 2 w ˉ |I_{\rho_0}|+2\bar{w} \ge2\bar{w} ∣ I ρ 0 ∣ + 2 w ˉ ≥ 2 w ˉ . A label 1 for task j j j requires, by (B2), χ j ( h ( x + ) ) = 1 \chi_j(h(x^+))=1 χ j ( h ( x + )) = 1 for every x + x^+ x + in that reachable set, hence its p p p -projection inside I ˉ \bar{I} I ˉ , which is impossible for k ≥ a j k \ge a_j k ≥ a j because then 2 w ˉ k ≥ ∣ I ˉ ∣ 2\bar{w}k \ge|\bar{I}| 2 w ˉ k ≥ ∣ I ˉ ∣ . So all labels of task j j j at times k ≥ a j k \ge a_j k ≥ a j are 0 0 0 , offset 0 0 0 is never served, Acc fails at H H H , and (15) gives 0 0 0 whatever the terminal set.
For R1 and R2, p = p x p=p_x p = p x , w ˉ = 0.1 \bar{w}=0.1 w ˉ = 0.1 , a = 13 a=13 a = 13 and ∣ I ˉ ∣ = 2 m |\bar{I}|=2\,\mathrm{m} ∣ I ˉ ∣ = 2 m , so 2 w ˉ a = 2.6 ≥ 2 2\bar{w}a=2.6\ge2 2 w ˉ a = 2.6 ≥ 2 : no single-successor library of heading primitives on any product-box partition certifies the task, which explains the empty sub-library of R2 independently of the grid. The corollary does not cover position-feedback primitives or non-product regions.
Corollary S9 (Own post set). If a single-successor library in this class must provide its own K p o s t \mathcal{K}_{\mathrm{post}} K post , computed as in Proposition S5 from its own edges, then K p o s t = ∅ \mathcal{K}_{\mathrm{post}}=\varnothing K post = ∅ .
Proof. Each ρ ∈ K p o s t \rho\in\mathcal{K}_{\mathrm{post}} ρ ∈ K post has a witness edge into K p o s t \mathcal{K}_{\mathrm{post}} K post , so following witnesses gives an infinite region sequence in the finite set K p o s t \mathcal{K}_{\mathrm{post}} K post whose widths ∣ I ρ ∣ |I_\rho| ∣ I ρ ∣ increase by at least 2 w ˉ > 0 2\bar{w}>0 2 w ˉ > 0 per step, which is impossible.
Corollary S9 is narrower in scope (it changes the terminal set) and is not used for R2, where the sub-library keeps the full library’s K p o s t \mathcal{K}_{\mathrm{post}} K post .
Proofs for Section E
Theorem 31 (restated). Let Assumptions 1, 3, 4 and 5 hold, let L \mathcal{L} L be verified, and let N ≥ 1 N\ge1 N ≥ 1 . Let k ∈ [ 0 , H − 2 ] k\in[0,H-2] k ∈ [ 0 , H − 2 ] and let ( v ∗ , β ^ ∗ ) (v^*,\hat{\beta}^*) ( v ∗ , β ^ ∗ ) be feasible for P k ( z k , q k ) P_k(z_k,q_k) P k ( z k , q k ) , with predicted states z i ∣ k ∗ z^*_{i|k} z i ∣ k ∗ and monitor states q i ∣ k ∗ q^*_{i|k} q i ∣ k ∗ . Suppose that (i) the nominal center is not reset, z k + 1 = z 1 ∣ k ∗ z_{k+1}=z^*_{1|k} z k + 1 = z 1∣ k ∗ , and (ii) the executed monitor processes the executed nominal output with exact tightened bits, q k + 1 = Γ k + 1 ( q k , χ ( C z k + 1 ) ) q_{k+1}=\Gamma_{k+1}(q_k,\chi(Cz_{k+1})) q k + 1 = Γ k + 1 ( q k , χ ( C z k + 1 )) . Then q 1 ∣ k ∗ ⪯ q k + 1 q^*_{1|k}\preceq q_{k+1} q 1∣ k ∗ ⪯ q k + 1 and P k + 1 ( z k + 1 , q k + 1 ) P_{k+1}(z_{k+1},q_{k+1}) P k + 1 ( z k + 1 , q k + 1 ) is feasible. A feasible solution reuses v i ∣ k ∗ v^*_{i|k} v i ∣ k ∗ and β ^ i ∣ k ∗ \hat{\beta}^*_{i|k} β ^ i ∣ k ∗ for the overlapping steps and, if k + N k < H k+N_k<H k + N k < H , appends the input F e z N k ∣ k ∗ + g e F_e z^*_{N_k|k}+g_e F e z N k ∣ k ∗ + g e and the label σ e \sigma_e σ e of a library edge given by Theorem 26(b).
Proof. Write n = N k = min { N , H − k } n=N_k=\min\{N,H-k\} n = N k = min { N , H − k } , which is at least 1 because N ≥ 1 N\ge1 N ≥ 1 and k < H k<H k < H . Because k ≤ H − 2 k\le H-2 k ≤ H − 2 , the problem P k + 1 P_{k+1} P k + 1 exists and N k + 1 ≥ 1 N_{k+1}\ge1 N k + 1 ≥ 1 . There are two cases for the horizon: if k + n = H k+n=H k + n = H , then N k + 1 = min { N , H − k − 1 } = H − k − 1 = n − 1 N_{k+1}=\min\{N,H-k-1\}=H-k-1=n-1 N k + 1 = min { N , H − k − 1 } = H − k − 1 = n − 1 because H − k = n ≤ N H-k=n\le N H − k = n ≤ N ; if k + n < H k+n<H k + n < H , then n = N < H − k n=N<H-k n = N < H − k , so N ≤ H − k − 1 N\le H-k-1 N ≤ H − k − 1 and N k + 1 = N = n N_{k+1}=N=n N k + 1 = N = n .
Step 1: dominance of the executed monitor. By Assumption 5(a), β ^ 1 ∣ k , j ∗ = 1 \hat{\beta}^*_{1|k,j}=1 β ^ 1∣ k , j ∗ = 1 implies C z 1 ∣ k ∗ ∈ R ˉ j Cz^*_{1|k}\in\bar{R}_j C z 1∣ k ∗ ∈ R ˉ j , i.e., χ j ( C z 1 ∣ k ∗ ) = 1 \chi_j(Cz^*_{1|k})=1 χ j ( C z 1∣ k ∗ ) = 1 ; by (b) this is the same χ \chi χ used by the executed monitor. Hence β ^ 1 ∣ k ∗ ⪯ χ ( C z 1 ∣ k ∗ ) = χ ( C z k + 1 ) \hat{\beta}^*_{1|k}\preceq\chi(Cz^*_{1|k})=\chi(Cz_{k+1}) β ^ 1∣ k ∗ ⪯ χ ( C z 1∣ k ∗ ) = χ ( C z k + 1 ) , where the equality uses hypothesis (i). Lemma 18 with q = q ′ = q k q=q'=q_k q = q ′ = q k gives
q 1 ∣ k ∗ = Γ k + 1 ( q k , β ^ 1 ∣ k ∗ ) ⪯ Γ k + 1 ( q k , χ ( C z k + 1 ) ) = q k + 1 . q^*_{1|k}=\Gamma_{k+1}(q_k,\hat{\beta}^*_{1|k})\preceq\Gamma_{k+1}(q_k,\chi(Cz_{k+1}))=q_{k+1}. q 1∣ k ∗ = Γ k + 1 ( q k , β ^ 1∣ k ∗ ) ⪯ Γ k + 1 ( q k , χ ( C z k + 1 )) = q k + 1 .
Step 2: shifted candidate. For i ∈ [ 0 , n − 2 ] i\in[0,n-2] i ∈ [ 0 , n − 2 ] set v i ∣ k + 1 = v i + 1 ∣ k ∗ v_{i|k+1}=v^*_{i+1|k} v i ∣ k + 1 = v i + 1∣ k ∗ , and for i ∈ [ 1 , n − 1 ] i\in[1,n-1] i ∈ [ 1 , n − 1 ] set β ^ i ∣ k + 1 = β ^ i + 1 ∣ k ∗ \hat{\beta}_{i|k+1}=\hat{\beta}^*_{i+1|k} β ^ i ∣ k + 1 = β ^ i + 1∣ k ∗ . With z 0 ∣ k + 1 = z k + 1 = z 1 ∣ k ∗ z_{0|k+1}=z_{k+1}=z^*_{1|k} z 0∣ k + 1 = z k + 1 = z 1∣ k ∗ , the dynamics give z i ∣ k + 1 = z i + 1 ∣ k ∗ z_{i|k+1}=z^*_{i+1|k} z i ∣ k + 1 = z i + 1∣ k ∗ for i ∈ [ 0 , n − 1 ] i\in[0,n-1] i ∈ [ 0 , n − 1 ] . Let q 0 ∣ k + 1 = q k + 1 q_{0|k+1}=q_{k+1} q 0∣ k + 1 = q k + 1 and q i ∣ k + 1 = Γ k + 1 + i ( q i − 1 ∣ k + 1 , β ^ i ∣ k + 1 ) q_{i|k+1}=\Gamma_{k+1+i}(q_{i-1|k+1},\hat{\beta}_{i|k+1}) q i ∣ k + 1 = Γ k + 1 + i ( q i − 1∣ k + 1 , β ^ i ∣ k + 1 ) . By Step 1 and induction with Lemma 18 (same time index k + 1 + i k+1+i k + 1 + i and same bits),
q i ∣ k + 1 ⪰ q i + 1 ∣ k ∗ , i ∈ [ 0 , n − 1 ] . (25) q_{i|k+1}\succeq q^*_{i+1|k},\qquad i\in[0,n-1]. \tag*{(25)} q i ∣ k + 1 ⪰ q i + 1∣ k ∗ , i ∈ [ 0 , n − 1 ] . (25)
For i ∈ [ 0 , n − 2 ] i\in[0,n-2] i ∈ [ 0 , n − 2 ] , the constraints of P k + 1 P_{k+1} P k + 1 at step i i i refer to absolute time k + 1 + i k+1+i k + 1 + i , which is step i + 1 i+1 i + 1 of P k P_k P k : v i ∣ k + 1 ∈ V v_{i|k+1}\in\mathcal{V} v i ∣ k + 1 ∈ V , z i ∣ k + 1 ∈ Z z_{i|k+1}\in\mathcal{Z} z i ∣ k + 1 ∈ Z and C z i ∣ k + 1 ∈ S ˉ k + 1 + i Cz_{i|k+1}\in\bar{\mathcal{S}}_{k+1+i} C z i ∣ k + 1 ∈ S ˉ k + 1 + i are inherited. The condition q i ∣ k + 1 ∈ Q k + 1 + i q_{i|k+1}\in Q_{k+1+i} q i ∣ k + 1 ∈ Q k + 1 + i follows from (25) because Q k + 1 + i Q_{k+1+i} Q k + 1 + i is upward closed. The one-sided implications involve the same states and bits as before.
Step 3a: k + n = H k+n=H k + n = H . Then N k + 1 = n − 1 N_{k+1}=n-1 N k + 1 = n − 1 , and the terminal constraint of P k + 1 P_{k+1} P k + 1 is z n − 1 ∣ k + 1 = z n ∣ k ∗ ∈ T ^ H ( q n − 1 ∣ k + 1 ) z_{n-1|k+1}=z^*_{n|k}\in\widehat{\mathcal{T}}_H(q_{n-1|k+1}) z n − 1∣ k + 1 = z n ∣ k ∗ ∈ T H ( q n − 1∣ k + 1 ) . It follows from z n ∣ k ∗ ∈ T ^ H ( q n ∣ k ∗ ) z^*_{n|k}\in\widehat{\mathcal{T}}_H(q^*_{n|k}) z n ∣ k ∗ ∈ T H ( q n ∣ k ∗ ) , (25) and Theorem 26(a).
Step 3b: k + n < H k+n<H k + n < H . Then N k + 1 = n N_{k+1}=n N k + 1 = n and one more step is needed. By (25) and Theorem 26(a), z n ∣ k ∗ ∈ T ^ k + n ( q n ∣ k ∗ ) ⊆ T ^ k + n ( q n − 1 ∣ k + 1 ) z^*_{n|k}\in\widehat{\mathcal{T}}_{k+n}(q^*_{n|k})\subseteq\widehat{\mathcal{T}}_{k+n}(q_{n-1|k+1}) z n ∣ k ∗ ∈ T k + n ( q n ∣ k ∗ ) ⊆ T k + n ( q n − 1∣ k + 1 ) , so z n ∣ k ∗ ∈ P ρ z^*_{n|k}\in P_\rho z n ∣ k ∗ ∈ P ρ for some ρ \rho ρ with Win k + n ( ρ , q n − 1 ∣ k + 1 ) = 1 \operatorname{Win}_{k+n}(\rho,q_{n-1|k+1})=1 Win k + n ( ρ , q n − 1∣ k + 1 ) = 1 . Since k + n < H k+n<H k + n < H , Theorem 26(b) applies. It gives Adm k + n ( z n ∣ k ∗ , q n − 1 ∣ k + 1 ) \operatorname{Adm}_{k+n}(z^*_{n|k},q_{n-1|k+1}) Adm k + n ( z n ∣ k ∗ , q n − 1∣ k + 1 ) , which is the admissibility constraint at the new step n − 1 n-1 n − 1 , and an edge e e e from ρ \rho ρ . Set v n − 1 ∣ k + 1 = F e z n ∣ k ∗ + g e ∈ V v_{n-1|k+1}=F_ez^*_{n|k}+g_e\in\mathcal{V} v n − 1∣ k + 1 = F e z n ∣ k ∗ + g e ∈ V and β ^ n ∣ k + 1 = σ e \hat{\beta}_{n|k+1}=\sigma_e β ^ n ∣ k + 1 = σ e . Then z n ∣ k + 1 = A z n ∣ k ∗ + B v n − 1 ∣ k + 1 z_{n|k+1}=A z^*_{n|k}+Bv_{n-1|k+1} z n ∣ k + 1 = A z n ∣ k ∗ + B v n − 1∣ k + 1 satisfies σ e ⪯ χ ( C z n ∣ k + 1 ) \sigma_e\preceq\chi(Cz_{n|k+1}) σ e ⪯ χ ( C z n ∣ k + 1 ) , which is the one-sided implication, and with β = σ e \beta=\sigma_e β = σ e ,
z n ∣ k + 1 ∈ T ^ k + 1 + n ( Γ k + 1 + n ( q n − 1 ∣ k + 1 , σ e ) ) = T ^ k + 1 + n ( q n ∣ k + 1 ) , z_{n|k+1}\in\widehat{\mathcal{T}}_{k+1+n}\left(\Gamma_{k+1+n}(q_{n-1|k+1},\sigma_e)\right)
=\widehat{\mathcal{T}}_{k+1+n}(q_{n|k+1}), z n ∣ k + 1 ∈ T k + 1 + n ( Γ k + 1 + n ( q n − 1∣ k + 1 , σ e ) ) = T k + 1 + n ( q n ∣ k + 1 ) ,
which is the terminal constraint.
All constraints of P k + 1 ( z k + 1 , q k + 1 ) P_{k+1}(z_{k+1},q_{k+1}) P k + 1 ( z k + 1 , q k + 1 ) hold, so it is feasible.
:::
Theorem 32 (restated). Let the assumptions of Theorem 31 and Assumption 2 hold, and let H ≥ 1 H\ge1 H ≥ 1 . Assume that an initial feasible candidate satisfying Assumption 5 has been obtained for P 0 ( z 0 , q 0 ) P_0(z_0,q_0) P 0 ( z 0 , q 0 ) , with the z 0 z_0 z 0 , q 0 q_0 q 0 and recorded history used at task time 0, and let the closed loop follow Algorithm 2. Then, for every disturbance sequence in W \mathcal{W} W : (i) for every k ∈ [ 0 , H − 1 ] k\in[0,H-1] k ∈ [ 0 , H − 1 ] , the candidate selected at time $k is feasible for P k ( z k , q k ) P_k(z_k,q_k) P k ( z k , q k ) ; (ii) x k ∈ X x_k\in\mathcal{X} x k ∈ X for k ∈ [ 0 , H ] k\in[0,H] k ∈ [ 0 , H ] and u k ∈ U u_k\in\mathcal{U} u k ∈ U for k ∈ [ 0 , H − 1 ] k\in[0,H-1] k ∈ [ 0 , H − 1 ] ; (iii) Acc ( q H ) \operatorname{Acc}(q_H) Acc ( q H ) , i.e., q H ≠ ⊥ q_H\ne\bot q H = ⊥ and c j ( q H ) = 0 c_j(q_H)=0 c j ( q H ) = 0 for all j j j , and z H ∈ Z p o s t z_H\in\mathcal{Z}_{\mathrm{post}} z H ∈ Z post ; (iv) ( y ˉ d , η , 0 ) ⊨ φ (\bar{y}^{d,\eta},0)\models\varphi ( y ˉ d , η , 0 ) ⊨ φ for all d ∈ D d\in\mathbb{D} d ∈ D and all η : Z → B ε \eta:\mathbb{Z}\to\mathbb{B}_\varepsilon η : Z → B ε . In particular, the sampled closed-loop output y t = C x t y_t=Cx_t y t = C x t , t ∈ [ 0 , H ] t\in[0,H] t ∈ [ 0 , H ] , satisfies φ \varphi φ .
Proof. (i) Induction on k k k . At k = 0 k=0 k = 0 , the stored candidate is the verified initial candidate, and a newly returned candidate is selected only if it passes the check of Assumption 5(a); either way the selected candidate is feasible for P 0 ( z 0 , q 0 ) P_0(z_0,q_0) P 0 ( z 0 , q 0 ) . Let k ≤ H − 2 k\le H-2 k ≤ H − 2 , and let the candidate selected at k k k be feasible for P k ( z k , q k ) P_k(z_k,q_k) P k ( z k , q k ) . Algorithm 2 applies its first input without resetting the nominal center, so z k + 1 = z 1 ∣ k ∗ z_{k+1}=z^*_{1|k} z k + 1 = z 1∣ k ∗ , and it updates the monitor with exact bits; these are hypotheses (i) and (ii) of Theorem 31. Since k < H − 1 k<H-1 k < H − 1 , the algorithm stores the shifted candidate of Theorem 31, which is feasible for P k + 1 ( z k + 1 , q k + 1 ) P_{k+1}(z_{k+1},q_{k+1}) P k + 1 ( z k + 1 , q k + 1 ) . The candidate selected at $k+1 is either this stored candidate or a returned candidate that passes the check, so it is feasible. For H = 1 H=1 H = 1 only the base case occurs.
(ii) By Assumption 1 and induction, e k + 1 = ( A + B K ) e k + w k ∈ ( A + B K ) E ⊕ W ⊆ E e_{k+1}=(A+BK)e_k+w_k\in(A+BK)\mathcal{E}\oplus\mathcal{W}\subseteq\mathcal{E} e k + 1 = ( A + B K ) e k + w k ∈ ( A + B K ) E ⊕ W ⊆ E . For k ≤ H − 1 k\le H-1 k ≤ H − 1 , Adm k ( z k , q k ) \operatorname{Adm}_k(z_k,q_k) Adm k ( z k , q k ) gives z k ∈ Z z_k\in\mathcal{Z} z k ∈ Z , x k = z k + e k ∈ ( X ⊖ E ) ⊕ E ⊆ X x_k=z_k+e_k\in(\mathcal{X}\ominus\mathcal{E})\oplus\mathcal{E}\subseteq\mathcal{X} x k = z k + e k ∈ ( X ⊖ E ) ⊕ E ⊆ X and u k = v 0 ∣ k + K e k ∈ ( U ⊖ K E ) ⊕ K E ⊆ U u_k=v_{0|k}+Ke_k\in(\mathcal{U}\ominus K\mathcal{E})\oplus K\mathcal{E}\subseteq\mathcal{U} u k = v 0∣ k + K e k ∈ ( U ⊖ K E ) ⊕ K E ⊆ U . At H H H , part (iii) gives z H ∈ Z p o s t ⊆ Z z_H\in\mathcal{Z}_{\mathrm{post}}\subseteq\mathcal{Z} z H ∈ Z post ⊆ Z , so x H ∈ X x_H\in\mathcal{X} x H ∈ X .
::: (iii) Consider k = H − 1 k = H - 1 k = H − 1 , where N H − 1 = min { N , 1 } = 1 N_{H-1} = \min\{N,1\} = 1 N H − 1 = min { N , 1 } = 1 because N ≥ 1 N \ge1 N ≥ 1 . By (i), the candidate selected at H − 1 H - 1 H − 1 is feasible, so it has z H = z 1 ∣ H − 1 ∈ T ^ H ( q 1 ∣ H − 1 ) z_H = z_{1|H-1} \in\widehat{T}_H(q_{1|H-1}) z H = z 1∣ H − 1 ∈ T H ( q 1∣ H − 1 ) . This set is therefore nonempty, and Theorem 26(c) gives Acc ( q 1 ∣ H − 1 ) \operatorname{Acc}(q_{1|H-1}) Acc ( q 1∣ H − 1 ) and z H ∈ Z p o s t z_H \in\mathcal{Z}_{\mathrm{post}} z H ∈ Z post . Step 1 of the proof of Theorem 31 applies verbatim at k = H − 1 k = H - 1 k = H − 1 and gives q 1 ∣ H − 1 ⪯ q H q_{1|H-1} \preceq q_H q 1∣ H − 1 ⪯ q H . Since Acc is upward closed (Lemma 18), Acc ( q H ) \operatorname{Acc}(q_H) Acc ( q H ) holds.
(iv) By construction, q H q_H q H is the compact monitor (Definition 15) driven by the exact tightened bits β ( t ) = χ ( y ˉ t ) \beta(t) = \chi(\bar{y}_t) β ( t ) = χ ( y ˉ t ) of the executed nominal output, including the recorded history for t < 0 t < 0 t < 0 . Since q H ≠ ⊥ q_H \ne\bot q H = ⊥ and c j ( q H ) = 0 c_j(q_H) = 0 c j ( q H ) = 0 , Corollary 16 gives C j ( H ) = D C_j(H) = \mathbb{D} C j ( H ) = D for every reach task, and Lemma 11(a) shows that every reach conjunct of φ β \varphi_\beta φ β holds for ( γ , β ) ( ⋅ − d ) (\gamma,\beta)(\cdot-d) ( γ , β ) ( ⋅ − d ) , for every d ∈ D d \in\mathbb{D} d ∈ D . For safety task i i i and t ∈ [ α i − D , ω i ] t \in[\alpha_i-D,\omega_i] t ∈ [ α i − D , ω i ] : if t < 0 t < 0 t < 0 , then γ i ( t ) = 1 \gamma_i(t) = 1 γ i ( t ) = 1 by Assumption 2; if 0 ≤ t ≤ H − 1 0 \le t \le H-1 0 ≤ t ≤ H − 1 , then Adm t ( z t , q t ) \operatorname{Adm}_t(z_t,q_t) Adm t ( z t , q t ) gives C z t ∈ S ˉ t ⊆ S ˉ i C_{z_t} \in\bar{\mathcal{S}}_t \subseteq\bar{\mathcal{S}}_i C z t ∈ S ˉ t ⊆ S ˉ i ; if t = H t = H t = H , then z H ∈ P ρ z_H \in P_\rho z H ∈ P ρ for some ρ \rho ρ with Win H ( ρ , ⋅ ) = 1 \operatorname{Win}_H(\rho,\cdot) = 1 Win H ( ρ , ⋅ ) = 1 , so RA H ( ρ ) \operatorname{RA}_H(\rho) RA H ( ρ ) gives C z H ∈ S ˉ i C_{z_H} \in\bar{\mathcal{S}}_i C z H ∈ S ˉ i . Lemma 11(b) yields every safety conjunct under every offset. Hence ( ( γ , β ) ( ⋅ − d ) , 0 ) ⊨ φ β ((\gamma,\beta)(\cdot-d),0) \models\varphi_\beta (( γ , β ) ( ⋅ − d ) , 0 ) ⊨ φ β for all d ∈ D d \in\mathbb{D} d ∈ D , and Lemma 8 gives ( y ~ d , η , 0 ) ⊨ φ (\widetilde{y}^{d,\eta},0) \models\varphi ( y d , η , 0 ) ⊨ φ .
Finally, for t ∈ [ 0 , H ] t \in[0,H] t ∈ [ 0 , H ] , y t = C z t + C e t = y ˉ t + η ( t ) y_t = C_{z_t} + C_{e_t} = \bar{y}_t + \eta(t) y t = C z t + C e t = y ˉ t + η ( t ) with η ( t ) = C e t ∈ C E ⊆ B ε \eta(t) = C_{e_t} \in C_E \subseteq B_\varepsilon η ( t ) = C e t ∈ C E ⊆ B ε , so y = y ~ 0 , η y = \widetilde{y}^{0,\eta} y = y 0 , η on [ 0 , H ] [0,H] [ 0 , H ] , and φ \varphi φ evaluated at time 0 reads only [ 0 , H ] [0,H] [ 0 , H ] .
Encoding of the online problem and the full-horizon arms
Monitor rows. The update q i + 1 ∣ k = Γ k + i + 1 ( q i ∣ k , β ^ i + 1 ∣ k ) q_{i+1|k} = \Gamma_{k+i+1}(q_{i|k},\hat{\beta}_{i+1|k}) q i + 1∣ k = Γ k + i + 1 ( q i ∣ k , β ^ i + 1∣ k ) in (19) is encoded per task j j j and absolute time t = k + i + 1 t = k+i+1 t = k + i + 1 ; l o \mathrm{lo} lo , h i \mathrm{hi} hi (with s = t − ℓ s = t-\ell s = t − ℓ ) and c ˉ j , t \bar{c}_{j,t} c ˉ j , t of Definition 15 are constants. For incoming ( c , r ) (c,r) ( c , r ) (constants at i = 0 i=0 i = 0 , variables after) and bit β \beta β , the new integers c ′ ∈ [ 0 , D + 1 ] c' \in[0,D+1] c ′ ∈ [ 0 , D + 1 ] , r ′ ∈ [ 0 , ℓ + 1 ] r' \in[0,\ell+1] r ′ ∈ [ 0 , ℓ + 1 ] and binaries u , w , a d j , g , τ , h u,w,\mathrm{adj},g,\tau,h u , w , adj , g , τ , h satisfy
( ℓ + 1 ) u ≤ r ≤ ℓ + u , ( ℓ + 1 ) w ≤ r ′ ≤ ℓ + w , (\ell+1)u \le r \le\ell+u,\qquad(\ell+1)w \le r' \le\ell+w, ( ℓ + 1 ) u ≤ r ≤ ℓ + u , ( ℓ + 1 ) w ≤ r ′ ≤ ℓ + w ,
r ′ ≤ ( ℓ + 1 ) β , r ′ ≤ r + 1 − u , r' \le(\ell+1)\beta,\qquad r' \le r+1-u, r ′ ≤ ( ℓ + 1 ) β , r ′ ≤ r + 1 − u ,
r ′ ≥ r + 1 − u − ( ℓ + 2 ) ( 1 − β ) , r' \ge r+1-u-(\ell+2)(1-\beta), r ′ ≥ r + 1 − u − ( ℓ + 2 ) ( 1 − β ) ,
so that u = [ r = ℓ + 1 ] u=[r=\ell+1] u = [ r = ℓ + 1 ] , w = [ r ′ = ℓ + 1 ] w=[r'=\ell+1] w = [ r ′ = ℓ + 1 ] and r ′ = β min { r + 1 , ℓ + 1 } r'=\beta\min\{r+1,\ell+1\} r ′ = β min { r + 1 , ℓ + 1 } ; and, if l o ≤ h i \mathrm{lo}\le\mathrm{hi} lo ≤ hi ,
( h i + 2 ) ( 1 − a d j ) ≤ c ≤ h i + 1 + ( D − h i ) ( 1 − a d j ) , (\mathrm{hi}+2)(1-\mathrm{adj}) \le c \le\mathrm{hi}+1+(D-\mathrm{hi})(1-\mathrm{adj}), ( hi + 2 ) ( 1 − adj ) ≤ c ≤ hi + 1 + ( D − hi ) ( 1 − adj ) ,
( l o + 1 ) τ ≤ c ≤ l o + ( D + 1 − l o ) τ , (\mathrm{lo}+1)\tau\le c \le\mathrm{lo}+(D+1-\mathrm{lo})\tau, ( lo + 1 ) τ ≤ c ≤ lo + ( D + 1 − lo ) τ ,
g ≤ w , g ≤ a d j , g ≥ w + a d j − 1 , g \le w,\qquad g \le\mathrm{adj},\qquad g \ge w+\mathrm{adj}-1, g ≤ w , g ≤ adj , g ≥ w + adj − 1 ,
h ≤ g , h ≤ τ , h ≥ g + τ − 1 , h \le g,\qquad h \le\tau,\qquad h \ge g+\tau-1, h ≤ g , h ≤ τ , h ≥ g + τ − 1 ,
c − ( D + 1 ) h ≤ c ′ ≤ c , ∣ c ′ − l o ∣ ≤ ( D + 1 ) ( 1 − h ) , c-(D+1)h \le c' \le c,\qquad\lvert c'-\mathrm{lo}\rvert\le(D+1)(1-h), c − ( D + 1 ) h ≤ c ′ ≤ c , ∣ c ′ − lo ∣ ≤ ( D + 1 ) ( 1 − h ) ,
so that a d j = [ c ≤ h i + 1 ] \mathrm{adj}=[c\le\mathrm{hi}+1] adj = [ c ≤ hi + 1 ] , τ = [ c ≥ l o + 1 ] \tau=[c\ge\mathrm{lo}+1] τ = [ c ≥ lo + 1 ] , g = w ∧ a d j g=w\wedge\mathrm{adj} g = w ∧ adj , h = g ∧ τ h=g\wedge\tau h = g ∧ τ , and c ′ = min { c , l o } c'=\min\{c,\mathrm{lo}\} c ′ = min { c , lo } if h = 1 h=1 h = 1 , c ′ = c c'=c c ′ = c otherwise. Here a d j ≡ 1 \mathrm{adj}\equiv1 adj ≡ 1 when h i + 1 ≥ D + 1 \mathrm{hi}+1\ge D+1 hi + 1 ≥ D + 1 ; if l o > h i \mathrm{lo}>\mathrm{hi} lo > hi , the single row c ′ = c c'=c c ′ = c replaces the last five lines. Expiry is the hard row c ′ ≤ c ˉ j , t c'\le\bar{c}_{j,t} c ′ ≤ c ˉ j , t , so a transition to ⊥ \bot ⊥ is infeasible rather than represented. All constants follow from c ∈ [ 0 , D + 1 ] c\in[0,D+1] c ∈ [ 0 , D + 1 ] and r ∈ [ 0 , ℓ + 1 ] r\in[0,\ell+1] r ∈ [ 0 , ℓ + 1 ] , so the rows are exact for integral values: they hold iff ( c ′ , r ′ ) = Γ j , t ( ( c , r ) , β ) ≠ ⊥ (c',r')=\Gamma_{j,t}((c,r),\beta)\ne\bot ( c ′ , r ′ ) = Γ j , t (( c , r ) , β ) = ⊥ . Per task and step this is at most 8 variables (two integer) and 22 rows, independent of D D D and ℓ \ell ℓ ; the script checks this bound on 3660 task/time cases and finds it attained on the E2 models. A one-hot transition table is kept only as a test oracle.
Bits, safety, terminal and solver. A claimed bit adds one binary and one row per face of R ˉ j \bar{R}_j R ˉ j , G j h C z ≤ f j h + M j h ( 1 − β ^ j ) G_{jh}C_z \le f_{jh}+M_{jh}(1-\hat{\beta}_j) G j h C z ≤ f j h + M j h ( 1 − β ^ j ) with M j h = max { 0 , max z ∈ vert Z ( G j h C z − f j h ) } M_{jh}=\max\{0,\max_{z\in\operatorname{vert}\mathcal{Z}}(G_{jh}C_z-f_{jh})\} M j h = max { 0 , max z ∈ vert Z ( G j h C z − f j h )} ; the converse is not encoded (Assumption 5). Each active safety union adds one selector per cell when there are several cells, with the same exact constants. The terminal set T ~ k + N k \widetilde{T}_{k+N_k} T k + N k is a disjunction over the options ( ρ , m ) (\rho,m) ( ρ , m ) with m ∈ M k + N k ( ρ ) m\in M_{k+N_k}(\rho) m ∈ M k + N k ( ρ ) : one selector s s s per option, the rows of P ρ P_\rho P ρ relaxed by exact constants when s = 0 s=0 s = 0 , c j ≤ m c , j + ( D + 1 − m c , j ) ( 1 − s ) c_j\le m_{c,j}+(D+1-m_{c,j})(1-s) c j ≤ m c , j + ( D + 1 − m c , j ) ( 1 − s ) and r j ≥ m r , j s r_j\ge m_{r,j}s r j ≥ m r , j s , and ∑ s s = 1 \sum_s s=1 ∑ s s = 1 . HiGHS’ feasible single-threaded with relative gap 10 − 6 10^{-6} 1 0 − 6 , primal and integer feasibility tolerances 10 − 7 10^{-7} 1 0 − 7 , and the rows of geometric sets tightened by δ ∥ a c o n t ∥ 1 \delta\lVert a_{\mathrm{cont}}\rVert_1 δ ∥ a cont ∥ 1 with δ = 10 − 6 \delta=10^{-6} δ = 1 0 − 6 ; infeasibility of the tightened model is reported as such, never as infeasibility of (19). A candidate is used only after an exact rational check of every constraint and of the monitor, on the solver’s inputs converted exactly or, if that fails, rounded to small rationals and checked again.
Size. For n z n_z n z states, n v n_v n v inputs and n r n_r n r tasks, the online model has, without cost auxiliaries, at most N k ( n z + n v + n r + 8 n r ) N_k(n_z+n_v+n_r+8n_r) N k ( n z + n v + n r + 8 n r ) variables plus the safety and terminal selectors, and at most N k ( n z + ∣ V ∣ + ∣ Z ∣ + ∑ j ∣ R ˉ j ∣ + 22 n r ) N_k(n_z+|\mathcal{V}|+|\mathcal{Z}|+\sum_j|\bar{R}_j|+22n_r) N k ( n z + ∣ V ∣ + ∣ Z ∣ + ∑ j ∣ R ˉ j ∣ + 22 n r ) rows plus the safety rows and ∑ ( ρ , m ) ( ∣ P ρ ∣ + 2 n r ) + 1 \sum_{(\rho,m)}(|P_\rho|+2n_r)+1 ∑ ( ρ , m ) ( ∣ P ρ ∣ + 2 n r ) + 1 terminal rows; the last two depend on the geometry and the library. Table VI gives the actual counts on the 60 E2 test queries (medians, k = 0 k=0 k = 0 , before-patch library, n v = 2 n_v=2 n v = 2 , n z = 2 n_z=2 n z = 2 , n r = 1 n_r=1 n r = 1 , D = 8 D=8 D = 8 , ℓ = 2 \ell=2 ℓ = 2 , H = 30 H=30 H = 30 ).
Table VI. Variables/rows of the E2 models by component (medians over the 60 test queries). Online: P 0 P_0 P 0 with N = 5 , 10 , 30 N=5,10,30 N = 5 , 10 , 30 (23 terminal options for N = 10 N=10 N = 10 ). Full-H: the timed STL arm; two-sided: the external arm Raman2. Cost auxiliaries: absolute-value variables and rows of the stage cost.
Full-horizon arm and the closest published encoding. The timed full-horizon arm of E2 (method STL) encodes G [ 0 , D ] φ G_{[0,D]}\varphi G [ 0 , D ] φ at − D -D − D , i.e. ⋀ d ∈ D φ \bigwedge_{d\in\mathbb{D}}\varphi ⋀ d ∈ D φ under the shift d d d (synchronous shifts all outputs), by a generic syntax-tree traversal in the style of Raman et al. [12 ] , with the history samples t ≤ 0 t\le0 t ≤ 0 as constants. Row by row:
So stl is that encoding with the converse half of every equivalence removed (the one-directional form [7 ] ); the conjunction of a cell’s half-spaces under one selector is equivalent once only one direction is kept. Without solver margins both have the same feasible set in ( z , v ) (z,v) ( z , v ) , but not the same LP relaxation, so we also ran the two-sided form (raman2: the converse rows above, with complements of boxes and cells as disjunctions of non-strict faces) under the E2 protocol: same 60 queries, budget, tolerances, cold start and exact validation, arms alternating per query. As solved, the converse rows carry the same safety margin as every tightened row, which removes a thin band near each predicate boundary from the feasible set of raman2; the equivalence therefore holds for the models without margins only. raman2 verified 60/60 with median 176 ms (95th percentile 287 ms) and was slower than stl on 60/60 queries; stl re-run in the same session had median 37 ms (recorded: 37 ms). These times describe our implementation and this protocol, not the two encodings in general; E2 compares against the faster form. We did not implement the counter-based encoding of [15 ] , which maximizes a time-robustness value instead of certifying a fixed D D D . E2 uses no warm start in any arm.
The method exact (one dwell indicator ω s ≤ β u \omega_s \le\beta_u ω s ≤ β u , u ∈ [ s , s + ℓ ] u \in[s,s+\ell] u ∈ [ s , s + ℓ ] , per start s s s , shared by all offsets, and ∑ t ∈ [ a , b ] ω t − d ≥ 1 \sum_{t\in[a,b]} \omega_{t-d} \ge1 ∑ t ∈ [ a , b ] ω t − d ≥ 1 per d d d ) is not an online performance arm. It only decides, with a 30 s limit, which test queries are feasible (the denominator) and supplies the references along which the library is patched.
Appendix K: Experimental Protocol and Additional Results
Every number, figure, table and video is generated from the formal records of one result set (results/main3) through its manifest, which lists each adopted record with its experiment object, expected library identity and file hashes; the asset and video scripts read records only through it and abort if any record, or the manifest’s source digest, differs from the working tree. Earlier result sets are kept as read-only archives and are cited only where marked as historical. A record is keyed by the digest of its experiment parameters, the source digest of the controller package, the verification identity of the library and the identity of its certificates; changing any of them produces a new record. Raw per-tick logs (nominal and measured states, inputs, bits, monitor and bitset states, interface excess, candidate events, timing and the MuJoCo trace) are kept with each record. Every formal run is reported. Development configurations differ from the formal ones. Host: Apple M4 Max (16 logical CPUs), macOS 26.6.2; Python 3.11.16, NumPy 2.4.6, HiGHS 1.15.1 (one thread), MuJoCo 3.14.0, Matplotlib 3.11.2. Timings are wall-clock measurements on this host, not bounds.
MuJoCo executes the Crazyflie model pinned at Menagerie commit 2cd6b7be15440787d12f7eb4c34ae1a1a03237c4 [25 ] with a modified actuator configuration: physics at 0.002 s, an attitude loop of natural frequency 50 s− 1 ^{-1} − 1 and damping 1, height gains 16 and 8, body moment limit ± 0.006 \pm0.006 ± 0.006 N m (the upstream model allows 10 − 5 10^{-5} 1 0 − 5 N m), thrust cap 0.35 N and commanded acceleration clipped at ± 2 \pm2 ± 2 m/s2 ^2 2 ; wind is a bounded random acceleration of amplitude 0.01 m/s2 ^2 2 evaluated at physical time. These values are the selected configuration, validated empirically as described below; they are not a hardware calibration, so the platform is a simulated model, not a specific vehicle. Each actuator is a unit-gain motor acting through one gear component, so the body thrust or moment is the control multiplied by its gear; the controller sets the control to the physical value divided by the gear. The limits above are control limits (MuJoCo ctrlrange, [ 0 , 0.35 ] [0,0.35] [ 0 , 0.35 ] for thrust, ± 600 \pm600 ± 600 for each moment control at gear − 10 − 5 -10^{-5} − 1 0 − 5 ); no actuator output limit is set. A script checks this mapping on the runtime model with one positive and one negative command per moment axis and legal thrust commands, at two attitudes, and checks that commands outside the range are clamped. Over all physics steps of the E1 and E3 runs, recomputed from the logged controls, the thrust is 76% of the cap and the peak body moment 0.0056 N m (94% of the limit); 0 steps reach a limit. The outer model is a planar double integrator per axis with h = 0.2 h=0.2 h = 0.2 s, X = [ 0 , 6 ] × [ 0 , 5 ] × [ − 1 , 1 ] 2 \mathcal{X}=[0,6]\times[0,5]\times[-1,1]^2 X = [ 0 , 6 ] × [ 0 , 5 ] × [ − 1 , 1 ] 2 , ∥ u ∥ ∞ ≤ 0.9 \lVert u\rVert_\infty\le0.9 ∥ u ∥ ∞ ≤ 0.9 , a box half-widths 1 / 12 1/12 1/12 (position) and 1 / 40 1/40 1/40 (velocity), and ε = 1 / 25 \varepsilon=1/25 ε = 1/25 . Each axis uses the gain K = ( − 49 / 4 , − 231 / 40 ) K=(-49/4,-231/40) K = ( − 49/4 , − 231/40 ) (a double closed-loop pole at 3 / 10 3/10 3/10 ); the tail condition A K 4 W ⊆ 5 8 W A_K^4 W \subseteq\frac{5}{8}W A K 4 W ⊆ 8 5 W is checked exactly and E = 5 4 ⨁ i < 4 A K i W \mathcal{E}=\frac{5}{4}\bigoplus_{i<4} A_K^i W E = 4 5 ⨁ i < 4 A K i W . Inside a sample the inner loop tracks v k + K e k v_k+K e_k v k + K e k ; the residual w k = x k + 1 − A x k − B u k w_k=x_{k+1}-A x_k-Bu_k w k = x k + 1 − A x k − B u k is measured against u k = v k + K e k u_k=v_k+K e_k u k = v k + K e k at the sample boundary, so inner-loop lag and wind both enter w w w . Every sample of every run checks e ∈ E e\in\mathcal{E} e ∈ E , w ∈ W w\in\mathcal{W} w ∈ W , u ∈ U u\in\mathcal{U} u ∈ U and x ∈ X x\in\mathcal{X} x ∈ X exactly and counts the physics steps at which the thrust or moment limits or the acceleration clip are active, or a contact exists. A run is compliant only if the four memberships hold at every sample and all three counts are zero.
The interface was chosen on development routes; as empirical validation of the selected configuration it was run on 21 runs (three wind seeds, seven routes) not used for tuning; all were compliant. A one-factor sweep around a wind-free baseline varied reference acceleration and speed, gain, zero-order hold, attitude bandwidth, moment and acceleration limits and wind (14 settings, four runs each); only the moment limit 0.0005 N m broke compliance. Compliance on finitely many runs is not a nonlinear tracking certificate.
Scenes and libraries
Both scenes share the platform. Library regions are translates c ⊕ T c \oplus T c ⊕ T of one invariant shape T T T with law v = g + K ( z − c ) v = g + K(z-c) v = g + K ( z − c ) along routes; the final region is the post set z ⋆ ⊕ T z^\star\oplus T z ⋆ ⊕ T . Every region, edge, label and the post law is verified in exact rational arithmetic. The revisit scene has R 1 R_1 R 1 centred at ( 2 , 2.5 ) (2, 2.5) ( 2 , 2.5 ) with half-width 0.3, task F [ 3 , 20 ] G [ 0 , 2 ] μ R 1 \mathrm{F}_{[3,20]}\mathrm{G}_{[0,2]}\mu_{R_1} F [ 3 , 20 ] G [ 0 , 2 ] μ R 1 , D = 8 D = 8 D = 8 , H = 30 H = 30 H = 30 , an initial speed of 0.8 m/s into R 1 R_1 R 1 and a zero-input history; its library has 23 regions. The branching scene adds an obstacle between two channels and a second region R 2 R_2 R 2 at ( 5 , 2.5 ) (5, 2.5) ( 5 , 2.5 ) to be reached and held for 2 samples within [ a r r i v a l − 4 , a r r i v a l + D ] [\mathrm{arrival}-4,\mathrm{arrival}+D] [ arrival − 4 , arrival + D ] of the channel route (H = 107 H = 107 H = 107 , 164 regions, 166 edges).
Costs
Table VII collects every timed stage. Development search is repeated until a configuration certifies; preprocessing runs once per library and task; online rows are per query or tick. E2 medians and tails are over verified candidates only, with the other outcomes counted in the denominator column. All times are wall time of one process on the host above. R6 times are method times inside a fresh worker process, excluding library loading, and are reported with peak memory in Table XIII .
Table VII. Costs, read from the formal records by scripts/cost_table.py.
Table XIII. R6: Certified regions at k = 0 k = 0 k = 0 (of 1 440), reachable sparse states ( k , ρ , q ) (k,\rho,q) ( k , ρ , q ) , method time and peak resident memory (including the loaded library) per method and setting. ∗ ^{*} ∗ Auxiliary whole-domain tabulations. “Budget”: stopped at 600 s or 12 GiB.
E1
Exact evidence: an exact full-horizon reference verifies a plan; the single-witness encoding is infeasible as a solver claim (no tightening); an exact lower bound on the x x x -position over all admissible nominal inputs proves that the position exceeds R ‾ 1 \overline{R}_1 R 1 at samples 5–12, which blocks every dwell start in [ a , b − D ] [a,b-D] [ a , b − D ] and every single continuous visit. Ten closed-loop MuJoCo runs (seeds 400–409, fixed before the runs) use the online loop of E3 with N = 10 N = 10 N = 10 and lookahead 1, adopting short candidates and extending them by the backup rule. For each run the compact monitor and the full bitset are evaluated tick by tick on the nominal bits, the bits of the measured positions, and a counterfactual history with the second visit removed from sample 13 on. The failure verdicts are compared at every sample; coverage against the suffix [ c , D ] [c,D] [ c , D ] and the dwell counters are compared at every sample at which the compact monitor has not failed, since afterwards it has no state to compare. Panel (d) of Figure 6 is chosen by a fixed rule among the adopted candidates of all ten runs: those with τ < b + ℓ = 22 \tau< b+\ell= 22 τ < b + ℓ = 22 whose predicted monitor still has c τ > 0 c_\tau> 0 c τ > 0 (53 candidates), the one adopted closest to k = 8 k = 8 k = 8 (seed 403). Its tail is the default chain of its validated terminal pair (the witness the backup rule appends at every step), checked equal to the inputs the backup rule executes, and the whole plan is validated exactly up to H H H .
E2
E2 results. An exact full-horizon reference verifies 60 of 60 test queries around the start; these form the denominator. With a 2 s budget and identical semantics, history and constraints, library-certified horizons N = 5 , 10 , 30 N = 5,10,30 N = 5 , 10 , 30 verify 63, 100 and 100% (median 45, 58, 87 ms) and the full-horizon STL encoding 100% (median 37 ms; Figure 8 ). Patching the library along references of 4 separate queries (regions z t ⊕ T z_t \oplus T z t ⊕ T , law v t + K ( z − z t ) v_t + K(z-z_t) v t + K ( z − z t ) , exactly verified, old winning set kept; 23 to 143 regions) lifts N = 5 N = 5 N = 5 to 100% and N = 10 N = 10 N = 10 to 100%, at median 139 and 152 ms. At H = 30 H = 30 H = 30 the full-horizon encoding plans fastest; its two-sided form (Section J-A) verifies 60/60 at median 176 ms and is slower on every query in our implementation. With one reach task every reachable bitset is a suffix, so bitset and compact recursions store the same states (Table VIII ); ordered generators store fewer on the branching library (11487 vs. 15742) in similar time. All answers agree and no recursion exceeds 40 ms. Offline, building and verifying the initial library takes 5.6 s and patching 64 s (54 s re-verifying it).
Figure 8. E2: share of the 60 reference-feasible test queries with an exactly verified candidate against median time (bars—5–95%), before and after patching. STL: full horizon H = 30 H = 30 H = 30 .
Table VIII. E2 recursions on identical graphs and query domains, per library (regions, H H H ): total time [ms] / stored states / peak resident memory of the isolated process [MiB]. Fewer stored states need not mean less memory or time.
E2 protocol. Test queries perturb the start by at most ( 3 / 50 , 1 / 10 ) (3/50,1/10) ( 3/50 , 1/10 ) m in position and 1 / 20 1/20 1/20 m/s in velocity on a rational grid (seed 401); patch queries are drawn separately (seed 400). A reference with a 30 s limit defines the denominator. Every method gets one solve with a 2 s limit and exact validation; for the short horizons the first complete plan (candidate and certificate rollout) must also verify. Outcomes are kept apart: verified, timeout, infeasible only for the tightened model, solver-infeasible, rejected. Patches are added for patch queries that N = 5 N = 5 N = 5 misses, at most five; each solves a reference with constraints tightened by T T T and target z ⋆ ⊕ 1 10 T z^\star\oplus\frac{1}{10}T z ⋆ ⊕ 10 1 T , adds z t ⊕ T z_t \oplus T z t ⊕ T with law v t + K ( z − z t ) v_t + K(z-z_t) v t + K ( z − z t ) , verifies the new edges exactly, and rejects the patch if any old winning state is lost. The recursions in Table VIII use the same certificate graph and query domain (every query at k = 0 k = 0 k = 0 with a neutral history), count forward reachability for the sparse methods, and run in isolated processes. Offline cost is measured in the same run: constructing the revisit scene (tube sets, post set and the route library with exact labels) and verifying its library and certificates takes 5.6 s, and 28 s for the branching scene. The patching procedure takes 64 s in total, including the N = 5 N = 5 N = 5 attempts on all patch queries, the tightened references and the exact checks of the new regions and edges; 54 s of it re-verify the whole grown library and rebuild its certificates after each patch.
E3
E3 results. A branching scene adds a second region behind an obstacle, reached through one of two channels (H = 107 H = 107 H = 107 ). A soft cost prefers one channel and is replaced at k = 10 k = 10 k = 10 .
by a preference for the other. All arms start from one plan that is both a verified short candidate and a valid full-horizon plan, and apply the same inputs until the update. Ours re-solves P k P_k P k (N = 10 N = 10 N = 10 ) 2 samples ahead and, within the same request, appends the library tail that R4 would execute and validates the plan exactly to H H H ; full-H H H re-solves the exact full-horizon encoding with the executed prefix fixed and a complete warm start, with its tuned 6-sample window or with ours (solver limit tuned on development seeds); no-solve executes only the backup. Ours and six-sample full-H H H also run with the optimizer lost over samples [30,45]. Every request has a budget of 1 s from issue, capped by its target boundary (on average 371 ms two and 1000 ms six samples ahead); adopted plans reach H H H and are then only shifted. Seeds 400–409 use the original obstacle and 500–509 a shifted one fixed by preset conditions before any arm ran on it; intervals are bootstraps per geometry, stratified by revealed direction. Every run completes with the interface intact (Table X); 1 of 11550 inputs reached the plant late (13.6 ms; work per sample below 54 ms, host scheduling unbounded).
Re-solving lowers the revealed cost relative to the backup alone by 118 [115, 121] (original) and 108 [107, 109] (shifted), and ours switches channel in every configuration whose backup takes the other (Figure 9 , Table IX ). A useful update is an adopted plan whose full revealed cost is at least 1 below the backup it replaces. Two samples ahead, full-H H H is worse than ours in every original configuration, J ( f u l l - H 2 ) − J ( o u r s ) = 67 J(\mathrm{full}\text{-}H_2)-J(\mathrm{ours}) = 67 J ( full - H 2 ) − J ( ours ) = 67 [62, 72] (118 when the upper channel is revealed, 17 otherwise): both adopt a revealed-cost plan 2 samples after the update, but its first useful update comes after 31–37 samples (ours 7–24) and it never switches. On the shifted geometry the difference is 22 [−7, 51]. Six samples ahead full-H H H is better on both geometries, by −21 [−26, −16] and −33 [−35, −29], and updates usefully first in 8 and 5 of 10 configurations. In this scene the certificate-based controller thus updates usefully under a two-sample deadline more reliably than full-horizon replanning, which costs less given a longer window. Ours selects by the check alone and does not see its tail’s cost (19% of its adoptions raise the full cost; full-H H H 3%); pricing the library tail lowered the full cost by about 1 in an offline diagnosis (below) and was not adopted, and this experiment does not separate that mismatch from library restrictions and timing. Every arm keeps a legal backup, which carries all 15 outage samples; the outage changes the cost by 2.8 [−0.8, 5.6] (ours) and −2.0 [−8.3, 4.2] (full-H H H ).
Figure 9. E3: paired differences of the revealed cost per configuration (dots, colored by the revealed channel) with mean and 95% bootstrap interval stratified by direction, per geometry; full-H 6 H_6 H 6 , full-H 2 H_2 H 2 : six- and two-sample windows. Positive values favour the second arm.
Table IX. E3 per arm and geometry over 10 configurations each: mean revealed cost on the executed nominal trajectory; switches to the revealed channel among the 5 configurations whose backup takes the other; range of samples from the update to the first useful update (full revealed cost at least 1 below the replaced backup).
E3 protocol. Each geometry has 10 formal configurations alternating the initial and revealed channel preference: wind seeds 400–409 on the original obstacle and 500–509 on the shifted one, fixed before the runs; the soft cost is 1 20 ∥ v ∥ ± y \frac{1}{20}\lVert v\rVert\pm y 20 1 ∥ v ∥ ± y . The shifted obstacle was fixed before any arm ran on it, as the first of a short pre-listed sequence of candidate geometries meeting four conditions written down in advance: its library and certificates verify exactly; the common plan is both a short candidate and a complete plan; in both directions, at the update, the other channel admits an exact full-horizon reference through its gate and a library witness; and the two channels are told apart by their gates. In both geometries the common plan takes the lower channel, so only configurations revealing the upper one require a switch. The common initial plan is the initial short candidate, extended to H H H by the backup rule (R4) and validated exactly as a full plan; every arm starts from it and requests are issued only from k = 10 k = 10 k = 10 on, so all arms apply the same inputs before the update.
Ours solves P k \mathcal{P}_k P k with N = 10 N = 10 N = 10 ; in the same solver process the validated candidate is extended along the default chain of its terminal pair (the library tail R4 would append, identified by a digest of its edges) and the resulting plan is validated exactly up to H H H ; construction, solve, extension and validation all count
Table X. Robot runs, totals (E3 over both geometries): adopted plans / requests; samples k = 1 , … , H − 1 k = 1, \ldots, H - 1 k = 1 , … , H − 1 from a new plan / the backup; inputs more than 10 ms late / all samples.
against the request’s budget, and a failed extension leaves the backup in place. Full-H H H solves the exact full-horizon encoding with the executed prefix fixed, warm-started with the stored plan and all its auxiliary binaries, and its result is validated as an online prefix to H H H . Every adopted plan therefore reaches H H H , becomes the backup and is then only shifted. All arms share the backup rule, the exact check and a budget of 1 s per request from its issue (deadline min { issue + B , boundary − 10 m s } \min\{\text{issue} + B, \text{boundary} - 10\,\mathrm{ms}\} min { issue + B , boundary − 10 ms } , the solver stops 30 ms before it). Each request is logged at issue with its target sample, boundary, deadline, effective budget B e f f B_{\mathrm{eff}} B eff and cost version, and ends in exactly one recorded outcome. Lookahead and solver limit were tuned per arm on development seeds and frozen: ours 2 samples and 400 ms; full-H H H 6 samples and 800 ms; and full-H H H with ours’ window, 2 samples, with the limit chosen among 150, 250 and 350 ms on development seeds 200–203 by mean revealed cost (150 ms; longer limits let fewer results arrive in time). B e f f B_{\mathrm{eff}} B eff averages 371 ms for the two-sample windows and 1000 ms for the six-sample one. Period 0.2 s, cost update at k = 10 k = 10 k = 10 , outage over samples [ 30 , 45 ) [30,45) [ 30 , 45 ) , five post-mission samples; the arms of a configuration run in a random order, and the wind is a function of physical time, so its value at each sample start is equal across arms (checked). The solver process skips requests made obsolete by a newer request or by an adoption. A request issued during sample k k k uses the cost known at k k k , so the revealed cost first enters the request issued at k = 10 k = 10 k = 10 ; each result carries a unique identifier, the cost version and the issue sample of its request (outcomes on the original geometry, ours: 431 ready, 322 superseded, 113 stale, 81 skipped in queue, 3 late; full-H H H : 446 skipped in queue, 210 ready, 198 over budget, 56 superseded; full-H H H , two-sample window: 556 ready, 226 stale, 145 skipped in queue, 20 superseded, 3 late; superseded : made obsolete by an adoption, skipped in queue : replaced by a newer request, stale : returned after its target sample, over budget : its check ended after issue plus B B B ). A result is ready if its target is the current sample, its ( z , q ) (z,q) ( z , q ) equal the executed nominal and monitor states exactly, the inputs it assumed equal the executed nominal inputs v v v (not u u u ), its validation is bound to the same ( k , z , q ) (k,z,q) ( k , z , q ) , and this check ends before the guard; a result whose check ends later is discarded as late (11 in the reported runs). The first version is the first applied plan whose request carried the revealed cost; the first useful update is the first such plan whose exact full revealed cost is at least δ = 1 \delta= 1 δ = 1 below that of the backup it replaced at the same ( k , z , q ) (k,z,q) ( k , z , q ) (fixed before the runs; both are plans to H H H ). The command for a sample is decided before its boundary; at the boundary the clock is read and the simulator is advanced with that command with no computation in between, and the nominal update, the backup for the next sample and the next request follow. A late input is one for which this clock reading is more than 10 ms after the boundary. The loop is a wall-clock-paced simulation with measured dispatch latency: simulated time does not advance while the host waits, and a late command still drives the full sample interval, so holding the old input during the delay is not simulated (Figure 10 , a late input of an earlier, archived run). Lateness therefore measures host scheduling, not an executed delay, and no robustness to input delay is claimed.
Figure 10. Historical: the one late input of the archived main3-baseline records (E1, seed 306, sample 24; historical record, archive key in generated/late_tick_timeline.json). Top: plant call and the work after it (nominal update, backup, next request) and the arrival of the next candidate, in wall-clock time. The candidate for sample 24 was checked 167 ms before its deadline, so the loop was idle and the host woke it 13.9 ms late. Bottom: each command drives its full simulated interval regardless of the clock reading.
Tail cost (diagnosis, not adopted). The short objective does not see the cost of the library tail. An experimental objective adds, per terminal option, the exact cost of its default chain and of up to two chains with another stored first witness, through an epigraph variable with a common lower bound; the selected chain is the one extended and validated, so its recursive feasibility argument is unchanged. Before any formal run, an offline diagnosis re-solved, with both objectives and a 5 s limit, all states of the archived formal E3 runs (ours and full-H H H ) in the ten samples after the update, rebuilt exactly from the recorded adoptions (220 states; all verified under both objectives). The tail-priced plans had an exact full cost lower by 1.1 on average (median 0.9, at most 4.8); the threshold set in advance for a development ablation, at least 5 on average in most configurations, was met in none of 10, so the objective was not adopted and the formal runs use the short objective. The code, tests and diagnosis are kept with the records.
The revealed cost is evaluated on the executed nominal trajectory from k = 10 k=10 k = 10 to H H H (the planners’ objective; the same stage cost on the applied inputs and measured states gives the same signs); intervals are percentile bootstraps over the configurations of one geometry, resampled within each revealed direction, and per-direction means are reported alongside. Selection is by the exact check alone: on the original geometry 84 of the 431 plans adopted by ours (19 %) had an exact full cost above that of the backup they replaced at the same ( k , z , q ) (k,z,q) ( k , z , q ) , against 7 of 210 for full-H H H and 19 of 556 for its two-sample variant (shifted: ours 74 of 399), so no decrease of the remaining cost is claimed.
R1–R3 protocol
Code and identities. The robust experiments live in a separate package (src/mjctrl/robust); the main3 code is unchanged. Each record carries a verification identity (digest of model, W \mathcal{W} W , grid, obstacles, clearance, primitives, tightened regions, task, subdivision depths, Z p o s t Z_{\mathrm{post}} Z post and the verifier sources), a recursion identity (verification identity, task, algorithm, recursion sources), a source digest of the robust package, and the full parsed experiment and scene configuration with its digest, which also enters every run key. The assets script refuses records whose source digest or configuration snapshot differs from the working tree.
Verifier. Endpoints are rationals; products and transcendental values are rounded outward to dyadics with 64 fractional bits; sin \sin sin and cos \cos cos at rational points use Taylor polynomials with Lagrange remainder, and over an interval the hull of the endpoint enclosures plus the extreme value whenever a critical point (located with rational bounds on π \pi π ) may lie inside. The heading update ( 1 − h k θ ) θ + h k θ θ r e f (1-hk_\theta)\theta+hk_\theta\theta_{\mathrm{ref}} ( 1 − h k θ ) θ + h k θ θ ref is evaluated in this affine form to avoid the dependency between θ \theta θ and ω \omega ω . Unit tests compare the enclosures with sampled values, reproduce the 1 − x 2 1-x^2 1 − x 2 counterexample, check a disturbance-induced branching example, match sampled successors of randomly chosen verified edges to branches, check that a single position box is rejected for a pure heading law and a position law, and run the K p o s t \mathcal{K}_{\mathrm{post}} K post switching law for 100 steps from 20 sampled states.
Scenes. Obstacles are closed boxes, and a region is admissible only if its closed cell keeps ℓ ∞ \ell_\infty ℓ ∞ distance at least 1 4 \frac{1}{4} 4 1 m from every obstacle, so a cell touching an obstacle is never admissible; RA is computed from this test. Geometry A has the obstacle [ 13 4 , 15 4 ] × [ 9 4 , 11 4 ] [\frac{13}{4},\frac{15}{4}]\times[\frac{9}{4},\frac{11}{4}] [ 4 13 , 4 15 ] × [ 4 9 , 4 11 ] ; geometry B the obstacle [ 9 4 , 11 4 ] [\frac{9}{4},\frac{11}{4}] [ 4 9 , 4 11 ] and a block [ 21 4 , 19 4 ] [\frac{21}{4},\frac{19}{4}] [ 4 21 , 4 19 ] at the top edge. With the clearance they cover [ 3 , 4 ] × [ 2 , 3 ] [3,4]\times[2,3] [ 3 , 4 ] × [ 2 , 3 ] , respectively [ 2 , 3 ] × [ 2 , 3 ] [2,3]\times[2,3] [ 2 , 3 ] × [ 2 , 3 ] and [ 5 , 6 ] × [ 4.5 , 5 ] [5,6]\times[4.5,5] [ 5 , 6 ] × [ 4.5 , 5 ] . A cell may touch the boundary of such a band but not its interior; for example [ 2.5 , 3 ] × [ 1.5 , 2 ] [2.5,3]\times[1.5,2] [ 2.5 , 3 ] × [ 1.5 , 2 ] keeps distance exactly 1 4 \frac{1}{4} 4 1 m from the obstacle of geometry A. Declaring the bands themselves as closed obstacles with the same clearance would leave the declared start uncertified for every window with a ≤ 39 a\le39 a ≤ 39 in either geometry. Headings stay in [ − 9 8 , 9 8 ] [-\frac{9}{8},\frac{9}{8}] [ − 8 9 , 8 9 ] , and on the verified library with the widened band the recursion finds no certified passage into the winning set; this is a result on this library, not a reachability claim for the continuous system. The negative-time history is checked against the same predicate. Both use R ˉ = [ 5.5 , 7.5 ] × [ 1.5 , 3.5 ] \bar{R} = [5.5, 7.5] \times[1.5, 3.5] R ˉ = [ 5.5 , 7.5 ] × [ 1.5 , 3.5 ] , Z p o s t = [ 5 , 8 ] × [ 0.5 , 4.5 ] Z_{\mathrm{post}} = [5, 8] \times[0.5, 4.5] Z post = [ 5 , 8 ] × [ 0.5 , 4.5 ] and the start ( 1 8 , 18 5 , 1 4 ) \left(\frac{1}{8}, \frac{18}{5}, \frac{1}{4}\right) ( 8 1 , 5 18 , 4 1 ) propagated by two recorded history steps with v = 1 4 v = \frac{1}{4} v = 4 1 , θ r e f = 1 4 \theta_{\mathrm{ref}} = \frac{1}{4} θ ref = 4 1 , w = 0 w = 0 w = 0 . The window is the earliest certifiable one: [ 13 , 16 ] [13, 16] [ 13 , 16 ] for A and [ 11 , 14 ] [11, 14] [ 11 , 14 ] for B (H = 19 , 17 H = 19, 17 H = 19 , 17 ). A start aligned with the obstacle row is not certifiable for any tested window, because a committed heading must serve all three possible next rows; the start therefore lies in the upper lane.
R1 search. Gate 3 searches exactly reachable box states. It starts from the rational enclosure X 0 X_0 X 0 of the history endpoint (no float conversion) and extends 40 rollouts: at each step it picks a random completion-preserving edge and a branch cell, steers a rational disturbance to the midpoint of W ∩ ( P ρ b − F e ( X k ) ) \mathcal{W} \cap(P_{\rho_b} - F_e(X_k)) W ∩ ( P ρ b − F e ( X k )) , with F e ( X k ) F_e(X_k) F e ( X k ) the interval enclosure of f ( x , κ e ( x ) , 0 ) f(x, \kappa_e(x), 0) f ( x , κ e ( x ) , 0 ) over X k X_k X k , and keeps the successor enclosure X k + 1 X_{k+1} X k + 1 if it lies strictly inside P ρ b P_{\rho_b} P ρ b with decided bits and a winning successor state. At every ( k , X k , q k ) (k, X_k, q_k) ( k , X k , q k ) with k ≤ H − 2 k \le H - 2 k ≤ H − 2 and every completion-preserving edge, it applies the same steering to each branch cell, requires a strictly positive margin and decided bits for the whole box, advances the monitor on those bits and enumerates all outgoing edges at k + 1 k+1 k + 1 with the all-successor check. The evidence is therefore valid for every state in X k X_k X k , which contains the actual state under the recorded history and disturbances. Primitive identities are digests of the law parameters, independent of the source cell.
R3 protocol. The configuration file (2 geometries × \times × 10 seeds, proposer parameters, disturbance law, budget and the four targeted cases) was frozen before any arm ran. Each coordinate of w k w_k w k is a vertex of W \mathcal{W} W with probability 1 / 2 1/2 1/2 and uniform otherwise, drawn from the seed independently of the actions. The proposer is a 4-iteration CEM (population 48, 8 elites) over 5-step ( v , θ r e f ) (v, \theta_{\mathrm{ref}}) ( v , θ ref ) sequences on the nominal model, with an approach cost before a a a , a window cost on R ˉ \bar{R} R ˉ shrunk by 0.5 m, obstacle and boundary penalties, and, after completion, attraction to the centre of Z p o s t Z_{\mathrm{post}} Z post ; the safety-only arm uses the same cost. The tick deadline covers proposal, projection and filtering and is checked after the final selection, before execution; on an overrun the certified witness edge is executed instead. In the targeted distracted case (Figure 11 b), the proposer’s task objective is replaced for the entire mission (ticks 0 0 0 –H − 1 H-1 H − 1 ) by attraction to the safe waypoint ( 1 , 4.2 ) (1, 4.2) ( 1 , 4.2 ) far from R ˉ \bar{R} R ˉ (obstacle and boundary penalties unchanged); the case tests the filter against a proposer that never pursues the task, not the shared proposer. Only the robust arm completes, after 9 interventions on physically safe proposals. The one-step filter acts only from certified states: at q 0 q_0 q 0 , 650 of the 1,404 admissible regions are certified, and from any other state it has no completion-preserving action to select. Every tick logs the raw proposal, the projected primitive, the executed primitive, the matched branch and the actual bits. Outcomes are classified as physical violation, task miss, post-set violation or completed; certificate loss is recorded separately. Completabity is lost at the first tick (or at H H H ) at which no region containing the actual state is winning, at the actual monitor state, in the robust recursion of the full library. The same criterion and robust winning family are used for all three arms. The loss time is
Figure 11. (a) R1 gate 3: two admissible disturbances put the successor of v = 1 v=1 v = 1 , θ r e f = 1 / 4 \theta_{\mathrm{ref}}=1/4 θ ref = 1/4 in different cells with disjoint feasible sets A 1 A_1 A 1 , A 2 A_2 A 2 . (b) R3 distracted proposer (cross: nominal certificate lost); blue: R ˉ \bar{R} R ˉ , green: K p o s t \mathcal{K}_{\mathrm{post}} K post (projected); grey: obstacle and clearance.
evaluated separately on each arm’s actual trajectory.
Table XI also reports the acceptance rate (ticks on which the executed primitive is the projected proposal), and the logs count branch-dependent ticks (the complete feasible sets at k + 1 k+1 k + 1 differ across the executed edge’s branches: 324 for the robust arm) and the path length J p a t h J_{\mathrm{path}} J path over all ticks, from which no cost claim is made. In the distracted case completability is lost at k = 2 k=2 k = 2 (nominal) and k = 1 k=1 k = 1 (safety-only), before the nominal certificate is lost at k = 8 k=8 k = 8 . In the other three targeted cases, vertex disturbances leave every nominal branch at k = 5 k=5 k = 5 ; replaying the gate-3 disturbances changes the executed primitive at k = 1 k=1 k = 1 ; and through an optimizer outage on ticks 3–8 the robust arm completes on 7 certified fallbacks. The targeted cases are written through the record store with run keys.
Table XI. R3, 20 frozen configurations, all reported.
R2 details. Table XII varies D D D and adds a second obligation on the same region (a = 14 a=14 a = 14 , b = 16 b=16 b = 16 , ℓ = 2 \ell=2 ℓ = 2 ). Compact states grow linearly in D D D per task and explicit ones exponentially; antichains stay small. The smaller representation does not pay off in resources here: with one task and D = 2 D=2 D = 2 the ordered recursion takes 3.52 s and 39.8 MB peak against 3.21 s and 4.6 MB for the compact table (two tasks: 6.04 s, 42.6 MB against 3.9 s, 9.7 MB). The ordered implementation stores generator lists and witnesses per entry; Section K-J measures and profiles the difference on matched queries. On the same partition, the single-successor sub-library has 0 edges: every verified one-step enclosure is wider than a cell, so each edge has 4, 6 or 9 branches, and even the w = 0 w=0 w = 0 library has 0 single-successor edges. Corollary 88 makes this independent of the grid: with heading primitives and product-box regions, 2 w ˉ a = 2.6 ≥ 2 m 2\bar{w}_a = 2.6 \ge2m 2 w ˉ a = 2.6 ≥ 2 m rules out a single-successor certificate on every partition; position-feedback primitives and non-product regions are outside that statement.
Table XII. R2 ON THE R1 GRAPH: COMPACT AND EXPLICIT STATE COUNTS, STORED GENERATORS, LARGEST ANTICHAIN, EVALUATED LABEL COMBINATIONS AND THE NAIVE NUMBER OF TARGET VECTORS ∑ ℓ , b ∣ M k + 1 ( ρ b ) ∣ \sum_{\ell,b}|M_{k+1}(\rho_b)| ∑ ℓ , b ∣ M k + 1 ( ρ b ) ∣ . ALL THREE RECURSIONS AGREE IN EVERY ROW. BOTTOM: UNTRACED WALL TIME AND TRACEMALLOC PEAK (SEPARATE RUN) FOR THE TRACED ROWS.
R4 protocol: branching policy on the quadrotor
Model. The certified system is the platform’s declared outer model (Section F) per axis, x j + 1 = A x j + B u j + w j x_{j+1}=Ax_j+Bu_j+w_j x j + 1 = A x j + B u j + w j with h = 1 5 s h=\frac{1}{5}s h = 5 1 s , ∣ w p ∣ ≤ 1 125 m |w_p| \le\frac{1}{125}m ∣ w p ∣ ≤ 125 1 m , ∣ w v ∣ ≤ 9 40 m s |w_v| \le\frac{9}{40} \frac{m}{s} ∣ w v ∣ ≤ 40 9 s m and ∣ u ∣ ≤ 9 10 m s 2 |u| \le\frac{9}{10} \frac{m}{s^2} ∣ u ∣ ≤ 10 9 s 2 m , grouped into macro tick of 5 samples (1 s). All task times ( a , b , ℓ , D , H ) (a,b,\ell,D,H) ( a , b , ℓ , D , H ) are macro ticks, and target bits are read only at macro boundaries. A primitive is a velocity reference v r e f ∈ { 0 , ± 1 4 , ± 1 2 } v_{\mathrm{ref}} \in\{0, \pm\frac{1}{4}, \pm\frac{1}{2}\} v ref ∈ { 0 , ± 4 1 , ± 2 1 } (25 primitives) applied at every sample as u j = 9 4 ( v r e f − v j ) u_j=\frac{9}{4}(v_{\mathrm{ref}}-v_j) u j = 4 9 ( v ref − v j ) on the measured velocity. The macro map is the exact composition of the 5 steps; its disturbance enclosure is the exact interval hull of the sum of the 5 propagated per-sample boxes. An edge is verified on its whole source cell and for all disturbances if the inputs satisfy ∣ u j ∣ ≤ 9 10 |u_j| \le\frac{9}{10} ∣ u j ∣ ≤ 10 9 at all 5 samples, every intermediate sample keeps the clearance 1 10 \frac{1}{10} 10 1 m from the closed obstacle [ 3 , 3.8 ] × [ 1.5 , 3.5 ] [3,3.8]\times[1.5,3.5] [ 3 , 3.8 ] × [ 1.5 , 3.5 ] and stays in the workspace [ 0 , 6 ] × [ 0 , 5 ] [0,6]\times[0,5] [ 0 , 6 ] × [ 0 , 5 ] (safety between macro boundaries is thus an additional verified property of each edge), and the successor enclosure is covered by present cells with conservative labels, as in R1. Regions are product cells of 1 8 \frac{1}{8} 8 1 m in position and 1 4 \frac{1}{4} 4 1 m/s in velocity over [ − 5 8 , 5 8 ] 2 \left[-\frac{5}{8},\frac{5}{8}\right]^2 [ − 8 5 , 8 5 ] 2 . The task is F [ a , a + 3 ] G [ 0 , 1 ] μ R F_{[a,a+3]}G_{[0,1]}\mu_R F [ a , a + 3 ] G [ 0 , 1 ] μ R with R ˉ = [ 4.5 , 5.5 ] × [ 2 , 3 ] \bar{R}=[4.5,5.5]\times[2,3] R ˉ = [ 4.5 , 5.5 ] × [ 2 , 3 ] , D = 2 D=2 D = 2 and H = a + 7 H=a+7 H = a + 7 ; K p o s t \mathcal{K}_{\mathrm{post}} K post is the safety fixed point inside Z p o s t = [ 4.25 , 5.75 ] × [ 1.75 , 3.25 ] Z_{\mathrm{post}}=[4.25,5.75]\times[1.75,3.25] Z post = [ 4.25 , 5.75 ] × [ 1.75 , 3.25 ] (all velocity cells), 1,936 of 3,600 candidates. The deadline was searched on the model before any robot run from the commanded start ( 33 16 , 41 16 , 0 , 0 ) \left(\frac{33}{16},\frac{41}{16},0,0\right) ( 16 33 , 16 41 , 0 , 0 ) with an all-zero history: a = 10 , … , 13 a=10,\ldots,13 a = 10 , … , 13 are not certified, a = 14 a=14 a = 14 is (H = 21 H=21 H = 21 ). Library construction takes 134 s and the ordered recursion 41 s.
Design log. The planned 0.5 m cells were replaced before any robot run; this is the one refinement we allowed. On 0.5 m cells the macro position image of a cell overlaps the cell itself even at full speed (about [ 0.36 , 1.07 ] [0.36,1.07] [ 0.36 , 1.07 ] from [ 0 , 0.5 ] [0,0.5] [ 0 , 0.5 ] ), so every moving region keeps a branch back to itself. With 1 4 \frac{1}{4} 4 1 m cells (we tried gains 5 4 \frac{5}{4} 4 5 and 9 4 \frac{9}{4} 4 9 , hold laws and a braking gain), the abstraction admitted neither a robust stop inside R ˉ \bar{R} R ˉ nor entry into the channels beside the obstacle. With 1 8 \frac{1}{8} 8 1 m cells the macro displacement at ∣ v r e f ∣ ≥ 1 4 |v_{\mathrm{ref}}|\ge\frac{1}{4} ∣ v ref ∣ ≥ 4 1 exceeds one cell on the whole source cell. The refinement was chosen by certification on the model alone.
Execution. Each fine sample j j j of macro tick k k k calls the unchanged robot interface with the measured outer state z = x j z=x_j z = x j , the input u j u_j u j , the tube gain K K K and the global sample index 5 k + j 5k+j 5 k + j , so e j = 0 e_j=0 e j = 0 at every boundary and the residual w j = x j + 1 + A x j − B u j w_j=x_{j+1}+Ax_j-Bu_j w j = x j + 1 + A x j − B u j is the quantity the platform evidence already reports. Before the mission the vehicle hovers under v r e f = 0 v_{\mathrm{ref}}=0 v ref = 0 for D D D macro ticks from the commanded start; the measured states give the history bits and q 0 q_0 q 0 , each is checked against the safety predicate, x 0 x_0 x 0 must lie strictly inside one cell ρ 0 \rho_0 ρ 0 , and gate 2 is Win 0 ( ρ 0 , q 0 ) \operatorname{Win}_0(\rho_0,q_0) Win 0 ( ρ 0 , q 0 ) . The policy executes witness edges of the ordered recursion, matches the branch on the measured macro successor and advances the monitor on the actual bits; after H H H it executes the K p o s t \mathcal{K}_{\mathrm{post}} K post witness edges for 5 further macro ticks and checks residence in K p o s t \mathcal{K}_{\mathrm{post}} K post . A run counts as guaranteed only if gate 2 holds, every successor up to H H H and during the post ticks matches a certified branch, and every residual lies in W \mathcal{W} W (no slack). The 10 wind seeds were fixed in the configuration before any run; the record keys include the MuJoCo version (3.14.0), the scene hash and the upstream model hash.
Results. Of the 10 seeds, 10 pass gate 2, 10 complete, 10 are safe at every sample with no obstacle contact, 10 stay in K p o s t \mathcal{K}_{\mathrm{post}} K post and 10 keep every residual in W \mathcal{W} W ; the largest residual is 35% of w ˉ p \bar{w}_p w ˉ p and 34% of w ˉ v \bar{w}_v w ˉ v , with peaks at changes of v r e f v_{\mathrm{ref}} v ref (Fig. 12b). The executed edges have up to 16 branches and the feasible sets at k + 1 k+1 k + 1 differ across branches at 150 of 210 executed ticks, but the hover pre-run ends within a few millimetres for all seeds and every seed realized the same branch at each of the 21 keys ( k , p , q , e ) (k,p,q,e) ( k , p , q , e ) (Fig. 12a). The runs therefore show that the robot executed the branching policy, not that successors or continuations differed between seeds.
Paired witness. We searched, on the declared fine-sample model, for two legal 5-sample disturbance sequences (every w i ∈ W w_i\in\mathcal{W} w i ∈ W , propagated exactly with the feedback evaluated on the propagated states) from the measured x 0 x_0 x 0 , taken as an exact rational, that end strictly inside different cells with decided bits and nonempty disjoint complete feasible sets: first at k = 0 k=0 k = 0 over all winning edges, then along the executed edges with a common exactly steered prefix. None was found from x 0 x_0 x 0 (witness found: no); on the region graph alone, the executed edge at k = 12 k=12 k = 12 has two abstract branches with nonempty disjoint certified action sets at k + 1 k+1 k + 1 .
The second search starts from measured decision states: from the measured states at all 210 recorded decision points of the 10 seeds, 710 candidate pairs of branches were classified exactly on the same fine-step outer dynamics (support-function margins on rational zonogons, no floating-point LP): 702 are unreachable, 0 reach only a cell boundary, 0 are undecided, and 8 are witnesses, i.e., two legal disturbance sequences from one measured state end strictly inside two cells whose certified next-action sets are nonempty and disjoint. All witnesses lie at k = 5 k=5 k = 5 on 4 seeds and use the same certified primitive v r e f = ( 1 / 4 , 0 ) v_{\mathrm{ref}}=(1/4,0) v ref = ( 1/4 , 0 ) , which the original runs did not execute; the margins inside the target cells are 0.22–4.5 mm. The two searches do not conflict: the first starts at x 0 x_0 x 0 , the second from measured decision states, and all 8 witnesses occur at k = 5 k=5 k = 5 .
Each witness side was then replayed once in MuJoCo from the recorded snapshot with a frozen gust (16 sides): in all 8 pairs the two trajectories reach different certified regions, but no side ends strictly inside its target cell (misses 23–27 mm), and in all 8 pairs the certified next-action sets of the two landing regions are strictly nested, so 0 pairs are disjoint. All 16 continuations complete with every residual in W \mathcal{W} W . The outer model therefore admits successors from an actual state that require incompatible certified actions; the MuJoCo replays did not reproduce such a pair.
R5 protocol: same state, different histories
Scene. Model, W \mathcal{W} W , primitives and cell sizes are those of R1; the workspace is [ 0 , 12 ] × [ 0 , 7.5 ] m [0,12]\times[0,7.5]\,\mathrm{m} [ 0 , 12 ] × [ 0 , 7.5 ] m without obstacles (3 240 regions, 75 327 verified edges). The two tasks are F [ 3 , 19 ] G [ 0 , 1 ] μ R j \mathbf{F}_{[3,19]}\mathbf{G}_{[0,1]}\mu_{R_j} F [ 3 , 19 ] G [ 0 , 1 ] μ R j with R ˉ A = [ 3 , 11 ] × [ 5 , 7 ] \bar{R}_A=[3,11]\times[5,7] R ˉ A = [ 3 , 11 ] × [ 5 , 7 ] and R ˉ B = [ 3 , 11 ] × [ 2 , 4 ] \bar{R}_B=[3,11]\times[2,4] R ˉ B = [ 3 , 11 ] × [ 2 , 4 ] , D = 2 D=2 D = 2 , H = 28 H=28 H = 28 , and K p o s t \mathcal{K}_{\mathrm{post}} K post is the fixed point inside Z ˉ p o s t = [ 10.5 , 12 ] × [ 0.5 , 7 ] \bar{Z}_{\mathrm{post}}=[10.5,12]\times[0.5,7] Z ˉ post = [ 10.5 , 12 ] × [ 0.5 , 7 ] (313 regions). The scene is mirror-symmetric about p y = 15 4 p_y=\frac{15}{4} p y = 4 15 . The targets are 2 m wide because a whole-cell successor enclosure is about 0.8 m wide; with 1 m targets no robust two-sample dwell was certified. Plain, explicit-bitset and ordered recursions agree at every ( k , ρ , q ) (k,\rho,q) ( k , ρ , q ) of the formal domain (144 compact and 576 bitset states).
Histories. Three prefixes start at the declared x 0 = ( 3 4 , 15 4 , 0 ) x_0=(\frac{3}{4},\frac{15}{4},0) x 0 = ( 4 3 , 4 15 , 0 ) , reached by a recorded zero-disturbance history, and end at x ⋆ = ( 25 4 , 15 4 , 0 ) x^\star=(\frac{25}{4},\frac{15}{4},0) x ⋆ = ( 4 25 , 4 15 , 0 ) at k = 12 k=12 k = 12 in the region ρ ⋆ = [ 6 , 6.5 ] × [ 3.5 , 4 ] × [ − 1 8 , 1 8 ] \rho^\star=[6,6.5]\times[3.5,4]\times[-\frac{1}{8},\frac{1}{8}] ρ ⋆ = [ 6 , 6.5 ] × [ 3.5 , 4 ] × [ − 8 1 , 8 1 ] , which contains x ⋆ x^\star x ⋆ with margin 1 8 \frac{1}{8} 8 1 (Figure 7 ). A visits only R ˉ A \bar{R}_A R ˉ A ; B, its mirror image, only R ˉ B \bar{R}_B R ˉ B ; AB both. Each step applies one library primitive and is enclosed in rational interval arithmetic; inputs, the safety predicate and decided bits are checked on every enclosure. Every step but the last uses a rational disturbance in W \mathcal{W} W . The last disturbance is the exact residual w ⋆ = x ⋆ − f ( x p r e v , κ e ( x p r e v ) , 0 ) w^\star=x^\star-f(x_{\mathrm{prev}},\kappa_e(x_{\mathrm{prev}}),0) w ⋆ = x ⋆ − f ( x prev , κ e ( x prev ) , 0 ) of the additive model for the actual x p r e v x_{\mathrm{prev}} x prev , so every prefix ends exactly at x ⋆ x^\star x ⋆ in every state component. It need not be rational and is never rounded; w ⋆ ∈ W w^\star\in\mathcal{W} w ⋆ ∈ W holds because its rational interval enclosure lies in W \mathcal{W} W (largest component 0.0082 m for A and B, 0.0085 m for AB). At x ⋆ x^\star x ⋆ the clock, region, bits and dwell counters coincide, and q A = ( ( 0 , 0 ) , ( 3 , 0 ) ) q_A=((0,0),(3,0)) q A = (( 0 , 0 ) , ( 3 , 0 )) , q B = ( ( 3 , 0 ) , ( 0 , 0 ) ) q_B=((3,0),(0,0)) q B = (( 3 , 0 ) , ( 0 , 0 )) , q A B = ( ( 0 , 0 ) , ( 0 , 0 ) ) q_{AB}=((0,0),(0,0)) q A B = (( 0 , 0 ) , ( 0 , 0 )) . The prefixes are legal but not certified throughout: A and B are certified from k = 11 k=11 k = 11 , AB from k = 5 k=5 k = 5 .
Certified sets. Enumerating every outgoing edge of ρ ⋆ \rho^\star ρ ⋆ at k = 12 k=12 k = 12 , q A q_A q A certifies { ( ( − 1 4 , − 1 ) , ( 1 4 , − 1 ) ) } \{((-\frac{1}{4},-1),(\frac{1}{4},-1))\} {(( − 4 1 , − 1 ) , ( 4 1 , − 1 ))} and q B { ( − 1 4 , 1 ) , ( 1 4 , 1 ) } q_B\{(-\frac{1}{4},1),(\frac{1}{4},1)\} q B {( − 4 1 , 1 ) , ( 4 1 , 1 )} (primitives written ( v , θ r e f ) (v,\theta_{\mathrm{ref}}) ( v , θ ref ) ): both nonempty, disjoint. q A B q_{AB} q A B certifies all 28 primitives, a strict superset; each of the 26 actions in the difference has 1–6 branches whose successor state is not winning under q A q_A q A . The reset state ( ( 3 , 0 ) , ( 3 , 0 ) ) ((3,0),(3,0)) (( 3 , 0 ) , ( 3 , 0 )) lies below q A q_A q A and q B q_B q B , so its certified set is contained in their intersection and is empty. Any rule that maps ( k , x ) (k,x) ( k , x ) to an action takes the same action at x ⋆ x^\star x ⋆ after A and after B and therefore leaves the certified set of at least one; this is a statement about certificates on this library, not about every controller.
Filter and continuation. All arms share one task-unaware proposer (speed 1 2 \frac{1}{2} 2 1 , heading towards the centre of Z p o s t Z_{\mathrm{post}} Z post clipped to [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] ), one filter rule (keep the projected proposal if it is certified, else the nearest certified primitive) and seeded disturbance sequences drawn as in R3 (10 seeds, fixed in the configuration). At x ⋆ x^\star x ⋆ the proposal projects to ( 1 2 , 0 ) (\frac{1}{2},0) ( 2 1 , 0 ) ; the filter executes ( 1 4 , − 1 ) (\frac{1}{4},-1) ( 4 1 , − 1 ) after A, ( 1 4 , 1 ) (\frac{1}{4},1) ( 4 1 , 1 ) after B and ( 1 2 , 0 ) (\frac{1}{2},0) ( 2 1 , 0 ) after AB. The all-monitor-memory reset controller re-initialises coverage and dwell of both tasks at x ⋆ x^\star x ⋆ but keeps the task clock, so windows and expiry are unchanged; without a completion certificate it filters with the robust safety-only certificate and executes ( 1 2 , 0 ) (\frac{1}{2},0) ( 2 1 , 0 ) . Task outcomes are judged by an independent monitor that is never reset and has read every actual bit since the declared start. With memory, 30/30 runs complete, keep the certificate, stay safe and remain in K p o s t \mathcal{K}_{\mathrm{post}} K post for 5 ticks after H H H . The reset controller loses its certificate at k = 12 k=12 k = 12 in every run; the independent monitor records completion in 0/10 runs after A, 0/10 after B and 10/10 after AB, whose tasks were already complete. All reset runs are safe and end in K p o s t \mathcal{K}_{\mathrm{post}} K post . These failures depend on the proposer and the fallback; they do not show that no controller without memory can complete.
Partial coverage. On the unchanged R1 library and task ( F [ 13 , 16 ] G [ 0 , 1 ] μ R , D = 2 , H = 19 (\mathbf{F}_{[13,16]}\mathbf{G}_{[0,1]}\mu_R,D=2,H=19 ( F [ 13 , 16 ] G [ 0 , 1 ] μ R , D = 2 , H = 19 , the same declared start and recorded history), two prefixes P and Q end exactly at x ⋆ = ( 87 16 , 7 4 , 1 2 ) x^\star=(\frac{87}{16},\frac{7}{4},\frac{1}{2}) x ⋆ = ( 16 87 , 4 7 , 2 1 ) at k = 14 k=14 k = 14 , inside one region with margin 1 16 \frac{1}{16} 16 1 . Both have visited R ˉ \bar{R} R ˉ and are outside it at sample 14 with dwell counter 0. P leaves one sample earlier, so its last completed dwell starts at s = 11 s=11 s = 11 and serves offsets { 2 } \{2\} { 2 } (c = 2 c=2 c = 2 ); Q’s starts at s = 12 s=12 s = 12 and serves { 1 , 2 } \{1,2\} { 1 , 2 } (c = 1 c=1 c = 1 ). P’s earlier witness serves no offset, and Q’s earlier witness at s = 11 s=11 s = 11 serves { 2 } \{2\} { 2 } , already inside its last set. Every step but the last uses zero disturbance; the last is the exact residual, inside W \mathcal{W} W by its interval enclosure (largest component 0.0510 m for P, 0.0509 m for Q). The explicit bitset monitor, run on the same bits, gives the same served sets, and from k = 2 k=2 k = 2 onward every region–monitor state reached along either prefix is winning. Enumerating every outgoing edge at x ⋆ x^\star x ⋆ , the compact monitor on the ordered recursion and the bitset monitor on its table both give { ( 1 , 1 ) } \{(1,1)\} {( 1 , 1 )} after P and { ( 1 , 1 ) , ( 1 2 , 1 2 ) } \{(1,1),(\frac{1}{2},\frac{1}{2})\} {( 1 , 1 ) , ( 2 1 , 2 1 )} after Q. The order guarantees only the inclusion; the complete enumeration shows that here P’s set is nonempty and the inclusion strict. The pair ( 1 2 , 1 2 ) (\frac{1}{2},\frac{1}{2}) ( 2 1 , 2 1 ) in the difference has 2 branches with the conservative label σ = 0 \sigma=0 σ = 0 at k = 14 + 1 k=14+1 k = 14 + 1 (not certified inside R ˉ \bar{R} R ˉ , which does not place the actual successor outside); through them the library recursion cannot certify offset 1 by its deadline b − 1 + ℓ = 16 b-1+\ell=16 b − 1 + ℓ = 16 , which Q has already met. The R5 proposer projects to ( 1 2 , 1 2 ) (\frac{1}{2},\frac{1}{2}) ( 2 1 , 2 1 ) at x ⋆ x^\star x ⋆ ; the filter keeps it after Q and executes ( 1 , 1 ) (1,1) ( 1 , 1 ) after P. With memory, 20/20 seeded continuations complete, keep the certificate, stay safe and remain in K p o s t \mathcal{K}_{\mathrm{post}} K post ; the reset state is not certified at x ⋆ x^\star x ⋆ .
R6 protocol: what the compact and ordered states cost
Scene and settings. Model, W \mathcal{W} W , primitives, cells and workspace are those of R1, without the obstacle (1 440 regions, 30 282 verified edges, H = 30 H=30 H = 30 ). There are four tasks F [ 2 , 26 ] G [ 0 , 1 ] μ R j \mathbf{F}_{[2,26]}\mathbf{G}_{[0,1]}\mu_{R_j} F [ 2 , 26 ] G [ 0 , 1 ] μ R j with upper targets [ 3 2 , 7 2 ] × [ 2 , 9 2 ] [\frac{3}{2},\frac{7}{2}]\times[2,\frac{9}{2}] [ 2 3 , 2 7 ] × [ 2 , 2 9 ] , [ 9 2 , 13 2 ] × [ 2 , 9 2 ] [\frac{9}{2},\frac{13}{2}]\times[2,\frac{9}{2}] [ 2 9 , 2 13 ] × [ 2 , 2 9 ] and lower targets [ 5 2 , 9 2 ] × [ 1 2 , 3 ] [\frac{5}{2},\frac{9}{2}]\times[\frac{1}{2},3] [ 2 5 , 2 9 ] × [ 2 1 , 3 ] , [ 11 2 , 15 2 ] × [ 1 2 , 3 ] [\frac{11}{2},\frac{15}{2}]\times[\frac{1}{2},3] [ 2 11 , 2 15 ] × [ 2 1 , 3 ] ; upper and lower targets overlap in p y ∈ [ 2 , 3 ] p_y\in[2,3] p y ∈ [ 2 , 3 ] , so one visit can serve two tasks. K p o s t \mathcal{K}_{\mathrm{post}} K post is the fixed point inside [ 6 , 8 ] × [ 1 2 , 2 ] [6,8]\times[\frac{1}{2},2] [ 6 , 8 ] × [ 2 1 , 2 ] . A setting ( n , D ) (n,D) ( n , D ) keeps the first n n n tasks, projects the labels on them (branches that then coincide are merged) and sets the offset bound to D D D . The sweeps vary n = 1 , … , 4 n=1,\ldots,4 n = 1 , … , 4 at D = 4 D=4 D = 4 and D ∈ { 2 , 4 , 8 , 16 } D\in\{2,4,8,16\} D ∈ { 2 , 4 , 8 , 16 } at n = 2 n=2 n = 2 , with ( 1 , 2 ) (1,2) ( 1 , 2 ) , ( 3 , 8 ) (3,8) ( 3 , 8 ) , ( 4 , 8 ) (4,8) ( 4 , 8 ) and ( 3 , 16 ) (3,16) ( 3 , 16 ) added. The code and the scene were developed on the 2 settings marked dev ; the remaining ones were run once after the configuration was frozen.
Figure 12. R4 in MuJoCo. (a) Measured paths of the 10 wind seeds (dots: macro boundaries) from the hover start (black) around the obstacle (grey, clearance band light grey) into R ˉ \bar{R} R ˉ (blue); dashed: Z p o s t Z_{\mathrm{post}} Z post . (b) Largest measured residual per sample relative to the declared bound (line at 1); negative times are the hover pre-run.
Queries and methods. Every method answers the same queries: for each region ρ \rho ρ , whether ( 0 , ρ , Γ ( h ) ) (0,\rho,\Gamma(h)) ( 0 , ρ , Γ ( h )) is winning, where h h h has no target bit on − D , … , 0 -D,\ldots,0 − D , … , 0 . The two sparse methods traverse forward from the queried states over every edge and branch to the states reachable on the graph and evaluate the robust AND/OR recursion backward on these only, with explicit ( D + 1 ) (D+1) ( D + 1 ) -bit masks (sparse bitset) or the compact pair ( c , r ) (c,r) ( c , r ) (sparse compact). The ordered method computes minimal generators and witnesses on the whole compact domain at every k k k (Theorem 29) and answers by lookup. Two auxiliary methods tabulate every monitor state at every ( k , ρ ) (k,\rho) ( k , ρ ) , in compact form (full compact) or as bitsets (full bitset); they show the cost of whole domains and are not part of the matched comparison.
Measurement. Each run is a fresh worker process, the only child of a launcher. The worker loads the pickled library, then times the method alone; peak resident memory is the launcher’s getrusage(RUSAGE_CHILDREN).ru_maxrss after the worker exits, and a load-only run per setting gives the baseline. A watchdog in the worker stops it at 600 s of method time or 12 GiB resident memory and records the run as over budget. Function profiles (cProfile, grouped into the categories of Figure 13 c by the calling function) and tracemalloc peaks are separate runs; no time in the table comes from them.
Figure 13. R6. (a) Method time per setting ( n , D ) (n,D) ( n , D ) (open markers: stopped at the budget, dashed line). (b) Peak resident memory above the load-only run. (c) Share of profiled time by category (separate cProfile runs). (d) Cumulative time over the online query batches, ordered (red) against sparse bitset (orange) and sparse compact (blue).
Checks. Answers agree across all methods that finish, in all 11 settings. In 11 completed checks, 1 321 164 reachable sparse states were compared with the ordered table (all of them on the 4 smallest settings, a seeded sample of 2000 per method elsewhere), every ordered witness was checked to be a winning action, and on the smallest settings the full compact and full bitset tables were compared with the ordered table on the whole domain; there was no mismatch.
Online batches. A second workload sends 16 query batches in sequence: batch j j j asks every region at k = j k=j k = j with one seeded random bit history on − D , … , j -D,\ldots,j − D , … , j (each bit 1 with probability 0.3). The sparse methods traverse again for each batch; the ordered method builds its table once, inside the first batch.
Results. Table XIII and Figure 13 give times and memory. Sparse bitset and sparse compact reach the same number of states in all settings. This is Theorem 14 : on a non-failed history the served offsets form a suffix, so a bitset state and its compact pair determine each other and the two reachable sets are in bijection, so the compact state does not reduce the number of visited states. With bitsets stored as integer masks, the sweep shows no clear resource gain of the compact state in sparse evaluation (times and memory in Table XIII ); this is a statement about this implementation and these settings. The main difference appears when whole domains are stored: at ( 2 , 4 ) (2,4) ( 2 , 4 ) the full bitset table needs 63.4 s and 607 MiB against 7.63 s and 149 MiB for full compact, and it exceeds the budget in 7 of 11 settings (full compact in 3).
On the fixed k = 0 k=0 k = 0 queries the ordered method takes 6.0–45.9 times as long as sparse compact. It computes generators for every state of the domain at every k k k , not only for the states reachable from the queries, and 68–84% of its profiled time is spent in tuple generation, state transitions and dominance tests. Its table answers later queries at any k k k and history by lookup, but in this workload that at best draws level: over the 16 online batches sparse compact needs 9.84, 8.35 and 36.4 s in total at ( 2 , 4 ) (2,4) ( 2 , 4 ) , ( 2 , 16 ) (2,16) ( 2 , 16 ) and ( 4 , 4 ) (4,4) ( 4 , 4 ) , against 9.87, 17.1 and 128 s for the ordered method. Later batches start closer to H H H , and some random histories are already failed, so each forward traversal is shorter than the first (Figure 13 d). The ordered method’s advantage is memory, which grows more slowly with the task count. It is below sparse compact only at ( 3 , 4 ) (3,4) ( 3 , 4 ) and with four tasks: at ( 3 , 4 ) (3,4) ( 3 , 4 ) its peak is 55 MiB above load against 59 MiB, at ( 4 , 4 ) (4,4) ( 4 , 4 ) 83 against 116 MiB, and in the online workload at ( 4 , 4 ) (4,4) ( 4 , 4 ) its peak is 202 against 311 MiB. At ( 3 , 16 ) (3,16) ( 3 , 16 ) and ( 4 , 8 ) (4,8) ( 4 , 8 ) no region is certified from the neutral history; every method still evaluates its recursion in full. The code is Python and not optimized; the ratios describe this implementation.