The formal and computational theory of constraint

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

TheFormalandComputationalTheoryofConstraintLogicGrammarsLuisDamasNelmaMoreiraUniversityofPortoGiovanniB.VarileCommissionoftheEuropeanCommunitiesTheframeworkpresentedinthischapterassumesthatanygrammarisaparticularfirstordertheorywithequality.Wewillturnourattentiontothosefirstordertheoriesadmittingcompletemodelsandextendthemtorecursivelydefinedrelations.Logicprogrammingisanidealparadigmforsuchaframeworkinthatitsupportsadirectmappingbetweengrammars,seenasfirstorderlogictheories,andthefirstordertheoryoftheirimplementationandatthesametimeprovideaformallysoundandefficientcomputationalscheme.Itisalsoparticularlywellsuitedtosimultaneouslysatisfythemainre-quirementsputoncomputationalgrammarformalisms,namelyexpressivity,formalsoundnessandcomputationaltractability.Aswewillsee,theframeworkpresentedinthischapterisnotonlycom-patiblewiththeunificationgrammartraditionbutitalsoconstitutesasim-pleframeworkforextendingthenotionofunificationtocomplexconstraintresolution.Atthesametimeahighdegreeofdeclarativenessisachievedbyavoidinganyreferencetoanoperationlikeunification.Themotivationsforthechoiceoftheparticularfamilyoffirstordertheorieswillbecomeapparentintherestofthischapter.Themainreasonsderivesfromthefactthatrestrictingtheformalanaly-sistothestaticpropertiesofformalismsdoesnotdojusticetothecomputa-tionalcomplexityofmodernlinguisticframeworks.Afinergrainedanalysisoftheformalandcomputationalpropertiesofformalismsthandecidability,formalcomplexityandmodeltheoreticproperties,shedsadifferentlighton1theproblemmotivatingchoiceswhichwouldotherwiseappeartobearbi-trary.Itisnotsufficienttodesignformalismswithasimpleandsounddenota-tionalsemanticsandappropriateformalcomplexitycharacteristics.Rather,itisnecessarytoprovidesoundandadequateformalprocessingschemesforsuchformalisms,lackingwhichthemainchallengesfacingmoderngram-maticalformalismdesignarenotaddressed.Takingthispointfurther,weclaimthatthetheoryofagrammarfor-malismanditsformalprocessingmodelconstituteahomogeneousandin-tegratedwholeandthatthepracticeofrelegatingprocessingissuestolowlevelimplementationdecisionshad,andhas,nefastconsequences,notleastpreventingtherightquestionstobeaddressed.Thedeductiveprocessbywhichafactisprovenoranobjectcomputedmustbethesubjectoftheoreticalinquiryjustas,andtogetherwith,thefactorobjectandtheirdescriptions.Theanalogywithlogicprogrammingisparadigmatic:definingthesyn-taxand(static)semanticsofalogicprogrammingschemeisanessentialfirststep.Butitalsoconstitutesarelativelytrivialtaskcomparedwithdefinitionofaformalprocessingschemewiththenecessarycomputationalcharacteristics.Ourgoalistoshowhowandunderwhatcircumstanceswecanensureasimpleandnaturalrelationbetweengrammarswithcomplexconstraintexpressionseenasfirstordertheoriesandthelogicprogrammingparadigm,inparticularaversionofConstraintLogicProgrammingoverthedomainofrationaltrees.Thischapterisorganizedasfollows:inSection1wewillpresentthefamilyoffirstordertheoriesuponwhichConstraintLogicGrammars,orCLGs,arebased,namelythosehavingthecompletealgebraRTofrationaltreesastheircanonicalmodel.Afterhavingjustifiedthischoice,wewillelaborateonthebasiccharac-teristicsofthesefirstordertheories,extendthemwithrecursiverelationsandrelatethemtoCLP(RT)1.InSection2wewillshowthatthesetheoriesrelateinanaturalwaytofeaturelogicsandinSection3howtoextendtermunificationtoconstraintresolutioninasimpleway.InSection4wewillpresentCLGscomplexconstraintsolveranditscompleteconstraintrewritingsystem.1ConstraintLogicProgrammingoverRT[JL88].2ThedescriptionoftheformalprocessingmodelofCLGswillbecom-pletedinSection5wherewedefinetheCLGmodelseenasaninstantiationoftheconstraintlogicprogrammingschemeforthesymbolicdomainofra-tionaltrees.1TheFirstOrderTheoryofCLGCLGgrammarsarefirstordertheories,i.e.objectoffirstorderlogicconsist-ingofalphabetsoflogicalandnonlogicalsymbolsincludingtheequality,theusuallogicalaxiomsandinferencerules,andanumberofnon-logicalaxioms2.Theroleofthenonlogicalaxiomsistwofold:forone,anumberoftheseaxiomswillrestrictthepossiblemodelsforourtheoriesinaconvenientwayasexplainedbelow.Thesecondroleoftheseaxiomsistorepresentgrammarrules,lexicalobjectsandlinguisticprinciples.Inotherwordstheycharacterizetheinter-pretationswhicharewellformedwithrespecttoagivengrammar.AllthetheoriesconsideredherewillbeextensionsoftheorieshavingascanonicalmodelsthecompletealgebraRTofrationaltrees.Theextensionareneededtoaccountforrecursivedefinitionswithinthetheory,asexplainedbelow.NogeneralityislostbymakingthischoiceaswewillseeinSection2.WewillfirstproceedtodefinethedenotingobjectsofaCLGtheory,i.e.theterms.Wewillthencharacterizetheconstraintlanguageandimposerestrictionsonthepossibleinterpretationsofthetheory.Lastlywewillextendthefirstordertheoryobtainedinthiswayinordertoaccountforrecursiverelationsneededtoexpressgrammarrulesandprinciples.1.1TermsGivencountablesetsFandVoffunctionsymbolsandvariablesrespectively,wedefinethetermsTofourtheoryintheusualwayasbeingtheleastsetsuchthat:1.elementsofVareinT2.forfninFandt1,...,tninT,fnt1,...,tnisinTFunctionsymbolscomeequippedwiththeiraritynwrittenasfn.2See[Sho67]

1 / 24
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功