Skip to content

Ultrametric Convergence of Guarded Automata and Applications to Structural Input Validation

Jul 2026 · arXiv.org · Vol abs/2607.19065 · 1 citation · 27 references
Computer Science

TL;DR

This work equips language-equivalence classes of deterministic finite automata with a distinguishing-word ultrametric and identifies the resulting space isometrically with the regular languages, and outlines a practical WAF pipeline combining learned grammar models, finite-state construction, and \(O(1)\)-memory runtime validation.

Abstract

We equip language-equivalence classes of deterministic finite automata with a distinguishing-word ultrametric and identify the resulting space isometrically with the regular languages. This space is incomplete, while its metric completion is naturally identified with the complete ultrametric space of all formal languages. Guarded language operators induce contractions on the automaton space, and their Picard iterates converge in the completion to the unique language fixed point, which is represented by a finite automaton exactly when it is regular. Motivated by structural input validation, we use this framework to construct depth-capped deterministic finite automata with certified finite-depth correctness. These automata provide efficient pre-filters for nested input structures, such as parenthesised SQL parameters, while avoiding the backtracking risks of regular-expression engines and the runtime overhead of full context-free parsers. We also outline a practical WAF pipeline combining learned grammar models, finite-state construction, and \(O(1)\)-memory runtime validation.

View source

Similar papers

#edge computing Preprint Sep 2026

Automatic constraints with few subpowers and graphoid recognition

For graphoid automata, these results give polynomial-time recognition without a graph-width restriction, effective boundary composition, and comparison of finite graph relations, and the quadratic boundary bounds are optimal in the worst case.

Antonios Kalampakas · 0 citations
Preprint Aug 2026

Trie Automata for Constrained Decoding over Large Finite Sets

The trie automaton is introduced, a specialized mechanism that exploits finite-set structure via Aho-Corasick multi-pattern matching to precompute per-node token masks, and achieves 7X faster per-step valid-token computation compared to XGrammar and 2.5X faster compilation at K>= 300.

Xingzi Xu, Karim Bouyarmane · 0 citations

Arbitrary-arity Tree Automata for QCTL 1

A new class of automata running on infinite trees of arbitrary arity is introduced, and several algorithms to perform classical operations are developed for those automata and precisely characterise their complexities.

François Laroussinie, Nicolas Markey · 0 citations
Preprint Sep 2026

Mining DTA with SMT by Exploiting Simple Elementary Language and Timed Augmented Prefix Acceptor

Timed automata, which extend finite state automata by introducing clock variables, serve as a popular formalism for specifying and analyzing the timed behaviors of real-time systems. Extracting the timed behaviors of a black-box, safety-critical system is crucial for designing and analyzing its real-time requirements,...

Zi-Ran Wang, Jie An, Nai-Jun Zhan · 0 citations
2026

Certified Infinite Descent Criteria in Isabelle/HOL

A reusable, locale-based framework of sloped graphs is developed that defines Infinite Descent at an abstract level, independently of any concrete graph encoding, and formalize tool-facing sufficient criteria, prove their soundness, and certify incompleteness where appropriate via verified counterexamples.

Jamie Wright, L. Cohen, R. Rowe et al. · 1 citation
Preprint Aug 2026

Translation of Regular Expression with Lookahead into Finite State Automaton

W weighted regular expressions are considered, which enable us to calculate submatch addressing and a transformation from a weighted REwLA of size $m$ to a weighted nondeterministic finite automaton of $\mr{O}(2^{2^m})$ states is proposed.

Akimasa Morihata · 2 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.