alphaFeedback

WorksComputer Science

The Complexity of Value Optimization in Sporadic Task Systems

AI contributions
  • Codex
View details

Abstract

Value-based Task Selection (VTS) asks whether a real-time system can select tasks whose total value reaches a required target while preserving every deadline. We study its threshold decision form for finite collections of independent sporadic tasks scheduled preemptively on one processor. We prove that this problem is Σ2PΣ_2^P-complete for both constrained and arbitrary deadlines, even when all numerical parameters are encoded in unary. The existential choice is the selected task set, while the universal condition requires every processor-demand window to remain feasible. Our hardness reduction already uses constrained-deadline tasks. It represents universal assignments by Chinese Remainder Theorem timestamps and uses polynomial-weight local selector locks to enforce a valid existential assignment. The reduction produces polynomially many tasks, and every generated execution time, deadline, period, task value, and target is polynomially bounded in the source-instance size.

Introduction

Choosing a valuable task set and deciding whether a fixed task set is feasible are often treated as separate questions. We study the combined problem: given a finite collection of independent sporadic tasks on one preemptive processor, each with an associated value, can one select a subset whose total value reaches a prescribed target and whose jobs all meet their deadlines under every legal release sequence? The selection is made offline, with the entire collection available. Once a task is selected, every job of that task must retain its hard-deadline guarantee. We show that this task-selection problem, which we call the Value-based Task Selection (VTS) problem, has the existential-universal structure of the second level of the polynomial hierarchy.

The central result is that VTS is Σ2P\Sigma^{P}_{2}-complete for both constrained and arbitrary deadlines, even when all numerical parameters are encoded in unary. Optional selector tasks encode an existential choice, while demand windows expose possible counterexamples to that choice. For a well-formed selection, the construction creates more required execution than available processor time in a window exactly when the encoded choice has a logical counterexample. The remainder of this section develops this interpretation before stating the contributions and organization of the paper.

Motivation

Real-time systems may contain more useful functionality than their available processing capacity can support. A concrete design-time setting is the configuration of an embedded platform whose recurrent tasks implement optional monitoring, diagnostic, or quality-enhancement functions. Enabling a feature selects its entire sporadic task: every job must meet its hard deadline under every legal release sequence. Disabling the feature removes the complete recurrent workload. Selecting more functionality increases total value, but the resulting workload must still meet every hard deadline.

Utility-driven task selection also appears in cloud computing. Li and Wu [19] select periodic tasks and their parallelization options to maximize total utility on multiple processing units, under implicit deadlines. That model differs from our sequential sporadic tasks on one processor, but it provides a concrete example of choosing which recurrent workloads to retain under limited processing capacity.

For implicit-deadline tasks on one preemptive processor, each selected task consumes a single utilization share, giving the scalar-capacity structure of 0-1 knapsack. With constrained deadlines, the same selected set must instead satisfy a family of processor-demand inequalities, one for each relevant interval length. The standard single-capacity knapsack formulation therefore does not directly supply algorithms or approximation guarantees for this setting.

This task-selection problem also connects to multiple-implementation selection (MIS), where exactly one implementation is chosen per functionality. If MIS permits a disabled option with zero execution and zero value, each task becomes a two-option choice: select it or disable its functionality. Section 2 gives this embedding and the resulting completeness classification under the same scheduling assumptions.

Problem Overview

Following the sporadic task model introduced by Mok [22], the input is an indexed multiset of tasks

τi=(Ci,Di,Ti,Vi),\tau_i = (C_i, D_i, T_i, V_i),

where CiC_i, DiD_i, and TiT_i are execution time, relative deadline, and minimum inter-arrival separation, and ViV_i is the value of selecting τi\tau_i. We consider independent tasks on one preemptive unit-speed processor. Earliest deadline first (EDF) is optimal under these assumptions. The formal model appears in Section 3.

We study the threshold decision form because completeness is defined for decision problems: the VTS problem determines whether the maximum feasible value is at least KK. For a selected indexed submultiset AA, write

V(A)=∑τi∈AVi.V(A) = \sum_{\tau_i \in A} V_i.

In the implicit-deadline case Di=TiD_i = T_i, EDF feasibility is equivalent to

∑τi∈ACiTi≤1.\sum_{\tau_i \in A} \frac{C_i}{T_i} \le1.

Therefore tasks act as knapsack items, their values are ViV_i, and their sizes are utilization shares Ci/TiC_i/T_i. This is the classical 0-1 knapsack structure, for which exact and approximation algorithms are well studied [8, 15] (Kellерer et al. 2004).

Constrained deadlines replace this single capacity constraint with interval-dependent demand constraints. The demand bound function (DBF), denoted dbf⁡(A,ℓ)\operatorname{dbf}(A,\ell), is the maximum execution demand of jobs of AA that can both arrive and have their deadlines within an interval of length ℓ\ell. Feasibility requires dbf⁡(A,ℓ)≤ℓ\operatorname{dbf}(A,\ell) \le\ell for every ℓ>0\ell> 0 (e.g., see Baruah et al. [4]); Section 3 gives the formula and exact criterion.

Why the Problem Has a Sigma-2-P Shape

Throughout this explanation, a proposed solution or counterexample is called short if its encoding length is bounded by a polynomial in the input size. The predicate RR is computable in polynomial time. The polynomial hierarchy extends NP and coNP through successive levels with a fixed number of alternations between existential and universal choices [27, 28]. For an NP problem, an instance II’s membership is confirmed by exhibiting one short proposed solution ww and checking it in polynomial time: ∃w:R(I,w)=1\exists w : R(I,w) = 1. For a coNP problem, membership is confirmed only if every short proposed counterexample ww fails to break it: ∀w:R(I,w)=1\forall w : R(I,w) = 1. The second existential level, Σ2P\Sigma^{P}_{2}, combines these two ideas:

∃w1 ∀w2:R(I,w1,w2)=1.\exists w_{1}\ \forall w_{2} : R(I,w_{1},w_{2}) = 1.

In plain terms, there is a short candidate solution that remains valid under every short challenge. For VTS, after choosing tasks whose value reaches the target, one question remains: can this set meet every deadline? Imagine being able to hand the set to a checker and get a correct yes-or-no answer. Complexity theory calls this assumed checker an oracle. We could ask “Is the set feasible?” or instead ask “Is there a demand window that overloads the processor?” A yes to one means a no to the other. The feasibility question is in coNP; the overload question is in NP. Either answer therefore lets us judge our chosen set, giving the two equivalent descriptions

Σ2P=NPcoNP=NPNP.\Sigma^{P}_{2} = \mathrm{NP}^{\mathrm{coNP}} = \mathrm{NP}^{\mathrm{NP}}.

Ekberg and Baruah [12] discuss these views and their relevance to real-time scheduling. Figure 1 illustrates the levels of the polynomial hierarchy and how each one builds on the levels below it.

Polynomial hierarchy through level 2

Figure 1. The polynomial hierarchy through its second level. The enclosing boundary places all displayed classes inside PH, and the continuation cue indicates higher levels. Solid arrows show class containments; no strict separation is asserted. The separate callout identifies this paper’s result: VTS is Σ2P\Sigma^{P}_{2}-complete. Its dashed pointer identifies the relevant class and does not represent a class-containment relation.

The order of the choices distinguishes the two branches: Σ2P\Sigma^{P}_{2} chooses first and then tests every response; Π2P\Pi^{P}_{2} reverses that order. VTS follows the first pattern.

The VTS decision problem has the form:

∃A⊆Γ:[V(A)≥K]∧[∀ℓ>0:dbf⁡(A,ℓ)≤ℓ].\exists A \subseteq\Gamma: \left[V(A) \ge K\right] \land\left[\forall\ell> 0 : \operatorname{dbf}(A,\ell) \le\ell\right].

The selected set AA is the existential choice. Once AA is fixed, one interval satisfying dbf⁡(A,ℓ)>ℓ\operatorname{dbf}(A,\ell) > \ell is a counterexample to its feasibility. The display describes the scheduling condition; Section 4 establishes the polynomial-length counterexample bound needed for the complexity classification. A Σ2P\Sigma^{P}_{2}-completeness result is therefore stronger than separate NP- and coNP-hardness results. Unless the polynomial hierarchy collapses, the problem lies in neither NP nor coNP.

Contributions

  • We formalize the threshold decision form of Value-based Task Selection for sporadic tasks on one preemptive processor: every selected task executes in full, and the selected set must reach a prescribed value target.

  • We prove that VTS is Σ2P\Sigma^{P}_{2}-complete for both constrained and arbitrary deadlines. The constrained-deadline hardness construction uses demand windows indexed via the Chinese Remainder Theorem (CRT) to represent universal responses and a polynomial-weight local selector lock to enforce one existential truth choice per variable.

  • We prove that the construction produces polynomially many tasks and polynomially bounded numerical parameters. As a result, completeness also holds when all numerical parameters are encoded in unary.

Organization

§ 2 reviews related work, and § 3 defines the model and decision problem. Section 4 proves membership in Σ2P\Sigma^{P}_{2}. § 5 introduces the quantified source problem, summarizes the complete construction, and states the reduction invariant. § 6 and § 7 develop the demand gadgets and selector lock. § 8 and § 9 give the detailed construction and correctness proof, and § 10 proves the task-count and numerical-parameter bounds. § 11 states the completeness theorem. § 12 and § 13 discuss its implications and conclude.

Related Work

Four strands of prior work provide the closest context for this problem: real-time admission control, optional or imprecise execution, exact uniprocessor feasibility analysis, and polynomial-hierarchy classifications in real-time scheduling. They differ in what is selected, when the selection is made, or which scheduling platform is studied.

Admission Control and Value-Aware Scheduling

Classical real-time admission control decides whether newly arriving work can be accepted without invalidating guarantees already made to admitted work [7] Andersson and Ekelin, 2005). The problem studied here instead receives the entire task collection at design time and selects a feasible subset whose fixed task values reach a target.

Value-based overload scheduling treats completed work as an optimization objective. Burns et al. [5] survey the role of value in flexible real-time scheduling, while Koren and Shasha [18] study online utility-maximizing admission under overload. More recent work studies value-aware scheduling for transportation applications and response-time-dependent utility accrual [29, 6]. These models provide related utility objectives; they do not establish the complexity of the offline whole-task selection problem studied here.

Knapsack formulations also arise in other real-time resource decisions. Mejia-Alvarez et al. [21] choose among discrete processor speeds to improve energy savings under timing constraints. Goossens and Richard [16] use a knapsack subproblem to bound a mode-transition delay in partitioned multimode scheduling. The objectives and scheduling models differ from ours; these examples illustrate the use of scalar-capacity selection subproblems in real-time analysis.

Multiple-choice knapsack selects exactly one alternative from each group [26]. A related multiple-implementation selection (MIS) model chooses exactly one implementation per functionality. For example, alternative classifiers for the same classification task may trade execution demand against utility. For MIS models permitting an explicit disabled implementation, task selection is the special case with two alternatives per functionality: the given task, or a disabled option with zero execution and zero value. The latter is an option of the extended model, not a task in our positive-parameter domain. For explicitly listed alternatives under the same scheduling assumptions, this MIS threshold decision problem is Σ2P\Sigma_{2}^{P}-complete for both constrained and arbitrary deadlines. Hardness follows from the two-option embedding. For membership, guess exactly one implementation per functionality, check the total value, and apply the feasibility check to the selected implementations (see Theorem 2).

Optional and Imprecise Execution

Imprecise-computation and reward-based models divide work into mandatory and optional portions, allowing result quality to improve as optional execution is completed [20, 25, 3]. These models optimize how much optional service to execute after preserving mandatory timing guarantees. In contrast, our decision is made at task granularity: a selected sporadic task executes in full, and all of its jobs must meet hard deadlines.

Feasibility and Complexity of Uniprocessor Scheduling

For preemptive uniprocessor scheduling of constrained-deadline sporadic tasks, processor demand gives a necessary and sufficient feasibility condition [4]. The complexity of evaluating such conditions was clarified in stages. Eisenbrand and Rothvoß proved weak coNP-hardness for EDF schedulability of synchronous periodic task systems, and Ekberg and Yi later established strong coNP-completeness for constrained-deadline sporadic feasibility [11, 13]. Related difficulty also appears under static-priority scheduling: exact response-time computation is NP-hard [10].

Our reduction builds on the modular structure used in the constrained-deadline feasibility result. CRT-based constructions identify demand windows whose residue patterns represent Boolean assignments; the constructed deadline offsets turn matching patterns into controlled processor-demand spikes.

Polynomial-Hierarchy Results in Real-Time Scheduling

Ekberg and Baruah [12] classify a broad family of partitioned multiprocessor schedulability problems rather than treating them uniformly as NP-hard. For asynchronous periodic task systems scheduled by EDF, they prove that the constrained- and arbitrary-deadline partitioning problems are Σ2P\Sigma^{P}_{2}-complete, for both a constant and an arbitrary number of processors. For fixed-priority scheduling, several corresponding problems are Σ2P\Sigma^{P}_{2}-hard but have only a Σ3P\Sigma^{P}_{3} upper bound; exact classification therefore remains open in those cases. They also identify fixed-priority implicit-deadline cases whose classification depends on whether the priority order is specified.

Agrawal et al. [1] relate exact, pseudo-polynomial, and approximation-based notions of tractability in real-time schedulability analysis. They also analyze a memory-constrained task-selection problem to illustrate limits of approximation schemes. That selection model and objective differ from the hard-deadline value-threshold problem studied here.

Our result exhibits the same higher-level quantifier structure without a partitioning decision or multiple processors. Here the existential choice is which tasks to select, and the universal condition requires the resulting single-processor task set to satisfy every processor-demand constraint.

Model and Problem Definition

This section fixes the model before any complexity argument begins. It defines sporadic tasks, deadline restrictions, and the assumptions under which EDF is optimal, introduces the demand bound function and its exact feasibility criterion, and then defines the value-threshold decision problem.

Task Model

Definition 1 (Sporadic Task). A task is a tuple

τi=(Ci,Di,Ti,Vi)\tau_i = (C_i, D_i, T_i, V_i)

where CiC_i is execution time, DiD_i is relative deadline, TiT_i is minimum inter-arrival separation, and ViV_i is the value obtained if τi\tau_i is selected. Each job requires at most CiC_i units of execution and has an absolute deadline DiD_i time units after its release. Consecutive releases are separated by at least TiT_i time units. All four parameters are positive integers, with Ci≤DiC_i \le D_i.

Deadlines are implicit if Di=TiD_i = T_i for every task and constrained if Di≤TiD_i \le T_i for every task. The arbitrary-deadline model imposes no relation between DiD_i and TiT_i. The hardness construction below produces only constrained-deadline tasks; however, since the arbitrary-deadline model is a generalization of constrained-deadline model, the hardness result for constrained-deadlines immediately implies a hardness result for arbitrary deadlines.

A release sequence ri,0,ri,1,…r_{i,0}, r_{i,1}, \ldots is legal for τi\tau_i if ri,0≥0r_{i,0} \ge0 and ri,k+1−ri,k≥Tir_{i,k+1} - r_{i,k} \ge T_i for every consecutive pair of releases. A collection of release sequences is legal if this condition holds for every task.

Tasks are independent, jobs are fully preemptible, and the processor has unit speed. A task system is feasible if some scheduling algorithm meets every deadline for every legal collection of release sequences, with each job requiring at most its task’s execution-time bound. Earliest deadline first is optimal under these assumptions [9], so feasibility and EDF-schedulability are equivalent.

Demand Bound Function

For a selected indexed submultiset AA, define its demand bound function (DBF) by

dbf⁡(A,ℓ)=∑τi∈Amax⁡{0,⌊ℓ−DiTi⌋+1}Ci.\operatorname{dbf}(A,\ell) = \sum_{\tau_i \in A} \max\left\{0,\left\lfloor\frac{\ell-D_i}{T_i}\right\rfloor+1\right\} C_i.

Throughout the paper, AA denotes a selected task set. For each task, the floor term counts the largest number of jobs that can both arrive and have their deadlines within a window of length ℓ\ell. Multiplying that count by CiC_i gives the corresponding execution demand. Summing over the selected tasks therefore measures the maximum processor demand that must fit inside the window.

The utilization of AA is

U(A)=∑τi∈ACiTi.U(A) = \sum_{\tau_i \in A} \frac{C_i}{T_i}.

Every term of dbf⁡(A,ℓ)\operatorname{dbf}(A,\ell) and U(A)U(A) is nonnegative, so demand and utilization are monotone in the selected set. In particular, removing tasks from a feasible set preserves feasibility. Therefore additional tasks can increase total value while making the selected set infeasible.

Feasibility Criterion

Theorem 1 (Demand-bound feasibility criterion; Baruah et al. [4]). A selected sporadic task system AA is feasible on a preemptive uniprocessor if and only if

U(A)≤1anddbf⁡(A,ℓ)≤ℓ for all ℓ>0.U(A) \le1 \quad\text{and} \quad\operatorname{dbf}(A,\ell) \le\ell\text{ for all } \ell> 0.

The DBF is a right-continuous step function of the interval length ℓ\ell. Its possible discontinuities occur at Di+kTiD_i + kT_i, for τi∈A\tau_i \in A and integers k≥0k \ge0. These are deadlines in a synchronous minimum-separation release pattern; an arbitrary sporadic release sequence can have different absolute deadlines.

Lemma 1 (Sufficiency of DBF discontinuities; cf. Baruah et al. [4]). If dbf⁡(A,ℓ)>ℓ\operatorname{dbf}(A,\ell) > \ell for some ℓ>0\ell> 0, then there exist τi∈A\tau_i \in A, an integer k≥0k \ge0, and ℓ′=Di+kTi≤ℓ\ell' = D_i + kT_i \le\ell such that dbf⁡(A,ℓ′)>ℓ′\operatorname{dbf}(A,\ell') > \ell'.

VTS Decision Problem

Definition 2 (VTS). An instance consists of a finite indexed multiset Γ\Gamma of sporadic tasks and a nonnegative integer value target KK. The question is whether there exists a selected indexed submultiset A⊆ΓA \subseteq\Gamma such that

V(A)=∑τi∈AVi≥Kanddbf⁡(A,ℓ)≤ℓ for every ℓ>0.V(A) = \sum_{\tau_i \in A} V_i \ge K \quad\text{and} \quad\operatorname{dbf}(A,\ell) \le\ell\text{ for every } \ell> 0.

The constrained-deadline restriction additionally requires Di≤TiD_i \le T_i for every input task.

The DBF condition already implies U(A)≤1U(A) \le1, since

lim⁡ℓ→∞dbf⁡(A,ℓ)ℓ=U(A).\lim_{\ell\to\infty} \frac{\operatorname{dbf}(A,\ell)}{\ell} = U(A).

A selection AA meets the value target when V(A)≥KV(A) \ge K. This value condition alone does not imply that AA is feasible.

With the decision problem fixed, the next section proves the upper bound needed for the completeness result.

Membership in Σ2P\Sigma_2^P

The upper-bound argument separates the same two roles used in the hardness construction. A selection vector supplies the existential choice. Once that choice is fixed, one polynomial-length demand window can verify infeasibility, so feasibility is a coNP condition.

Theorem 2. VTS ∈Σ2P\in\Sigma_2^P for constrained and arbitrary deadline sporadic task systems.

Proof. Consider a candidate selection vector that specifies a selected indexed submultiset AA. Its value V(A)V(A) is computable in polynomial time. The remaining question is whether this fixed task set is feasible. The following argument verifies infeasibility in NP for any sporadic task system, using Theorem 1. If U(A)>1U(A)>1, infeasibility is direct. The empty selection is trivially feasible. For nonempty AA with U(A)≤1U(A)\le1, let

P(A)=lcm⁡{Ti:τi∈A},Dmax⁡(A)=max⁡τi∈ADi.P(A)=\operatorname{lcm}\{T_i:\tau_i\in A\},\qquad D_{\max}(A)=\max_{\tau_i\in A}D_i.

For every ℓ>P(A)+Dmax⁡(A)\ell>P(A)+D_{\max}(A), increasing the window length by one hyper-period P(A)P(A) adds exactly P(A)Ci/TiP(A)C_i/T_i demand from each task τi∈A\tau_i\in A. Therefore,

dbf⁡(A,ℓ)=dbf⁡(A,ℓ−P(A))+P(A)U(A).\operatorname{dbf}(A,\ell)=\operatorname{dbf}(A,\ell-P(A))+P(A)U(A).

Because U(A)≤1U(A)\le1, a violation at ℓ\ell implies a violation at ℓ−P(A)\ell-P(A). Repeating this shift shows that, if AA is infeasible, some violating window satisfies ℓ≤P(A)+Dmax⁡(A)\ell\le P(A)+D_{\max}(A). By Lemma 1, it may be chosen at a DBF discontinuity. Although P(A)P(A) can be exponentially large, its binary representation has at most 1+∑τi∈A⌈log⁡2Ti⌉1+\sum_{\tau_i\in A}\lceil\log_2 T_i\rceil bits. Since Dmax⁡(A)D_{\max}(A) is an input parameter, every ℓ≤P(A)+Dmax⁡(A)\ell\le P(A)+D_{\max}(A) also has polynomial binary length. Given this binary-encoded ℓ\ell, checking dbf⁡(A,ℓ)>ℓ\operatorname{dbf}(A,\ell)>\ell takes polynomial time. Therefore infeasibility has an NP verification, and feasibility is in coNP. Once a selection AA is chosen, the combined condition that V(A)≥KV(A)\ge K and AA is feasible is therefore coNP-decidable. The VTS decision problem asks whether such a selection exists, placing it in NPcoNP=Σ2P\mathrm{NP}^{\mathrm{coNP}}=\Sigma^{\mathrm{P}}_2.

Reduction Overview

We now introduce the quantified source problem and summarize the construction and its proof obligations.

Source Problem and Reduction Idea

We reduce from the standard Σ2P\Sigma^{\mathrm{P}}_2-complete ∃∀\exists\forall-3DNF problem [27, 28, 24]. Its instances have the form

∃X∀Y φ(X,Y).\exists X\forall Y\ \varphi(X,Y).

Here X={x1,…,xn}X=\{x_1,\ldots,x_n\}, Y={y1,…,yu}Y=\{y_1,\ldots,y_u\}, and φ\varphi is a three-literal disjunctive-normal-form (3-DNF) formula with exactly three literals over distinct variables in each term. The question is whether some assignment α\alpha to XX makes φ(α,β)\varphi(\alpha,\beta) true for every assignment β\beta to YY. Under the quantifier interpretation, the existential player commits to α\alpha first. That choice must survive every response β\beta of the universal player. Appendix A justifies this normal form.

Fix an existential assignment α\alpha. To show that α\alpha is not winning, it is enough to find one universal assignment β\beta for which φ(α,β)\varphi(\alpha,\beta) is false. We therefore work with its negation, a three-literal conjunctive-normal-form (3-CNF) formula:

F(X,Y)=¬φ(X,Y)=C1∧⋯∧Cm.F(X,Y)=\neg\varphi(X,Y)=C_1\land\cdots\land C_m.

We write CkC_k for a clause, reserving CiC_i for task execution time. Therefore F(α,β)F(\alpha,\beta) is true exactly when β\beta is a counterexample to α\alpha, and α\alpha is winning exactly when no β\beta satisfies F(α,β)F(\alpha,\beta). The reduction uses three representations of the counterexample condition: Boolean patterns, modular tests, and task demands. First, we identify the variable-consistency and clause-satisfaction patterns to recognize. Second, we convert these clause-satisfaction patterns into a number-theoretic representation as sets of congruences, which describe recurring sets of integers. In this number-theoretic construction, truth assignments to boolean variables are represented by integer “coordinates” and the set of congruences enforce a consistent assignment of truth values in these clause-satisfaction patterns. Third, using the number-theoretic representation of the Boolean formula FF, we construct sporadic tasks whose combined demand encodes the congruences derived in the previous step. For each existential assignment α\alpha, the construction provides a corresponding task selection for which a deadline miss is possible exactly when some assignment β\beta satisfies F(α,β)F(\alpha,\beta). The following paragraphs explain these translations.

We construct the entire task collection from FF before any optional selection is made. The modular tests are imposed on a nonnegative integer demand-window index xx. Each coordinate has an assigned prime, and its value at xx is the residue of xx modulo that prime. Different coordinates use different primes. Boolean tests use residues 00 and p−1p-1 modulo a coordinate’s prime pp. A pattern specifies the coordinate residues required for one local test. The Chinese Remainder Theorem (CRT) combines these requirements into one congruence x≡a(modb)x \equiv a \pmod{b}, where bb is the product of the pattern’s primes.

For example, the coordinate requirements x≡2(mod3)x \equiv2 \pmod{3} and x≡0(mod5)x \equiv0 \pmod{5} combine into x≡5(mod15)x \equiv5 \pmod{15}. This illustrates one pattern; the construction applies the same translation to its clause and consistency tests.

A full gadget G(a,b,w)G(a,b,w) converts the congruence and a weight ww into bb ordinary sporadic tasks. Their execution times, deadlines, and periods are chosen so that, at designated test windows, their combined demand equals a baseline contribution plus ww when the index matches the congruence, and equals the baseline otherwise. Thus the pattern specifies a test, CRT supplies its arithmetic form, and the gadget supplies the tasks that implement it. All gadgets inspect the same index xx, so matching patterns agree on every shared coordinate.

The optional selectors are individual tasks. Choosing one of two selectors per existential variable fixes α\alpha. Each clause of FF has a pattern for each satisfying assignment to its three variables, while additional patterns provide validity and consistency tests. CRT also ensures that one index can realize one prescribed residue for each coordinate simultaneously. Arbitrary indices need not represent Boolean assignments; the validity, consistency, and clause tests together prevent these indices from creating false counterexamples.

The value target forces every task of every full gadget into the selected set. Utilization and demand constraints then enforce exactly one selector per existential variable. A selection with this structure is called well formed. For such a selection encoding α\alpha, an overloaded window exists exactly when some universal assignment β\beta satisfies F(α,β)F(\alpha,\beta). This describes how the negated matrix is used inside the reduction; the source problem is still ∃X∀Y φ(X,Y)\exists X\forall Y\ \varphi(X,Y), with its 3-DNF matrix. We assume n≥1n \ge1, adding an unused existential variable if necessary, which leaves the answer unchanged.

Figure 2 gives the complete reduction at the level of roles rather than formulas. Later sections define the boxes in the middle of the figure; the correctness proof shows that their composition has the behavior stated on the right.

Realization of the source quantifiers in the reduction

Figure 2. Realization of the source quantifiers in the reduction. Optional task selections encode the existential assignment α\alpha. CRT ensures that every universal assignment β\beta has a compatible window index. For a well-formed selection, any β\beta satisfying F(α,β)F(\alpha,\beta) yields an overloaded window; the correctness proof also shows that an overloaded window implies such a counterexample.

Construction at a Glance

Before developing the gadgets, we summarize the complete output instance. The detailed task parameters appear in Sections 6–8. A full gadget G(a,b,w)G(a,b,w) expands into bb tasks and recognizes one residue pattern. The selector H(p,w)H(p,w) is a single optional task with a weight-ww demand spike at the designated test windows when x≡p−1(modp)x \equiv p-1 \pmod{p}.

Each existential variable xix_i has two coordinates, tit_i and fif_i, with distinct primes. Each universal variable yjy_j has one coordinate with its own prime. An index is exact for xix_i when both of its coordinate residues are Boolean. For these exact tests, write 1 for a coordinate’s maximum residue p−1p-1 and 0 for residue zero. In the order (ti,fi)(t_i,f_i), the pairs 10 and 01 encode true and false; 11 and 00 are the both-match and neither-match consistency tests. These pairs describe the window index’s residues, not which tasks were selected.

The inventory uses three demand parameters: W0W_0 is the anchor weight, qq is the selector weight, and SS is the local spike budget for one existential variable. These parameters control execution demand; task values, which determine whether the selection reaches its target, are assigned separately below.

The output has the following five task families:

  1. To supply a common demand offset, one always-matching anchor G(0,1,W0)G(0,1,W_0).

  1. To test consistency of the existential choices, four full helpers per xix_i, for exact states 10, 01, 11, 00, with weights 1, 1, 1, SS, respectively.

  1. To recognize Boolean universal values, two unit-weight full gadgets per yjy_j, for residues 0 and pyj−1p_{y_j}-1.

  1. To recognize clause satisfaction, seven unit-weight full gadgets per clause CkC_k, one for each satisfying assignment to its three distinct variables.

  1. To choose the existential assignment, two optional selectors per xix_i: τit=H(pti,q)\tau_i^t = H(p_{t_i},q) and τif=H(pfi,q)\tau_i^f = H(p_{f_i},q).

Let P\mathcal{P} be the weighted multiset of patterns in families 2–4. Each ρ∈P\rho\in\mathcal{P} specifies a congruence aρ(modbρ)a_\rho\pmod{b_\rho} and a weight wρw_\rho. The detailed residue requirements appear in Section 8. Let pmax⁡p_{\max} be the largest coordinate prime. The constants have the following roles:

  • The selector weight qq and local spike budget SS are

q=m+1,S=q+1.q = m + 1,\qquad S = q + 1.

At most one satisfying pattern matches per clause, so the entire clause layer contributes at most mm units of extra demand above its baseline. Choosing q>mq > m makes a duplicate selector’s penalty larger than that possible contribution. A matching selector together with a matching unit helper fills the budget $S.

  • The total non-anchor mandatory weight and the anchor weight are

Bmand=n(S+3)+2u+7m,W0=1+qpmax⁡+S.B_{\mathrm{mand}} = n(S + 3) + 2u + 7m,\qquad W_0 = 1 + qp_{\max} + S.

Here BmandB_{\mathrm{mand}} sums gadget weights, not individual tasks. The anchor supplies a fixed demand offset and helps ensure that the resulting tasks satisfy the constrained-deadline requirements.

  • The common timing scale is

Λ=W0+Bmand+nq.\Lambda= W_0 + B_{\mathrm{mand}} + nq.

This choice makes the utilization of all mandatory tasks and exactly nn selected selectors equal to one.

  • The forbidden extra-demand threshold is

h=W0+nS+u+m.h = W_0 + nS + u + m.

The terms correspond to the anchor, the nn local budgets, the uu universal-variable tests, and the mm clause tests. § 6 explains how the test-window lengths make this threshold exceed the capacity remaining beyond the baseline budget.

Using indexed multiset union, the complete task collection is

Γmand=G(0,1,W0)⊎(⨄ρ∈PG(aρ,bρ,wρ)),\Gamma_{\mathrm{mand}} = G(0,1,W_0) \mathbin{\uplus} \left(\mathop{\biguplus}_{\rho\in\mathcal{P}} G(a_\rho,b_\rho,w_\rho)\right),
Γopt=⨄i=1n{τit,τif},\Gamma_{\mathrm{opt}} = \mathop{\biguplus}_{i=1}^{n}\{\tau_i^t,\tau_i^f\},
Γ=Γmand⊎Γopt.\Gamma= \Gamma_{\mathrm{mand}} \mathbin{\uplus} \Gamma_{\mathrm{opt}}.

Let M=∣Γmand∣M = |\Gamma_{\mathrm{mand}}|. Each task in Γmand\Gamma_{\mathrm{mand}} receives value V0=2n+1V_0 = 2n + 1, each optional selector receives value 1, and the target is K=MV0+nK = MV_0 + n. These values force every task in Γmand\Gamma_{\mathrm{mand}} into any selection meeting the target; the model itself has no mandatory-task constraint.

We call a selection well formed if it contains every task in Γmand\Gamma_{\mathrm{mand}} and exactly one of τit,τif\tau_i^t,\tau_i^f for each xix_i. Such a selection has value KK and utilization one. The proof must establish that every feasible selection meeting the value target is well formed and that a well-formed selection is feasible exactly when its encoded existential assignment is winning.

Reduction Roadmap

The demand gadgets of § 6 and the local selector tests of § 7 support four proof obligations:

  1. Force the required tasks and selector count. The values chosen in § 8 force every mandatory task and at least nn selectors into a selection meeting the target. The utilization bound permits at most nn. § 9 therefore obtains exactly nn selected selectors in total.

  1. Distribute the selectors one per variable. The local tests of § 7 expose a duplicated choice without allowing a missing choice elsewhere to offset its extra demand. § 9 uses CRT to realize these tests at one common index and obtain an overloaded window. Therefore every feasible selection meeting the target is well formed and defines one assignment α\alpha.

  1. Relate feasibility to the source formula. For a well-formed selection, § 9 proves that a winning α\alpha satisfies every demand constraint. Conversely, any universal response β\beta satisfying F(α,β)F(\alpha,\beta) has a compatible index producing an overloaded window.

  1. Verify the reduction’s size and task parameters. Section 10 proves that the construction takes polynomial time, produces polynomially many tasks with polynomially bounded numerical parameters, and satisfies Ci≤Di≤TiC_i \le D_i \le T_i for every task.

The logical correspondence is summarized by the invariant:

a well-formed selection encoding α is feasible⟺no assignment β satisfies F(α,β)⟺∀β φ(α,β).\begin{aligned} &\text{a well-formed selection encoding }\alpha\text{ is feasible}\\ &\Longleftrightarrow\quad\text{no assignment }\beta\text{ satisfies }F(\alpha,\beta)\\ &\Longleftrightarrow\quad\forall\beta\ \varphi(\alpha,\beta). \end{aligned}

Definition 3 (Local residue patterns and selector locks). The support of a residue pattern is the set of CRT coordinates whose residues it specifies. A pattern is local if its support has size bounded by a constant independent of the source-instance size. The selector lock for xix_i is local to that variable: whether any of its helpers or selectors matches an index xx depends only on the residues at tit_i, fif_i.

In this construction, an XX-helper tests two coordinates, a YY-validity pattern tests one, and a clause pattern tests at most six. Each gadget therefore uses a product of only constantly many coordinate primes, which is the key to the size bound in § 10. All patterns are tested at the same index xx; the feasibility argument combines their contributions using the common timing, utilization, and value constraints.

Table 1 collects the notation used throughout the reduction.

SymbolMeaning
X,YX, Yexistential and universal source variables
α,β\alpha, \betaassignments to XX and YY
φ\varphisource 3-DNF formula
F=¬φ=C1∧⋯∧CmF = \neg\varphi= C_1 \land\cdots\land C_mcounterexample 3-CNF formula
n,u,mn, u, mnumbers of XX-variables, YY-variables, and clauses
A,V(A),KA, V(A), Kselected task set, its value, and the target
z,pzz, p_zCRT coordinate and its assigned prime
xxinteger demand-window index
ρ,(aρ,bρ)\rho, (a_\rho, b_\rho)residue pattern and its compiled congruence
G(a,b,w)G(a,b,w)full congruence gadget of weight ww
H(p,w)H(p,w)single-task max-residue selector gadget
Λ,h\Lambda, hblock length and early-window threshold
ti,fit_i, f_itrue and false CRT coordinates for xix_i
τit,τif\tau_i^t, \tau_i^foptional true and false selector tasks
q,Sq, Sselector weight and local spike budget
W0,V0W_0, V_0anchor weight and forced-task value

Table 1. Symbols and notation used in the reduction.

CRT Demand Gadgets

The reduction needs a scheduling object that recognizes a conjunction of modular conditions at one time. A coordinate prime stores one logical digit, a residue pattern combines several digits, and the CRT compiles that pattern into one congruence class. A full gadget GG realizes the congruence as exact baseline demand plus a residue-triggered spike. The single-task gadget HH provides the corresponding compact interface for an optional selector: when its max residue matches, its spike is exact; when the residue does not match, its demand is bounded above by the baseline term. This section defines those interfaces, explains the fixed earlier-deadline construction, proves their demand behavior, and identifies the only DBF test-length forms needed later.

Notation. A plain xx denotes the integer demand-window index, also called a CRT timestamp below. It specifies coordinate residues; the actual interval length is denoted by ℓ\ell. The symbol rr indexes a task position inside a full gadget. Formula variables always carry subscripts, as in xix_i and yjy_j.

Prime Coordinates and Residues

This subsection defines the CRT representation used to encode universal assignments and to expose local consistency states. Each logical coordinate zz receives a distinct prime pzp_z. The two residues used for Boolean encodings are

0(modpz)andpz−1(modpz).0 \pmod{p_z} \qquad\text{and} \qquad p_z - 1 \pmod{p_z}.

An arbitrary timestamp may have another residue; such a timestamp is non-Boolean for that coordinate. Define the total indicator

χz(x)={1,x≡pz−1(modpz),0,otherwise.\chi_z(x) = \begin{cases} 1, & x \equiv p_z - 1 \pmod{p_z},\\ 0, & \text{otherwise}. \end{cases}

Therefore χz(x)=1\chi_z(x) = 1 says exactly that the max residue pz−1p_z - 1 is present. The value χz(x)=0\chi_z(x) = 0 does not by itself encode false: the residue may be 0, but it may also be non-Boolean. Exact Boolean encodings will therefore be identified separately.

A finite pattern ρ\rho specifies exact residues for a set of coordinates ZρZ_\rho. Let

bρ=∏z∈Zρpz.b_\rho= \prod_{z \in Z_\rho} p_z.

Because the coordinate primes are pairwise coprime, the CRT gives a unique residue aρ(modbρ)a_\rho\pmod{b_\rho} satisfying all requirements in ρ\rho. Define

χρ(x)={1,x≡aρ(modbρ),0,otherwise.\chi_\rho(x) = \begin{cases} 1, & x \equiv a_\rho\pmod{b_\rho},\\ 0, & \text{otherwise}. \end{cases}

We say that a timestamp xx matches the pattern ρ\rho if it satisfies every residue requirement in ρ\rho, equivalently if χρ(x)=1\chi_\rho(x) = 1. Matching the coordinate’s max residue means x≡pz−1(modpz)x \equiv p_z - 1 \pmod{p_z}. Failing to match this max residue does not imply that the residue is zero. For later use, define two further total indicators:

χa,b(x)={1,x≡a(modb),0,otherwise,χp(x)={1,x≡p−1(modp),0,otherwise.\chi_{a,b}(x) = \begin{cases} 1, & x \equiv a \pmod{b},\\ 0, & \text{otherwise}, \end{cases} \qquad \chi_p(x) = \begin{cases} 1, & x \equiv p - 1 \pmod{p},\\ 0, & \text{otherwise}. \end{cases}

Full Gadget

Fix integers Λ\Lambda, hh, ww with 2≤h≤Λ2 \le h \le\Lambda and w≥1w \ge1. The concrete values are chosen in § 8. The common timing scale Λ\Lambda divides the test lengths into blocks. For each nonnegative integer index xx, call xΛx\Lambda the baseline test length and xΛ+h−1x\Lambda+ h - 1 the early test length. Thus h−1h - 1 is the offset of the early test after the preceding block boundary. For 0≤a<b0 \le a < b, the full gadget G(a,b,w)G(a,b,w) contains one task for each r∈{1,…,b}r \in\{1,\ldots,b\}, with timing parameters

Cr=w,C_r = w,
Dr={aΛ+h−1,r=a+1,rΛ,r≠a+1,D_r = \begin{cases} a\Lambda+ h - 1, & r = a + 1,\\ r\Lambda, & r \ne a + 1, \end{cases}
Tr=bΛ.T_r = b\Lambda.

Task values are assigned in Section 8. The component with r=a+1r = a + 1 is the special task. For comparison, consider a reference specification with the same execution times and periods and deadline rΛr\Lambda for every component. The constructed specification instead gives the special task the fixed relative deadline aΛ+h−1a\Lambda+ h - 1, earlier than its reference deadline (a+1)Λ(a + 1)\Lambda by

δ=(a+1)Λ−(aΛ+h−1)=Λ−h+1.\delta= (a + 1)\Lambda- (a\Lambda+ h - 1) = \Lambda- h + 1.

Here h−1h - 1 is the offset after the preceding boundary aΛa\Lambda, whereas δ\delta is the difference between the two deadlines. This weighted and rescaled form of the congruence-class construction of Ekberg and Yi [13] produces one extra weight-ww contribution at early windows whose index satisfies x≡a(modb)x \equiv a \pmod b. The parameter verification later establishes Cr≤Dr≤TrC_r \le D_r \le T_r for all instantiated tasks.

Max-Residue Gadget

An optional selector must be one task, because the target problem permits selection of individual tasks rather than indivisible groups. For a prime pp, define the single-task gadget H(p,w)H(p, w) by its timing tuple

(C,D,T)=(wp,(p−1)Λ+h−1,pΛ).(C,D,T) = (wp, (p - 1)\Lambda+ h - 1, p\Lambda).

Its value is assigned in Section 8. We say that xx matches H(p,w)H(p, w) when x≡p−1(modp)x \equiv p - 1 \pmod p. At that residue its demand at the early window is exactly wx+wwx + w; otherwise its demand is at most wxwx, as proved below.

Gadget Timeline Intuition

We compare the reference and constructed specifications to explain the extra demand at an early test length. The DBF is evaluated on interval lengths; the timelines below show the synchronous minimum-separation release pattern that realizes each specification’s demand count.

Both specifications have bb tasks with execution time ww and period bΛb\Lambda. The reference deadlines are Λ,2Λ,…,bΛ\Lambda, 2\Lambda, \ldots, b\Lambda, so the repeated deadline events contribute one weight-ww job at every positive multiple of Λ\Lambda. The constructed specification has the same deadlines except that component a+1a + 1 has relative deadline aΛ+h−1a\Lambda+ h - 1. Each relative deadline is fixed before execution and applies to every job of its task.

For example, take b=5b = 5, a=2a = 2, Λ=10\Lambda= 10, h=4h = 4, and w=1w = 1. The reference deadlines in the first period are 10,20,30,40,5010, 20, 30, 40, 50; the constructed deadlines are 10,20,23,40,5010, 20, 23, 40, 50. At length 2020, both specifications demand two units. At length 2323, the reference specification still demands two, but the constructed specification demands three. The early test extends the baseline by h−1=3h - 1 = 3, while the special task’s constructed deadline is earlier than its reference deadline by Λ−h+1=7\Lambda- h + 1 = 7.

In general, the special task has a deadline event in (xΛ,xΛ+h−1](x\Lambda, x\Lambda+ h - 1] exactly when x≡a(modb)x \equiv a \pmod b. No non-special deadline lies in this interval because 0<h−1<Λ0 < h - 1 < \Lambda. Figure 3 illustrates the resulting extra demand in the matching case. The one-task gadget H(p,w)H(p, w) uses the same timing principle to detect its max residue, but its nonmatching baseline is only an upper bound.

Schematic matching case: $x=a=2$

Figure 3. Schematic comparison of reference and constructed deadline events when x≡ax \equiv a (mod bb). The special job’s deadline is (x+1)Λ(x+1)\Lambda under the reference specification and xΛ+h−1x\Lambda+h-1 under the constructed specification, earlier by Λ−h+1\Lambda-h+1. Both specifications count the same jobs at the baseline length xΛx\Lambda; at the early length xΛ+h−1x\Lambda+h-1, the constructed specification counts one additional weight-ww job.

Gadget Demand Behavior

Lemma 2. Both G(a,b,w)G(a, b, w) and H(p,w)H(p, w) have utilization w/Λw/\Lambda. For every integer x≥0x \ge0,

dbf⁡(G(a,b,w),xΛ)=wx\operatorname{dbf}(G(a,b,w), x\Lambda) = wx

and

dbf⁡(G(a,b,w),xΛ+h−1)=wx+wχa,b(x).\operatorname{dbf}(G(a,b,w), x\Lambda+ h - 1) = wx + w\chi_{a,b}(x).

Additionally,

dbf⁡(H(p,w),xΛ)≤wx\operatorname{dbf}(H(p,w),x\Lambda)\le wx

and

dbf⁡(H(p,w),xΛ+h−1)≤wx+wχp(x).\operatorname{dbf}(H(p,w),x\Lambda+h-1)\le wx+ w\chi_p(x).

The final inequality is an equality whenever x≡p−1x\equiv p-1 (mod pp).

Proof. The full gadget contains bb tasks, each with utilization w/(bΛ)w/(b\Lambda), while the max-residue gadget has utilization wp/(pΛ)wp/(p\Lambda). Therefore each gadget has total utilization w/Λw/\Lambda.

For G(a,b,w)G(a,b,w), all bb tasks have period bΛb\Lambda. The reference specification has deadline rΛr\Lambda for component rr, while the constructed specification gives the special component a+1a+1 the fixed earlier deadline aΛ+h−1a\Lambda+h-1. Because 0<h−1<Λ0<h-1<\Lambda, a special job is counted at a baseline length xΛx\Lambda under the constructed specification exactly when it is counted there under the reference specification. The other deadlines coincide in the two specifications. The reference specification counts exactly one weight-ww job for each integer position 1,…,x1,\ldots,x, so dbf⁡(G(a,b,w),xΛ)=wx\operatorname{dbf}(G(a,b,w),x\Lambda)=wx.

Extending the baseline length to xΛ+h−1x\Lambda+h-1 counts no additional job of a non-special task because the extension is shorter than Λ\Lambda. The special job with release index k≥0k\ge0 is counted at the early length exactly when

aΛ+h−1+kbΛ≤xΛ+h−1,a\Lambda+h-1+kb\Lambda\le x\Lambda+h-1,

or equivalently a+kb≤xa+kb\le x. Compared with the baseline condition a+1+kb≤xa+1+kb\le x, the early test therefore counts one additional job exactly when x≡ax\equiv a (mod bb).

For H(p,w)H(p,w), the synchronous minimum-separation release pattern has deadline events (p−1)Λ+h−1+kpΛ(p-1)\Lambda+h-1+kp\Lambda for integers k≥0k\ge0. At the early window xΛ+h−1x\Lambda+h-1, the job with index kk is counted exactly when p−1+kp≤xp-1+kp\le x, so the count is ⌊(x+1)/p⌋\lfloor(x+1)/p\rfloor. If x≡p−1x\equiv p-1 (mod pp), then pp divides x+1x+1 and the demand is

wp⋅x+1p=w(x+1)=wx+w.wp\cdot\frac{x+1}{p}=w(x+1)=wx+w.

Otherwise, writing s=x mod p<p−1s = x \bmod p < p - 1, the count is (x−s)/p(x-s)/p, so the demand is w(x−s)≤wxw(x-s) \le wx. At the baseline window xΛx\Lambda, job kk is counted exactly when p−1+kp≤x−1p-1+kp \le x-1, because 0<h−1<Λ0 < h-1 < \Lambda; the count is therefore ⌊x/p⌋\lfloor x/p \rfloor, and the demand is wp⌊x/p⌋≤wxwp\lfloor x/p \rfloor\le wx.

Spike accounting. A full gadget G(a,b,w)G(a,b,w) matches xx when χa,b(x)=1\chi_{a,b}(x) = 1. Its demand beyond its exact baseline wxwx is wχa,b(x)w\chi_{a,b}(x). For H(p,w)H(p,w), the quantity wχp(x)w\chi_p(x) is a spike allowance: when xx matches its max residue, demand is exactly wx+wwx+w; otherwise demand may be smaller than wxwx, so zero is an upper bound on the excess rather than an exact contribution.

Upper-bound arguments may sum these allowances. Lower-bound arguments use the CRT to choose a timestamp at which every selected selector matches, making its bound exact. If the selected gadgets have total weight Λ\Lambda, then

dbf⁡(A,xΛ+h−1)≤xΛ+(sum of matching spike allowances).\operatorname{dbf}(A,x\Lambda+h-1) \le x\Lambda+ \text{(sum of matching spike allowances)}.

Only h−1h-1 units fit beyond xΛx\Lambda. At a timestamp where all required bounds are attained, an aggregate spike of hh produces demand ℓ+1\ell+1 at ℓ=xΛ+h−1\ell=x\Lambda+h-1, violating feasibility.

Relevant DBF Test Lengths

Lemma 3 (Relevant DBF test lengths). For every task with timing parameters (C,D,T)(C,D,T) generated by G(a,b,w)G(a,b,w) or H(p,w)H(p,w), every length D+kTD+kT, for an integer k≥0k \ge0, has the form xΛx\Lambda or xΛ+h−1x\Lambda+h-1 for a nonnegative integer xx.

Proof. For a full gadget, DD is either rΛr\Lambda or aΛ+h−1a\Lambda+h-1, and T=bΛT=b\Lambda. For a max-residue gadget, D=(p−1)Λ+h−1D=(p-1)\Lambda+h-1 and T=pΛT=p\Lambda. Adding kTkT preserves the claimed form in both cases.

Together with Lemma 1, this proves that the two displayed families of lengths contain every DBF test needed for feasibility.

The gadgets now provide the temporal part of the reduction: a timestamp determines which residue patterns match, and the matching patterns determine the early-window spikes. What the gadgets do not yet guarantee is that a selected set represents one valid existential assignment. The next section provides that local consistency condition.

Local Selector Lock with Polynomial Weights

The construction must force every feasible selection AA meeting the value target to choose exactly one truth selector for each existential variable. Recall that meeting the target means V(A)≥KV(A) \ge K; feasibility is a separate requirement. Value and utilization first force exactly nn optional selectors in total, but one variable could still receive both selectors while another receives neither.

The selector lock is local to xix_i in the sense of Definition 3: its helpers and selectors test only the two coordinates ti,fit_i,f_i. At an exact both-match state, a duplicated choice produces excess demand. At an exact neither-match state, the helpers for a missing choice fill its local budget and provide no compensating slack. CRT realizes these per-variable states at one common index. This section proves the per-variable demand inequalities; Lemma 9 combines them after § 8 fixes the global timing and value parameters.

Selection Choices and Timestamp Tests

For each existential variable xix_i, create two CRT coordinates

ti,fit_i,\qquad f_i

with distinct primes ptip_{t_i} and pfip_{f_i}. These coordinates belong to the timestamp encoding; they are not tasks and are not selection choices.

The selection choices are two optional selector tasks. For a common weight qq, define

τit=H(pti,q),τif=H(pfi,q).\tau_i^t = H(p_{t_i},q), \qquad\tau_i^f = H(p_{f_i},q).

Selecting τit\tau_i^t encodes xi=truex_i=\mathrm{true}, while selecting τif\tau_i^f encodes xi=falsex_i=\mathrm{false}. The symbols τit,τif\tau_i^t,\tau_i^f denote tasks; ti,fit_i,f_i denote the CRT coordinates inspected by those tasks.

The timestamp tests those claims. At an early window indexed by xx, τit\tau_i^t has an exact spike of qq when x≡pti−1(modpti)x\equiv p_{t_i}-1\pmod{p_{t_i}}, and τif\tau_i^f has an exact spike of qq when x≡pfi−1(modpfi)x\equiv p_{f_i}-1\pmod{p_{f_i}}. A selector that is not selected contributes no demand, regardless of the timestamp residue.

Exact Local Timestamp States

Define

σi(x)=(χti(x),χfi(x)).\sigma_i(x)=(\chi_{t_i}(x),\chi_{f_i}(x)).

The four indicator states are

(1,0),(0,1),(1,1),(0,0).(1,0), \qquad(0,1), \qquad(1,1), \qquad(0,0).

These are timestamp states, not selection cases. We call xx exact for xix_i when both residues are Boolean:

x mod pti∈{0,pti−1},x mod pfi∈{0,pfi−1}.x\bmod p_{t_i}\in\{0,p_{t_i}-1\}, \qquad x\bmod p_{f_i}\in\{0,p_{f_i}-1\}.

At an exact timestamp, (1,0)(1,0) and (0,1)(0,1) encode true and false, while (1,1)(1,1) and (0,0)(0,0) are the both-match and neither-match test states. These states describe the timestamp and are not four selection choices. In particular, (0,0)(0,0) is not an optional “choose neither” gadget. The mandatory (0,0)(0,0)-helper introduced below supplies the full local spike budget SS at an exact neither-match timestamp. Lemmas 6 and 9 use this contribution to ensure that a variable with no selected selector creates no slack that could offset the excess demand produced by a variable with both selectors. At a non-exact timestamp, an indicator value of zero does not necessarily mean that the residue is zero. This is why the exactness condition is stated separately.

Selector Weight and Local Budget

Recall that mm is the number of clauses in F=C1∧⋯∧CmF=C_1\land\cdots\land C_m. The entire clause layer can change the early-window spike by at most mm. Set

q=m+1,S=q+1=m+2.q=m+1, \qquad S=q+1=m+2.

Therefore one selected selector of weight qq, together with a unit helper, exactly fills the intended local budget SS. A duplicate selector creates an excess of q=m+1q=m+1, which cannot be hidden by losing at most mm units from the clause layer.

Four Exact-State Helper Gadgets

Let

bi=ptipfi.b_i=p_{t_i}p_{f_i}.

For s∈{10,01,11,00}s\in\{10,01,11,00\}, let ais(modbi)a_i^s\pmod{b_i} be the CRT residue that realizes the corresponding exact pair of Boolean residues. Add the four full helper gadgets

G(ai10,bi,1),G(ai01,bi,1),G(a_i^{10},b_i,1), \qquad G(a_i^{01},b_i,1),
G(ai11,bi,1),G(ai00,bi,S).G(a_i^{11},b_i,1), \qquad G(a_i^{00},b_i,S).

Each expression denotes a full gadget and therefore expands into bib_i ordinary sporadic tasks. These helper tasks are not optional selectors. § 8 assigns every component task the high value V0V_0, and Lemma 7 proves that every selection meeting the value target must include all four helpers. Therefore “forced helper” describes a property proved later, not an assumption made here.

At an exact timestamp, exactly one of the four helper patterns matches. The matching helper contributes a spike of 1 in states (1,0)(1,0), (0,1)(0,1), and (1,1)(1,1), and a spike of SS in state (0,0)(0,0). At a non-exact timestamp, none of the four exact-state helpers matches.

The intended lock is summarized in Figure 4. A valid one-selector selection stays within the local budget SS at every timestamp. If both selectors are selected, the exact state (1,1)(1,1) activates both selector spikes and produces a local spike of S+qS+q, exceeding the budget by qq. If neither selector is selected, the exact state (0,0)(0,0) still contributes the full SS, so the missing variable creates no slack that could absorb the duplicate’s excess. Therefore (1,0)(1,0), (0,1)(0,1), (1,1)(1,1), and (0,0)(0,0) are timestamp tests for valid, duplicate, and missing selections, and not four selection tests.

The local selector lock at exposing exact timestamp states

Figure 4. The local selector lock at exposing exact timestamp states. A valid one-selector choice stays within its local budget S=q+1S=q+1. A missing choice attains the full budget SS at an exact (0,0)(0,0) timestamp, leaving no compensating slack there. When the total selector count is nn, every duplicated choice is paired with a missing choice elsewhere. At an exact (1,1)(1,1) timestamp, a duplicate contributes S+qS+q. The CRT realizes all these local states simultaneously, and q=m+1q=m+1 exceeds the entire clause layer’s possible variation.

Local Spike Allowance and Budget Margin

For a selection AA that contains all four exact-state helper gadgets for xix_i, let Li(A)L_i(A) denote those helpers together with whichever of τit,τif\tau_i^t,\tau_i^f are selected. Define

si(A)=1[τit∈A]+1[τif∈A].s_i(A)=1[\tau_i^t\in A]+1[\tau_i^f\in A].

The local early-window spike allowance is

Li(A,x)=χai0,bi(x)+χai0,bi(x)+χai1,bi(x)+Sχai0,bi(x)+q1[τit∈A]χti(x)+q1[τif∈A]χfi(x).\begin{aligned} L_i(A,x)={}&\chi_{a_i^0,b_i}(x)+\chi_{a_i^0,b_i}(x)+\chi_{a_i^1,b_i}(x)+S\chi_{a_i^0,b_i}(x)\\ &+q1[\tau_i^t\in A]\chi_{t_i}(x)+q1[\tau_i^f\in A]\chi_{f_i}(x). \end{aligned}

The four helpers have total baseline weight S+3S+3, and the selected selectors have total baseline weight qsi(A)q s_i(A). Additivity of demand and Lemma 2 therefore give

dbf⁡(Li(A),xΛ+h−1)≤x(S+3+qsi(A))+Li(A,x).\operatorname{dbf}(\mathcal{L}_i(A),x\Lambda+h-1) \le x(S+3+q s_i(A))+L_i(A,x).

Every helper term in Li(A,x)L_i(A,x) is an exact spike contribution. A selector term is an upper allowance in general and is exact when that selected selector matches its max residue. Therefore the inequality is an equality at each timestamp used below to establish a lower bound.

Define the signed local budget margin

μi(A,x)=S−Li(A,x).\mu_i(A,x)=S-L_i(A,x).

A positive value is unused spike allowance, zero means that the allowance exactly fills the local budget, and a negative value is an overage. The next three lemmas bound this margin for valid selections at every timestamp and compute it at the exact states used to expose duplicate and missing selections.

Valid-Selection Lemma

Lemma 4 (Valid local selection). Suppose that AA contains all four helpers for xix_i and exactly one of τit,τif\tau_i^t,\tau_i^f. Then, for every timestamp xx,

Li(A,x)≤Sand henceμi(A,x)≥0.L_i(A,x)\le S \qquad\text{and hence}\qquad\mu_i(A,x)\ge0.

As a result,

dbf⁡(Li(A),xΛ+h−1)≤x(S+3+q)+S.\operatorname{dbf}(\mathcal{L}_i(A),x\Lambda+h-1)\le x(S+3+q)+S.

Proof. Assume first that only τit\tau_i^t is selected. If xx is exact for xix_i, exactly one helper pattern matches, and Table 2 lists all possibilities. Therefore Li(A,x)≤SL_i(A,x)\le S and μi(A,x)≥0\mu_i(A,x)\ge0 in every exact state.

Table 2: Local spike allowances when only τit\tau_i^t is selected. The selector column is an upper allowance; it is an exact excess when that selector matches.

State σi(x)\sigma_i(x)Helperτit\tau_i^tLi(A,x)L_i(A,x)μi(A,x)\mu_i(A,x)
(1, 0)1qqSS0
(0, 1)101qq
(1, 1)1qqSS0
(0, 0)SS0SS0

Table 2.

If xx is not exact for xix_i, none of the four helper patterns matches. Therefore

Li(A,x)=qχti(x)∈{0,q},L_i(A,x)=q\chi_{t_i}(x)\in\{0,q\},

so Li(A,x)≤q<SL_i(A,x)\le q<S and μi(A,x)≥S−q=1\mu_i(A,x)\ge S-q=1.

If only τif\tau_i^f is selected, interchange the tit_i- and fif_i-coordinates. At exact timestamps its selector allowance is qq in states (0,1)(0,1) and (1,1)(1,1), and zero in states (1,0)(1,0) and (0,0)(0,0); at non-exact timestamps, Li(A,x)=qχfi(x)≤q<SL_i(A,x)=q\chi_{f_i}(x)\le q<S. Therefore the same two inequalities hold for every xx. The displayed DBF bound now follows from si(A)=1s_i(A)=1 and the local-demand inequality above. □\square

Equality cases used later. If only τit\tau_i^t is selected, exact states (1,0)(1,0), (1,1)(1,1), and (0,0)(0,0) have Li(A,x)=SL_i(A,x)=S. If only τif\tau_i^f is selected, exact states (0,1)(0,1), (1,1)(1,1), and (0,0)(0,0) have Li(A,x)=SL_i(A,x)=S. At the matching states (1,0)(1,0) and (0,1)(0,1), respectively, the selected selector is active, so the local DBF upper bound is attained.

Duplicate-Selection Lemma

Lemma 5 (Duplicate local selection). Suppose that AA contains all four helpers and both selectors for xix_i. At every exact timestamp xx with σi(x)=(1,1)\sigma_i(x) = (1,1),

Li(A,x)=S+q,μi(A,x)=−q.L_i(A,x) = S + q, \qquad\mu_i(A,x) = -q.

Also, the local demand is exactly

dbf⁡(Li(A),xΛ+h−1)=x(S+3+2q)+(S+q).\operatorname{dbf}(L_i(A),x\Lambda+ h - 1) = x(S + 3 + 2q) + (S + q).

Therefore a duplicate creates an actual overage of q=m+1q = m + 1 above the local spike budget.

Proof. At exact state (1,1)(1,1), the unique matching helper contributes 11, and both selected selectors match their max residues. Thus Li(A,x)=1+2q=S+qL_i(A,x) = 1 + 2q = S + q and μi(A,x)=−q\mu_i(A,x) = -q. By Lemma 2, the helper demand is exactly x(S+3)+1x(S + 3) + 1, and each selector contributes qx+qqx + q. Summing gives the claimed DBF identity.

Missing-Selection Lemma

Lemma 6 (Missing local selection). Suppose that AA contains all four helpers and neither selector for xix_i. At every exact timestamp xx with σi(x)=(0,0)\sigma_i(x) = (0,0),

Li(A,x)=S,μi(A,x)=0.L_i(A,x) = S, \qquad\mu_i(A,x) = 0.

Additionally, the local demand is exactly

dbf⁡(Li(A),xΛ+h−1)=x(S+3)+S.\operatorname{dbf}(L_i(A),x\Lambda+ h - 1) = x(S + 3) + S.

Therefore a missing selector contributes no local overage, but it provides exactly zero local margin with which to offset a duplicate elsewhere.

Proof. At exact state (0,0)(0,0), only the weight-SS helper matches. Since no selector is selected, Li(A,x)=SL_i(A,x) = S and μi(A,x)=0\mu_i(A,x) = 0. Lemma 2 gives the exact helper demand x(S+3)+Sx(S + 3) + S, proving the claimed DBF identity.

Two-Variable Selector Example

Let n=2n = 2 and m=2m = 2, so q=3q = 3 and S=4S = 4. Consider first the well-formed selection

Γmand⊎{τ1t,τ2f}.\Gamma_{\mathrm{mand}} \uplus\{\tau_1^t,\tau_2^f\}.

At an exact timestamp placing x1x_1 in state (1,0)(1,0) and x2x_2 in state (0,1)(0,1), each variable contributes its full local budget SS. The XX-layer spike is therefore

S+S=8.S + S = 8.

Now consider the malformed selection

A=Γmand⊎{τ1t,τ1f},A = \Gamma_{\mathrm{mand}} \uplus\{\tau_1^t,\tau_1^f\},

which selects both selectors for x1x_1 and none for x2x_2. It still contains exactly n=2n = 2 selectors, so the global selector count alone does not reject it. By the CRT, choose one timestamp placing x1x_1 in exact state (1,1)(1,1) and x2x_2 in exact state (0,0)(0,0). The local spikes are

x1:1+q+q=7,x2:S=4.x_1 : 1 + q + q = 7,\qquad x_2 : S = 4.

Therefore the XX-layer spike is

7+4=11=2S+q,7 + 4 = 11 = 2S + q,

which exceeds its intended budget 2S=82S = 8 by q=3q = 3.

This local calculation becomes a DBF violation after the global parameters are fixed. § 8 sets

h=W0+nS+u+m.h = W_0 + nS + u + m.

In the proof of Lemma 9, the CRT timestamp is also chosen so that the anchor contributes W0W_0, the YY-validity layer contributes uu, and every selected selector needed by the malformed selection matches. Even if the clause layer contributes nothing, the total spike is at least

W0+nS+q+u=W0+nS+u+m+1=h+1.W_0 + nS + q + u = W_0 + nS + u + m + 1 = h + 1.

At the early window ℓ=xΛ+h−1\ell= x\Lambda+ h - 1, Lemma 2 therefore gives

dbf⁡(A,ℓ)≥xΛ+h+1=ℓ+2,\operatorname{dbf}(A,\ell) \ge x\Lambda+ h + 1 = \ell+ 2,

which is a deadline miss. This is the precise connection between the local selector calculation, the generated tasks, and the global DBF inequality.

With the temporal gadgets and local selector lock in place, the reduction can now be assembled layer by layer. The construction below chooses the global weights so that the local budget SS, the logical clause contribution, and the one-unit feasibility gap share one common early-window threshold.

Reduction Construction

We now specify the residue patterns and assemble the task inventory summarized in § 5.2.

Residue Patterns

Assign the first 2n+u2n+u primes to the coordinates tit_i, fif_i, yjy_j. For each pattern, compute its canonical CRT residue 0≤aρ<bρ0 \le a_\rho< b_\rho, where bρb_\rho is the product of its coordinate primes. These computations take polynomial time; § 10 bounds the primes, moduli, and explicit output size.

The anchor G(0,1,W0)G(0,1,W_0) matches every timestamp. Let P\mathcal{P} contain the four weighted XX-helper patterns per variable from § 7, the YY-validity patterns, and the clause patterns defined below. Patterns form an indexed multiset, so repeated congruences retain their separate demand contributions.

For each yjy_j, include two unit-weight validity patterns, with residues 00 and pyj−1p_{y_j} - 1, encoding false and true. At most one matches at any timestamp, and neither matches a non-Boolean residue.

For each clause CkC_k, let ZkZ_k contain one coordinate yjy_j for each universal variable occurring in that clause and both tit_i, fif_i for each existential variable occurring in it. Set bk=∏z∈Zkpzb_k = \prod_{z \in Z_k} p_z. For each of the clause’s seven satisfying assignments γ\gamma, include the unit-weight pattern ak,γa_{k,\gamma} (mod bkb_k) encoding γ\gamma. Existential true and false require the exact states (1,0)(1,0) and (0,1)(0,1), respectively; universal true and false require residues pyj−1p_{y_j} - 1 and 00. The seven patterns are pairwise disjoint. At a valid Boolean encoding, exactly one matches if the clause is satisfied, and none otherwise. Reading both existential coordinates prevents states (1,1)(1,1) and (0,0)(0,0) from matching a clause pattern that mentions that variable.

Assembly

Instantiate each ρ∈P\rho\in\mathcal{P} as G(aρ,bρ,wρ)G(a_\rho,b_\rho,w_\rho), include the anchor and optional selectors, and use the timing constants, task multisets, and value assignment defined in § 5.2. The mandatory pattern weights sum to Bmand=∑ρ∈Pwρ=n(S+3)+2u+7mB_{\mathrm{mand}} = \sum_{\rho\in\mathcal{P}} w_\rho= n(S + 3) + 2u + 7m, excluding the anchor. The individual task counts are M=1+∑ρ∈PbρM = 1 + \sum_{\rho\in\mathcal{P}} b_\rho, ∣Γopt∣=2n|\Gamma_{\mathrm{opt}}| = 2n, and ∣Γ∣=M+2n|\Gamma| = M + 2n; mm counts clauses. These patterns therefore complete the instance (Γ,K)(\Gamma, K) specified in the overview. Figure 5 summarizes the early-window gap used in the correctness proof.

Schematic early-window excess-demand bars for safe, logical-failure, and malformed selections

Figure 5. Excess demand above xΛx\Lambda at the early test length ℓ=xΛ+h−1\ell= x\Lambda+ h - 1. A selection encoding a winning assignment stays at or below h−1h - 1 at every timestamp. For a well-formed selection encoding α\alpha, a matching timestamp encoding a counterexample β\beta with F(α,β)=trueF(\alpha,\beta) = \mathrm{true} realizes exact excess hh, producing a one-unit overload. For a malformed selection containing all mandatory tasks and exactly nn selectors, CRT realizes excess at least h+1h + 1, even when clause demand is ignored.

Correctness Proof

The proof has two phases:

  1. The structural phase identifies the only possible shape of a feasible selection meeting the value target. Value forces every mandatory task (Lemma 7), value and utilization together force exactly nn selectors in total (Lemma 8), and the local lock distributes them

one per existential variable (Lemma 9). The selection therefore defines one assignment α\alpha (Lemma 10).

  1. The logical phase relates that assignment to the source formula. The forward direction proves that a winning α\alpha gives a feasible selection. The reverse direction turns any losing response β\beta into a violating early window (Lemmas 11 and 12).

As everywhere in the paper, AA denotes a selected task set, while SS is the local budget constant of Section 7.

Mandatory Selection Lemma

Lemma 7 (Mandatory selection). Every selection meeting the value target must include all mandatory tasks.

Proof. There are MM mandatory tasks, each with value V0V_0, and 2n2n optional selector tasks, each with value 1. If a selection excludes even one mandatory task, its value is at most

(M−1)V0+2n(M-1)V_0 + 2n

Since V0>2nV_0 > 2n, this is strictly less than

MV0+n=KMV_0 + n = K

Therefore every selection meeting the value target includes all mandatory tasks.

Utilization Squeeze Lemma

Lemma 8 (Utilization squeeze). Every feasible selection meeting the value target contains exactly nn selected optional selectors.

Proof. By Lemma 7, every selection meeting the value target contains all mandatory tasks. Since the mandatory tasks contribute exactly MV0MV_0 value, the target

K=MV0+nK = MV_0 + n

forces the selection to contain at least nn optional selectors.

Let ss be the number of selected optional selectors. The mandatory gadgets contribute utilization

W0+BmandΛ\frac{W_0 + B_{\mathrm{mand}}}{\Lambda}

and each selected optional selector contributes q/Λq/\Lambda. Therefore

U=W0+Bmand+sqΛU = \frac{W_0 + B_{\mathrm{mand}} + sq}{\Lambda}

Since

Λ=W0+Bmand+nq\Lambda= W_0 + B_{\mathrm{mand}} + nq

feasibility implies U≤1U \le1 and hence s≤ns \le n. Combining the value requirement s≥ns \ge n with the utilization requirement s≤ns \le n gives s=ns = n. Therefore every feasible selection meeting the value target contains exactly nn selected optional selectors.

Local Selector-Lock Lemma

With the timing constants in place, the local lemmas of § 7 combine into the global selector lock.

Lemma 9 (Local selector lock). Every feasible selection meeting the value target contains at most one selected selector for each existential variable. Consequently, for every existential variable xix_i, it contains exactly one member of {τit,τif}\{\tau_i^t,\tau_i^f\}.

Proof. Consider a feasible selection A meeting the value target. By Lemma 8, A contains exactly nn selected optional selectors. Suppose for contradiction that both selectors are selected for some variable, and let d≥1d \ge1 be the number of variables with both selectors selected. The number of variables with neither selector selected is also dd. Relative to the intended one selector per variable, each duplicate contributes one excess selector and each missing variable contributes one deficit. Use the CRT to choose a timestamp xx satisfying the following exact residue requirements:

  • every variable with both selectors selected is placed in state (1,1)(1,1);

  • every variable with neither selector selected is placed in state (0,0)(0,0);

  • every variable with exactly one selected selector is placed in a budget-reaching valid state: (1,0)(1,0) if τit\tau_i^t is selected and (0,1)(0,1) if τif\tau_i^f is selected; and

  • every universal coordinate yjy_j is placed at the residue 00 (mod pyjp_{y_j}), which is one of its Boolean residues.

Each requirement fixes one residue modulo its coordinate prime, and no coordinate receives two different requirements. Because all coordinate moduli are distinct primes, they are pairwise coprime. The Chinese Remainder Theorem therefore gives a simultaneous solution that is unique modulo the product of the coordinate primes. Choose the least nonnegative representative as xx. As noted in § 8, this representative is computable in polynomial time by the constructive CRT algorithm.

At the chosen timestamp, every variable with exactly one selected selector is in the matching valid state for that selector. The equality cases following Lemma 4 therefore give Li(A,x)=SL_i(A,x)=S for each such variable. Lemma 6 gives Li(A,x)=SL_i(A,x)=S for each missing variable, and Lemma 5 gives Li(A,x)=S+qL_i(A,x)=S+q for each duplicated variable. Because there are dd duplicated variables, dd missing variables, and n−2dn-2d one-selector variables,

∑i=1nLi(A,x)=(n−2d)S+dS+d(S+q)=nS+dq≥nS+q.\sum_{i=1}^{n} L_i(A,x)=(n-2d)S+dS+d(S+q) = nS+dq \ge nS+q.

These are actual spike contributions, not just upper allowances: every selected selector matches its max residue at the chosen timestamp, and every selected helper state is exact.

The YY-validity layer contributes its exact spike uu, because every universal coordinate is at a Boolean residue. The dummy anchor contributes its exact spike W0W_0, and the clause-layer spike is nonnegative. Moreover, every mandatory full gadget contributes its exact baseline demand and the nn selected selectors contribute total baseline demand xnqxnq. Therefore Lemma 2 gives

dbf⁡(A,xΛ+h−1)≥x(W0+Bmand+nq)+W0+nS+dq+u≥xΛ+W0+nS+q+u=xΛ+h+1>xΛ+h−1.\operatorname{dbf}(A,x\Lambda+h-1) \ge x(W_0+B_{\mathrm{mand}}+nq)+W_0+nS+dq+u \ge x\Lambda+W_0+nS+q+u = x\Lambda+h+1 > x\Lambda+h-1.

where the equality uses q=m+1q=m+1 and h=W0+nS+u+mh=W_0+nS+u+m. This contradicts feasibility, so no variable has both selectors selected. Finally, AA contains exactly nn selectors by Lemma 8; because there are nn variables and each has at most one selector, every variable has exactly one selector.

Assignment Extraction Lemma

Lemma 10 (Assignment extraction). Every feasible selection meeting the value target defines a unique assignment to the existential variables.

Proof. Let AA be a feasible selection meeting the value target. By Lemma 9, exactly one member of {τit,τif}\{\tau_i^t,\tau_i^f\} is selected for every xix_i. Define

α(xi)={true,τit is selected,false,τif is selected.\alpha(x_i)=\begin{cases} \text{true}, & \tau_i^t\text{ is selected},\\ \text{false}, & \tau_i^f\text{ is selected}. \end{cases}

Exactly one case applies to each xix_i, so α\alpha is a well-defined and unique assignment.

The structural phase is now complete: a feasible selection meeting the value target is not just a set of the right cardinality, but a unique assignment α\alpha. The remaining question is logical. The forward direction shows that a winning α\alpha survives every early-window test. The reverse direction converts any losing response β\beta into one explicit violating window.

Forward Direction

Lemma 11 (Forward direction). If the source formula ∃X∀Y φ(X,Y)\exists X\forall Y\ \varphi(X,Y) is true, then the constructed VTS instance has a feasible selected subset meeting the value target KK.

Proof. Let α\alpha be a winning assignment for XX, so φ(α,β)\varphi(\alpha,\beta) is true for every assignment β\beta to YY. Equivalently, F(α,β)F(\alpha,\beta) is false for every β\beta.

Construct the selection. Construct a selection AαA_\alpha as follows. Select every mandatory task. For each existential variable xix_i, select τit\tau_i^t if α(xi)=true\alpha(x_i)=\text{true}, and select τif\tau_i^f otherwise. The value is exactly MV0+n=KMV_0+n=K, and the utilization is exactly

W0+Bmand+nqΛ=1.\frac{W_0+B_{\mathrm{mand}}+nq}{\Lambda}=1.

Baseline windows. The remaining step is to show that the demand never exceeds the length of any relevant window. By Lemmas 1 and 3, it is enough to check windows of the form xΛx\Lambda and xΛ+h−1x\Lambda+h-1. At xΛx\Lambda, the full gadgets contribute exactly

x(W0+Bmand).x(W_0+B_{\mathrm{mand}}).

and the nn selected optional max-residue gadgets contribute at most

xnq.xnq.

Therefore

dbf⁡(Aα,xΛ)≤xΛ.\operatorname{dbf}(A_\alpha,x\Lambda)\le x\Lambda.

Early windows. Now consider an early window xΛ+h−1x\Lambda+h-1, and let

Δα(x)=dbf⁡(Aα,xΛ+h−1)−xΛ\Delta_\alpha(x)=\operatorname{dbf}(A_\alpha,x\Lambda+h-1)-x\Lambda

be the actual demand beyond the baseline budget xΛx\Lambda. By Lemma 2 and the spike-accounting convention, this excess is at most the sum of the matching spike allowances, as summarized in

Figure 5. The dummy anchor contributes W0W_0. By Lemma 4, the total XX-layer spike allowance is at most nSnS. The YY-validity layer contributes at most uu, since at most one of the two validity patterns for each yjy_j can match. The clause layer contributes at most mm, since at most one satisfying pattern for each clause can match. Therefore

Δα(x)≤W0+nS+u+m=h.\Delta_\alpha(x) \le W_0 + nS + u + m = h.

Both dbf⁡(Aα,xΛ+h−1)\operatorname{dbf}(A_\alpha, x\Lambda+ h - 1) and xΛx\Lambda are integers, so Δα(x)\Delta_\alpha(x) is an integer. As a result, this bound leaves only the safe case Δα(x)≤h−1\Delta_\alpha(x) \le h - 1 and the equality case Δα(x)=h\Delta_\alpha(x) = h. If Δα(x)≤h−1\Delta_\alpha(x) \le h - 1, then

dbf⁡(Aα,xΛ+h−1)≤xΛ+h−1,\operatorname{dbf}(A_\alpha, x\Lambda+ h - 1) \le x\Lambda+ h - 1,

as required.

Ruling out Δα(x)=h\Delta_\alpha(x) = h. Suppose that Δα(x)=h\Delta_\alpha(x) = h. The preceding upper bound was obtained by adding the anchor contribution W0W_0, the XX-layer bound nSnS from Lemma 4, the YY-validity bound uu, and the clause-layer bound mm from Section 8. Because these four bounds sum to hh, equality can hold only if every individual layer bound is tight. As a result:

  • every yjy_j is at a Boolean residue, defining an assignment β\beta;

  • every clause of FF has one matched satisfying pattern; and

  • every xix_i attains its full local spike allowance SS.

Consider any matched clause pattern that mentions xix_i. It fixes the exact pair σi(x)=(1,0)\sigma_i(x) = (1,0) or (0,1)(0,1). If the fixed pair disagreed with the selected selector, say the pattern fixes (0,1)(0,1) while τit\tau_i^t is selected, then at this timestamp the helper contributes 1 and the selector does not spike, so xix_i contributes 1<S1 < S, contradicting tightness of the XX-layer. Therefore every matched clause pattern agrees with α\alpha on the existential variables it mentions and with β\beta on the universal variables it mentions, and the matched patterns certify that

F(α,β)=true.F(\alpha,\beta) = \text{true}.

This contradicts the assumption that α\alpha is winning. Therefore Δα(x)≠h\Delta_\alpha(x) \ne h. Since Δα(x)\Delta_\alpha(x) is an integer and the preceding bound gives Δα(x)≤h\Delta_\alpha(x) \le h, it follows that Δα(x)≤h−1\Delta_\alpha(x) \le h - 1. Therefore

dbf⁡(Aα,xΛ+h−1)≤xΛ+h−1\operatorname{dbf}(A_\alpha, x\Lambda+ h - 1) \le x\Lambda+ h - 1

at every early window.

Reverse Direction

Lemma 12 (Reverse direction). If the constructed VTS instance has a feasible selected subset meeting the value target KK, then the source formula ∃X∀Y φ(X,Y)\exists X\forall Y\ \varphi(X,Y) is true.

Proof. Suppose a feasible selected subset AA meets the value target KK. By Lemmas 7, 8, and 10, AA selects all mandatory tasks and exactly one selector for every existential variable. Let α\alpha be the extracted assignment to XX.

From a losing existential assignment to a DBF violation. Assume for contradiction that α\alpha is not winning. Then some assignment β\beta to YY satisfies

F(α,β)=true.F(\alpha,\beta) = \text{true}.

For each xix_i, require both coordinate residues to be Boolean and impose σi(x)=(1,0)\sigma_i(x) = (1,0) when α(xi)=true\alpha(x_i) = \text{true} and σi(x)=(0,1)\sigma_i(x) = (0,1) otherwise. For each yjy_j, impose the Boolean residue encoding β(yj)\beta(y_j). These conditions fix one residue modulo each distinct coordinate prime, so the CRT gives a timestamp xx satisfying all of them simultaneously.

Consider the early window

ℓ=xΛ+h−1.\ell= x\Lambda+ h - 1.

The dummy anchor contributes its exact spike W0W_0. Every selected optional selector matches its max residue. By the equality cases following Lemma 4, each existential variable’s matching helper and selected selector attain an actual local spike of SS. The XX-layer spike is therefore exactly nSnS.

By the YY-validity construction in § 8, exactly one validity gadget matches for each encoded yjy_j, giving a total spike of uu. Because (α,β)(\alpha,\beta) satisfies every clause of FF, the clause construction in § 8 makes exactly one satisfying pattern match for each clause, giving a total clause spike of mm. Therefore the actual spike beyond the baseline xΛx\Lambda is

W0+nS+u+m=h.W_0 + nS + u + m = h.

All selected selectors match at this timestamp, so the selector bounds in Lemma 2 are equalities. That lemma therefore gives

dbf⁡(A,ℓ)=xΛ+h=ℓ+1>ℓ.\operatorname{dbf}(A,\ell) = x\Lambda+ h = \ell+ 1 > \ell.

This is a DBF violation and contradicts feasibility. Hence no losing response β\beta exists, and α\alpha is winning.

This completes the logical part of the reduction. The remaining task is to verify that the CRT construction does not cause an exponential increase in the numerical parameters or number of tasks.

Polynomial Boundedness and Unary Encoding

Global CRT timestamps may have exponentially large magnitude, but they are not task parameters. The following lemma bounds the explicit task expansion and all generated integers.

Lemma 13 (Polynomial construction). The construction takes polynomial time and produces polynomially many tasks satisfying Ci≤Di≤TiC_i \le D_i \le T_i. Every generated Ci,Di,Ti,Vi,KC_i, D_i, T_i, V_i, K has magnitude polynomial in the source encoding length, so the construction is polynomial under binary or unary output encoding.

Proof. Put k=2n+uk = 2n + u. The first kk primes can be enumerated in polynomial time and satisfy pmax⁡=O(klog⁡k)p_{\max} = O(k \log k) [23]. An XX-helper reads two coordinates, a YY-validity pattern one, and a clause pattern at most six. Their moduli are therefore bounded by pmax⁡2p_{\max}^{2}, pmax⁡p_{\max}, pmax⁡6p_{\max}^{6}, respectively. Since a full gadget contains one task per modulus position, the total task count is at most

1+4npmax⁡2+2upmax⁡+7mpmax⁡6+2n,1 + 4np_{\max}^{2} + 2up_{\max} + 7mp_{\max}^{6} + 2n,

which is polynomial in the source encoding length.

The definitions make qq, SS, W0W_0, BmandB_{\mathrm{mand}}, Λ\Lambda, hh polynomially bounded. Full-gadget parameters are C=wC = w, T=bΛT = b\Lambda, and either D=rΛD = r\Lambda or D=aΛ+h−1D = a\Lambda+ h - 1, where a<ba < b, 1≤r≤b≤pmax⁡61 \le r \le b \le p_{\max}^{6}, and w≤max⁡{W0,S}w \le\max\{W_0,S\}. Selector parameters are (qp,(p−1)Λ+h−1,pΛ)(qp, (p-1)\Lambda+ h - 1, p\Lambda), with p≤pmax⁡p \le p_{\max}. Therefore all timing parameters have polynomial magnitude. Values are V0=2n+1V_0 = 2n + 1 or 11, and K=MV0+nK = MV_0 + n is polynomially bounded by the task-count bound.

The identity Λ−h=3n+u+6m+nq≥0\Lambda- h = 3n + u + 6m + nq \ge0 gives h≤Λh \le\Lambda. Since n≥1n \ge1, S≥2S \ge2, and W0≥1W_0 \ge1, also h≥2h \ge2 and h−1≥max⁡{W0,S}h - 1 \ge\max\{W_0,S\}. Every full-gadget deadline is at least h−1h - 1, so C≤DC \le D. Non-special deadlines satisfy D=rΛ≤bΛ=TD = r\Lambda\le b\Lambda= T; special deadlines satisfy D=aΛ+h−1<(a+1)Λ≤bΛ=TD = a\Lambda+ h - 1 < (a+1)\Lambda\le b\Lambda= T. For a selector, p≥2p \ge2 gives

C=qp≤qpmax⁡<W0≤Λ≤D<T=pΛ.C = qp \le qp_{\max} < W_0 \le\Lambda\le D < T = p\Lambda.

Therefore every generated task satisfies C≤D≤TC \le D \le T. Computing the local CRT residues and expanding these polynomially bounded gadgets takes polynomial time. Since every output integer has polynomial magnitude, the same holds for unary output.

The bound can still be large, though: the clause layer contains at most 7mpmax⁡6=O(m[(2n+u)log⁡(2n+u)]6)7mp_{\max}^{6} = O(m[(2n+u)\log(2n+u)]^{6}) tasks. The construction is only for the complexity proof and is not intended as a practical instance generator.

Main Result

Theorem 3. VTS\mathrm{VTS} is Σ2P\Sigma^{P}_{2}-complete for both constrained and arbitrary deadlines, even when all numerical parameters are encoded in unary.

Proof. Membership follows from Theorem 2, including unary encoding. For hardness, reduce from the source problem of § 5 using the construction of § 8. Lemmas 11 and 12 establish logical equivalence. Lemma 13 establishes a polynomial-time construction with valid constrained-deadline tasks, polynomial task count, and polynomial numerical parameters, so the reduction is polynomial under binary or unary encoding. This proves constrained-deadline completeness. The same instances are allowed in the arbitrary-deadline model, establishing hardness there as well.

Discussion

Unless the polynomial hierarchy collapses, VTS\mathrm{VTS} belongs to neither NP nor coNP. Hardness persists with polynomially bounded numerical parameters, so an exact algorithm polynomial in task count and parameter magnitudes would imply P=Σ2PP = \Sigma^{P}_{2} and collapse the hierarchy to P. The disabled-option MIS model of § 2 is likewise Σ2P\Sigma^{P}_{2}-complete. Approximation, online selection, multiprocessor platforms, and tractable restricted families remain separate questions.

Conclusion

We proved that VTS\mathrm{VTS} for sporadic tasks on one preemptive processor is Σ2P\Sigma^{P}_{2}-complete for both constrained and arbitrary deadlines, including unary encoding. CRT demand gadgets represent universal responses, while local selector locks enforce one existential truth choice per variable. The construction uses constrained deadlines and has polynomial task count and numerical parameters.

For comparison, the analogous selection problem under a supplied fixed task-priority order is NP-complete for implicit or constrained deadlines. Membership follows by guessing the selected set and response-time fixed points no larger than the corresponding deadlines; these certificates can be checked in polynomial time. For hardness, assign every task value 1 and set K=∣Γ∣K = |\Gamma|, forcing all tasks to be selected. NP-hardness then follows from fixed-priority schedulability [14].

Funding

This work was supported in part by the U.S. National Science Foundation under Grants 2211641, 2246672, 2442078, and 2502855, and by the Swedish Research Council under Grant 2023-04586.

Author contributions

The original research problem was conceived and formulated by K.Y. and Z.G. C.H. identified the relevant complexity class, developed the Σ2P\Sigma_{2}^{P}-completeness proof, and prepared the manuscript. All authors contributed to refining the proof strategy, strengthening the motivation and presentation of the technical results, and clarifying the scope of the mathematical claims. All authors critically reviewed the manuscript and its mathematical arguments, approved the final version, and agreed to be accountable for the integrity of the work.

Use of generative AI

OpenAI Codex was used to assist with manuscript proofreading, LaTeX formatting tweaks, and debugging of text-based explanatory diagrams in TikZ. The authors reviewed all outputs and take responsibility for the accuracy of all output. No generative image model was used. All figures are original diagrams compiled from LaTeX/TikZ source. No LLM was used in the generation of the content of the paper itself in any sort of generative context, only proofreading and LaTeX/TikZ debugging.

Source Normal Form

The reduction assumes a source instance of the form

∃X∀Y φ(X,Y),\exists X \forall Y\ \varphi(X,Y),

where φ\varphi is a 3-DNF formula whose terms have exactly three literals over distinct variables. This is a standard Σ2P\Sigma_{2}^{P}-complete normal form ([27, 28, 24]). One route is to start from the complement of the usual ∀∃\forall\exists-3CNF problem. Negating the inner CNF produces a DNF, and the leading quantifiers swap to the required ∃∀\exists\forall form.

Terms with fewer than three literals can be padded using fresh universally quantified variables. If a term θ\theta has r<3r < 3 literals, introduce 3−r3-r fresh variables z1,…,z3−rz_{1},\ldots,z_{3-r} and replace θ\theta by the disjunction over all assignments to those variables:

⋁π∈{0,1}3−r(θ∧⋀j=13−rzjπj).\bigvee_{\pi\in\{0,1\}^{3-r}}\left(\theta\land\bigwedge_{j=1}^{3-r}z_{j}^{\pi_{j}}\right).

where zj1=zjz_{j}^{1}=z_{j} and zj0=¬zjz_{j}^{0}=\neg z_{j}. For any assignment to the fresh variables, exactly one pattern ⋀jzjπj\bigwedge_{j}z_{j}^{\pi_{j}} is true, so the padded disjunction is true exactly when θ\theta is true, and the formula is preserved. Contradictory terms are deleted, and duplicate literals inside a term are removed before padding. Degenerate always-true or always-false cases can be mapped explicitly to fixed instances: the one-task system Γ={(1,1,1,1)}\Gamma=\{(1,1,1,1)\} with K=1K=1 is a yes-instance, while the same system with K=2K=2 is a no-instance.

References

  1. [1]Kunal Agrawal, Sanjoy Baruah, and Pontus Ekberg. Rethinking tractability for schedulability analysis. In Proceedings of the 44th IEEE Real-Time Systems Symposium (RTSS), pages 1–12, Piscataway, NJ, USA, 2023. IEEE. doi: 10.1109/RTSS59052.2023.00011.DOI
  2. [3]H. Aydin, Rami Melhem, D. Mossé, and P. Mejia-Alvarez. Optimal reward-based scheduling for periodic real-time tasks. IEEE Transactions on Computers, 50(2):111–130, 2001. doi: 10.1109/12.908988.DOI
  3. [4]S. K. Baruah, A. K. Mok, and L. E. Rosier. Preemptively scheduling hard-real-time sporadic tasks on one processor. In Proceedings of the 11th IEEE Real-Time Systems Symposium (RTSS), pages 182–190, Los Alamitos, CA, USA, 1990. IEEE Computer Society Press. doi: 10.1109/REAL.1990.128746.DOI
  4. [5]A. Burns, D. Prasad, A. Bondavalli, F. Di Giandomenico, K. Ramamritham, J. A. Stankovic, and L. Strigini. The meaning and role of value in scheduling flexible real-time systems. Journal of Systems Architecture, 46(4):305–325, 2000. doi: 10.1016/S1383-7621(99)00008-9.DOI
  5. [6]Jian-Jia Chen, Junjie Shi, Mario Günzel, Georg von der Brüggen, Kuan-Hsun Chen, and Peter Bella. Theoretical foundations of utility accrual for real-time systems. In Renato Mancuso, editor, 37th Euromicro Conference on Real-Time Systems (ECRTS 2025), volume 335 of Leibniz International Proceedings in Informatics (LIPIcs), pages 1–26, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi: 10.4230/LIPIcs.ECRTS.2025.17. Article 17.DOI
  6. [7]H. Chetto and M. Chetto. Scheduling periodic and sporadic tasks in a real-time system. Information Processing Letters, 30(4):177–184, 1989. doi: 10.1016/0020-0190(89)90209-3.DOI
  7. [8]G. B. Dantzig. Discrete-variable extremum problems. Operations Research, 5(2):266–288, 1957. doi: 10.1287/opre.5.2.266.DOI
  8. [9]Michael L. Dertouzos. Control robotics: The procedural control of physical processes. In Jack L. Rosenfeld, editor, Information Processing 74: Proceedings of IFIP Congress 74, pages 807–813, Amsterdam, 1974. North-Holland.
  9. [10]F. Eisenbrand and T. Rothvoß. Static-priority real-time scheduling: Response time computation is NP-hard. In Proceedings of the 29th IEEE Real-Time Systems Symposium (RTSS), pages 397–406, Los Alamitos, CA, USA, 2008. IEEE Computer Society. doi: 10.1109/RTSS.2008.25.DOI
  10. [11]F. Eisenbrand and T. Rothvoß. EDF-schedulability of synchronous periodic task systems is coNP-hard. In Proceedings of the Twenty-First Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1029–1034, Philadelphia, PA, USA, 2010. SIAM. doi: 10.1137/1.9781611973075.83.DOI
  11. [12]P. Ekberg and S. Baruah. Partitioned scheduling of recurrent real-time tasks. In Proceedings of the 42nd IEEE Real-Time Systems Symposium (RTSS), pages 356–367, Piscataway, NJ, USA, 2021. IEEE. doi: 10.1109/RTSS52674.2021.00040.DOI
  12. [13]P. Ekberg and W. Yi. Uniprocessor feasibility of sporadic tasks with constrained deadlines is strongly coNP-complete. In Proceedings of the 27th Euromicro Conference on Real-Time Systems (ECRTS), pages 281–286, Piscataway, NJ, USA, 2015. IEEE. doi: 10.1109/ECRTS.2015.32.DOI
  13. [14]P. Ekberg and W. Yi. Fixed-priority schedulability of sporadic tasks on uniprocessors is NP-hard. In Proceedings of the 38th IEEE Real-Time Systems Symposium (RTSS), pages 139–146, Piscataway, NJ, USA, 2017. IEEE. doi: 10.1109/RTSS.2017.00020.DOI
  14. [15]M. R. Garey and D. S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, San Francisco, 1979.
  15. [16]Joël Goossens and Pascal Richard. Partitioned scheduling of multimode multiprocessor real-time systems with temporal isolation. In Proceedings of the 21st International Conference on Real-Time Networks and Systems (RTNS), pages 297–305, New York, NY, USA, 2013. ACM. doi: 10.1145/2516821.2516822.DOI
  16. [18]G. Koren and D. Shasha. D-over: An optimal on-line scheduling algorithm for overloaded real-time systems. In Proceedings of the 13th IEEE Real-Time Systems Symposium (RTSS), pages 290–299, Los Alamitos, CA, USA, 1992. IEEE Computer Society Press. doi: 10.1109/REAL.1992.242650.
  17. [19]Dawei Li and Jie Wu. Utility-based scheduling for periodic tasks with multiple parallelization options. In 2016 IEEE International Conference on Cloud Computing Technology and Science (CloudCom), pages 423–430, Los Alamitos, CA, USA, 2016. IEEE Computer Society. doi: 10.1109/CloudCom.2016.0072.DOI
  18. [20]Jane W. S. Liu, Kwei-Jay Lin, Wei-Kuan Shih, Albert Chuang-shi Yu, Jen-Yao Chung, and Wei Zhao. Algorithms for scheduling imprecise computations. Computer, 24(5):58–68, 1991. doi: 10.1109/2.76287.DOI
  19. [21]Pedro Mejia-Alvarez, Eugene Levner, and Daniel Mossé. Adaptive scheduling server for power-aware real-time tasks. ACM Transactions on Embedded Computing Systems, 3(2):284–306, 2004. doi: 10.1145/993396.993400.
  20. [22]Aloysius Ka-Lau Mok. Fundamental Design Problems of Distributed Systems for the Hard-Real-Time Environment. PhD thesis, Massachusetts Institute of Technology, Cambridge, MA, 1983. URL https://hdl.handle.net/1721.1/15670. MIT Laboratory for Computer Science Technical Report MIT/LCS/TR-297.
  21. [23]J. B. Rosser and L. Schoenfeld. Approximate formulas for some functions of prime numbers. Illinois Journal of Mathematics, 6(1):64–94, 1962. doi: 10.1215/ijm/1255631807.DOI
  22. [24]M. Schaefer and C. Umans. Completeness in the polynomial-time hierarchy: Part I: A compendium. ACM SIGACT News, 33(3):32–49, 2002. doi: 10.1145/582475.582484.
  23. [25]W.-K. Shih and J. W. S. Liu. On-line scheduling of imprecise computations to minimize error. SIAM Journal on Computing, 25(5):1105–1121, 1996. doi: 10.1137/S0097539792233634.DOI
  24. [26]Prabhakant Sinha and Andris A. Zoltners. The multiple-choice knapsack problem. Operations Research, 27(3):503–515, 1979. doi: 10.1287/opre.27.3.503.DOI
  25. [27]L. J. Stockmeyer. The polynomial-time hierarchy. Theoretical Computer Science, 3(1):1–22, 1976. doi: 10.1016/0304-3975(76)90061-X.DOI
  26. [28]C. Wrathall. Complete sets and the polynomial-time hierarchy. Theoretical Computer Science, 3(1):23–33, 1976. doi: 10.1016/0304-3975(76)90062-1.DOI
  27. [29]Hoeseok Yang, Hokeun Kim, Choonghwan Lee, and Hyung-Chan An. Value-aware real-time scheduling for intelligent transportation systems. IEEE Embedded Systems Letters, 18(3):241–244, 2026. doi: 10.1109/LES.2025.3597246.DOI

Paper details

vlnc:W_78syzwke
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Codex · View statement →

Looking for related papers…
Contents