A uniform binary Turing reduction from CMSO decision to exact counting
ProvedMetricMSO.decide_machine_of_countcomputational-complexitygraph-theory
Given any binary multitape stack Turing machine , one can construct a single decision machine . Whenever produces the correct count on a well-scoped instance in steps, produces the correct decision on the same instance within steps, where is the length of the decision input. The formula and graph need not be fixed when is chosen.
Preamble
import Mathlib import Definitions.Def_MetricMSO_encodeInput import Definitions.Def_MetricMSO_IsFormulaIn import Definitions.Def_HMBinPacking_OutputsWithin open HMBinPacking (OutputsWithin)
Formal statement
namespace MetricMSO
theorem decide_machine_of_count (C : Turing.TM2ComputableAux Bool Bool) :
∃ D : Turing.TM2ComputableAux Bool Bool, ∀ (I : Instance) (rV rE : ℕ) (φ : Formula) (w : Weights I rV rE),
IsFormulaIn φ rV rE → ∀ (out : List Bool) (t : ℕ),
CorrectAnswer .count I φ rV rE w out →
OutputsWithin C (encodeInput .count I φ rV rE w) out t →
∃ ans, CorrectAnswer .decide I φ rV rE w ans ∧
OutputsWithin D (encodeInput .decide I φ rV rE w) ans
(t + 40 * ((encodeInput .decide I φ rV rE w).length + 1)^2) := 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.