Fourth-root reduction from 3-SAT to RSG recognition
ProvedRSGPaper.thm_5_2_fourth_root_reductionLet count the variables plus clauses of a -CNF formula . There is a constant and two deterministic algorithms that, on the encoding of , run within steps and output
- a connected, vertex-transitive, bipartite simple graph on vertices, and
- a binary chart on together with a list of permutations,
such that
- is a Riemannian symmetric graph if and only if is satisfiable;
- has no nontrivial modules;
- is a -group of nilpotency class at most four;
- admits a compatible vertex system and a compatible edge system;
- the chart allows every automorphism of , and the listed permutations generate .
This reduction drives the conditional lower bound of Corollary 5.4.
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 . Nilpotency class at most four is expressed as for the upper central series.
import Definitions.Def_rsg_paper_complexity import Mathlib.GroupTheory.PGroup import Mathlib.GroupTheory.Nilpotent open RSGRecognition
namespace RSGPaper
theorem thm_5_2_fourth_root_reduction :
∃ (C : ℕ) (M₁ M₂ : Turing.TM2ComputableAux Bool Bool) (reduce supply : Word → Word),
∀ φ : Formula,
let T : ℝ := (2 : ℝ) ^ ((C : ℝ) * ((formulaSize φ : ℝ) + 1) ^ (1 / 4 : ℝ)) *
(((formulaWord φ).length : ℝ) + 1) ^ C
RunsWithin id M₁ reduce (formulaWord φ) T ∧
RunsWithin id M₂ supply (formulaWord φ) T ∧
∃ (n : ℕ) (G : SimpleGraph (Fin n)) (adj : DecidableRel G.Adj)
(ch : BinaryChart (Fin n)) (gens : List (Equiv.Perm (Fin n))),
reduce (formulaWord φ) = graphWord G adj ∧
supply (formulaWord φ) = chartWord ch ++ permsWord gens ∧
(n : ℝ) ≤ (2 : ℝ) ^ ((C : ℝ) * ((formulaSize φ : ℝ) + 1) ^ (1 / 4 : ℝ)) ∧
G.Connected ∧ IsVertexTransitive G ∧ G.IsBipartite ∧
(IsRSG G ↔ Satisfiable φ) ∧
NoNontrivialModule G ∧
IsPGroup 2 (GraphAut G) ∧ upperCentralSeries (GraphAut G) 4 = ⊤ ∧
HasSystem G IndexKind.vertex ∧ HasSystem G IndexKind.edge ∧
(∀ g ∈ GraphAut G, InChart ch g) ∧
Subgroup.closure {g | g ∈ gens} = GraphAut G := by sorry
end RSGPaperRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
There exist a natural number , two machines , and two word-to-word functions ("reduce") and ("supply") such that for every 3-CNF formula , writing , and
the following hold:
- computes on within steps, and computes on within steps (output encoding: the word itself);
- there exist , a simple graph on , a binary chart on and a finite list of permutations of such that
- and ;
- ;
- is connected, vertex-transitive (any vertex maps to any other by an automorphism) and bipartite;
- is an RSG if and only if is satisfiable;
- has no nontrivial module (every vertex set such that each outside vertex is adjacent to all or none of has or is all of );
- is a -group (every element has order a power of ) and its upper central series reaches the whole group at step , i.e. ;
- admits a system of kind vertex and a system of kind edge;
- every automorphism of is in the chart ;
- the subgroup of generated by the entries of equals .
The machines and functions are fixed independently of ; nothing is asserted about inputs that are not formula encodings. Connectedness forces ; the chart forces .
is the group of permutations of the vertex set with for all (product = composition).
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 .
Systems. For an index kind the index set is (vertex), (unordered edges) or (full). A system of kind is a map such that each is a valid witness at and for all . 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 .
Charts. A binary chart on a vertex set consists of naturals and a bijection (so ); write . A permutation of is in the chart if there are and a function such that, in coordinates, is .
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).
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 .
Chart and generator encodings. followed, for in order, by the bits of then the bits of (bit iff the coordinate equals ). For a list of permutations, followed by the permutation matrices of in order, each row-major, entry being iff .
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.