Recognition in a supplied binary chart in time
ProvedRSGPaper.thm_5_3_chart_recognitionFor edge-only and for full systems there is a constant and a deterministic algorithm with the following property. Given a connected graph on vertices together with a binary chart , it decides whether has a system of the given kind all of whose witnesses are allowed by the chart, within
steps.
A system has its witness group as a support, so this is recognition of a compatible support inside the chart. When the chart allows every automorphism of it is ordinary recognition.
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 .
import Definitions.Def_rsg_paper_complexity open RSGRecognition
namespace RSGPaper
theorem thm_5_3_chart_recognition (k : IndexKind) (hk : k ≠ IndexKind.vertex) :
∃ (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 →
(dec (chartInstanceWord G adj ch) = true ↔
∃ σ : IdxType G k → GraphAut G, IsSystem G k σ ∧ ∀ a, InChart ch (σ a).val) ∧
RunsWithin Computability.encodeBool M dec (chartInstanceWord G adj ch)
((2 : ℝ) ^ (C * ((ch.d + 1) ^ 2 * ch.r ^ 2)) * ((n : ℝ) + 1) ^ C) := by sorry
end RSGPaperRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix an index kind that is not "vertex" (so is "edge" or "full"). Then 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 , then, writing :
- if and only if there is a system of kind on with every () in the chart ;
- computes the one-bit output on within
steps (the exponent is a natural number).
Nothing is asserted about other input words. Note is forced by the chart.
is the group of permutations of the vertex set with for all (product = composition).
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 .
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.