https://arxiv.org/api/Zdb1/mZpOhxnNzpdV7d6Tr+VRfc 2026-07-18T22:05:10Z 6096 15 15 http://arxiv.org/abs/2602.10991v4 Implementation of Polynomial NP-Complete Algorithms Based on the NP Verifier Simulation Framework 2026-07-12T07:09:16Z While prior work established a verifier-based polynomial-time framework for NP, explicit deterministic machines for concrete NP-complete problems have remained elusive. In this paper, we construct fully specified deterministic certificate-oblivious verifier Turing machines for SAT and Subset-Sum within an improved NP verifier simulation framework. A key contribution of this work is the development of a functional implementation that bridges the gap between theoretical proofs and executable software. Our improved feasible-graph construction yields a theoretical reduction in the asymptotic polynomial degree, while enhanced edge extension mechanisms significantly improve practical execution speed. We show that these machines generate valid witnesses, extending the framework to deterministic FNP computation without increasing complexity. The complete Python implementation behaves in accordance with the predicted polynomial-time bounds, and the source code, along with sample instances, is available in a public online repository. 2026-02-11T16:17:36Z A reference implementation is available at https://github.com/changryeol-hub/poly-np-sim. The verifier Turing machines have been updated to certificate-oblivious Turing machines, following the update to the original framework Changryeol Lee Independent Researcher http://arxiv.org/abs/2607.11951v1 GRID: Grammar-Railed Decoding for Enterprise SQL Generation 2026-07-11T19:25:23Z Large language models can write SQL, but enterprise deployment demands more than plausible text: outputs must be syntactically valid, must respect per-role and per-schema policy, must carry provable (not best-effort) guarantees, must not slow down as generations grow, and must leave a compliance-grade record of every decision. We present GRID (Grammar-Railed Decoding), a grammar-constrained decoding engine that keys exact next-token masks on parser configurations (lexer scan state x LALR(1) stack) rather than on token sequences, and uses the incrementally advanced LALR(1) parser itself as a viable-prefix oracle. LLM tokens are bridged to grammar terminals by a byte-level trie walk with a context-independent/context-dependent split that makes cache-key soundness hold by construction. Role-based access control is compiled into the language: role projections subset the grammar's productions and schema lexicons restrict identifier terminals, so forbidden verbs and identifiers are unreachable at mask level. Four guarantees (soundness, completeness, termination, and near-constant per-token cost) are stated with explicit preconditions and each paired with a test or benchmark. Rust kernels bring the per-token mask to a 3.6-6.7 us median, ahead of llguidance at p50 and p90 on two tokenizers with zero false rejects; per-token guard cost is position-flat at n=16,000. On Spider, constrained decoding is worth +13 execution-accuracy points at 0.5B, and one checker-guided repair pass over the provably mask-unenforceable residue (column-level policy) lifts a 7B model to 94.5% executable. A hash-chained per-token audit trail replays bit-identically with 100% tamper detection. We state plainly what the mask cannot do (distribution faithfulness, column-level RBAC, non-LALR(1) languages) and where measured cost remains. 2026-07-11T19:25:23Z 18 pages, 3 figures. Extended version; a condensed version is under review at KDD 2027 Mohsen Arjmandi http://arxiv.org/abs/2607.10318v1 Proceedings of the 21st Workshop on Logical Frameworks and Meta Languages: Theory and Practice 2026-07-11T13:47:08Z This volume of the Electronic Proceedings in Theoretical Computer Science (EPTCS) includes the contributed papers presented at the 21st International Workshop on Logical Frameworks and Meta-Languages: Theory and Practice (LFMTP 2026), in Lisbon, Portugal, on July 24th, 2026, at the Federated Logic Conference (FLoC 2026) as a satellite event of the 11th International Conference on Formal Structures for Computation and Deduction (FSCD 2026). The program committee for this edition of LFMTP was chaired by Olivier Hermant and Sophie Tourret. More information about LFMTP can be found on https://lfmtp.org. 2026-07-11T13:47:08Z EPTCS 448, 2026 Sophie Tourret INRIA and MPI for Informatics Olivier Hermant Mines Paris - PSL 10.4204/EPTCS.448 http://arxiv.org/abs/2607.06894v2 A simple algorithmic framework for disambiguation of finite automata 2026-07-11T11:49:47Z We study the task of disambiguation of finite state automata, namely, converting an automaton into an equivalent, unambiguous one. We do this by developing a novel and simple algorithmic framework that generalizes the subset construction for determinization, and that satisfies some desirable properties: (1) it preserves the original automaton if it was already unambiguous, (2) it computes the successor states on-the-fly and (3) computes each new state in polynomial time--this last point is crucial as it guarantees that the running time is polynomial in the size of the output automaton. Then, we show how to apply this framework for partial disambiguation: by changing the criterion that builds the new states, we develop algorithms for different levels of ambiguity, namely, finitely ambiguous, and polynomially ambiguous automata. These algorithms also satisfy condition (1) for their respective levels, and also (2) and (3). Finally, we show that the disambiguation framework can easily be extended to other models of automata like weighted automata. 2026-07-08T01:37:53Z ESA 2026 (Track S) Mauricio Cari Martín Muñoz Cristian Riveros http://arxiv.org/abs/2507.11873v3 Syntax Repair as Language Intersection 2026-07-10T22:31:03Z Syntax repair can be viewed as a question about finite languages: given an invalid string and a grammar, which nearby strings are syntactically valid? We formalize bounded syntax repair as the intersection of a context-free language with an acyclic Levenshtein automaton, obtaining a finite language that contains all and only repairs within a chosen edit radius. This approach leverages the classic Bar-Hillel construction for CFL-regular intersection, and specializes it to acyclic automata, and yielding a highly parallel decision procedure for deciding repairability. We then show how Brzozowski derivatives support fast incremental enumeration from this intersection, separating exact admissibility from probabilistic ranking. Experiments on Python syntax errors demonstrate the resulting candidate spaces are practical to construct and substantially improve repair accuracy when used as a grammar-constrained search space. 2025-07-16T03:35:32Z Breandan Considine http://arxiv.org/abs/2607.09558v1 Solving the Reachability Problem for Branching Vector Addition Systems via Semilinear Inductive Invariants 2026-07-10T16:03:19Z In this paper, we solve the reachability problem for branching vector addition systems (BVAS), a long standing open problem. Our approach is based on semilinear inductive invariants. More precisely, we prove that if a configuration of a BVAS is not reachable, then there exists an inductive invariant, given as a semilinear set, that does not contain this configuration. Based on this property, we deduce a very simple (enumerative) algorithm solving the reachability problem for BVAS. 2026-07-10T16:03:19Z Clotilde Bizière Jérôme Leroux Grégoire Sutre http://arxiv.org/abs/2607.08692v1 From Rules to Nash Equilibria: A Lean 4 Case Study in Game-Theoretic Analysis of a Competitive Trading Card Game 2026-07-09T16:52:05Z We present a metagame analysis of the competitive Pokemon Trading Card Game, machine-checked in Lean 4 over real tournament data. The headline game-theoretic results, including Nash equilibrium, replicator dynamics, and the matrix-level type-bridge computation, rely on native_decide, which trusts Lean's compiler rather than its kernel; the trust boundary is made explicit. The artifact spans approximately 31,900 lines, 87 files, and 2,627 theorems, of which roughly 200 directly verify empirical claims, with no sorry, admit, or custom axioms. Analyzing Trainer Hill data from January to February 2026 for events with at least 50 players, over 14 archetypes and their full pairwise matchup matrix, we prove a popularity paradox: the most played deck, Dragapult, with 15.5% metagame share, has only 46.7% expected win rate, while Grimmsnarl, with 5.1% share, achieves 52.7%. A machine-checked Nash equilibrium of the raw game assigns Dragapult 0% weight; exhaustive enumeration over all nonempty support subsets confirms a unique symmetric Nash equilibrium of the constant-sum symmetrization with seven-deck support. Against this equilibrium mix, Dragapult falls 40.4 permil below the game value. Single-step replicator dynamics indicate downward fitness pressure on Dragapult, upward pressure on Grimmsnarl, and strongest extinction pressure on Alakazam. A 10,000-iteration sensitivity analysis confirms qualitative stability, with core support decks appearing in more than 96% of resampled equilibria. The primary contribution is methodological: a reproducible case study showing how formal verification can turn qualitative metagame narratives into machine-checkable, re-runnable strategic science. 2026-07-09T16:52:05Z 13 pages, 3 figures, 10 tables. Lean 4 artifact with 87 files, approximately 31,900 lines, and 2,627 theorems; no sorry, admit, or custom axioms Arthur F. Ramos Tulio Soria http://arxiv.org/abs/2605.21681v2 The Finite Length Property of the Rado Graph and Friends 2026-07-09T14:17:26Z An infinite structure has the finite length property (over a given field) if, for each of its finite powers, chains of equivariant subspaces in the corresponding free vector space are bounded in length. Prior work showed that the countable pure set and the countable dense linear order without endpoints have this property. We generalise these results to (a) any structure approximated by finite substructures with few orbits, provided the field is of characteristic zero, and (b) any Fraïssé limit with free amalgamation in a finite vocabulary consisting of unary and binary relations, possibly expanded with a generic total order. As a special case, we deduce the finite length property of the Rado graph using both methods. We also describe some connections with function spaces, weighted register automata, and orbit-finite systems of linear equations. 2026-05-20T19:38:13Z 27 pages in the proceedings of LICS 2026, plus appendix Jingjie Yang Mikołaj Bojańczyk Bartek Klin 10.4230/LIPIcs.LICS.2026.82 http://arxiv.org/abs/2507.15733v3 The theory of reachability in trace-pushdown systems 2026-07-09T09:35:00Z We consider pushdown systems that store, instead of a single word, a Mazurkiewicz trace on its stack. These systems are special cases of valence automata over graph monoids and subsume multi-stack systems. We identify a class of such systems that allow to decide the first-order theory of their configuration graph with reachability. This result complements results by D'Osualdo, Meyer, and Zetzsche (namely the decidability for arbitrary pushdown systems under a severe restriction on the dependence alphabet). 2025-07-21T15:41:32Z Dietrich Kuske http://arxiv.org/abs/2607.08181v1 Finite Convergence of the Modal Mu-Calculus on Almost-Periodic Words 2026-07-09T07:28:15Z A formula of the modal mu-calculus enjoys finite convergence on a structure if there is some finite unfolding of the formula that defines the same set. A structure enjoys finite convergence if all formulas of the mu-calculus enjoy finite convergence on said structure. It is known that there are words that are not ultimately periodic, but have finite convergence. An almost-periodic word w is one in which each finite word v either appears only finitely often, or within each factor of some length that only depends only on w and v. It is immediate that words that have finite convergence must be almost periodic. In this paper we show the converse, namely that all almost-periodic words have finite convergence. This characterizes finite convergence on infinite words, and also re-proves a decidability result due to Semenov ('84). 2026-07-09T07:28:15Z Fabian Lehr Florian Bruse http://arxiv.org/abs/2509.14372v2 On the Secret Protection Problem in Discrete-Event Systems 2026-07-08T18:20:31Z The secret protection problem (SPP) seeks to synthesize a minimum-cost policy ensuring that every execution from an initial state to a secret state includes a sufficient number of protected events. The problem is solvable in polynomial time under the assumption that transitions are uniquely labeled. When this assumption is relaxed, the problem becomes weakly \NP-hard. We first strengthen the result by showing that the problem is strongly \NP-hard even if all parameters are restricted to binary values. We then propose a formulation of SPP as an integer linear programming (ILP) problem, and empirically evaluate the scalability and effectiveness of the ILP-based approach on relatively large systems. Finally, we examine the complexity of a variant of SPP in which only distinct protected events contribute to clearance and show that its decision version is $Σ_{2}^{P}$-complete. 2025-09-17T19:17:14Z Tomáš Masopust Jakub Večeřa http://arxiv.org/abs/2607.08795v1 Intrinsic Redundancy and Local Robustness in Finite $β$-Expansion Systems 2026-07-08T12:34:31Z Redundancy in non-standard numeration systems is often associated with robustness, but its practical value in finite digital arithmetic depends on how representation, storage, and repair are defined. We study intrinsic redundancy in finite beta-expansion systems using a bounded-window model that separates semantic non-uniqueness from canonical codebook admissibility. The model distinguishes arithmetic canonicalization from corruption repair and evaluates structural detectability, value-preserving repair of the observed state, and survival of the original value. For the golden-ratio system and related multinacci bases, we prove that a genuine single-digit corruption in a canonically injective finite codebook cannot be semantically recovered by exact repair without external information. Semantic survival under exact structural repair is possible only for localized multi-digit perturbations corresponding to algebraic rewrite identities, such as the equivalence of 100 and 011. Experiments comparing standard binary, signed-digit non-adjacent form, and multinacci systems quantify trade-offs among codebook sparsity, fault visibility, canonicalization cost, residual error, and boundary loss. The results show that intrinsic beta-redundancy is a constrained-language resource for structural digital integrity rather than a substitute for classical error-control redundancy. 2026-07-08T12:34:31Z 73 pages, 12 figures. Code and experiment scripts are available at https://doi.org/10.5281/zenodo.21140212 Adilbek Taizhanov Miras Seilkhan http://arxiv.org/abs/2604.10124v7 On a Constraint on Invariant Measures of Certain Cellular Automata 2026-07-08T11:59:48Z In [7], a constraint on invariant measures of bi-permutative cellular automata has been observed: fixed values at the positive indices determine almost-surely a uniform conditional probability on the subset of values of positive conditional probability at the zero index. When the alphabet is a finite group and the automaton is multiplication of two neighbors, that set is in fact a coset of some subgroup. In the present paper, we strengthen the formulations in [7] and investigate further the implications of this constraint. In the finite group case mentioned above, relations between some attributes of the group structure and the invariant measures are examined. We also inspect a factor, with respect to the shift, that this constraint induces, and analyze the special case in which it has zero measure-theoretical entropy, thus observing an interplay between existence of zero entropy invariant measures on that factor and existence of positive entropy measures corresponding to them on the original system. Then, we leave the setting of bi-permutative cellular automata and generalize our results to a wider class which we named RLP subshifts. The peculiar situation is that although this class may be much larger than the class of bi-permutative cellular automata, we were able to prove only for essentially one other example - the symbolic coding of the times 2 times 3 system on the circle (and its generalizations) - that it belongs to it. 2026-04-11T09:38:43Z Matan Tal http://arxiv.org/abs/2607.05701v2 Extending the Ginsburg-Spanier Theorem to Functions and Mixed Arithmetic 2026-07-08T03:30:15Z We study sets and functions definable in the three additive theories $\FO(\Z,+,\leq)$, $\FO(\R,+,\leq)$, and $\FO(\R,\Z,+,\leq)$. The Ginsburg--Spanier theorem~\cite{GS66} characterizes $\FO(\Z,+,\leq)$-definable sets as exactly the semi-linear sets. We extend this characterization in two directions. First, we show that $\FO(\Z,+,\leq)$-definable \emph{functions} are exactly the piecewise linear functions (Theorem~\ref{thm:integer}), and that $\FO(\R,+,\leq)$-definable functions are also exactly the piecewise linear functions (Theorem~\ref{thm:real}). The proofs are direct algebraic arguments using only a stability lemma and the Ginsburg--Spanier theorem. Second, we introduce \emph{semi-polinear sets} as the $\FO(\R,\Z,+,\leq)$ analogue of semi-linear sets, and prove that the class of mixed-linear sets and the class of semi-polinear sets coincide (Theorem~\ref{thm:mixed-sets}). We further show that $\FO(\R,\Z,+,\leq)$-definable functions are exactly the \emph{piecewise-simple} functions (Theorem~\ref{thm:mixed-functions}), a new class of functions that are linear in the integer part and in the fractional part of the argument, but with potentially different linear coefficients for each. These algebraic characterizations unify the three theories in a single framework, and the proofs are purely algebraic, without reference to automata or machines. 2026-07-06T23:47:19Z 12 pages, 1 table LMCS format Alain Finkel Jérôme Leroux http://arxiv.org/abs/2307.06777v4 Deciding Conjugacy of a Rational Relation 2026-07-07T17:37:09Z The study of rational relations is fundamental to the study of formal languages and automata theory. A rational relation is conjugate if each pair of words in the relation is conjugate (or cyclic shifts of each other). The notion of conjugacy has been central in addressing many important algorithmic questions about rational relations. We address the problem of checking whether a rational relation is conjugate and show that it is decidable. Towards our decision procedure, we establish a new result that is of independent interest to word combinatorics. We identify a necessary and sufficient condition for the set of pairs given by $(a_0,b_0) G_1^* (a_1,b_1) \cdots G_k^*(a_k,b_k), k \geq 0$ to be conjugate, where $G_i$ is a (not necessarily rational) conjugate relation and $a_i, b_i$ are arbitrary words. This is similar to, and a nontrivial generalisation of, a characterisation given by Lyndon and Schützenberger in 1962 for the conjugacy of a pair of words. Furthermore, our condition can be evaluated in polynomial time, yielding a PTIME procedure for deciding the conjugacy of a rational relation given as a sumfree expression. Since any arbitrary rational expression can be expressed as a sum of sumfree expressions (with an exponential blow-up), decidability of conjugacy of rational relations follows. 2023-07-13T14:34:18Z C. Aiswarya Amaldev Manuel Saina Sunny