JCA Round 42: Deciding and maximizing answers above a supplied example
Theorem. Require a conjunctive answer to contain one specified ground tuple \(g\) on all public coordinates. With leading validity, arbitrary specified witness reads and any finite number of branches, existence is NP-complete on every fixed nontrivial finite single-sorted signature with a constant. This holds for arbitrary presentations with the weak escape test, or idempotent substitution presentations with the weak test, the strong test, or both. The input gives \(g\) as explicit trees. A DAG-encoded complete row gives NEXP-completeness on branching signatures. Succinct-row construction Additional ordinary implications and partial existential examples are allowed. Fresh reads follow the usual uniform permission or an explicitly supplied permission list. Full-example theorem without designated names · Leading game and escape conventions
A second consequence concerns a question one can ask even when unrestricted existence is undecidable. Given one successful seed answer, one can compute all maximally general answers above that seed, up to equivalence on the public variables. The list is finite. There can still be infinitely many maximal answers to the same input. An example from the thesis
Bound the fresh names as well as the public pattern
Unify a successful answer \(A(X,B)\) and write its joint tuple of most-general terms as \((P_X,P_B)\). Its public ground rows are precisely the instances of \(P_X\). Since it covers \(g\), obtain \(P_X\) by replacing some subtrees of \(g\) by parameters and identifying only parameters whose replaced subtrees are equal. It has at most \(|g|\) nodes in total. Write \(U\) for its residual parameters.
Leading validity quantifies all fresh names \(B\) universally. For every ground tuple for \(B\) the validity strategy gives a solution of \(A\) at some ordinary public values, including the values of substituted witnesses. Hence \(P_B\) consists of pairwise distinct bare parameters. A constructor-rooted coordinate misses at least one ground root in a nontrivial free algebra, and a shared bare parameter misses an unequal pair. At most \(|U|\) of these fresh coordinates name residuals visible in \(P_X\).
Specialize each other fresh coordinate to an original base constant \(a\) in the answer and in its validity witnesses. Its residual was independent of the entire public tuple and of the other fresh coordinates. Consequently the specialized answer has exactly the same public projection. All branches keep their consistency witnesses and their relevance. Specialization preserves leading validity and individual atom validity. It preserves the set of public names in a raw atom, which determines the syntactic escape check. For solved presentations, first discard any definition with a fresh left side. In an idempotent presentation that head occurs nowhere else, so dropping its definition preserves the public projection. The resulting conjunction inherits validity and the tests on retained atoms. Specializing fresh names on its right sides now preserves solved form.
Thus the remaining joint tuple consists of bounded public trees and at most \(|U|\) distinct fresh names labeling some of their bare parameters. Keeping the actual remaining names also preserves their read permissions.
Bound the presenting equations
Decompose the atoms of the specialized conjunction at matching constructors and drop identities. A remaining primitive has the form \(x=t\) and satisfies the open identity \(P_x=t(P)\). Every variable leaf in \(t\) expands to at least one node, so \(|t|\leq |P_x|\). Retain a primitive only if earlier retained primitives do not entail it. All are jointly consistent. Every new primitive then binds at least one of the remaining unification variables. At most \(|X|+|B|\) primitives suffice to present exactly the same joint relation.
For the weak test, a primitive of an individually prefix-valid parent is individually prefix-valid. If the parent passed the occurrence check, on a branching signature pad both sides with identical copies of its public names until the variable set is restored. A constructor of arity greater than two can fill its spare children with \(a\). On a monadic signature cancelling equal leading symbols already preserves the free names of a nonidentity atom. In an idempotent presentation each right side is a term over unbound names and satisfies the same size bound directly. Retain these definitions with their original orientations.
Guess this polynomial-size presentation and the correspondence from visible fresh names to residuals. Unification, one-sided matching, and the public branch checks take polynomial time on shared terms. Individual validity and scope are effective on the stated atoms. The arbitrary-read leading game has an NP certificate. Together these checks give the upper bound. The all-\(a\) ground example in the 3-PARTITION construction gives hardness with no designated variables and only one implication. Supplied-answer game · Ground-example lower bound
The same proof decides whether a specified public tuple pattern \(P\), written as trees, has an admissible presentation. Guess which of its visible residuals have fresh names, guess bounded atoms and check that their unifier projects to \(P\) by matching in both directions. This test is itself NP-complete even on the binary signature with one missing read under the extracted weak rule. For hardness take the solved conjunction \(C\) from the one-missing-read SAT construction and supply its projected mgu. Its expanded size is polynomial because its bodies are lists and cells with no chains of defined heads. If \(C\) passes the game it is an admissible presentation. Conversely any valid presentation of that same projection implies \(C\) on every public row. Fixing its fresh inputs to \(a\) gives validity of \(C\) with the same allowed reads. SAT construction
Enumerate all maximal extensions of one answer
Let \(P_0\) be the public projection of the supplied successful seed. Ground its residuals to \(a\), giving one row \(g\). Every generalization of \(P_0\) contains \(g\). Enumerate the finite list of its prunings, including possible identifications of leaves. Keep patterns \(P\) that match \(P_0\), pass every ordinary branch, and have an admissible presentation. Discard any remaining pattern strictly included in another. This gives exactly the maximal answers above the seed. Every further generalization of a listed answer would still cover \(P_0\) and would itself have appeared.
Here matching to \(P_0\) treats its parameters as rigid names. If matching fails at a constructor, its fixed root can be contradicted by a ground instance of \(P_0\). If it fails at two occurrences of a parameter, the two distinct target subterms can be separated by a ground assignment. Thus one-sided matching is exactly inclusion of public ground rows. It also gives the term witnesses in the thesis definition of generality. Apply the matcher to the general answer’s fresh-coordinate terms in its mgu, grounding any invisible residual. Express the target residuals as their unbound coordinate names in the seed’s mgu. On every solution of the seed these terms witness the general answer. Conversely such witnesses immediately imply public inclusion. Thesis §4.2.1, generality immediately before Example 4.3
Enumerating successful answers and running this terminating maximization on each yields a complete enumerator emitting only maximal answers. Equivalence up to renaming can be used to suppress duplicates. There is no resulting test for exhaustion of the enumeration or for absence of any seed. With an explicit projected seed promised admissible, nonmaximality has a polynomial certificate: guess a strictly larger admissible pattern covering the all-\(a\) instance of the seed, then use the checks above. The explicit-tree input measure matters for this bound.
The reference search enumerates the maximal extensions of the seed \(x=z=s,\ y=f(s,s)\) in thesis Example 4.3. There are exactly three: \(y=f(z,\gamma)\), \(y=f(x,z)\), and \(x=z\land y=f(\gamma,\gamma)\). It also checks a public pattern that requires a visible fresh parameter and one whose admissibility changes with its witness’s read permission.