Faster RSG recognition transfers to subexponential 3-SAT
OpenRSGPaper.cor_5_4_transferFix . Suppose that RSG recognition is decidable, for some constant , within
steps on every input word . Then -SAT is decidable in time
where is the number of variables plus clauses.
This is the transfer of Corollary 5.4 for recognizers that are correct on all graphs; the paper's version only requires correctness on the outputs of the reduction of Theorem 5.2, even with automorphism generators supplied.
Formalization Note Algorithms are deterministic finite multi-stack Turing machines (Mathlib's TM2) with Boolean input and output alphabets, counted in machine steps. Graphs are encoded as the vertex count in unary, a separator, and the row-major adjacency matrix; 3-CNF formulas use the binary encoding of the published rsg_recognition_core module. Since variable indices can be arbitrarily large, every -SAT bound carries a factor polynomial in the input length , and replaces so that the bounds are positive at . Measuring the recognizer by the input length instead of the order changes only constants, since for graph words.
import Definitions.Def_rsg_paper_complexity import Mathlib.Analysis.SpecialFunctions.Log.Base open RSGRecognition
namespace RSGPaper
theorem cor_5_4_transfer (ε : ℝ) (hε₀ : 0 < ε) (hε₄ : ε < 4) :
(∃ C : ℕ, DecidesWithin rsgLanguage
(fun w => (2 : ℝ) ^ ((C : ℝ) * Real.logb 2 ((w.length : ℝ) + 2) ^ (4 - ε)))) →
ThreeSATInTimeExp (max (1 / 4) (1 - ε / 4)) := by sorry
end RSGPaperRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a real number with . Suppose there are a natural number , a machine and a function from words to Booleans such that for every word , , and computes the one-bit output on within
steps (real logarithm and real powers). Then 3-SAT is decidable in time - for
in the sense defined below.
The language consists of the words for and simple graphs on that are RSGs. (For the index set is empty, so the graph is vacuously an RSG and the word belongs to the language.)
RSG. is an RSG if, with (vertices and unordered edges as disjoint indices), there is a map , , such that is a valid witness at for every , and
(the two indices range independently over all vertices and edges). Automorphisms act on vertices by and on unordered edges by . An automorphism is a valid witness at an index if , , and: if is a vertex , then and for every neighbour of ; if is an edge , then and . is the group of permutations of the vertex set with for all (product = composition).
Graph encoding. For a simple graph on , , the unary vertex count, a , then all adjacency bits in row-major order ( iff ). The decidability instance supplied for adjacency does not affect the bits, so the word depends only on .
3-SAT time class. For a real , "3-SAT is decidable in time -" means: there exist a natural , a machine and a function from words to Booleans such that for every word , , and computes the one-bit output on within
steps (real powers). Here is defined for every word: if for some formula, for a formula chosen (by the axiom of choice) among those with ; otherwise .
3-CNF formulas. A literal is a pair of a variable index and a required value ; a clause is an ordered triple of literals; a formula is a finite list of clauses (possibly empty, repetitions allowed). is satisfiable if some assignment has, for every clause, some literal of it with (the empty formula is satisfiable). Its encoding concatenates, over the clauses in order and over the three literals of each clause in order, the bit followed by , where is the little-endian binary expansion of with no trailing zeros ( is empty). The language 3SAT consists of the words with for some satisfiable . The size is the number of distinct variable indices occurring in plus the number of clauses (list length, counting repetitions).
A word is a finite list of bits (Booleans); is its length, denotes copies of the bit (true), and juxtaposition is concatenation. The framing of a word is .
Machine model. "Machine" means a deterministic finite multi-stack machine in Mathlib's TM2 model (finitely many stacks over finite stack alphabets, a finite program), bundled with a designated input stack and output stack whose alphabets are identified with by fixed bijections. computes on within steps means: there is a natural number such that , started with on its input stack, halts after at most steps with exactly the word on its output stack.