% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % File: quantifi.dtr % % Purpose: first order quantification on attribute sequences % % Author: Gerald Gazdar, 24 August 1989 % % Email: geraldg@cogs.sussex.ac.uk % % Address: COGS, Sussex University, Brighton BN1 9QH, UK % % Documentation: see paper cited below % % Related files: boolean1.dtr, boolean2.dtr % % Version: 2.01 % % Copyright (c) University of Sussex 1989. All rights reserved. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % Johan van Benthem's (1986) "Semantic automata" in his Essays in Logical % Semantics, Dordrecht: Reidel, 151-176, is highly pertinent to this example % file. He shows, inter alia, that all first order definable quantifiers % are computable by finite state machines. The examples given below are % all first order, but, in the light of van Benthem's paper, readers may % care to try their hands at DATR axiom sets for 'most', 'an even number of', % 'at least one third' and 'at least two thirds'. Q: == yes == no == == no == == == no % = "at least one" == yes == == yes == no == == "Ann:<>" "Beryl:<>" "Carl:<>" "Dana:<>" "Eric:<>" == Beryl:<> Carl:<> Dana:<> Eric:<>> == Beryl:<> Carl:<> Dana:<> Eric:<>> == Beryl:<> Carl:<> Dana:<> Eric:<>> == Beryl:<> Carl:<> Dana:<> Eric:<>>. Is: == <"<>"> == == "". Ann: <> == Is == yes == no == yes == no == 'Ann '. % The trailing space is to format answers. Beryl: <> == Is == yes == no == no == no == 'Beryl '. Carl: <> == Is == yes == no == no == no == 'Carl '. Dana: <> == Is == yes == yes == yes == no == 'Dana '. Eric: <> == Is == yes == no == no == no == 'Eric '. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % Some theorems: % % Q: = yes. % Q: = no. % Q: = no. % Q: = no. % % Q: = no. % Q: = yes. % Q: = no. % Q: = no. % % Q: = yes. % Q: = yes. % Q: = yes. % Q: = no. % % Q: = no. % Q: = no. % Q: = no. % Q: = yes. % % Q: = Ann Beryl Carl Dana Eric. % Q: = Dana . % Q: = Ann Dana . % Q: = . % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % # show . # hide Is Ann Beryl Carl Dana Eric. % The next line is the Revision Control System Id: do not delete it. % $Id: archive.dtr,v 1.1 1997/04/09 20:40:33 root Exp $