Approximate Satisfiability and Equivalence

  • Authors:
  • Eldar Fischer;Frédéric Magniez;Michel de Rougemont

  • Affiliations:
  • eldar@cs.technion.ac.il;magniez@lri.fr;mdr@lri.fr

  • Venue:
  • SIAM Journal on Computing
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Inspired by property testing, for every $\varepsilon0$ we relax the classical satisfiability $U\models F$ between a finite structure $U$ of a class $\mathbf{K}$ and a formula $F$, to a notion of $\varepsilon$-satisfiability $U\models_{\varepsilon}F$, and relax the classical equivalence $F_1\equiv F_2$ between two formulas $F_1$ and $F_2$ to $\varepsilon$-equivalence $F_1\equiv_{\varepsilon}F_2$. We consider strings and trees with the norm of the edit distance with moves, and show that, unlike their exact counterparts, these approximate notions can be efficiently decided. We use a statistical embedding of words (resp., trees) into $\ell_1$, which generalizes the original Parikh mapping, obtained by sampling $O(f(\varepsilon))$ finite samples of the words (resp., trees). We give a tester for equality and membership in any regular language, in time independent of the size of the structure. Using our geometrical embedding, we can also test the equivalence between two regular properties over words, defined by regular expressions or monadic second-order formulas. Our equivalence tester has polynomial time complexity in the size of the automaton (or regular expression), for any fixed $\varepsilon$, whereas the exact version of the equivalence problem is PSPACE-complete. We also prove versions of some of these results for trees, but with worse time complexity. Last, we extend the geometric embedding, and hence the testing algorithms, to infinite regular languages and to context-free languages. For context-free languages, the equivalence tester has an exponential time complexity for any fixed $\varepsilon$, whereas the exact version is not even decidable.