Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

SAT Tableaux and Quantified-Space Completeness

1 · Prerequisites

2 · Summary

This page builds SAT completeness from a fixed binary formula parser and a local computation tableau. The symbol-by-symbol decoding lemma supplies the logical direction that a satisfying tableau is a real accepting run; the size lemma supplies the separate polynomial construction bound. Gate clauses preserve satisfiability over fresh variables, and the explicit clause chain yields 3SAT completeness, including empty clauses.

The second part defines polynomial space under the library’s all-tape visited-cell convention. Configuration counting fixes the input so its unchanged unvisited suffix is not mistaken for free workspace. TQBF completeness is then proved by an explicit transition predicate and a single-copy midpoint recurrence, with both truth directions, prenex conversion and generation bounds. Restricted matrices and logarithmic auxiliary generation space are stated with their distinct tape-accounting convention.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-13Open item page →

Boolean formulas, CNF, and satisfiability

Definition

A formula is a finite tree built from xi (iN), constants ,, unary ¬, and binary ,. Fix the following binary prefix encoding: tags 000 and 001 are the constants; 010 introduces a variable followed by 1b0b, where b is the canonical binary numeral for its index; 011 introduces a negation and its one child; 100 and 101 introduce conjunction and disjunction and their two children in order. Tags 110 and 111 are reserved below. A stack parser consumes the required children and rejects unfinished trees, noncanonical numerals, and trailing bits. Every call consumes a tag, so parsing terminates on every word. Size means the full bit length, including variable indices.

A literal is xi or ¬xi. A clause is a finite list of literals, interpreted as their disjunction. Its encoding is 110, then 1r0 for its length, then its r literal encodings. A CNF is a finite list of clauses, encoded by 111, then 1s0, then its s clause encodings. The parser accepts these list constructors as additional formula nodes; a clause's entries must be literals and a CNF's entries must be clauses. They have the same recursive semantics as iterated disjunction/conjunction. Empty disjunction is false and empty conjunction true. A k-CNF has every clause length at most k, including zero. Repeated or complementary literals are allowed.

An assignment maps the finitely many distinct occurring indices to {0,1}. Evaluate a variable by its assigned bit, constants by 0 and 1, negation by 1a, conjunction by ab, and disjunction by max(a,b). Recursion is on proper subtrees or finite lists. Satisfiable means some such assignment evaluates to 1. SAT consists of encodings of satisfiable formulas, including the list forms; 3SAT restricts to the CNF list form with clause lengths at most three. Malformed words, including the empty binary word, belong to neither language.

These languages use the polynomial verifier and total many-one reduction convention of Polynomial time verifier and reduction interface. NP-complete means membership in verifier-defined NP and a polynomial many-one reduction from every such language. List the distinct variable numerals by order of first occurrence; a certificate consists of one bit for each. Comparing numerals by scans and evaluating the parsed tree takes polynomial time in the encoding length; even repeated full scans cost only a polynomial. No certificate has to list indices below the largest occurring index. The variable-free true formula has the empty assignment, whereas the empty clause has none making it true. Two formulas are semantically equivalent when, for every assignment to the union of their occurring indices, their evaluations under the corresponding restrictions agree. Equisatisfiability only compares existence of satisfying assignments and permits fresh variables.

DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-09-13Open item page →

Bounded Turing-computation tableaux

Definition

Use the syntax of Boolean formulas, CNF, and satisfiability. Fix a polynomial-time deterministic multitape verifier with certificates of one fixed length p(n). If its original certificates have variable guarded length, first use the length-field construction in Polynomial time verifier and reduction interface; a verifier already using fixed-length certificates needs no such conversion. In particular a fixed empty certificate is permitted. Its ordinary binary input is w=1n0xz, where x=n and z=p(n); verification checks the certificate's length-field syntax. Apply Every fixed multitape Turing machine has an equivalent one-tape simulation to this fixed verifier. The bound in The standard one-tape simulation of a fixed multitape machine has quadratic overhead gives an integer polynomial upper bound T(n)2n+1+p(n)+1 for the resulting one-tape running time. Enlarge its constant for short inputs. Thus the complete input length =2n+1+p(n) is less than T(n).

Write T=T(n) and W=T+2. Rows are indexed 0,,T and cells 0,,W1. This is the bounded T-by-T construction up to the necessary additive endpoint cells. Its augmented alphabet is A=Γ(Q×Γ): a marked symbol (q,a) means the unique head scans symbol a in state q. Configurations and initial/halting predicates are those of Configurations of a deterministic one-tape Turing machine and Initial tapes and machine-relative halting configurations.

For tableaux only, extend the ordinary step relation of The one-step configuration relation by leaving every halting configuration unchanged. In particular acceptance is a stationary absorbing sink. This padding relation does not give the original halted machine an extra physical transition. Unpadding means delete the repeated halting rows. A valid row has exactly one marked symbol and a blank, unmarked last cell. Since a head starts at zero, at time tT it is at most T; the extra cell T+1 is never reached.

Here is a fully specified finite local rule. For an interior cell, inspect its old left, centre and right symbols. If the centre has a nonhalting head, write the symbol prescribed by the transition; retain the new head there only for a left move at cell zero. Otherwise retain the old underlying centre symbol. Put the new state/head at the centre if the old head in the left neighbour moves right or the old head in the right neighbour moves left. A halting head stays in place with unchanged symbol and state. At cell zero replace the absent left neighbour by a fixed exterior marker and clamp a left move there. At the last cell use a fixed exterior right marker; attempts to move out are forbidden. Windows with multiple heads, conflicting arrivals, or a head on an exterior marker are forbidden. All other windows have the output prescribed above. This defines a finite allowed relation Rj(a,b,c,d) on the three old symbols and the new centre symbol; only the two boundary versions depend on j.

For each t,j,a introduce Xt,j,a. Require at least one and at most one symbol per cell by aAXt,j,a and ¬Xt,j,a¬Xt,j,b for ab. In row zero pin the fixed bits of 1n0x, leave each certificate position restricted to the two unmarked bit symbols, put state q0 at cell zero, and pin all remaining cells blank. Row zero therefore has exactly one head even for n=0. For every row pin cell W1 to unmarked blank. For each t<T, each cell, and each forbidden tuple (a,b,c,d) add the clause ¬Xt,j1,a¬Xt,j,b¬Xt,j+1,c¬Xt+1,j,d. At boundaries omit exterior literals and enumerate only the fixed exterior symbol. Finally add j,aXT,j,(qacc,a). Their conjunction is ΦM,x. Fresh variable indices enumerate the triples lexicographically. No global head-uniqueness clause is needed after the initial row: correctness of the local rule on genuine rows supplies that invariant in the next lemma.

LemmaStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-5.6-terra)audited 2026-09-13Open item page →

The tableau formula characterizes accepting computations

Statement

The formula ΦM,x is satisfiable exactly when some permitted certificate makes the normalized verifier accept within T(x) steps. Every satisfying assignment decodes a genuine computation followed only by repetitions of its halting configuration.

Facts & Assumptions

Given: The fixed verifier, input and tableau parameters.

[F1]

The cell variables, exactly-one constraints, initial row, forbidden-window clauses and accepting row are specified in Bounded Turing-computation tableaux.

[F2]

An ordinary step rewrites only the scanned cell and moves the head right or clamped left (The one-step configuration relation).

[F3]

The initial head is at zero and acceptance is equality of the state to the designated accepting state (Initial tapes and machine-relative halting configurations).

Proof

1.1

Suppose an allowed certificate gives acceptance at time sT. Write its initial row, then its ordinary successor rows through s, then repeat its accepting row through T. Set exactly the variables for these symbols to 1. The initial tape length is less than T, and at time t the head is at most t, so cell T+1 stays blank. Every local tuple is allowed: at the old head it performs the prescribed write, at the destination it receives the new head, and elsewhere it preserves the symbol. At zero the rule uses the clamped move. After halting it preserves the whole row. Thus every clause is true, including the final accepting clause.

F1F2F3given
1.2

Conversely, from a satisfying assignment the exactly-one clauses select a unique symbol in each cell. The initial-row clauses give one ordinary initial configuration with a certificate of the required length. Consider any decoded row already known to be a genuine padded configuration. It has one head. For each cell its three old symbols therefore have no conflicting heads; the local rule has exactly the unique output obtained from the ordinary transition, or from halting repetition. Any different new symbol would make the forbidden-tuple clause for these actual four symbols false: all its negated literals would be zero. Consequently the whole next row equals that padded successor.

F1F2F3
2.1

Starting with row zero and applying the preceding implication T times proves that every row is the actual padded run. The last clause locates an accepting head at time T. Rejection cannot become acceptance because a rejected row only repeats; a nonhalting run can acquire an accepting state only through a genuine transition. Deleting the repeated terminal rows therefore gives an accepting computation of length at most T. The verifier's own syntax check makes its certificate permitted.

step 1.2F1F3
3.1

This proves both implications, including empty inputs and zero-length certificates. The construction uses a positive padded bound, so no absent predecessor row is invoked; a hypothetical already-accepting row would simply repeat, while the actual initial state is nonhalting. Every symbol was read from a finite assignment or explicitly written from a run, so there is no choice assumption.

step 1.1step 2.1F1F3
LemmaStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-5.6-terra)audited 2026-09-13Open item page →

Tableau formulas have polynomial-size polynomial-time CNF encodings

Statement

For a fixed verifier and polynomial certificate and time bounds, xΦM,x is a polynomial-time map to a polynomial-size CNF. More generally a finite Boolean formula, or a finite acyclic Boolean gate list, has a polynomial-time equisatisfiable CNF encoding with one extension variable per internal gate and a unit clause requiring its output. All sizes count encoded bits.

Facts & Assumptions

Given: A fixed verifier and the tableau bounds, or a formula with its gates listed in dependency order.

[F1]

The binary formula encoding counts variable-index bits and permits empty clauses and conjunctions (Boolean formulas, CNF, and satisfiability).

[F2]

The tableau has (T+1)(T+2) cells over a fixed alphabet and the listed finite local clause families (Bounded Turing-computation tableaux).

[F3]

Satisfiability of that tableau characterizes accepting computations (The tableau formula characterizes accepting computations).

Proof

1.1

Put a=A, a constant of the fixed verifier. There are a(T+1)(T+2) cell variables. Each cell contributes one size-a clause and at most a(a1)/2 binary clauses. Each update contributes at most a4 clauses of width at most four. The pinning clauses number O(T2) and the accepting clause has at most a(T+2) literals. Thus the literal count is O(T2); indices take O(log(T+2)) bits. Enumerate times, cells and the constant symbol tuples with binary counters, and output each clause. Counter arithmetic, the initial input lookup and evaluation of the fixed polynomials cost polynomial time. The binary list headers add only linear overhead in the number of entries.

F1F2
1.2

For completeness, the gate clauses can be written explicitly. For v=¬u use (vu)(¬v¬u). For v=uw use (¬vu)(¬vw)(v¬u¬w). For v=uw use (v¬u)(v¬w)(¬vuw). The two possible values of v show that each conjunction holds exactly for the indicated equality: for AND, v=1 forces both inputs true and v=0 forces at least one false; OR is dual, and NOT forces opposite bits. Constants are pinned by a positive or negative unit clause. Finite list connectives are first expanded as binary trees, using the appropriate constant for an empty list. Finally require the output wire by a unit clause.

F1given
2.1

Assign gate values in order after a satisfying assignment to the original variables. Each equality clause and the output unit then holds. Conversely any satisfying CNF assignment obeys every gate equality; induction through the acyclic gate order identifies each gate bit with its evaluated value. The output unit makes the original formula true. These arguments also handle an output that is a lone literal or a constant. No assignment to fresh variables is asserted to work unless it obeys the gate equations.

step 1.2
3.1

Number the original distinct variables first and new gate variables next, retaining an explicit renaming list; alternatively take new indices above the largest original index. Their bit length is bounded by the input length plus O(log(g+2)) for g gates. There are O(g) clauses after binary expansion, and they can be written by finite scans in polynomial time. Thus the conversion preserves satisfiability in both directions and the tableau's accepting-computation meaning. Zero gates, an empty CNF and an empty clause are handled respectively by the literal output, true constant and false constant rules.

step 1.1step 1.2step 2.1F1F3
TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-5.6-terra)audited 2026-09-13Open item page →

Cook-Levin: SAT is NP-complete

Statement

SAT is NP-complete under polynomial-time many-one reductions. For each verifier-defined language L there is a total polynomial-time map xΦx to CNF encodings such that xL iff Φx is satisfiable.

Facts & Assumptions

Given: The fixed binary syntax and a verifier for an arbitrary L in NP.

[F1]

SAT permits general formulas and CNF list encodings and rejects malformed words (Boolean formulas, CNF, and satisfiability).

[F2]

Guarded witnesses have an equivalent fixed-length polynomial certificate format, and polynomial reductions compose (Polynomial time verifier and reduction interface).

[F3]

The bounded tableau is satisfiable iff a permitted certificate gives acceptance (The tableau formula characterizes accepting computations).

[F4]

This tableau CNF can be written in polynomial time and size (Tableau formulas have polynomial-size polynomial-time CNF encodings).

Proof

1.1

Parse the proposed SAT input. Reject if malformed. Otherwise enumerate distinct variable names by first occurrence, read that many certificate bits and recursively evaluate the formula. There are at most as many variables and nodes as input bits, and even repeated scans and pairwise name comparisons take polynomial time. Accept exactly when evaluation is true. The empty conjunction and true constant need no certificate bits, while an empty clause and false constant never pass. Thus SAT belongs to verifier-defined NP.

F1F2
1.2

Fix the verifier of L and normalize its guarded certificates using the explicit length field. The tableau lemma then gives, for every binary x, xL iff ΦM,x is satisfiable. All strings are legitimate source inputs; there is no implicit promise to parse x as a machine or formula. The fixed verifier itself determines any desired rejection of special source encodings.

F2F3
2.1

Output the CNF encoding from F4. Its polynomial construction bound includes the whole input and witness length, and it always returns a well-formed formula. The equivalence in step 1.2 makes this a total many-one reduction to SAT. At length zero the same normalized verifier and enlarged polynomial bound apply; no exceptional input is omitted. Since L was arbitrary, SAT is NP-hard, and step 1.1 proves NP-completeness.

F1F2F4step 1.2step 1.1
TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-5.6-terra)audited 2026-09-13Open item page →

3SAT is NP-complete

Statement

3SAT, with clauses of size at most three, is NP-complete. Arbitrary CNF has a polynomial-time equisatisfiable conversion to this form, including empty clauses.

Facts & Assumptions

Given: The fixed encoding of formulas and literal lists.

[F1]

A CNF is a conjunction of literal-list clauses; empty clauses are false and empty conjunctions true (Boolean formulas, CNF, and satisfiability).

[F2]

SAT is NP-complete, and its hardness reductions output CNF formulas (Cook-Levin: SAT is NP-complete).

Proof

1.1

For a clause l1lm with m>3, use distinct fresh variables y1,,ym3 and replace it by the clauses l1l2y1, then ¬yjlj+2yj+1 for 1jm4, then ¬ym3lm1lm. All variables used for different clauses are distinct. Leave clauses of lengths zero, one, two and three unchanged.

F1construct
2.1

If the original clause is true, set yj=1 exactly when l1,,lj+1 are all false. The first clause holds by this definition. In a middle clause, either yj=0, or the first j+1 literals are false and then either lj+2=1 or yj+1=1. In the last clause, either ym3=0 or the first m2 literals are false, forcing one of the last two true. This explicitly extends every satisfying assignment.

step 1.1
3.1

If all original literals were false, the first new clause would force y1=1, the middle clauses successively force every next yj=1, and the last would be false. Therefore a satisfying extension implies the original clause is true. For m=4 there are no middle clauses and the same first/last argument applies. Separate fresh variables let the extensions be performed for all clauses simultaneously.

step 1.1step 2.1
4.1

The replacement has m2 clauses for a long clause. Summing lengths gives linear literal count; the encoded indices and a finite scan for unused indices give polynomial bit length and construction time. Malformed CNF strings map to the fixed CNF containing an empty clause. To reduce an arbitrary NP language, first use F2's CNF output and then this map; composition of two polynomial running-time bounds is polynomial, and the two membership equivalences compose. Membership in NP guesses one bit per distinct variable and evaluates clauses. Empty CNF remains satisfiable, and any retained empty clause makes both formulas unsatisfiable. Hence 3SAT is NP-complete.

F1F2step 1.1step 2.1step 3.1
DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-13Open item page →

Polynomial space and nondeterministic polynomial space

Definition

Use the all-tape resource classes of The classes DTIME, NTIME, DSPACE, and NSPACE and the worst-case convention of Worst-case time and space complexity of a machine. Set PSPACE=k1DSPACE(nk),NPSPACE=k1NSPACE(nk). Here k ranges over integers. Membership requires one fixed finite-tape machine, one exponent and input-independent asymptotic constants. A deterministic machine must decide the language; a nondeterministic machine must halt on every branch and accept exactly when an accepting branch exists. Finitely branching all-halting computation trees are finite: if one were infinite, a node with infinitely many descendants would have a least-indexed child with infinitely many descendants, recursively producing an infinite branch. Thus finite maxima exist; this uses a fixed finite ordering of instructions, not AC.

Space counts distinct scanned tape/cell pairs, including the input tape and each initial head cell. Initially occupied but unvisited input cells are not automatically counted, as specified in Uniform asymptotic time space comparison. Reading the complete input costs n cells, and storing it explicitly costs O(n+1) space. For polynomial space we may enlarge any bound to an integer polynomial S(n)=C(n+1)k dominating n+1 and the number of tapes. Conversely such a bound is O(nk) for n1, so this gives the same unions. Short inputs, including the empty input, must still halt, but do not affect asymptotic class membership. This definition asserts no equality between PSPACE and NPSPACE.

LemmaStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-5.6-terra)audited 2026-09-13Open item page →

A space-bounded machine has exponentially many configurations

Statement

Fix a finite k-tape machine M, a single input x of length n, and an integer visited-cell bound S. Configurations reached from this input while using at most S visited cells have injective fixed-length binary encodings of length OM(S+log(n+2)), and there are at most 2OM(S+log(n+2)) of them. The decoder may use the fixed x. If Sn the bounds are OM(S) and 2OM(S) for nonempty feasible configurations.

Facts & Assumptions

Given: The fixed machine in the deterministic k-tape model of Multitape and nondeterministic Turing machine variants, the standard initial configuration with every head at zero, x on tape one and every other tape blank, and the fixed space bound; no bound across different inputs is asserted.

[F1]

Space is the number of distinct scanned tape/cell pairs, includes every initial head cell, and does not count initially occupied but unvisited input cells (Polynomial space and nondeterministic polynomial space).

[F2]

A one-tape configuration consists of state, head position and whole finite-support tape content (Configurations of a deterministic one-tape Turing machine).

[F3]

Initially the input occupies the first tape starting at zero, all other cells are blank, and halting predicates are machine-relative (Initial tapes and machine-relative halting configurations).

Proof

1.1

Every head begins at zero and moves by one cell per transition, with a left move at zero unable to leave the right-infinite tape. Hence the cells visited on each tape form an initial segment. A transition writes only at the currently scanned cell, so every unvisited cell retains its initial content. Suppose Sk. For each tape let ri1 be the visited prefix length; iriS. Encode the state by a fixed-width word, each ri and head position by a width-log2(S+1) field, and the concatenation of the visited tape prefixes by at most Slog2(Γ+1) bits. Pad the last field to this fixed length with zeros. Reconstruct the unvisited suffix on tape one from the fixed x, and all other unvisited cells as blank. These data recover the full configuration, extending F2's triple to the fixed number of tapes.

givenF1F2F3
2.1

To make the map canonical on configurations rather than histories, use on tape i the least prefix containing its head and every cell whose current content differs from its initial content. This prefix is nonempty and no longer than the visited prefix, because writes require a visit. Apply the encoding just described to these canonical prefixes. Their lengths sum to at most S, and decoding recovers the exact configuration, so equal codes imply equal configurations. Different histories reaching the same configuration now give the same code.

step 1.1F1F3
3.1

The code length is at most cM+2klog2(S+1)+Slog2(Γ+1)=OM(S) for Sk1. There are at most 2m binary words of a fixed length m, proved by doubling the count for each appended bit, starting with one empty word. Hence the number of configurations is at most 2OM(S), in particular the stated weaker bound with the input-length logarithm. If S<k, even the initial head cells exceed the bound and the reachable set is empty; there is then a vacuous encoding. Empty input and blank-only tape data need no special extra field. No uniform code independent of the fixed input is claimed for an arbitrary unvisited input suffix.

step 2.1F1
TheoremStatement: Literature-sourcedProof: AI-adaptedaudited 2026-09-13Open item page →

TQBF is PSPACE-complete

Statement

A quantified Boolean formula in prenex form is a finite prefix Q1v1Qrvr followed by a Boolean matrix, where Qi{,} and the bound variable names are distinct. It is closed when every matrix variable occurs in the prefix. Existential quantification takes the OR of the two substituted truth values; universal quantification takes their AND. Encode the prefix by a unary length header, then a quantifier bit and a self-delimiting variable numeral per entry, followed by the matrix encoding. Reject duplicate names, free variables, trailing bits and malformed input. TQBF is the binary language of well-formed closed true formulas, including true variable-free matrices with an empty prefix.

TQBF is PSPACE-complete under polynomial-time many-one reductions. Its hardness reduction has polynomial output length and can be computed in polynomial time, hence polynomial workspace.

Facts & Assumptions

Given: The above quantified syntax and any language L in PSPACE.

[F1]

Boolean formulas have an explicit polynomial parser and recursive truth semantics (Boolean formulas, CNF, and satisfiability).

[F2]

A PSPACE machine is a fixed decider with a polynomial visited-space bound that may be enlarged to dominate the input length (Polynomial space and nondeterministic polynomial space).

[F3]

A fixed space-bounded machine on a fixed input has exponentially many configurations with linear-size codes (A space-bounded machine has exponentially many configurations).

[L1]

A deterministic k-tape machine reads one symbol on each of its right-infinite tapes, writes one symbol on each, and moves every head left or right in one simultaneous transition (Multitape and nondeterministic Turing machine variants).

[F4]

The one-tape transition relation rewrites its scanned cell and clamps a left move at zero (The one-step configuration relation). For the k-tape variant in L1, the proof applies that same cell/head rule independently to each of the k components; the cited one-tape definition is not itself a multitape transition theorem.

[F5]

The one-tape interface explicitly fixes initial tape and accepting/halting states (Initial tapes and machine-relative halting configurations). For L1 the proof uses the componentwise initial state: input on tape one, blanks on the others, and all heads at zero.

[F6]

A reduction must be a total polynomial-time transducer with a membership equivalence (Polynomial time verifier and reduction interface).

[F7]

A Boolean matrix has a polynomial-time equisatisfiable CNF with one extension variable per gate and an output unit (Tableau formulas have polynomial-size polynomial-time CNF encodings). The stronger pointwise gate-extension property used below follows from the explicit local clauses in step 7.1, not merely from equisatisfiability.

Proof

1.1

Parse a TQBF input of length N, rejecting violations of the statement's syntax. Keep the parsed formula and a table of assigned bits. Recursively assign the next quantified variable 0, evaluate the remaining prefix, save that answer bit, then assign it 1 and evaluate again using the same child workspace. Combine with OR or AND as indicated and undo the assignment. A frame stores an input position and the saved bit; at most N frames and a size-O(N2) parsed representation suffice. Matrix evaluation likewise uses at most O(N2) cells. Every recursive call decreases the remaining prefix length; the finite matrix recursion terminates. The empty prefix evaluates the variable-free matrix directly. Counting input cells as well still gives polynomial space.

F1F2
1.2

Fix a decider M of L and a known integer polynomial S(n)n+k+1 bounding its visited cells on every input. On input x, represent each tape by its first S=S(x) symbols and its head offset, together with the state. All actual configurations fit because each tape's visited prefix is at most S and the complete input fits too. Use fixed-width fields and add a tag for one special accepting vertex a. Invalid state/symbol codes and head offsets outside 0,,S1 are excluded; the special vertex has all remaining fields zero. Choose one common bit length m=OM(S) for all these vertices. This is the explicit full-prefix variant of F3's bounded coding. There are at most 2m vertices, including a. The initial vertex sx is written directly from x.

F2F3F5
2.1

Construct a Boolean formula E(X,Y) for edges of this finite graph. For every possible state, scanned-symbol tuple and head-offset tuple, enumerate the finitely specified instruction of M, assert those source fields, the target state and the componentwise head offsets (using F4's clamped-left rule on each right-infinite tape), the prescribed written symbols, and equality of every unscanned tape cell. Conjoin validity of both endpoint codes. There are OM(Sk) cases and OM(S) field comparisons in each, with O(log(S+1)) bits per offset. Thus the disjunction has polynomial encoded size and is produced by polynomial finite loops. Omit transitions leaving the represented interval. Add edges from every ordinary accepting configuration to a, and a self-loop at a. Rejecting configurations have no outgoing edges. This supplies a unique terminal target without assuming a physical tape-erasing normalization. From the initial vertex, ordinary edges are exactly M's steps; actual runs never leave the interval. Thus a is reachable exactly when M accepts x.

L1F4F5step 1.2
3.1

Let R0(X,Y) be Valid(X)Valid(Y)(X=YE(X,Y)). For each next level introduce fresh m-bit vectors Z,U,V and a fresh bit b. Set G=(¬bU=XV=Z)(bU=ZV=Y), and define Ri+1(X,Y)=ZbUV(¬GRi(U,V)). Here equality means conjunction of bit equalities, each expanded with AND, OR and NOT. There is just one occurrence of Ri.

F1step 2.1construct
4.1

For all bit vectors X,Y, Ri(X,Y) holds iff they are valid vertices joined by a path of length at most 2i. At level zero this follows from its definition, including the length-zero path. For the successor, a true formula supplies a midpoint Z. Specializing the universals to b=0,(U,V)=(X,Z) and b=1,(U,V)=(Z,Y) forces both shorter paths by the induction hypothesis; concatenate them. Conversely split a path of length h2i+1 after min(h,2i) edges. Both portions have length at most 2i, so their midpoint works. For any universal assignment either G is false, making the implication true, or it selects one of these two paths. Invalid midpoints cannot pass either selected base validity condition. This proves the induction in both directions.

step 3.1
5.1

Any reachable vertex has a path without a repeated vertex: delete the segment between two equal vertices and retain its subsequent edges, reducing the length until no repetition remains. Its length is less than 2m. Therefore Rm(sx,a) is true exactly when xL. If sx already equals a target in another instance, the equality part of R0 handles it; here the distinct special tag keeps the actual initial and accepting target separate.

step 1.2step 2.1step 4.1
6.1

Each recursion level introduces 3m+1 bound bits and O(m) equality/connective occurrences. Distinct variable names across m levels use O(log(m+2)) bits, so the total encoded size is the polynomial base size plus O(m2log(m+2)). Put the formula in prenex form without duplication: if z is fresh for A, then A(QzB) and Qz(AB) have the same truth value, for either quantifier, by checking whether A is true or false and using the nonempty domain {0,1}. Apply this identity to pull each inner prefix through its outer guard. Fresh naming prevents capture. Each matrix connective remains once. Finite generation of the base cases, guards and prefix requires polynomial time and space, including substituting constant start/target bits. This proves the total reduction and, with step 1.1, PSPACE-completeness. All selections were finite enumerations or existential witnesses to a single formula; AC is unnecessary.

F6step 3.1step 5.1step 1.1
7.1

The same reduction may use a 3CNF or 3DNF matrix if desired. For each gate v=¬u, use (vu)(¬v¬u); for v=uw, use (¬vu)(¬vw)(v¬u¬w); for OR, dualize the AND clauses. Pin a constant by a unit clause and require the output by a unit clause. These are clauses of width at most three. For each assignment to the old variables, a gate-by-gate induction shows that exactly one assignment to the fresh gate variables satisfies all gate equations, and it satisfies the output unit exactly when F=1. This proves the pointwise property rather than inferring it from F7's mere equisatisfiability. Append existential quantifiers for the fresh gate bits after the old prefix; the resulting 3CNF preserves truth through every old quantifier. Alternatively apply this construction to ¬F. Then F=1 iff every gate assignment falsifies C¬F. Append universal gate quantifiers and use the matrix ¬C¬F, a disjunction of terms each containing at most three literals by De Morgan's laws. These conversions preserve the truth of the quantified formula in both directions, including constant matrices. They do not assert a polynomial DNF for unquantified equality without extra variables.

F1F7step 6.1
7.2

Here is also precise workspace accounting for generation: with read-only input and write-only output excluded from the auxiliary workspace measure, the fixed-M reduction uses OM(log(n+2)) auxiliary cells. Compute the fixed polynomial S and m in binary with a constant number of O(log(n+2))-bit registers. The base edge formula is output by loops over k head offsets, finite states/symbols, tape cells and bit positions, all polynomially bounded; k is fixed, so the number of loop registers is constant. Initial-configuration bits are obtained by rescanning x with a binary position counter. Output the prenex prefix with one descending level counter; output the guards in the same order, using the current level to name its endpoint vectors, then the base formula, then the required closing symbols by a counter. The one-copy recurrence never requires storing a stack of levels. Every emitted variable name is computed from its level, vector type and bit offset, all polynomially bounded integers.

step 6.1
8.1

If a restricted matrix is requested, generate its gate clauses using rescans of that regular unquantified matrix. Number connective occurrences by their positions. Find a node's children by scanning its prefix-encoded subtree with a pending-child counter: reading a node changes the counter by its arity minus one, and zero marks the end of the subtree. Constants have arity zero. All indices and counters are bounded by the polynomial output length. Each requested matrix symbol can be recomputed by restarting the generator of step 7.2 and counting its output; save the constant number of current position registers on separate tracks. Thus iterating over gate positions and their children uses only a constant number of logarithmic registers, with polynomial repeated-scan time. Output F7's clauses, or their De Morgan negations with the appropriate new quantifiers from step 7.1. This proves regular logspace generation under the explicitly stated input/output-excluding convention, without claiming an all-tape visited-space bound smaller than n.

F7step 7.1step 7.2

5 · Examples, counterexamples and false statements

None yet.

Sources