Binary machine specifications for constructing and interpreting weighted marking models
DefinitionMetricMSO_CompiledMachinesautomatacomputational-complexity
One fixed machine per task compiles raw graph-and-formula inputs within a uniform width-parameterized bound. A single binary evaluator must compute the DP answer on arbitrary explicit marking models in polynomial time.
Definition code
import Mathlib
import Definitions.Def_MetricMSO_CompiledModel
import Definitions.Def_MetricMSO_encodeInput
import Definitions.Def_MetricMSO_IsCMSO1
import Definitions.Def_MetricMSO_IsFormulaIn
import Definitions.Def_PlantedSubgraphLD_tw
import Definitions.Def_HMBinPacking_OutputsWithin
namespace MetricMSO.Compiled
open HMBinPacking (OutputsWithin)
open PlantedSubgraphLD (tw)
/-- From the original task input alone, produce a binary marking model for its solution family. -/
def HasModelCompiler : Prop :=
∃ f : ℕ → ℕ, Computable f ∧ ∃ a : ℕ, ∀ task : Task,
∃ M : Turing.TM2ComputableAux Bool Bool,
∀ (I : Instance) (rV rE : ℕ) (φ : Formula) (w : Weights I rV rE),
NoMetric φ → IsFormulaIn φ rV rE →
∃ p : Model, Presents p task I φ rV rE w ∧
(p.encode task).length ≤
f (φ.length + tw I.G) * ((encodeInput task I φ rV rE w).length + 1)^a ∧
OutputsWithin M (encodeInput task I φ rV rE w) (p.encode task)
(f (φ.length + tw I.G) * ((encodeInput task I φ rV rE w).length + 1)^a)
/-- A fixed binary machine interprets the explicit tree, including all table arithmetic. -/
def HasModelEvaluator : Prop :=
∃ (E : Turing.TM2ComputableAux Bool Bool) (b d : ℕ), ∀ (task : Task) (p : Model),
OutputsWithin E (p.encode task) (p.answer task) (b * ((p.encode task).length + 1)^d)
end MetricMSO.Compiled
Source
Auxiliary constructions for Chakraborty, Ordyniak and Siebertz, Model Checking for Metric Extensions of Monadic Second-Order Logic, arXiv:2610.41974, Theorem 2.8, pp. 16-17.