Quasi-polynomial RSG recognition in charts containing
ProvedRSGPaper.cor_5_4_chart_upper_boundThere is a constant and a deterministic algorithm which, given a connected graph on vertices together with a binary chart that allows every automorphism of , decides whether is a Riemannian symmetric graph within
steps.
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 . The hypotheses of connectivity and are those of Theorem 5.3, on which the corollary rests.
import Definitions.Def_rsg_paper_complexity import Mathlib.Analysis.SpecialFunctions.Log.Base open RSGRecognition
namespace RSGPaper
theorem cor_5_4_chart_upper_bound :
∃ (C : ℕ) (M : Turing.TM2ComputableAux Bool Bool) (dec : Word → Bool),
∀ (n : ℕ) (G : SimpleGraph (Fin n)) (adj : DecidableRel G.Adj) (ch : BinaryChart (Fin n)),
G.Connected → 2 ≤ n → (∀ g ∈ GraphAut G, InChart ch g) →
(dec (chartInstanceWord G adj ch) = true ↔ IsRSG G) ∧
RunsWithin Computability.encodeBool M dec (chartInstanceWord G adj ch)
((2 : ℝ) ^ ((C : ℝ) * Real.logb 2 n ^ 4)) := by sorry
end RSGPaperRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
There exist a natural number , a machine and a function from words to Booleans such that for every , every simple graph on (with any adjacency-decision instance) and every binary chart on , if is connected, , and every automorphism of is in the chart , then, writing :
- if and only if is an RSG;
- computes the one-bit output on within
steps (real logarithm to base of , raised to the fourth power).
Nothing is asserted about other input words. 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 .
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 .
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 instance encoding. For a chart on , followed, for in order, by the bits of then the bits of (bit iff the coordinate is ). The instance word is .
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.