One polynomial-time binary Turing machine extracts the graph from all six CMSO task inputs
ProvedMetricMSO.extract_graph_machinecomputational-complexitygraph-theory
There is a single binary stack Turing machine and a fixed polynomial such that on every well-encoded input to any of the six tasks it outputs the graph's self-delimiting vertex count followed by its complete row-major adjacency matrix. It halts within actual machine steps, including on a graph with no vertices.
Preamble
import Mathlib import Definitions.Def_MetricMSO_encodeInput import Definitions.Def_HMBinPacking_OutputsWithin open HMBinPacking (OutputsWithin)
Formal statement
namespace MetricMSO
theorem extract_graph_machine :
∃ (M : Turing.TM2ComputableAux Bool Bool) (p : Polynomial ℕ), ∀ (task : Task) (I : Instance)
(φ : Formula) (rV rE : ℕ) (w : Weights I rV rE),
OutputsWithin M (encodeInput task I φ rV rE w) (encodeGraph I.G)
(p.eval (encodeInput task I φ rV rE w).length + 1) := by sorry
end MetricMSOSource
Chakraborty, Ordyniak and Siebertz, Model Checking for Metric Extensions of Monadic Second-Order Logic, arXiv:2610.41974, Definition 2.7 and Theorem 2.8, pp. 16-17. Auxiliary bit-complexity lemma.