Well-founded semantics for Boolean grammars

  • Authors:
  • Vassilis Kountouriotis;Christos Nomikos;Panos Rondogiannis

  • Affiliations:
  • Department of Informatics & Telecommunications, University of Athens, Panepistimiopolis, 157 84 Athens, Greece;Department of Computer Science, University of Ioannina, P.O. Box 1186, 45 110 Ioannina, Greece;Department of Informatics & Telecommunications, University of Athens, Panepistimiopolis, 157 84 Athens, Greece

  • Venue:
  • Information and Computation
  • Year:
  • 2009

Quantified Score

Hi-index 0.01

Visualization

Abstract

Boolean grammars [A. Okhotin, Boolean grammars, Information and Computation 194 (1) (2004) 19-48] are a promising extension of context-free grammars that supports conjunction and negation in rule bodies. In this paper, we give a novel semantics for Boolean grammars which applies to all such grammars, independently of their syntax. The key idea of our proposal comes from the area of negation in logic programming, and in particular from the so-called well-founded semantics which is widely accepted in this area to be the ''correct'' approach to negation. We show that for every Boolean grammar there exists a distinguished (three-valued) interpretation of the non-terminal symbols, which satisfies all the rules of the grammar and at the same time is the least fixed-point of an operator associated with the grammar. Then, we demonstrate that every Boolean grammar can be transformed into an equivalent (under the new semantics) grammar in normal form. Based on this normal form, we propose an O(n^3) algorithm for parsing that applies to any such normalized Boolean grammar. In summary, the main contribution of this paper is to provide a semantics which applies to all Boolean grammars while at the same time retaining the complexity of parsing associated with this type of grammars.