JCA Round 37: Polynomial certificates for arbitrary weak presentations

Theorem. Under leading-fresh validity, one equational implication is NP-complete for arbitrary conjunctive answers with the weak escape test when designated witnesses may use all public names. This holds over every fixed finite single-sorted signature whose ground algebra has at least two elements. It also holds for the prefix-closed witness permissions of Round 31, including ground-only permissions. The comparison used in the atomwise escape test can be fixed independently as in that round.

Second theorem. With a tautological premise, one branch with arbitrary specified read permissions has polynomial certificates even for arbitrary weak presentations. Together with the 3-SAT reductions of Round 32 this gives NP-completeness for the weak problem and the solved strong problem. On the binary signature even one forbidden read suffices for this lower bound. With a general premise, a single forbidden read already gives r.e.-completeness for the extracted strong rule on solved presentations. Earlier bounds and validity criterion · Empty-premise lower bound · Single forbidden read

Both proofs must preserve a collection of terms at two stages. One stage has independent parameter letters; the next replaces those letters by trees. The substitution relating the two stages lets us compress them together. Two independent evaluations of an unknown body need not have this property.

Compressing comparable values

Take finitely many values at a first stage, which are trees over the original constructors and letters \(U\). At a second stage each such value \(v\) becomes \(w_v=v[\sigma]\), a tree over original constructors and a new set of rigid letters. The first stage has explicit equations and requirements that a named value be generated from specified other values using original constructors. The second stage may have more named values, equations, and generation tests of the same kind. Distinguished second-stage letters must remain distinct. All expressions, named values, generator lists, and the two letter sets have polynomial description size; the initial assignments can be much larger.

Mark the first-stage value at every named root, every subexpression of its explicit equations, and every letter in \(U\). A value attained at an explicit constructor is fixed at its root. All children of a fixed constructor are marked. For a marked constructor value \(v\) define its frontier \(F_v\) by descending below its root, stopping on each path at the first marked descendant. Count distinct values, so each frontier has at most as many members as there are marks. The part between the root and this frontier builds \(v\) from \(F_v\) using only original constructors; every rigid letter is marked.

At the second stage fix the roots of every explicit constructor in its equations, every \(w_v\) for a fixed first-stage constructor \(v\), and every second-stage rigid letter. Apply the Round 29 collapse \(\rho\): retain those roots recursively and replace other values by the original base constant. There are polynomially many nodes after sharing. Second-stage equations and generation tests survive. In particular \(\rho(w_v)\) is generated from \(\{\rho(w_b):b\in F_v\}\), since the old first-stage construction remains a construction after applying \(\sigma\). Ground-value compression and generation

Reconstruct a new first-stage value \(\widehat v\) for each mark, in order of increasing original size.

Then \(\widehat v[\widehat\sigma]=\rho(w_v)\) at every mark. All explicit first-stage equations survive. Every letter in \(\widehat v\) already occurred in \(v\). Sharing the results at frontier references bounds the whole first-stage DAG by the product of the polynomial mark and node counts.

First-stage generation also survives. Suppose \(v\) could be built from a list \(G\) of named first-stage values. If \(v\) itself is in \(G\), its new version is that same named generator. Otherwise a successful construction must build the root. Every frontier member below it is also generated by \(G\): no construction can stop at a generator strictly between \(v\) and that first mark, because each generator is marked. Induction on size now gives generation of each reconstructed frontier member from the new \(G\). Composing their constructions gives generation of \(\widehat v\). This works for many different generator lists at once, including when two generators acquire the same second-stage value. Lean proof of frontier preservation

A general premise with prefix-closed permissions

Start with Round 31’s fresh-free admissible primitive presentation. There are at most as many primitives \(x=t_i\) as public coordinates, with parent scope sets available for padding. Its two-stage path compression already gives a successful presentation and joint witness of polynomial depth. Keep one occurrence path per required free name, so padding eligibility and individual-validity exemptions can still be checked. Shallow primitive presentations

Apply the pointer tracing of Round 29 to the ordinary system consisting of all primitives followed by the premise \(D\). Treat each primitive’s right side as one unknown body over the public coordinates. This is an ordinary implication whose instantiated premise is \(A\land D\) and whose conclusion is \(C\). There are at most \(|X|\) bindings. The shallow witness bounds the length of each pointer traversal. Retain the two paths for each binding, their ancestors and the required occurrence paths. This leaves polynomial-size fragments in the primitive bodies with one placeholder per unexplored child. Record the original set of public names used inside each placeholder. Pointer trace and forced bindings

Use the following two stages.

  1. At the first stage give each public name its normal form under an mgu of \(A\) alone, with the unbound names as independent letters \(U\). Give each placeholder the value of its original omitted body at this tuple. Mark the explicit fragments and primitive equations evaluated at these values. Each placeholder value is generated by the public values of its recorded names.
  2. At the second stage take the fully dereferenced public values after unifying \(A\land D\), with the remaining free names replaced by rigid letters. Give the placeholders their values at this tuple. These values are a simultaneous instance of the first-stage values, by the universal property of the first mgu. The explicit second-stage expressions are the fragments, the primitives, \(D,C\), and the recorded binding expressions. All their required identities hold. Each right-hand side of a traced binding points to a subexpression of the recorded fragments or ordinary formulas.

Compress these stages by the lemma. For each placeholder, reconstruct a small ordinary open body generating its new first-stage value from its allowed public generators. It has polynomial DAG size by memoization on the first-stage DAG. That same body gives the required second-stage value by the substitution identity. Insert it in its original fragment.

At the first stage the reconstructed primitives hold on the new public tuple. Each retained universal alias is still its original bare letter. No reconstructed coordinate has gained any first-stage letter. Specializing the remaining letters to a base constant therefore gives a valid term strategy and allowed witnesses by Round 31’s criterion. The tuple need only satisfy the reconstructed answer for this argument. Exact occurrence in each primitive is preserved by its recorded support paths and by restricting each placeholder to its original names. Restore the parent-atom padding when needed.

At the second stage take any ordinary assignment satisfying the reconstructed primitives and \(D\). The retained constructor paths and variable jumps force the recorded bindings one by one. Each new right side uses a subset of its former input names, so the binding graph is acyclic. The second-stage explicit equalities say that instantiating the compressed public values gives precisely the unique solution of these bindings for the ground values of the free names. They also make \(C\) an identity. This gives relevance at every active row and consistency by any ground specialization of the second-stage rigid letters. This is the replay from Round 29, now with an independent first-stage justification of validity.

Guessing the polynomial-size presentation, checking its atomwise escape and validity, and checking its ordinary implication all take polynomial time on shared term graphs. The empty designated set gives the NP lower bound. One-branch lower bound

An empty premise with arbitrary carrier permissions

Here start instead from the shallow presentation in Round 32. Its generic validity play supplies values \(G\) for original game moves and \(V\) for ordinary answer coordinates over rigid universal letters. It is also a witness for the ordinary answer equations. The path compression there uses this row and retains polynomial depth in its \(V\)-values as well as the selected primitives. Generic row and shallow presentation

Trace unification of the primitives alone. At the first stage take their fully dereferenced mgu tuple, its residual letters, and the omitted-fragment values. Require as explicit equations the primitive and binding identities and the entire ordinary conclusion \(C\). The mgu makes \(C\) an identity by ordinary relevance. The placeholder generation requirements have the same form as above.

At the second stage instantiate the first-stage letters at the generic validity row \(V\). Add all \(G\) as named values. Require the original game and witness generation conditions from Round 32 at this stage, including \(V_x=G_x\) for nonsubstituted names and \(G_h=r_h\) for each universal game move. The second-stage collapse preserves these explicit conditions and generation requirements. Reconstructing the placeholders at the first stage hence gives correct values throughout the generic play as well.

This time replay the retained unification trace at the first stage. It forces the bindings throughout the ordinary answer relation; their unbound variables remain the distinct first-stage letters. The first-stage binding identities and \(C\) give ordinary relevance. The generic second-stage play supplies validity with the specified carrier permissions, and grounding its letters supplies consistency. Scope records are restored as before. This gives NP membership for arbitrary weak presentations with empty premise. Supplied-answer validity is in NP, so guessing the presentation and its certificate stays in NP. Checker and reduction

The same argument gives an NP upper bound if a nonempty premise is required to hold at the generic validity play, as an extra condition of the problem. Use that play as the joint witness, retain the explicit constructors of \(D,C\) in the shallow compression, and trace the primitives together with \(D\). Use their common mgu for the first stage. The second-stage play is its instance by the added requirement. Replay establishes ordinary relevance on the whole active relation; the second stage also preserves \(D\) at the generic play. In the original problem mere ordinary consistency allows a different row.

With a nonempty premise one forbidden read gives r.e.-completeness even for arbitrary weak conjunctions on branching signatures. The proof uses a retained existential guard to leave one independent tag free at an ordinary active witness and counts the possible residuals in the proof. General weak-conjunction lower bound

The executable reconstruction integrates the two-stage construction with the actual ordinary unification trace for the general-premise proof. It checks shared first-stage generators that coincide after the second substitution, validity of the reconstructed primitives, and independent ordinary entailment. The empty-premise application uses the same lemma with the two checks in the opposite order.