A finite tree-automaton dynamic program returns the optimum signed cost and its exact multiplicity
ProvedBinaryTreeAutomata.Automaton.weighted_optimumcomputational-complexitygraph-theory
Give each Boolean leaf choice an integer primary cost and a natural secondary key, both additive across disjoint subtrees. If is the attained minimum cost of an accepted marking, the materialized dynamic program returns , the exact number of accepted markings of cost , and the largest secondary key among them.
Preamble
import Mathlib import Definitions.Def_BinaryTreeAutomata_WeightedMarkings import Definitions.Def_BinaryTreeAutomata_Optimum open BinaryTreeAutomata
Formal statement
namespace BinaryTreeAutomata.Automaton
theorem weighted_optimum {L B : Type} (A : Automaton (L × Bool) B)
(w : L → Bool → ℤ × ℕ) (t : Term L B) (c : ℤ)
(lower : ∀ z : t.Marking, A.accept (A.eval (t.marked z)) = true → c ≤ (t.scores w z).1)
(hit : ∃ z : t.Marking, A.accept (A.eval (t.marked z)) = true ∧ (t.scores w z).1 = c) :
let best := Finset.univ.filter (fun z : t.Marking =>
A.accept (A.eval (t.marked z)) = true ∧ (t.scores w z).1 = c)
A.weightedTotal (fun a b => Optimum.value (w a b).1 1 (w a b).2) t =
Optimum.value c best.card (best.sup fun z => (t.scores w z).2) := by sorry
end BinaryTreeAutomata.AutomatonSource
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.