Faster recognition on the reduction family transfers to subexponential 3-SAT
ProvedRSGPaper.cor_5_4_transfer_v2Fix . Suppose that some deterministic algorithm decides RSG recognition on the following instances: a graph of order together with a binary chart containing and a list of generators of , where is connected, vertex-transitive and bipartite, has no nontrivial modules, has a -group of nilpotency class at most , and admits compatible vertex and edge systems. Suppose it runs within
steps for some constant . Then -SAT is decidable in time
where is the number of variables plus clauses and is the input length.
This is the transfer of Corollary 5.4. The recognizer only needs to be correct and fast on graphs with the properties that Theorem 5.2 guarantees for its outputs, with the chart and the automorphism generators supplied.
Formalization Note The factor lets the recognizer read its input, which has at least bits. For it is absorbed into , and for it keeps the hypothesis satisfiable. "The reduction family" of the source is represented by the class of instances having every property that Theorem 5.2 guarantees for its outputs; this class contains all outputs of the reduction. The instance word is the framed graph word, then the chart word, then the generator list. Algorithms are deterministic finite multi-stack machines (Mathlib's TM2), counted in machine steps. Since variable indices in the formula encoding can be arbitrarily large, the -SAT bound carries a factor polynomial in the input length, and replaces so that the bound is positive at . This version replaces RSGPaper.cor_5_4_transfer, which assumed a recognizer that is correct and fast on all graphs.
import Definitions.Def_rsg_paper_complexity import Mathlib.Analysis.SpecialFunctions.Log.Base import Mathlib.GroupTheory.PGroup import Mathlib.GroupTheory.Nilpotent open RSGRecognition
namespace RSGPaper
theorem cor_5_4_transfer_v2 (ε : ℝ) (hε₀ : 0 < ε) (hε₄ : ε < 4) :
(∃ (C : ℕ) (M : Turing.TM2ComputableAux Bool Bool) (dec : Word → Bool),
∀ (n : ℕ) (G : SimpleGraph (Fin n)) (adj : DecidableRel G.Adj)
(ch : BinaryChart (Fin n)) (gens : List (Equiv.Perm (Fin n))),
2 ≤ n → G.Connected → IsVertexTransitive G → G.IsBipartite → 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 →
(dec (chartInstanceWord G adj ch ++ permsWord gens) = true ↔ IsRSG G) ∧
RunsWithin Computability.encodeBool M dec (chartInstanceWord G adj ch ++ permsWord gens)
((2 : ℝ) ^ ((C : ℝ) * Real.logb 2 n ^ (4 - ε)) * ((n : ℝ) + 1) ^ C)) →
ThreeSATInTimeExp (max (1 / 4) (1 - ε / 4)) := by sorry
end RSGPaper
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Read-back of RSGPaper.cor_5_4_transfer_v2
Fix a real number with . The theorem says that a certain hypothesis (H) implies a certain conclusion (T).
Words and encodings. A word is a finite list of bits, where means true and means false. means ones in a row, is the length of , and between words means concatenation.
- Frame. .
- Graph word. For a simple graph on , followed by the entries of the adjacency matrix, row by row. Entry is iff . The proof that adjacency is decidable can be any one; the word depends only on .
- Binary chart. A binary chart on consists of natural numbers and a bijection
So necessarily .
- Chart word. , followed by, for each vertex in order, the position bits and then the label bits of . A bit is iff that coordinate equals .
- Permutation word. For a list of permutations of , followed by each permutation matrix in turn. Each matrix has bits, row by row, and entry is iff .
- Instance word. The input word of an instance is
Notions used in (H).
- Automorphism group. is the subgroup of of permutations with .
- Index set. is the disjoint union of the vertices and the unordered edges. Automorphisms act on vertices directly and on edges by .
- Valid witness. An automorphism is valid at an index if , , and:
- if is a vertex: , and for every neighbour of ;
- if is an edge: and whenever .
- is an RSG. There is a map such that is valid at for every , and
- Vertex system / edge system. has a vertex system if the same holds with defined only on , with validity and the law above required only for vertices . Has an edge system is the same with in place of .
- Vertex-transitive. For all vertices there is with .
- No nontrivial module. A set is a module if every vertex outside is adjacent either to all of or to none of . The condition is that every module has or . The empty set and singletons are allowed.
- Allowed by the chart. A permutation is allowed by if there are and such that, in chart coordinates, acts as
- Machine model. A machine is a bundled deterministic finite multi-stack Turing machine (Mathlib's
TM2ComputableAux Bool Bool). Its input and output stack alphabets are identified with . - Running within a bound. " computes on within steps" means: there is a natural number such that , started with on its input stack, halts within at most steps, and its output stack then holds the one-bit word for ( for true, for false).
Hypothesis (H). There exist a natural number , a machine , and a function from words to with the following property.
For every , every simple graph on , every binary chart on , and every finite list of permutations of , suppose all of the following hold:
- ;
- is connected;
- is vertex-transitive;
- is bipartite (Mathlib's notion: has a proper 2-colouring);
- has no nontrivial module;
- is a -group: every element has order a power of ;
- the 4th term of the upper central series of is the whole group, so is nilpotent of class ;
- has a vertex system;
- has an edge system;
- every automorphism of is allowed by ;
- the subgroup of generated by equals .
Then, writing , two things hold:
- if and only if is an RSG;
- computes on within
steps.
Notes on (H).
- The bound uses , not . It is stated in terms of the number of vertices , not the input length.
- The bound is well defined. Since , , so the real power is an ordinary positive power, at least .
- Only promise instances are constrained. and are constrained only on words that arise from tuples satisfying 1–11. On every other word their behaviour, including whether halts, is unconstrained.
- If no graph qualifies. If no graph satisfies 1–11, (H) holds trivially.
- Same constant across . The single constant must work for all .
Notions used in (T).
- Formulas. A literal is a pair (variable number , required value ). A clause is an ordered triple of literals; repeats are allowed. A formula is a finite list of clauses, possibly empty.
- Formula encoding. concatenates, clause by clause and literal by literal, the bit followed by . Here is the binary expansion of , least significant bit first; is empty.
- Satisfiable. is satisfiable if some assignment makes, in every clause, at least one literal satisfy . The empty formula is satisfiable.
- The 3-SAT language. A word is in it iff for some satisfiable . In particular the empty word is in it.
- Size of a word.
- If encodes some formula, is the number of distinct variables of a chosen such plus its number of clauses. The choice is made by choice among the formulas encoding .
- Otherwise, .
Conclusion (T). Let
so when , and when .
Then there exist a natural number (independent of the in (H)), a machine , and a function from words to such that for every word both of the following hold:
- if and only if is in the 3-SAT language;
- computes on within
steps.
Here is a real power with base .
What (T) constrains. The 3-SAT machine is constrained on all words, including words that encode no formula.