Manuscript Offprint
arXiv:2610.12804The Complexity of Finding Additional Solutions
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study the difficulty of finding a new solution when a list of distinct solutions is already supplied. For any fixed finite collection of list lengths, we can prescribe the additional-solution degrees while preserving a given 1-paddable domain and first-solution degree. We also prove an exact compatibility condition for prescribing an arbitrary positive-list degree at the same time: it must dominate every prescribed fixed-level degree, and this condition suffices. All degrees use polynomial-time reductions with at most one oracle query and correct behavior on empty fibers; the realization needs no assumption about P versus NP. The combined construction gives each underlying witness exponentially many short counter copies. A list that exhausts these copies is long enough to pay for exhaustive search through the underlying witness bound. Separately, we construct a total problem whose first-solution task and every fixed-length additional-solution task are polynomial-time solvable, while its arbitrary-list task is FNP-complete. Assuming P differs from NP, the domain, first degree, and entire fixed-level degree sequence therefore do not determine the arbitrary-list degree. A constant fiber cap restores determination by finitely many fixed levels. The constructions change witness sets and do not prescribe an infinite sequence of degrees or enumerate all remaining solutions.
1 Introduction
Finding a solution is often only the beginning. A person choosing a schedule may want several alternatives. Someone completing a puzzle may want to know whether another completion exists. In either case, the next task comes with information that the original task did not have: some solutions are already known. We ask how this information affects the difficulty of finding a new solution, and what changes when the number of known solutions grows.
Earlier work by Egidy, Glaßer, and Godau [1] showed that finding a first solution and finding a second can have independently chosen difficulties. Starting from a search problem with a 1-paddable domain, they construct another with exactly the same solvable instances and an equivalent first-solution task, but with a prescribed second-solution difficulty. They asked whether analogous results hold when a fixed number of distinct solutions are supplied, when the supplied list has arbitrary length, or when the goal is to find all remaining solutions [1, Section 5]. This paper extends the fixed-list construction to simultaneous finite prescription and determines when a prescribed arbitrary positive-list degree is compatible with those finitely many degrees. It does not address finding all remaining solutions.
Our main result allows several additional-solution tasks to be prescribed within one problem. We can choose the difficulty of finding a second solution, choose the difficulty of finding a third separately, and continue for any fixed finite number of steps. Throughout, the constructed problem has solutions on exactly the same instances as the original problem, and finding a first solution retains its original difficulty. The construction requires a recognizable collection of positive instances in which arbitrary inputs can be encoded and recovered efficiently. Under this assumption, controlling one of these additional-solution tasks places no restriction on the other finitely many tasks being prescribed.
A list of arbitrary length raises a different issue. Every fixed-list task reduces to the positive arbitrary-list task by using the same supplied list. Thus a prescribed arbitrary-list degree must dominate each prescribed fixed-level degree. We prove that this necessary condition is sufficient under the same padding assumption, while retaining the domain and first-solution degree. The new construction gives each underlying witness exponentially many copies identified by short binary counters. If a supplied list exhausts a represented witness's copies, its full encoded length is large enough to pay for searching all candidate underlying witnesses. This is a separate construction from the finite-copy construction, whose arbitrary-list degree we also characterize exactly in terms of the original and target residual tasks.
Assuming , we also show that the difficulty for arbitrary-length lists is not determined by the domain, first-solution degree, and difficulties for all fixed list lengths. We construct a total search problem for which finding a first solution and finding another after any fixed number of supplied solutions are polynomial-time solvable. Yet finding another solution after an arbitrary-length supplied list is FNP-complete, and hence is not polynomial-time solvable unless . We also clarify when an additional-solution task is guaranteed to have an answer and extend the total-search construction from the earlier work to any one fixed number of supplied solutions.
The contribution is a description of how much freedom there is in the difficulty of finding further solutions, together with an explanation of why fixed and growing lists behave differently. This freedom comes from constructing new solution sets while retaining the original positive instances and first-solution difficulty. The combined result prescribes finitely many fixed levels together with a compatible arbitrary positive-list degree; it does not prescribe an entire infinite sequence. Preserving an unchanged natural notion of solution and computing all remaining solutions remain outside the results established here.
An additional-solution problem needs three conventions: what counts as a witness, how previously supplied witnesses are represented, and what an algorithm must do when no answer exists. We fix all three on binary strings.
2.1 Instances, witnesses, and verification
Let . The set contains all finite binary strings, and is the number of bits in . The empty string is ; it is a possible witness, not an empty set of witnesses. A search relation is a set . The first coordinate is an instance, and a second coordinate with is a witness, or solution, for that instance. The fiber is its entire set of witnesses. The domain consists of the instances that have a witness. A relation is total if its domain is all of .
The graph of is the set of pairs belonging to the relation. A graph verifier is an algorithm that accepts exactly those pairs. Thus a “graph test” means checking a candidate witness. A polynomial-time graph verifier halts on every pair within steps for some polynomial . This bound includes rejected candidates, however long. Checking a candidate and finding a candidate are different tasks: an instance can have many efficiently checkable witnesses without an efficient algorithm for selecting one.
A polynomial witness bound, also called a length bound, is a nonnegative integer-valued polynomial such that
It bounds every valid witness using the instance length alone. In contrast, the verifier's time depends on both instance and candidate length. We use monotone polynomial majorants: replacing a bound by a larger polynomial with nonnegative coefficients preserves it and ensures that substituting a larger argument cannot decrease the bound. In particular, if an encoded input has length , then .
Following the relation model of [1, Definitions 2.3–2.8], FNP consists of the search relations with a polynomial-time graph verifier and a polynomial witness bound. Here FNP describes efficiently verifiable search: a nondeterministic machine can guess a witness and check it in polynomial time, but an efficient deterministic algorithm for finding a witness is not required. Since there are only binary strings through the witness bound, every fiber is finite. This finiteness need not give a practical enumeration algorithm, or a constant upper bound shared by all instances. The class TFNP consists of the total relations in FNP, that is, those with domain [1, Definition 2.6].
2.2 Refinements and one-query comparisons
A relation can allow several answers. To solve it, an algorithm chooses one whenever possible and reports failure otherwise. Formally, a refinement of is a total function with when the fiber is nonempty and exactly when it is empty. The symbol is a special no-answer output, not a binary witness. Even when is valid, it differs from . We call a relation polynomial-time solvable if it has a polynomial-time refinement. This requires correct behavior on empty fibers as well as finding witnesses on nonempty ones.
We write if a deterministic polynomial-time oracle algorithm computes a refinement of using at most one query to any refinement of . A query names an instance of . The answer can be any witness in that fiber; the reduction must succeed for every such answer and every choice of target refinement. If the queried fiber is empty, the oracle returns , which the reduction may use. This does not give the reduction a separate polynomial-time test for emptiness. Correctness is required on every raw binary input, including malformed operator inputs. The time spent writing the query, reading the oracle's answer, and writing the output counts toward the reduction's polynomial running-time bound; the time the oracle spends computing its answer does not.
One-query reductions between FNP relations compose. Given reductions from to and from to , simulate the first and, if it asks a query, simulate the second on that query. The second simulation either answers locally or makes its single query to ; use its decoded answer to resume the first. This makes at most one final oracle query. For every refinement of , the inner simulation supplies a legal refinement answer for , including on an empty fiber, so the outer simulation is correct. Composing polynomial query bounds with the witness bounds of bounds all answers and outputs; the two clocked simulations therefore have one polynomial running-time bound. No-query halts remain no-query halts. This proves transitivity.
The notation means reducibility in both directions. An FNP degree is a one-query equivalence class represented by a relation in FNP, written . The least degree consists of polynomial-time-solvable relations, including the empty relation. A relation is FNP-complete if it belongs to FNP and every relation in FNP reduces to it under .
For languages, we write if there is a total polynomial-time computable map such that if and only if . This is called a polynomial-time many-one reduction from to . Write when both and hold. Thus a many-one reduction transforms a membership question for one language into an equivalent membership question for another. The class NP consists of languages whose members have polynomial-length witnesses that can be verified in deterministic polynomial time; nonmembers have no accepting witness. A language is NP-complete if it belongs to NP and every language in NP is polynomial-time many-one reducible to it.
2.3 Supplied lists and residual operators
To ask for another witness, we supply a list of witnesses already known. The list is an ordered representation of the set to exclude. Repetitions are rejected, so its length counts distinct witnesses.
Convention 2.1 (List encoding). Fix an injective encoding of finite lists of binary strings with polynomial-time encoding and decoding. We use
The decoder checks the number of fields, called the arity, and rejects malformed strings. Decoding must read one complete valid code and leave no unused trailing bits; we call this complete decoding. For example, followed by an extra bit is rejected, since its arity permits only the already completed field. The empty string is not a list code.
For fixed , the input is valid for if all belong to and are pairwise distinct. Let denote the valid raw codes. On a valid input set
on every other raw string the fiber is empty. This is the fixed additional-solution level: r counts the supplied witnesses, so level one asks for a second solution. It follows the operator of [1, Definition 2.9], based on the n-ASP formalization [2, Definitions 2.4–2.5].
The invalid-input totalization agrees with on valid inputs and has fiber on invalid inputs. A valid list is exhausted when it contains every member of . Such a list has an empty residual in and . Totalization therefore does not necessarily produce a total search relation. For example, if , supplying 11 is invalid, supplying 00 is valid and leaves 01, and supplying both 00, 01 is valid but exhausted. Only the first case gets from totalization.
Validity is polynomial-time decidable: decode, check arity, verify each supplied witness, and compare the strings pairwise. To verify a residual candidate, also check its -membership and that it differs from every supplied witness. Its length is at most , where is the complete encoded-input length. For the invalid-input totalization, first test whether the supplied list is valid. If it is invalid, accept the candidate exactly when it is . If it is valid, accept the candidate exactly when it belongs to and differs from every supplied witness. The verifiers for and run in polynomial time, and every accepted candidate has polynomially bounded length. Hence and . These verifiers check individual candidates; they do not need to decide whether the supplied list exhausts . On a valid exhausted list, every candidate is rejected.
Definition 2.2 (Variable-list operators). On a completely decoded valid list , define
Define by the same formula with , so . All other raw inputs have empty fibers. Their invalid-input totalizations and give exactly on invalid inputs and are equal to their counterparts on valid ones. In particular, valid exhausted lists stay empty. We write only when raw level zero is explicitly needed.
The star permits an arbitrary positive number of supplied witnesses. The residual operator also permits none. Its input then asks the same search question as but uses a different input string. On valid supplied sets, this is the residual search task called AnotherSolution in [3, Section 2.2.2, pp. 28–29] and AnotherSol in [4, p. 5, Proposition 7]. We specify raw encodings and invalid-input behavior separately here.
2.4 Tags, copies, and component selection
A tag is a label stored as part of a binary code. It tells a decoder how to interpret the rest of that code. We use tags in two different ways. A witness-copy tag distinguishes several copies of the same underlying witness. A component-selector tag identifies which search relation is being used. For example, to combine two relations and , an input asks for a witness of , whereas asks for a witness of . An output carries the same selector as its input, so the decoder knows which relation its witness belongs to. The following conventions specify the encodings for both uses.
Convention 2.3 (Shared finite tag encoding). Choose a fixed finite ambient set of nonnegative integer labels. If , use bits; if , use . For , write for its -bit binary code. One ambient set and one width are shared by every tag set in a construction. Thus for any and ,
Here juxtaposition concatenates the prefix and suffix. A constant with label is the string itself. For a label set , its constant strings are . For example, labels 2, 3, 4 in the ambient set have codes 010, 011, 100. The subset need not start at zero. We never separately renumber two tag sets from zero: their shared numerical codes prevent collisions.
The map is injective because the fixed tag width lets us recover both and uniquely. We write for disjoint union. Constants and witness copies use different tags, so they cannot be equal, even when and the copy consists only of its tag. Tagging and untagging leave unchanged.
Convention 2.4 (Finite tagged sums). Let be a fixed finite family of search relations, indexed by a fixed finite set , with . These are relations on instance/witness pairs, not fibers of one instance. Fix an enumeration of and encode the selector by the -bit code of its position , where for . Define
Both input and candidate output must decode into exactly two fields, with an in-range fixed-width selector. Their selectors must match: an output naming a different component is rejected. Complete decoding rejects unused suffixes. Every other input has an empty fiber. For the sum is everywhere empty, without evaluating .
The notation uses ; indices starting at one, or any other finite labels, use the same definition. For two components , their selectors are . Input asks for and accepts only outputs with . An answer is invalid even if its suffix happens to be a witness for both relations. The selector identifies which relation supplies the witness; the witness-copy tag introduced earlier identifies a copy of a witness within that relation. If a component witness is , the sum output is : selects the relation , while labels the copy of . If sums are nested, successive selectors identify a component through several layers. We can replace this sequence by one selector for each final component, giving an equivalent single finite sum. For example, : each direction uses one oracle query, with the selectors decoded and re-encoded.
Componentwise one-query equivalence of two fixed finite FNP families gives equivalence of their tagged sums: decode the source selector, run that component's reduction, and re-encode any witness with the source selector. Return on invalid outer inputs. Adjoining everywhere-empty components also leaves the degree unchanged. Map the old selectors in each direction and, on an added empty component, return locally. Since the families are fixed and finite, a single polynomial majorizes all component query, answer, and computation bounds.
2.5 Residual splitting and tagged copies
The next lemma makes the raw-input and resource conventions explicit. Its equivalence says that permitting zero supplied witnesses adds just one component: the original first-solution task.
Lemma 2.5 (Residual operators and the zero slice). If , then , , and their invalid-input totalizations belong to FNP. Finite tagged sums preserve FNP, and
Proof. Let be a residual-operator input, , and a candidate witness. Decode completely. Require an instance field , followed by at least one supplied witness for , or possibly none for . Check that every supplied witness belongs to and that they are pairwise distinct. Reject if any check fails. Otherwise, accept exactly when and differs from every supplied witness.
There are at most supplied strings, each of length at most , so these checks take polynomial time in . Every accepted witness has length at most . For invalid-input totalization, perform the same validity check but accept only when the input is invalid. This zero-length witness also satisfies the bound. Valid exhausted lists still have no witnesses. Thus the residual operators and their invalid-input totalizations belong to FNP, without requiring a test for exhaustion.
We next verify membership in FNP for finite tagged sums. If the family is empty, reject every candidate. Otherwise, decode the input as and the candidate as , requiring exactly two fields in each code and no unused bits. Check that both selectors have the required width and range and that . Then accept exactly when . The family is fixed and finite, so verification takes polynomial time. If the input length is , then , and the output length is bounded by
Hence finite tagged sums preserve FNP.
To reduce to , use selector 0 for and selector 1 for . Validate the source input first, returning without a query if it is invalid. If the input is a zero-witness list , query the sum at . If it is a valid positive list with code , query . In either case, the selected component has exactly the witnesses required by the source task. Delete the outer selector from any witness answer and return its second field. Return when the oracle returns . This handles both empty original fibers and exhausted supplied lists.
For the reverse reduction, decode the outer sum input completely and check its selector. Return if this code is invalid. On input , query at . On input , validate w as a positive supplied list for . Return if validation fails; otherwise, query at . Wrap any witness answer in the original selector, and preserve . The zero-witness query recovers , while a positive query has the same remaining witnesses as . Every legal oracle answer therefore gives a correct source answer.
Each reduction makes at most one query. Validation and encoding take polynomial time in the complete source-input length, and every query has polynomial length. The target witness bounds also give polynomial bounds on every legal oracle answer and the resulting output. Reading, decoding, and writing these strings therefore take polynomial time. Neither reduction decides exhaustion before querying.
Copying a witness changes the number of solutions without changing the first-solution search degree. It can also guarantee a new answer from a short list. Here the guarantee is stronger than mere solvability: every valid short list has a remaining witness.
Lemma 2.6 (Creating copies of each witness). Let and fix . Using the shared tag encoding for , define
Thus each witness of has distinct tagged copies. Then , , and . For every fixed , the additional-solution task is polynomial-time solvable. Every valid supplied list of length leaves an unused copy of the underlying witness encoded by its first entry.
Proof. For each , let denote its fixed-width -bit code. To verify a candidate witness of , reject if it has fewer than bits. Otherwise, read its first bits as a tag and its remaining suffix as . Accept exactly when the prefix is for some and accepts. This takes polynomial time, and every accepted witness has length at most . Hence . Its fiber is nonempty exactly when is nonempty, so their domains agree.
For , query at and prefix any witness answer with . For , query at and delete the first bits from any witness answer. Both reductions return when the oracle returns . Every legal answer is handled correctly, and the fixed tag length and witness bounds give polynomial running time.
Now fix . Decode the source input completely, require exactly supplied witnesses, and check their membership in and pairwise distinctness. Return if validation fails. Otherwise, let be the suffix of the first supplied witness. Since , all strings
are distinct valid witnesses of . The supplied list contains only witnesses, so at least one of these copies is absent. Compare the copies with the supplied list and return an absent one. This also works when : the copies are then the distinct tag strings themselves.
Validation and the fixed number of comparisons take polynomial time. Thus the algorithm solves on every raw input, and every valid input has an additional witness.
2.6 A usable set of positive instances
In the main construction, we start with a search relation A and modify its witnesses so that finding additional solutions has a prescribed difficulty. We must keep its domain unchanged: an instance has a witness in the new relation exactly when it has one in A. To encode a target search task, we therefore need a way to assign each target instance to a distinct instance in dom(A). This assignment must be computable in polynomial time, and we must be able to recognize the assigned instances and recover the target instances from them. The following padding condition provides these maps. To place target tasks inside an existing domain, we need positive instances we can construct and recognize. A language X is 1-paddable via p if is total and injective, p and its inverse are polynomial-time computable, and [1, Definition 3.1]. The inverse returns off the image. Consequently is polynomial-time decidable by running the inverse. Both maps have polynomial output bounds, since their algorithms must write their outputs. This assumption assigns every binary string z a distinct element , with both the assignment and recovery of z computable in polynomial time. The assumption lets us recognize in polynomial time; it does not require us to decide membership in all of X. Section 3 uses disjoint subsets of as slices; they do not cover that image, since is generic.
3 Prescribing finitely many additional-solution levels
We ask whether the difficulty of finding another solution can be chosen separately for different numbers of supplied solutions. For example, can we prescribe one search degree for finding a second solution and another for finding a third, while preserving the domain and the first-solution degree? We now prove this for any fixed finite number of levels. Given a base relation A and target relations , we construct one relation with the same domain and first-solution degree as A, whose level-j additional-solution task is equivalent to for each . The targets can be chosen independently and may be empty. The stated predecessor theorem assumes a nonempty target [1, Theorem 4.6]; allowing empty targets extends that hypothesis of the construction. This is not a claim that the least search degree was absent from earlier work. An empty target makes the corresponding level polynomial-time solvable, including correct reporting when no additional solution exists.
Theorem 3.1 (Simultaneous spectrum realization). Fix . Let , and suppose that is 1-paddable via . There is a relation such that
The equality of domains concerns raw instances of C and A. The additional-solution tasks instead take encoded lists. Each equivalence uses at most one query and must decode every legal oracle answer, including .
3.1 Why copies and separate instance regions are needed
The relations are the target search problems given in the theorem. We want finding another witness of after one supplied witness to be equivalent to , after two supplied witnesses to be equivalent to , and so on. Thus is the chosen target for the task with exactly supplied witnesses. Fix . To encode , we assign each target instance an instance of . Suppose first that contains explicit constants and one tagged copy of each witness in , with no other witnesses. Supplying all constants leaves exactly the target copies. Finding another witness then amounts to finding a witness in . The problem appears when more than witnesses are supplied. For example, suppose and the list contains all constants together with the copy of one target witness . This is a list of length . An additional witness must encode a different witness of , so the remaining task is finding a second solution of . But the theorem requires the task with supplied witnesses to have the degree of the independently chosen relation . There is no reason for these two degrees to agree. Following the witness-copy argument of Lemma 2.6, we therefore give each witness in exactly tagged copies. A supplied list of length at most cannot contain all copies of any target witness. If it contains a copy of , we can return an absent copy of that same , without finding a different target witness. If the list contains only constants but omits one, we return the omitted constant. The only remaining case is the list containing all constants and no copies: it has length and leaves exactly the copies of . Thus this instance encodes the desired target search at list length , while every valid list of another length between 1 and can be extended in polynomial time.
We now specify which input strings of the constructed relation will be used for each target problem. We choose pairwise disjoint sets and call each set a slice. For , inputs will encode instances of . The set will be used to preserve the first-solution degree of . Thus a slice is a set of input strings , whereas is the set of witnesses for one such input. The padding map (from the 1-paddability assumption on ) lets us construct and recognize these slices in polynomial time. Input strings outside their union will be called generic.
Lemma 3.2 (Slices). Fix and let be the distinct binary codes of of length . Put and
The images of the are pairwise disjoint polynomial-time decidable subsets of when pads . The maps and their inverses are polynomial-time computable. Also and .
Proof. Given a string , compute . If the result is or has fewer than bits, then belongs to none of the images . Otherwise,
for some suffix . Indeed, this equality is equivalent to . Deleting the prefix therefore recovers . Computing and checking the prefix take polynomial time, so each image is polynomial-time decidable and each inverse is polynomial-time computable. Each is also polynomial-time computable by its definition.
The images are pairwise disjoint because is injective and the codes are distinct and have equal length. Every image lies in . Finally, has no -bit prefix, so . Strings outside also belong to no image, and hence lie in .
We use these slice maps for and its arbitrary-list analysis. The later counter-copy construction will specify its own slices.
3.2 Finite construction and proof
Fix and their common padding as in the theorem. A branch slice , , will carry the target at level . Replacing its original witnesses could lose information needed to solve . The repair slice restores that access by storing copies of for every . Thus every original instance inside can be moved to a place retaining its original witnesses. Instances outside the slices, in , remain generic.
Use one ambient tag set in Convention 2.3. For each , define the set of constant strings and the set of copy labels by
In particular . The labels of the constants are disjoint from , and all codes use the same width . Each has labels. Set . This auxiliary relation is total because padding lands in ; it need not have a polynomial-time refinement.
Definition 3.3 (Spectrum construction). Let be given by
The padding is fixed but suppressed in the notation. Slice zero (for ) is the repair slice; the other slices are branches. The disjoint union separates constant strings from tagged witness copies, including copies of .
Lemma 3.4 (Fibers and admissibility). The relation belongs to FNP. Its fibers have the forms
| instance | fiber |
|---|---|
| . |
In the last row, . The repair and branch fibers are nonempty, whether or not is empty.
Proof. Given an instance and a candidate witness , first determine whether is generic, on the repair slice, or on branch , using Lemma 3.2. On branch , compute and accept if is one of the constants in . Otherwise, require at least bits, read the first bits as a tag, and let be the remaining suffix. Accept exactly when the tag belongs to and .
On generic and repair instances, require a tag in and verify the suffix in or , respectively. Reject candidates with missing or inadmissible tags. The slice tests and instance transformations are polynomial-time computable. Since only finitely many fixed graph verifiers are used, the resulting verifier runs in polynomial time in .
Choose a monotone polynomial bounding the lengths of , every inverse image , and the repair instance whenever these are used. Every copied witness then has length at most
Constants have length , so the same bound covers them. Together with the graph verifier, this proves .
The displayed fibers follow directly from the definition, with substituted on the repair slice. On branch , each underlying witness has exactly distinct tagged copies. Different underlying witnesses give different strings, and the copy tags are disjoint from the constant labels, even for an empty suffix. Hence
Every repair fiber is nonempty because belongs to the domain of . Every branch fiber contains its constants, including when is empty.
Given a valid supplied list, we first try to produce another witness in either of two ways: return a constant missing from the list, or take a supplied copy and return another copy of the same witness that is missing from the list. We call these the two elementary rules. In the second rule, the tag may already appear on a copy of a different witness; only the complete string must be absent. Neither rule applies exactly when the list contains every constant and, for each underlying witness represented in the list, all its tagged copies. We call such a supplied list a full grid. The next lemma states this characterization formally.
Lemma 3.5 (Full grids). Use one shared finite tag encoding. Let be a finite set of constant strings whose labels are disjoint from a nonempty finite set of copy labels. Let and put , the set of available witnesses. Let be a finite set of supplied witnesses, and define
Thus contains the underlying witnesses whose copies appear in . Consider the two elementary ways to find a witness in : return a constant in , or return an absent copy with and . Neither way produces a witness exactly when
that is, when contains every constant and every copy of each witness in . Equivalently, and . In that case,
Thus any remaining witness must be a copy of an underlying witness not yet represented in S.
Proof. The first rule finds another witness exactly when a constant is missing from . It therefore fails exactly when . The second rule fails exactly when every tagged copy of every underlying witness in is already in , that is, when . By the definition of , every supplied witness that is not a constant belongs to . Thus
Both rules fail exactly when the reverse inclusion also holds, giving
For the cardinality formulation, assume . Then , and
The second equality follows from injectivity of the tag encoding. These finite sets are equal exactly when their cardinalities agree, so the full-grid condition is equivalent to and .
Finally, removing a full grid removes every constant and every copy of each witness in U. The remaining witnesses are therefore exactly
If , this set is empty: failure of both rules does not itself guarantee that another witness exists.
On branch slice , a full grid has size . On a generic or repair fiber it has size . Now consider a valid supplied list of length , where , and let be its set of witnesses. If both elementary rules fail, Lemma 3.5 says that contains every constant and all copies of each underlying witness in . Since , the list cannot contain a complete group of copies. Therefore , so consists only of constants. Generic and repair instances have no constants. On either type of instance, such a full grid would therefore be empty, contradicting . On branch slice , there are exactly constants, so and . Thus both rules can fail only when the instance lies in and the supplied list contains exactly . In that case the remaining witnesses are , where . This is precisely the case in which finding another witness requires the target search ; every other valid list of length can be extended by an elementary rule.
Proof of Theorem 3.1. Take . Lemma 3.4 gives . On a generic instance , the fiber is nonempty exactly when is nonempty. Every repair or branch instance belongs to and has a nonempty fiber. Hence
For , first classify the instance. On a branch, return the constant with label zero without querying. On a generic instance, query at . On a repair instance, query at . In either query case, prefix a witness answer with tag zero and preserve . The fiber formulas show that every returned witness belongs to .
For the reverse reduction, we must avoid branch queries that could return constants instead of original A witnesses. Define
If is outside the padding image, it is generic. Otherwise, is a repair instance whose underlying -instance is . Thus, in both cases,
Query at and delete the tag from any witness answer. Return on an oracle answer . Every witness answer yields a member of , and the queried fiber is empty exactly when is empty. This proves .
Fix . Decode the source input completely, require exactly supplied witnesses, and check their membership in and pairwise distinctness. Return if validation fails. Otherwise, let be the supplied set. Try the two elementary rules: return a missing constant, or an absent copy of an underlying witness already represented in . Either successful rule gives a witness in without a query. If both fail, is a full grid. It cannot contain a copied witness, since a full grid would then contain all copies of that witness. Thus consists only of constants. Generic and repair instances have no constants, while branch has exactly constants. Consequently, and , leaving
Query at and prefix any witness answer with tag , which belongs to . Preserve . If is empty, the supplied constants exhaust the source fiber, so is also the correct source answer.
Given any input , query on the encoded instance followed by all constants in . These constants are valid and distinct, and the remaining witnesses are exactly . Delete the tag from any witness answer to obtain a member of , and preserve . This proves the reverse reduction.
All reductions make at most one query. Slice classification, validation, padding, and the fixed constant and copy tests take polynomial time in the complete source-input length. Query lengths are polynomially bounded, and composing these bounds with the target witness bounds also bounds every legal oracle answer and decoded output. Thus answer processing takes polynomial time. Every legal oracle answer is handled correctly, including , without a separate test for exhaustion.
Each underlying witness has exactly tagged copies. A supplied list of at most n witnesses therefore leaves an unused copy of every underlying witness represented in the list. Longer lists can contain complete groups of copies. If a list contains every constant and all copies of every underlying witness represented in it, neither elementary rule gives another solution. The full-grid lemma then shows that the remaining solutions are exactly the copies of underlying witnesses not represented in the list. Section 4 uses this characterization to analyze arbitrary-length supplied lists.
3.3 Prescribing finite tuples of search degrees
The fixed-level theorem gives two direct degree consequences. Without a specified domain, every finite tuple of FNP degrees can occur. On a specified 1-paddable domain, the first degree must already be attainable by some relation on that domain; the additional degrees can then be chosen freely.
Corollary 3.6 (Prescribing search degrees). Fix . Given any FNP degrees , there is a relation such that
Moreover, let be a fixed 1-paddable language. If some relation has domain and degree , then can be chosen with domain for any prescribed FNP degrees .
Proof. Choose relations representing the degrees . Following [1, Proposition 3.6], define
A verifier uses the verifier of after an initial zero and accepts only the witness on every other input. The witness bound of also bounds the copied witnesses, so .
To reduce to , query at and return the oracle answer unchanged. Conversely, on input , query at ; on every other input, return without querying. These reductions preserve on empty fibers, proving .
The domain of is 1-paddable via : every such input has witness , and the inverse deletes the initial one, returning on strings outside the image. Thus represents and satisfies the padding assumption. Theorem 3.1, applied to , realizes the prescribed tuple.
For the fixed-domain claim, no normalization is needed. Apply the theorem directly to the given relation A with domain X and to representatives of the prescribed additional-solution degrees.
The fixed-domain claim requires the first-solution degree to be realizable on X. For example, if a relation is polynomial-time solvable, its domain belongs to P: run its solver and accept exactly when the output is not . Consequently, if , no relation with domain X can have the least search degree. Once a first-solution degree is realizable on a 1-paddable domain, all finitely many additional-solution degrees can be chosen freely.
4 Finding another solution after an arbitrary list
Lemma 4.1 (Fixed levels reduce to arbitrary lists). For every and every fixed ,
Consequently, for fixed , .
Proof. Decode the source input completely and require exactly supplied witnesses, all in and pairwise distinct. Return locally if any check fails. On a valid input, query with that same list and return its answer unchanged. The list has positive arity, and the two residual fibers are equal, including when exhausted. Validation, query writing, and every legal answer are polynomially bounded in the complete input length. For the finite sum, first decode the selector and then perform the selected level's reduction, wrapping a witness answer in its original selector and preserving . A fixed finite family has one polynomial resource bound.
Thus any prescribed arbitrary-list degree must dominate every prescribed fixed-level degree. The compatibility question is whether this necessary condition suffices while the domain and first-solution degree are retained.
4.1 Arbitrary-list search for the finite construction
At a fixed level the number of supplied witnesses is a constant of the problem. Here it is part of the input. We therefore need one algorithm whose running time is polynomial in the entire encoded list, for every possible arity. A collection of separately polynomial fixed-level algorithms would not suffice: their constants could grow too quickly. For each fixed r, a running time such as is polynomial in the encoded-input length L, because is then a constant. When r varies with the input, this bound need not be polynomial in L; the fixed-level degrees do not guarantee one algorithm with a polynomial bound valid for all r.
Here is the original search relation whose domain and first-solution degree the construction preserves, and are the chosen target relations. Generic and repair instances of have only tagged copies of witnesses from , with no constants. Branch has constants together with tagged copies of witnesses from . Recall that requires at least one supplied witness, whereas also permits none. When both elementary rules fail, the supplied list contains every constant and all copies of each underlying witness represented in it. On a generic or repair instance, a nonempty list must therefore represent at least one witness from . After removing the copy tags and repetitions, we obtain a positive supplied list for . On branch , however, the supplied list may contain only the constants. Removing them leaves no known witness of , so the remaining task is to find a first witness of . Other full grids may also supply underlying witnesses. The operator covers both cases, allowing either zero or more supplied witnesses.
The next theorem characterizes finding another witness of after an arbitrary positive-length supplied list. Its degree is determined by additional-solution search for the base relation A and residual search for the target relations . The tagged sum represents a choice among these tasks: an input specifies one component, and an answer solves that component. A reduction to this sum therefore needs at most one oracle query.
Theorem 4.2 (Arbitrary-list search for the finite construction). Fix and . Suppose that is 1-paddable via , and let be the relation constructed from these data in Definition 3.3. Then
In each direction, a single reduction works for every supplied-list length, uses at most one oracle query, and runs in time bounded by one polynomial in the complete source-input length. The number n, the relations, and the padding map are fixed. The target relations may be empty or partial.
Proof. Put . To reduce to the residual sum, decode the source input completely, require a nonempty supplied list, and check that its entries are distinct witnesses of . Return without querying if validation fails. Otherwise, let be the supplied set and classify as generic, repair, or branch.
Try the two elementary rules: return a missing branch constant, or an absent copy of an underlying witness already represented in S. If either succeeds, return that witness without querying. Otherwise, let U be the set of distinct suffixes of the supplied copies, ignoring constants. Lemma 3.5 gives, on branch j with ,
On a generic or repair instance, put or , respectively. Then
In this case U is nonempty because S is nonempty and there are no constants.
List the elements of in lexicographic order as . On branch , query the tagged sum in component at ; here may be zero. On a generic or repair instance, query component at ; here . These inner lists are valid because their entries come from valid supplied copies.
Remove the component selector fields from any witness answer to obtain . Prefix with tag on a branch or tag zero on a generic or repair instance. The displayed residual formulas show that this produces an unsupplied witness of . They also show that the queried component is empty exactly when the source residual is empty, so an oracle answer is correctly returned as .
For the reverse reduction, decode the source input and its component selector fields completely. Validate the inner list for the selected operator: require at least one supplied witness for , allow none for , and check all supplied memberships and pairwise distinctness. Return without querying if any check fails. A zero-witness list for is valid even when is empty.
For a valid input , query at from (1), supplying all copies of every with tags in . Since , the expanded list is nonempty. The identity gives the residual
For a valid input , query at , supplying all constants in and all copies of every with tags in . The list has entries and leaves exactly
Both expanded lists are valid: their entries are witnesses, and the tag encoding makes them distinct.
Delete the copy tag from any oracle witness and wrap its suffix in the original component selector fields. This gives a witness of the source sum. Preserve , since the source and queried residuals are empty in exactly the same cases. This includes empty suffixes, exhausted lists, and zero-witness branch lists.
For a uniform polynomial bound, let be the complete source-input length. Validation examines at most supplied strings. Forward extraction and sorting process at most suffixes; reverse expansion writes at most witnesses. Since and are fixed, these operations and the padding transformations take polynomial time in . Query lengths are polynomially bounded, and the fixed target witness bounds also bound every legal oracle answer and decoded output polynomially. Thus each direction uses at most one query and one polynomial running-time bound valid for every supplied-list length. Neither direction requires a separate test for exhaustion.
Every legal oracle answer has polynomially bounded length, so reading and decoding it take polynomial time. Both reductions handle invalid inputs and exhausted lists. A branch list containing only constants leaves no supplied target witness, which is why must allow an empty list. Thus the theorem characterizes arbitrary-list search for this finite construction in terms of and . It does not prescribe its degree independently of these component tasks.
4.2 Prescribing a compatible arbitrary-list degree
The finite construction uses a constant number of copies and retains the component residual tasks in Theorem 4.2. We now give a different construction. Each underlying witness has exponentially many copies, identified by polynomial-length binary counters. A short list cannot exhaust these copies. A list that does exhaust them is long enough to pay for checking every possible underlying witness. Exponential replication and this use of accumulated output length already occur in the enumeration construction of [4, Section 4, p. 11, Lemma 17]. Here they allow a prescribed arbitrary-list degree to coexist with finitely many prescribed fixed-level degrees on a fixed domain.
Theorem 4.3 (Compatible fixed-level and arbitrary-list realization). Fix and let . Suppose that is 1-paddable and B_j \leq_1_T^p B for . There is a relation such that
No assumption about P versus NP is required.
Fix a padding map . The slice maps in this subsection are new and belong only to the new construction: use distinct fixed-width codes and set . Write . The proof of Lemma 3.2 gives recognizable disjoint slices with polynomial-time inverses. They are subsets of and do not cover it: is generic. Slice zero is repair; set for and .
Choose a monotone nonnegative integer-valued polynomial bounding , all when defined, and on repair instances. Such a polynomial exists because these maps are polynomial-time computable and must write their outputs. Using monotone witness bounds for the fixed relations, choose a monotone nonnegative integer-valued polynomial majorizing
It therefore bounds the length of every underlying witness used at any new instance of length : witnesses of , of , and of . The composition with is essential; the target witness bound at the original input alone need not be a bound in .
Use one tag width for labels . Put
For define
The counter c has the width determined by the actual instance x. In particular,
Definition 4.4 (Counter-copy construction). Define by
This definition leaves unchanged. One copy tag and one variable-width counter encode each copy; no exponential family is listed as part of the construction.
Proof of Theorem 4.3. Take . To verify its graph, classify by the recognizable slices. On branch , accept the constants . Otherwise, require at least bits, check the copy tag (zero on generic and repair instances, on branch ), parse the next bits as the counter, and verify the remaining suffix in the appropriate underlying relation. The finitely many verifiers and polynomial-time instance transformations give one polynomial verifier bound in . All witnesses have length at most . Constants have length , whereas copies have length at least and use a tag distinct from the branch's constant labels. Thus the union is disjoint even for suffix , and .
On a generic input, is nonempty exactly when is. Repair fibers are nonempty since ; branch fibers contain their constants. All slices lie in , proving domain equality. For , return a constant on a branch, query on a generic input, and query on repair. Encode any witness answer using tag zero and the all-zero counter of width , preserving . For , use the repair map
Its underlying fiber is exactly , so . Query there and delete the tag and the counter of width from every witness answer. Empty fibers give in both directions. Polynomial output bounds for the instance maps and the composed witness bounds justify writing each query and processing every legal answer. This proves .
Fix . Completely decode and validate the exact j-list, returning locally for malformed inputs, repetitions, or invalid witnesses. Return a missing branch constant if one exists. Otherwise, if a supplied copy has suffix , inspect the counter values , written with width , and return an absent copy of . These are distinct available copies because ; a list of entries cannot contain them all. The only unresolved valid list has no copies and contains every constant. A positive list of that form can occur only on a branch, and its length forces that branch to be and its set to be . The residual is exactly . Query and encode any witness with tag and a zero counter; preserve when is empty. Conversely, given , query at with all constants. Delete the tag and counter, using width , from every witness answer, and preserve . The query is valid even when is empty. The fixed number of constants and counter tests and the composed witness bounds give polynomial-time reductions in both directions.
For , let be the complete source-input length. Validate the whole positive list, including complete decoding, membership and distinctness, and return if it is invalid. Let be its set of supplied witnesses. Return a missing constant if there is one. Group the supplied copies by suffix , and sort the -bit counters within each group. A missing counter can be found from a missing initial value zero, a gap between consecutive values, or a missing final value . Return the corresponding copy when such a gap exists. These tests scan only supplied counters. Binary increment and comparison use bits, including the representation of as one followed by zeros; they do not enumerate values to find a gap.
If neither rule succeeds, let be the set of represented suffixes and let be the appropriate underlying fiber, namely , , or . Every represented suffix has all its counter copies in , and every constant is supplied. The injective copy encoding therefore gives
where and on generic and repair inputs. Suppose first that . Then . There are candidate suffixes through the witness-length bound, including . Enumerate these candidates, verify each in the underlying relation, and test exclusion from . If one succeeds, return its copy with an all-zero counter. If none succeeds, the displayed residual is empty, so return without a query. This exhaustive search is used only after a nonempty full grid has been established.
Here is a uniform resource bound for that search and the earlier local steps. Since , all transformed underlying instances have length at most and all candidates have length at most . One fixed polynomial bounds their verification time, by taking a majorant for the finitely many verifiers composed with these bounds. There are fewer than L candidates in the exhaustive case; generation, comparison with at most L supplied strings, and output writing each take polynomial time in L. List validation, grouping, sorting and binary counter arithmetic also take polynomial time in L, since there are at most L entries and counter widths are bounded by . Thus one polynomial in L bounds all these steps, independently of r.
If , a positive full grid cannot be generic or repair, where there are no constants. It is exactly on branch . For , run the given one-query reduction from to on . It may halt locally or query once. Use its decoded witness, if any, to output a copy with tag and zero counter, and return if it returns . On branch , query directly and use the same encoding with tag . In each case, the remaining fiber is precisely the copies of , so every legal oracle answer is handled correctly, including empty target fibers. Since and the reduction family is fixed and finite, their clocks, query lengths, legal -answer lengths and decoded output lengths have one polynomial bound in . At most one final oracle query is made. This proves .
For , given , put and supply just the constants in . This is a valid positive list and leaves exactly . Its code has length , polynomial in . Delete the tag and the instance-dependent counter of width from every witness answer; return on . The queried residual is empty exactly when is empty, and every witness answer decodes into . The polynomial bound for and the witness bound for bound reading and decoding every legal answer. This proves the last equivalence and completes the construction.
Corollary 4.5 (Finite compatibility of degrees). Fix a 1-paddable language X and an FNP degree realizable on X. Given FNP degrees , , there is with domain X, first degree , fixed-level degrees for , and arbitrary-list degree if and only if for every j.
Proof. Necessity follows from Lemma 4.1 and composition. For sufficiency, choose of degree on and representatives , of the prescribed degrees. Degree domination gives , so Theorem 4.3 applies.
This prescribes only finitely many fixed levels. The extra branch can impose behavior at unprescribed levels, and no infinite-sequence prescription follows. The zero-allowed residual task remains different: Lemma 2.5 gives , retaining the first-solution component. The construction does not require nonempty targets: if or a is empty, its constants-only list is exhausted and the reductions return . A 1-paddable base domain itself is necessarily infinite, so it cannot be empty.
5 Comparing fixed-level and arbitrary-list complexity
Does the sequence of all fixed-level degrees determine the arbitrary-list degree? Assuming , the following construction shows that it does not. We construct a total relation whose first-solution task and every fixed-level additional-solution task are polynomial-time solvable, but whose arbitrary-list task is FNP-complete. For each instance , we include explicitly known witnesses, together with tagged witnesses of an FNP-complete search problem. We call the explicitly known witnesses dummy witnesses; they are genuine solutions and ensure that every instance has a solution. A fixed-length list leaves a dummy witness whenever exceeds that length. An arbitrary-length list can contain all dummy witnesses, leaving only the witnesses of the complete search problem.
For fixed , any supplied list of length leaves an unused dummy witness whenever . Otherwise, , so exhaustive search takes time bounded by a constant depending on .
Thus every fixed-level task is polynomial-time solvable. When the list length is part of the input, however, the list can contain all dummy witnesses even for arbitrarily large x. Finding another witness then requires solving the complete search problem.
Related padding constructions appear in [3, Proposition 2.36] and in the construction of [4, p. 11], which uses dummy outputs and replicated solutions. These constructions concern enumeration. Here, the list of all dummy witnesses has polynomial encoded length, allowing a one-query reduction to arbitrary-list search.
5.1 A universal efficiently verifiable search relation
We first construct an FNP-complete relation to use in the counterexample. Its input specifies a verifier, an instance for that verifier, and two bounds: a maximum witness length and a maximum running time. The running-time bound, called a clock, stops the simulation after the specified number of steps. Both bounds are encoded in unary: represents t using t bits. Thus the input length accounts for both the permitted witness length and the simulation time. We write bin(i) for the binary representation of a positive integer i with no leading zeros.
Lemma 5.1 (Clocked universal search). There is a relation that is complete under \leq_1^p_T, and is NP-complete.
Proof. We first define a verifier that works for arbitrary machine descriptions, including descriptions of machines that do not halt. Use deterministic one-tape machines with a two-way infinite tape, alphabet , and states , where . State 1 is the initial state, state 2 accepts, and state 3 rejects. The input is written starting at cell zero, with the head there and all other cells blank.
Encode a description by the unary state count and a list of transitions. Each transition specifies the current state and symbol, the next state, the symbol to write, and the head movement. Use canonical binary state numbers and fixed codes for symbols and movements. Require complete decoding, valid state numbers and codes, and at most one transition for each state-symbol pair. Missing transitions reject. These syntax checks take polynomial time in the description length. For a well-formed input , define
.
Malformed tuples, descriptions, or unary fields have empty fibers. An empty unary field represents zero, and a zero clock permits no accepting computation.
To verify a candidate , check the input syntax and reject if . Otherwise, simulate the described machine for at most steps and accept exactly when it reaches its accepting state within that bound. Since , the simulation is polynomially bounded even when the description varies. Indeed, the simulator can scan the transition table at each step and store only the input cells and the at most additional cells reached during the computation. Both the table and the stored configuration have polynomial length, and there are at most simulated steps. Thus one fixed polynomial bounds verification time in . Every witness has length at most , proving .
Now fix any . Compile its deterministic graph verifier into the chosen machine model, obtaining a fixed description . Let be a monotone polynomial witness bound. Choose a polynomial bounding the compiled verifier's running time on every pair with . Such a bound follows by substituting the witness bound into the verifier's polynomial running-time bound.
Define
The witness cap includes every member of , and the clock allows the verifier to finish on every candidate within that cap. Therefore
for every , including when is empty. Query at and return its answer unchanged, including . The query is polynomial-time computable and has polynomial length. This proves completeness under the required one-query reductions.
Finally, the domain of belongs to NP: guess a witness of length at most and run the universal verifier. For any language in NP, apply to one of its polynomially bounded witness relations. The displayed fiber equality preserves the existence of a witness, giving a polynomial-time many-one reduction to the domain of . Hence that domain is NP-complete.
5.2 Many easy witnesses, followed by a complete task
The next proposition adds dummy witnesses to U. For each fixed list length r, the additional-solution task has a polynomial-time algorithm, but its running-time bound may depend on r.
Proposition 5.2 (Fixed-easy and variable-complete). There is a total polynomial-time-solvable such that is polynomial-time solvable for every fixed , while is FNP-complete. Moreover, is polynomial-time solvable if and only if .
Proof. Put and define
The two sets are disjoint because their witnesses begin with different bits. The dummy witness 01 belongs to every fiber, so F is total and its first-solution task is polynomial-time solvable.
A verifier checks the initial bit. After a zero, it requires a canonical positive binary integer between 1 and . After a one, it verifies the remaining suffix in . These tests take polynomial time. Dummy witnesses have length at most , and witnesses from the second set have length at most . Thus with witness bound .
Fix . Decode the input completely, require exactly supplied witnesses, and check their membership in and pairwise distinctness. Return if validation fails. If , compare the first dummy witnesses with the supplied list. At least one is absent, since the list has only entries. Return it. If , check all dummy witnesses and return an absent one if possible. Since , enumerate every binary string of length at most , including , and return if and is absent from the list. Return if no candidate succeeds.
This checks every possible remaining witness. Validation and list comparisons take polynomial time in the complete input length. The exhaustive search examines at most candidates of length at most , so its additional cost is bounded by a constant depending on the fixed , together with polynomial list processing. Hence is polynomial-time solvable for every fixed . This bound need not be polynomial when varies.
Given any input x to U, form the encoded list containing instance x followed by every witness in , ordered by its index. This is always a valid nonempty supplied list for F, and its remaining witnesses are exactly
The complete query has length
where , and can be written in polynomial time. Query on this list, delete the initial one from any witness answer, and preserve . This proves , including when is empty.
Lemma 2.5 gives . Since is complete by Lemma 5.1, the preceding reduction proves that is also complete.
If has a polynomial-time refinement, the dummy-list reduction gives one for . Testing whether its output is then decides the NP-complete domain of in polynomial time. Consequently, .
Conversely, assume P = NP. For an input w, the existence of a witness of is an NP question: guess a string within the polynomial witness bound and verify it. The existence of such a witness extending a specified binary prefix is also in NP. Both questions are therefore decidable in polynomial time.
First test whether a witness exists, returning if none does. Otherwise, start with the empty prefix. If the current prefix is itself a witness, return it. If not, append zero if the current prefix followed by zero extends to a witness, and append one otherwise. At every stage the chosen prefix extends to a witness, and its length never exceeds the polynomial witness bound. This constructs a witness in polynomial time and proves the converse.
Corollary 5.3 (Conditional failure of determination by fixed levels). Assume P ≠ NP. Let F be the relation from the preceding proposition and define for every x. Both relations have domain and polynomial-time-solvable first-solution tasks. For every fixed ,
but
Thus the domain, first-solution degree, and entire sequence of fixed-level degrees do not determine the arbitrary-list degree.
Proof. Both relations have a witness on every instance, and their first-solution tasks are polynomial-time solvable: return for 1 and 01 for F.
For 1, a valid one-witness list contains and is exhausted. A longer list cannot be valid because supplied witnesses must be distinct. Thus every and is everywhere empty and is solved by always returning . The preceding proposition shows that every fixed-level task is also polynomial-time solvable. Hence the two relations have the same domain, first-solution degree, and degree at every fixed positive level. However, under , the proposition shows that is not polynomial-time solvable. Its degree therefore differs from that of .
5.3 What a global constant cap changes
The previous example uses more dummies on longer inputs. A fixed upper bound on every fiber prevents this mechanism: only finitely many supplied arities can leave an answer. The cap must be a constant shared by all instances, not merely a polynomial bound depending on the instance.
Proposition 5.4 (Constant fiber caps). Let and let be fixed with for all . With raw ,
Consequently, easy fixed positive levels imply easy variable-list search under a constant cap. Two constant-capped relations with the same fixed positive degree sequence have the same star degree; equality also at raw level zero gives equality of their Res degrees.
Proof. If , every fiber of is empty. Both residual operators and both displayed sums are therefore solved by always returning . Assume .
To reduce a variable-list operator to the finite sum, decode and validate the source list, requiring for and allowing for . Return if validation fails. If , also return : a valid list of length contains every witness, while a longer list cannot be valid.
If , query the component indexed by . For , use the original supplied-list code as its inner input. For , use the raw instance , since . Delete the component selector from any witness answer and preserve . The selected component has exactly the source task's remaining witnesses.
For the reverse reduction, decode the outer input completely and check that its selector names a component in the sum. Return if this fails. For a positive component , validate the inner input as a list containing exactly distinct witnesses of ; return if it is invalid. Otherwise, query the corresponding variable-list operator on that same list. For component zero, the inner input is a raw instance ; query at .
Wrap any witness answer in the original component selector and preserve . This gives precisely the answers required by the source component, including on exhausted lists. All list processing is polynomial-time, and the fixed finite family gives one polynomial bound for query writing and answer processing. Each reduction uses at most one query.
For two relations with different constant caps, enlarge both sums to the larger cap. The added components are everywhere empty, since a list at or above the original cap cannot leave another witness. If the fixed positive degrees agree, the corresponding components are equivalent, so the star operators are equivalent. Agreement also at level zero gives equivalence of the residual operators.
When , the positive sum is empty and . The argument requires a constant cap shared by all instances: an instance-dependent bound does not reduce the task to a fixed finite family of levels.
6 Totality, limitations, and remaining questions
6.1 When does totalization produce total search?
A total search relation has a witness on every input. By contrast, invalid-input totalization adds the witness only to invalid supplied-list inputs. A valid list containing every available witness still has no answer. Thus the totalized operator is total exactly when no valid list of the permitted length exhausts a fiber. This condition depends only on fiber sizes, with no complexity assumption.
Observation 6.1 (Exact totality criterion). For and fixed ,
Also is total exactly when is empty, and no nonempty has every positive total.
Proof. Invalid inputs always receive the witness , so totality depends only on valid supplied lists. If , listing all witnesses gives a valid exhausted input, on which has no answer. Thus the totalized operator is not total.
Conversely, suppose no fiber has size exactly . A valid list of distinct witnesses implies , and hence . At least one witness remains outside the list. Therefore every valid input has an answer, and invalid inputs have , proving totality.
If is empty, every positive supplied list is invalid, so is total. If is nonempty, choose a nonempty fiber and let its size be . The fiber is finite, so listing all its witnesses gives a valid exhausted input for both and . Neither is total. Consequently, no nonempty relation has all its positive fixed-level totalizations total.
The exhausted list need only exist; this argument does not require a polynomial-time procedure for constructing it.
6.2 The total-search reduction convention
For total search, one usually describes a reduction by an instance map and an answer decoder. Because every target query has a witness, this convention agrees with our one-query model in the total setting. We spell out the bridge to avoid using it for partial residuals. For , write when total polynomial-time maps and satisfy for every . These maps give a one-query reduction: query and decode its answer. If , then every legal answer has length at most . The decoder's polynomial bound in is thus polynomial in , and its legal output is also bounded by .
Conversely, clock a one-query reduction by its polynomial running-time bound. Run it to its query or no-query halt, and use that query as ; in a no-query case use the fixed target instance . The decoder repeats the clocked computation and substitutes for its oracle answer, or ignores after a no-query halt. Define it on all arguments by returning a fixed binary default on an illegal answer, timeout, second query, or invalid output. Illegal answers can be detected using 's graph verifier, and outputs using 's; is illegal for a total target. The clock bounds the query and simulation, while the FNP witness bounds bound all legal answers and outputs. On legal arguments the guards never apply, since any legal answer extends to a refinement of . Thus and agree for , including no-query cases. For partial targets, the instance-map condition alone does not specify how an oracle answer must be handled.
6.3 A total construction for one fixed level
For a chosen fixed level, totality is easy to guarantee: include that many constants and at least one target witness in every fiber. Every valid list of the chosen size then leaves an answer. This is a single-level claim; Observation 6.1 excludes simultaneous totality at all positive levels for a nonempty finite-fiber relation.
Remark 6.2 (Realizing a total target at a fixed level). Fix and . There is a total polynomial-time-solvable relation such that
Thus finding a first witness of is easy, while finding another after supplied witnesses has exactly the degree of . For , this is analogous to the construction and conclusions of [1, Definition 4.5, Theorem 4.6, and Corollary 4.9]: the theorem gives search equivalence and the corollary concerns totality. The self-contained argument below works for every fixed . The non-totalized operator is also one-query equivalent to , but is empty on invalid inputs and hence is not total.
Use the shared tag set with width . Let and define
Each instance has explicit constants and at least one tagged -witness. A constant therefore solves the first-solution task, and every valid list of witnesses leaves another witness. Invalid inputs receive under totalization, so is total. Its graph is polynomial-time decidable, and bounds its witness lengths.
To reduce the additional-solution task to B, first validate the supplied list. On an invalid input, return . On a valid input missing a constant, return that constant. Otherwise, the r supplied witnesses are exactly K. Query and return for any answer y. To express this as an instance map and decoder, use the fixed target instance in the two locally solved cases and let the decoder ignore the oracle answer. In the remaining case, use target instance x and prefix the answer with .
For the reverse reduction, given x, supply all constants in K. This list is valid and leaves exactly
Delete the tag from any answer to obtain a witness of . The query has length . Since is fixed, both reductions have polynomial-time instance maps and decoders. Their equivalence under follows from the total-search reduction convention. For , use the same two reductions, returning locally on invalid source lists. The reverse query still supplies the valid list , so its legal witness answers still decode into . This proves its one-query equivalence separately from totalization.
6.4 Remaining questions
Our reductions validate supplied witnesses in polynomial time before making an oracle query. We have not extended the results to search classes in which verifying a witness is only known to be in NP.
The fixed-domain constructions require 1-paddability. Some restriction on the domain is necessary: on a finite domain, every FNP relation has only finitely many instance-witness pairs and can be solved by a fixed table. However, 1-paddability also excludes sparse domains. Indeed, if for a monotone polynomial , injectivity gives at least domain strings of length at most . Can simultaneous realization hold on infinite domains under weaker assumptions? The corresponding single-level question appears in [1, Section 5].
Theorem 4.3 settles finite compatibility: the arbitrary positive-list degree can be prescribed exactly when it dominates all the finitely many prescribed fixed-level degrees. Its extra branch also determines some unprescribed behavior, so the theorem does not settle prescribing an entire infinite fixed-level sequence together with an arbitrary-list degree. We also do not address retaining unchanged natural solution sets or computing all remaining witnesses, the third direction raised in [1, Section 5].
7 Conclusion
Under 1-paddability, we can prescribe any finite collection of fixed additional-solution degrees while preserving the domain and first-solution degree. The arbitrary positive-list degree can be prescribed as well if and only if it dominates every prescribed fixed-level degree. The separate counter-copy construction proves sufficiency without a P-versus-NP assumption.
For the finite construction, we characterize arbitrary-list search by a one-query equivalence with the component residual tasks. We also construct a total relation whose first-solution task and every fixed additional-solution level are polynomial-time solvable, while its arbitrary-list task is FNP-complete. Assuming , even the domain, first-solution degree, and entire fixed-level degree sequence therefore do not determine the arbitrary-list degree.
These constructions define new witness sets. They do not establish the same prescription results when a problem’s original notion of solution must remain unchanged.
References
[1] Fabian Egidy, Christian Glaßer, and Fynn Godau. The complexity of computing second solutions. In 50th International Symposium on Mathematical Foundations of Computer Science (MFCS 2025), Leibniz International Proceedings in Informatics (LIPIcs), volume 345, pages 43:1–43:16. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.MFCS.2025.43.
[2] Takayuki Yato and Takahiro Seta. Complexity and completeness of finding another solution and its application to puzzles. IPSJ SIG Technical Report, 2002-AL-87, 8 November 2002, pp. 9–16. Original report.
[3] Yann Strozecki. Enumeration complexity and matroid decomposition. Ph.D. thesis, Université Paris Diderot–Paris 7, 2010. Defended 8 December 2010. Author-hosted thesis.
[4] Florent Capelli and Yann Strozecki. On the complexity of enumeration. arXiv:1703.01928v2 [cs.CC], 3 July 2017. Version 2.