WITH UNTYPED LAMBDA-UNIFICATION

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

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

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

资源描述

December7,200419:40WSPC/INSTRUCTIONFILEesforInternationalJournalonArtificialIntelligenceToolscWorldScientificPublishingCompanyOTTER-LAMBDA,ATHEOREM-PROVERWITHUNTYPEDLAMBDA-UNIFICATIONMICHAELBEESONComputerScienceDepartment,SanJos´eStateUniversity1WashingtonSquareSanJos´e,California95192,USAbeeson@cs.sjsu.eduSupportforlambdacalculusandanalgorithmforuntypedlambda-unificationhasbeenimplemented,startingfromthesourcecodeforOtter.TheresultisanewtheoremprovercalledOtter-λ.Thisisthefirsttimethataresolution-based,clause-languageprover(thataccumulatesdeducedclausesandusesstrategiestocontrolthedeductionandretentionofclauses)hasbeencombinedwithalambda-unificationalgorithmtoassistinthedeductions.Theresultingprovercombinestheadvantagesoftheproof-searchalgorithmofOtterandthepowerofhigher-orderunification.WedescribetheuntypedlambdaunificationalgorithmusedbyOtter-λandgiveseveralexampletheorems.Keywords:Unification;lambdacalculus;automateddeduction.IntroductionOurpurposeinthispaperistodemonstratethesuccessfulcombinationoflambdaunificationwiththewell-knownresolution-basedtheoremproverOtter19.Whatwecall“untypedlambdaunification”issimilartosecond-orderorhigher-orderunification,butthosealgorithmsaredesignedforuseintypedtheories,andwehavechosentouseanewnameforthisalgorithm,sinceitisanewalgorithmandisappliedinadifferentcontext.Theadvantagesofclause-basedproverslikeOtterlieintheretentionofdeducedconclusionsandthedevelopmentofeffectivesearchstrategiestogenerateand/orretaindesired,ratherthanundesired,newconclusions.Theadvantagesoftype-basedsystemsarethegreatereaseofdescribingmathematicalconceptsata“higherlevel”andtheavailabilityofhigher-orderunification.ByaddinglambdaunificationtoOtter,wehavecreatedasystemofferingacombinationofbothadvantages.TheimplementationoflambdacalculusandanalgorithmforlambdaunificationinOtteraredescribedinthelastsectionsofthispaper.Asoundnessproofforthealgorithmisgivenin6.Thatpaperanswersthequestion,InwhatlogicdoesOtter-λfindproofs?.ThispaperreportsonseveralexamplesintendedtodemonstratesomeofthecapabilitiesofOtter-λ,aswecallourenhancedversionofOtter(orwhen1December7,200419:40WSPC/INSTRUCTIONFILEesfor2MichaelBeesontypographydictates,Otter-lambda).Themainpointistoexplorethecombinationoflambdaunificationwithaclause-basedtheoremproverusingsearchstrategiestogeneratenewconclusions,asopposedtoeitheratype-basedprover(unaidedbyretentionofmanyclauses,demodulationandparamodulation,andavarietyofinferencestrategies)orafirst-order,clause-basedprover(unaidedbyhigher-orderunificationandtypes).First,weshowthatourenhancementsgiveOtter-λtheabilitytomanipulatequantifiersattheclausallevel,sothatdefinitionsinvolvingquantifierscanbecon-venientlyusedinproofs.Second,wetakeupthealgebraicpartofLagrange’stheo-rem,todemonstratehowlambdaunificationenablestheautomaticconstructionofmapsneededinalgebraicproofs.Third,wegiveanexampletoshowhowOtter-λcanfindaproofinalgebrathatusesmathematicalinduction,namely,therearenonilpotentsinanintegraldomain.Fourth,wereproducethewell-knownautomaticdeductionofCantor’stheorem,whichappearstodependheavilyonatypedlogicalsystem,toshowthatitcanbedoneinOtter-λ;andthatasimilarapproachinOtter-λcanyieldRussell’sparadoxandfixed-pointconstructions,whichcannotbeformalizedintypetheory.Ourfifthandlastexampleisaproofbymathematicalinduction,directlyfromtheaxiomsofPeanoarithmetic,ofthecommutativityofaddition.Boththebasiscaseandtheinductionstepofthemaininductionmustinturnbeprovedbymathematicalinduction.Otter-λisabletofindallthreeinstancesofinductiononitsown,andcompletetheproof.InputfilesandtheproofsproducedbyOtter-λforalltheseexamplescanbefoundontheOtter-λwebsite.7aLambdaunificationWefocusontheattempttoextendunificationtoinstantiatevariablesforfunctionsbymeansofλ-terms.Allpastresearchandimplementationinthissubjecthasinvolvedtypedformalisms.Inthatcontext,itisknownashigher-orderunification.Whatisnovelinthispaperistheimplementationof(aversionof)higher-orderunificationinanuntypedformalism.Wecallourunification“untypedlambda-unification”.In23,24,Pietrzykowskigaveanalgorithmforhigher-orderunification,whichweherecalltypedλ-unification.Huet17didnotinventthisalgorithm,buthiscitedpapercontainsanotherimportantcontributionandhasbecometheclassicreference.Anencyclopedictreatmentoftypetheoryandsecond-orderunificationcanbefoundin1,14;weshallsaynomoreaboutthethirtyyearsofresearchcoveredthere.Wenotethefollowingpointsaboutourimplementation:aToclearupsomemisconceptionsaboutOtter-λ:Itisatheorem-prover,builtonOtter,butitisnota“library”thatcanbepluggedintootherprovers,notevenOtter,sinceitwasnecessarytomodifyOtteratseveralpointstoconnectthenewcapabilities.Ontheotherhand,itperformsonfirst-orderproblemsexactlylikeOtter–thenewcodeisneverinvokedunlessappropriateflagsaresetintheinputfile.ThusOtterfilesruninOtter-λ,andatthesamespeed,thoughtheymayuseafewpercentmorememorysinceonedatastructurewasslightlyexpanded.December7,200419:40WSPC/INSTRUCTIONFILEesforOtter-lambda,atheorem-proverwithuntypedlambda-unification3•Wedonotimplementthefull(typed)higher-orderλ-unificationalgorithm.•Ouralgorithmcansolveproblemsw

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

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

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

×
保存成功