VIG, EIG and RSG recognition are in
ProvedRSGPaper.prop_3_3_recognition_in_npThe languages of encodings of vertex involutive graphs, of edge involutive graphs, and of Riemannian symmetric graphs all belong to .
A certificate lists one permutation per vertex, per edge, or per index of ; checking orders, adjacency preservation, the local conditions and the Loos law is polynomial.
Formalization Note is the verifier definition of the published rsg_recognition_core module over Mathlib's multi-stack Turing machines; the RSG part coincides with the published theorem RSGRecognition.recognition_in_np.
import Definitions.Def_rsg_paper_complexity open RSGRecognition
namespace RSGPaper
theorem prop_3_3_recognition_in_np :
InNP vigLanguage ∧ InNP eigLanguage ∧ InNP rsgLanguage := by sorry
end RSGPaperRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Words are finite lists of bits. For a word , . For a simple graph on , its encoding is
where iff and are adjacent (adjacency matrix in row-major order). Define three languages:
- : words equal to for some and some vertex-involutive graph on ;
- : same with edge-involutive ;
- : same with an RSG.
Here is the group of all permutations of such that, for all vertices , and are adjacent exactly when and are adjacent; products are compositions, , and is the identity. is vertex involutive (VIG): every vertex has a vertex witness. A vertex witness at a vertex is an automorphism with , , , and for every neighbour of . is edge involutive (EIG): every edge has an edge witness. An edge witness at an edge is an automorphism with , , and, for all vertices with , and (i.e. swaps the two endpoints of ). is an RSG if there exists a map (one automorphism for every vertex and every edge ) such that each is a witness at (vertex witness for vertices, edge witness for edges), and for all indices (each independently a vertex or an edge)
An automorphism acts on vertices by and on (unordered) edges by ; write for the image of an index .
A language is in NP here if there exist a polynomial with natural-number coefficients and a function from words to Booleans that is computable in polynomial time by a deterministic finite multi-stack Turing machine (Mathlib's TM2 model, input given as the bit list itself, output the standard encoding of the Boolean), such that for every word :
The theorem asserts: , and are all in NP in this sense.