Pure type systems in rewriting logic Specifying ty

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

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

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

资源描述

PureTypeSystemsinRewritingLogic:SpecifyingTypedHigher-OrderLanguagesinaFirst-OrderLogicalFrameworkMark-OliverStehr?Jos´eMeseguerUniversit¨atHamburgFachbereichInformatik-TGI22527Hamburg,Germanystehr@informatik.uni-hamburg.deUniversityofIllinoisatUrbana-ChampaignComputerScienceDepartmentUrbana,IL61801,USAmeseguer@cs.uiuc.eduDedicatedtothememoryofOle-JohanDahlAbstract.Thelogicalandoperationalaspectsofrewritinglogicasalogi-calframeworkaretestedandillustratedindetailbyrepresentingpuretypesystemsasobjectlogics.Moreprecisely,weapplymembershipequationallogic,theequationalsublogicofrewritinglogic,tospecifypuretypesys-temsastheycanbefoundintheliteratureandalsoanewvariantofpuretypesystemswithexplicitnamesthatsolvestheproblemswithclosureun-derα-conversioninaverysatisfactoryway.Furthermore,weuserewritinglogicitselftogiveaformaloperationaldescriptionoftypechecking,thatdirectlyservesasanefficienttypecheckingalgorithm.Theworkreportedhereispartofamoreambitiousprojectconcernedwiththedevelopmentoftheopencalculusofconstructions,anequationalextensionofthecal-culusofconstructionsthatincorporatesrewritinglogicasacomputationalsublanguage.Thispaperisadetailedstudyontheeaseandnaturalnesswithwhichafamilyofhigher-orderformalsystems,namelypuretypesystems(PTSs)[6,50],canberep-resentedinthefirst-orderlogicalframeworkofrewritinglogic[36].PTSsgeneralizetheλ-cube[1],whichalreadycontainsimportantcalculilikeλ→[12],thesystemsF[23,43]andFω[23],asystemλPclosetothelogicalframeworkLF[24],andtheircombination,thecalculusofconstructionsCC[16].PTSsareconsideredtobeofkeyimportance,sincetheirgeneralityandsimplicitymakesthemanidealbasisforrepresentinghigher-orderlogics,eitherviathepropositions-as-typesinterpretation[21],orviatheiruseasahigher-orderlogicalframeworkinthespiritofLF[24,20]orIsabelle[39].Exploitingthefactthatrewritinglogic(RWL)anditsmembershipequationalsublogic(MEL)[10]haveinitialandfreemodels,wecandefinetherepresentationofPTSsasaparameterizedtheoryintheframeworklogic;thatis,wedefineinasinglepara-metricwayalltherepresentationsfortheinfinitefamilyofPTSs.Furthermore,therepresentationalversatilityofRWL,andofMEL,arealsoexercisedbyconsideringfourdifferentrepresentationsofPTSsatdifferentlevelsofabstraction,fromamoreabstracttextbookversioninwhichtermsareidentifieduptoα-conversion,toamoreconcreteversionwithacalculusofnamesandexplicitsubstitutions,andwithatypecheckinginferencesystemthatcaninfactbeusedasareasonablyefficient?CurrentlyvisitingUniversityofIllinoisatUrbana-Champaign,ComputerScienceDe-partmentUrbana,IL61801,USA,e-mail:stehr@cs.uiuc.eduimplementationofPTSsbyexecutingtherepresentationintheMaudelanguage[13,14].Thiscasestudycomplementsearlierwork[31,32],showingthatrewritinglogichasgoodpropertiesasalogicalframeworktorepresentawiderangeoflogics,includinglinearlogic,Hornlogicwithequality,first-orderlogic,modallogics,sequent-basedpresentationsoflogics,andsoon.Inparticular,representationsfortheλ-calculus,andforbindersandquantifiershavealreadybeenstudiedin[32],butthisisthefirstsystematicstudyontherepresentationoftypedhigher-ordersystems.Onepropertysharedbyalltheaboverepresentations,includingallthosediscussedinthispaper,isthatwhatmightbecalledtherepresentationaldistancebetweenthelogicbeingformalizedanditsrewritinglogicrepresentationisvirtuallyzero.Thatis,boththesyntaxandtheinferencesystemoftheobjectlogicaredirectlyandfaithfullymirroredbytherepresentation.Thisisanimportantadvantagebothintermsofunderstandabilityoftherepresentations,andinmakingtheuseofencodinganddecodingfunctionsunnecessaryinaso-calledadequacyproof.Besidesthedirectnessandnaturalnesswithwhichlogicscanberepresentedinaframeworklogic,anotherimportantqualityofalogicalframeworkisthescopeofitsapplicability;thatis,theclassoflogicsforwhichfaithfulrepresentationspre-servingrelevantstructurecanbedefined.Typically,wewantrepresentationsthatbothpreserveandreflectprovability;thatis,somethingisatheoremintheoriginallogicifandonlyifitstranslationcanbeprovedintheframework’srepresentationofthelogic.Suchmappingsgounderdifferentnamesanddifferintheirgeneral-ity;inhigher-orderlogicalframeworksrepresentationsaretypicallyrequiredtobeadequatemappings[20],andinthetheoryofgenerallogicsmoreliberal,namelyconservativemappingsofentailmentsystems[35],arestudied.Inthispaper,wewefurthergeneralizeconservativemappingstothenotionofasoundandcompletefullcorrespondenceofsentencesbetweentwoentailmentsystems.Infact,alltherepresentationsofPTSsthatweconsiderarecorrespondencesofthiskind.SoundandcompletefullcorrespondencesaresystematicallyusednotonlytostatethecorrectnessoftherepresentationsofPTSsatdifferentlevelsofabstraction,butalsotorelatethosedifferentlevelsofabstraction,showingthatthemoreconcreterepresentationscorrectlyimplementtheirmoreabstractcounterparts.AsystematicwayofcomparingthescopesoftwologicalframeworksFandGistoexhibitasoundandcompletefullcorrespondenceF;G,representingFinG.Inviewofthisquitegeneralconcept,itisimportanttoaddthattherepresentationaldistance,whichweinformallydefineasthecomplexityofthiscorrespondence,isanimportantmeasureofthequali

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

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

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

×
保存成功