/
AnIntroductiontoFirst-OrderLogic AnIntroductiontoFirst-OrderLogic

AnIntroductiontoFirst-OrderLogic - PDF document

luanne-stotts
luanne-stotts . @luanne-stotts
Follow
359 views
Uploaded On 2017-01-14

AnIntroductiontoFirst-OrderLogic - PPT Presentation

Outline KSubramani11LaneDepartmentofComputerScienceandElectricalEngineeringWestVirginiaUniversityCompletenessCompactnessandInexpressibility Subramani FirstOrderLogic Outline Outline 1 Completenesso ID: 509706

Outline K.Subramani11LaneDepartmentofComputerScienceandElectricalEngineeringWestVirginiaUniversityCompleteness CompactnessandInexpressibility Subramani First-OrderLogic Outline Outline 1 Completenesso

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "AnIntroductiontoFirst-OrderLogic" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Outline AnIntroductiontoFirst-OrderLogic K.Subramani11LaneDepartmentofComputerScienceandElectricalEngineeringWestVirginiaUniversityCompleteness,CompactnessandInexpressibility Subramani First-OrderLogic Outline Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Outline Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof SoundnessandCompleteness Theorem Soundness:If`,thenj=. Theorem Completeness(G¨odel'straditionalform):Ifj=,then`. Theorem Completeness(G¨odel'saltenateform):Ifisconsistent,thenithasamodel. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof SoundnessandCompleteness(contd.) Theorem Thetraditionalcompletenesstheoremfollowsfromthealternateformofthecompletenesstheorem. Proof. Assumethatj=. ItfollowsthatanymodelMthatsatisesalltheexpressionsin,alsosatisesandhencefalsies:. Thus,theredoesnotexistamodelthatsatisesalltheexpressionsin[f:g.Itfollowsthat[f:gisinconsistent.ButusingtheContradictiontheorem,itfollowsthat`. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof SoundnessandCompleteness(contd.) Theorem Thetraditionalcompletenesstheoremfollowsfromthealternateformofthecompletenesstheorem. Proof. Assumethatj=. ItfollowsthatanymodelMthatsatisesalltheexpressionsin,alsosatisesandhencefalsies:.Thus,theredoesnotexistamodelthatsatisesalltheexpressionsin[f:g. Itfollowsthat[f:gisinconsistent.ButusingtheContradictiontheorem,itfollowsthat`. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof SoundnessandCompleteness(contd.) Theorem Thetraditionalcompletenesstheoremfollowsfromthealternateformofthecompletenesstheorem. Proof. Assumethatj=.ItfollowsthatanymodelMthatsatisesalltheexpressionsin,alsosatisesandhencefalsies:. Thus,theredoesnotexistamodelthatsatisesalltheexpressionsin[f:g.Itfollowsthat[f:gisinconsistent. ButusingtheContradictiontheorem,itfollowsthat`. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof SoundnessandCompleteness(contd.) Theorem Thetraditionalcompletenesstheoremfollowsfromthealternateformofthecompletenesstheorem. Proof. Assumethatj=.ItfollowsthatanymodelMthatsatisesalltheexpressionsin,alsosatisesandhencefalsies:.Thus,theredoesnotexistamodelthatsatisesalltheexpressionsin[f:g. Itfollowsthat[f:gisinconsistent.ButusingtheContradictiontheorem,itfollowsthat`. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof SoundnessandCompleteness(contd.) Theorem Thetraditionalcompletenesstheoremfollowsfromthealternateformofthecompletenesstheorem. Proof. Assumethatj=.ItfollowsthatanymodelMthatsatisesalltheexpressionsin,alsosatisesandhencefalsies:.Thus,theredoesnotexistamodelthatsatisesalltheexpressionsin[f:g.Itfollowsthat[f:gisinconsistent. ButusingtheContradictiontheorem,itfollowsthat`. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof SoundnessandCompleteness(contd.) Theorem Thetraditionalcompletenesstheoremfollowsfromthealternateformofthecompletenesstheorem. Proof. Assumethatj=.ItfollowsthatanymodelMthatsatisesalltheexpressionsin,alsosatisesandhencefalsies:.Thus,theredoesnotexistamodelthatsatisesalltheexpressionsin[f:g.Itfollowsthat[f:gisinconsistent.ButusingtheContradictiontheorem,itfollowsthat`. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ThenotionofCompleteness TheCompletenessProof ProofSketchofCompletenessTheorem Proof. http://www.maths.bris.ac.uk/˜rp3959/firstordcomp.pdf Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidity CompactnessModelCardinalityL¨owenheim-SkolemTheoremInexpressibilityofReachability Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidity CompactnessModelCardinalityL¨owenheim-SkolemTheoremInexpressibilityofReachability Validity Theorem VALIDITYisRecursivelyenumerable. Proof. Followsinstantaneouslyfromthecompletenesstheorem. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinalityL¨owenheim-SkolemTheoremInexpressibilityofReachability Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinalityL¨owenheim-SkolemTheoremInexpressibilityofReachability Compactness Theorem Ifallnitesubsetsofasetofsentencesaresatisable,thensois. Proof. Assumethatisunsatisable,butallnitesubsetsofaresatisable. Asperthecompletenesstheorem,thereisaproofofacontradictionfrom,say`^:.However,thisproofhasnitelength!Therefore,itcaninvolveonlyanitesubsetof! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinalityL¨owenheim-SkolemTheoremInexpressibilityofReachability Compactness Theorem Ifallnitesubsetsofasetofsentencesaresatisable,thensois. Proof. Assumethatisunsatisable,butallnitesubsetsofaresatisable.Asperthecompletenesstheorem,thereisaproofofacontradictionfrom,say`^:. However,thisproofhasnitelength!Therefore,itcaninvolveonlyanitesubsetof! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinalityL¨owenheim-SkolemTheoremInexpressibilityofReachability Compactness Theorem Ifallnitesubsetsofasetofsentencesaresatisable,thensois. Proof. Assumethatisunsatisable,butallnitesubsetsofaresatisable.Asperthecompletenesstheorem,thereisaproofofacontradictionfrom,say`^:.However,thisproofhasnitelength!Therefore,itcaninvolveonlyanitesubsetof! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactness ModelCardinality L¨owenheim-SkolemTheoremInexpressibilityofReachability Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactness ModelCardinality L¨owenheim-SkolemTheoremInexpressibilityofReachability ModelSize Theorem Ifasentencehasamodel,ithasacountablemodel. Proof. ThemodelMconstructedintheproofofthecompletenesstheoremiscountable,sincethecorrespondingvocabularyiscountable. Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Query Doallsentenceshaveinnitemodels? Theorem Ifasentencehasnitemodelsofarbitrarylargecardinality,thenithasaninnitemodel. Proof. Considerthesentence k=9x19x2:::9xk^1ijk:(xi=xj). kcannotbesatisedwithamodelhavinglessthankelements. Assumethathasarbitrarilylargemodels,butnoinnitemodels.Let=[f k:k=2;3;:::g.IfhasamodelM,Mcanneitherbenitenorinnite.Thus,doesnothaveamodel. .Bythecompactnesstheorem,anitesubsetDdoesnothaveamodel.mustbeinD.Letkdenotethelargestinteger,suchthat k2D.Butthereisalargeenoughmodelthatsatisesboth(hypothesis)and k! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Query Doallsentenceshaveinnitemodels? Theorem Ifasentencehasnitemodelsofarbitrarylargecardinality,thenithasaninnitemodel. Proof. Considerthesentence k=9x19x2:::9xk^1ijk:(xi=xj). kcannotbesatisedwithamodelhavinglessthankelements.Assumethathasarbitrarilylargemodels,butnoinnitemodels.Let=[f k:k=2;3;:::g.IfhasamodelM,Mcanneitherbenitenorinnite. Thus,doesnothaveamodel..Bythecompactnesstheorem,anitesubsetDdoesnothaveamodel. mustbeinD.Letkdenotethelargestinteger,suchthat k2D.Butthereisalargeenoughmodelthatsatisesboth(hypothesis)and k! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Query Doallsentenceshaveinnitemodels? Theorem Ifasentencehasnitemodelsofarbitrarylargecardinality,thenithasaninnitemodel. Proof. Considerthesentence k=9x19x2:::9xk^1ijk:(xi=xj). kcannotbesatisedwithamodelhavinglessthankelements.Assumethathasarbitrarilylargemodels,butnoinnitemodels.Let=[f k:k=2;3;:::g.IfhasamodelM,Mcanneitherbenitenorinnite.Thus,doesnothaveamodel. .Bythecompactnesstheorem,anitesubsetDdoesnothaveamodel.mustbeinD.Letkdenotethelargestinteger,suchthat k2D.Butthereisalargeenoughmodelthatsatisesboth(hypothesis)and k! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Query Doallsentenceshaveinnitemodels? Theorem Ifasentencehasnitemodelsofarbitrarylargecardinality,thenithasaninnitemodel. Proof. Considerthesentence k=9x19x2:::9xk^1ijk:(xi=xj). kcannotbesatisedwithamodelhavinglessthankelements.Assumethathasarbitrarilylargemodels,butnoinnitemodels.Let=[f k:k=2;3;:::g.IfhasamodelM,Mcanneitherbenitenorinnite.Thus,doesnothaveamodel..Bythecompactnesstheorem,anitesubsetDdoesnothaveamodel. mustbeinD.Letkdenotethelargestinteger,suchthat k2D.Butthereisalargeenoughmodelthatsatisesboth(hypothesis)and k! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Query Doallsentenceshaveinnitemodels? Theorem Ifasentencehasnitemodelsofarbitrarylargecardinality,thenithasaninnitemodel. Proof. Considerthesentence k=9x19x2:::9xk^1ijk:(xi=xj). kcannotbesatisedwithamodelhavinglessthankelements.Assumethathasarbitrarilylargemodels,butnoinnitemodels.Let=[f k:k=2;3;:::g.IfhasamodelM,Mcanneitherbenitenorinnite.Thus,doesnothaveamodel..Bythecompactnesstheorem,anitesubsetDdoesnothaveamodel.mustbeinD.Letkdenotethelargestinteger,suchthat k2D.Butthereisalargeenoughmodelthatsatisesboth(hypothesis)and k! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinalityL¨owenheim-SkolemTheorem InexpressibilityofReachability Outline 1 CompletenessofproofsystemforFirst-OrderLogic ThenotionofCompleteness TheCompletenessProof 2 ConsequencesoftheCompletenesstheorem ComplexityofValidity Compactness ModelCardinality L¨owenheim-SkolemTheorem InexpressibilityofReachability Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinalityL¨owenheim-SkolemTheorem InexpressibilityofReachability REACHABILITY REACHABILITY GivenadirectedgraphGandtwonodesxandyinG,isthereadirectedpathfromxtoyinG? Theorem Thereisnorst-orderexpressionwithtwofreevariablesxandy,suchthat-GraphsexpressesREACHABILITY. Proof. Assumethatthereexistssucha.Considerthesentence, 0= 0^ 1^ 2,where, 0=(8x)(8y) 1=(8x)(9y)G(x;y)^(8x)(8y)(8z)((G(x;y)^G(x;z))!(y=z)) 2=(8x)(9y)G(y;x)^(8x)(8y)(8z)((G(y;x)^G(z;x))!(y=z)) Arbitrarilylargemodelsarepossiblefor 0,butnoinnitemodels! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinalityL¨owenheim-SkolemTheorem InexpressibilityofReachability REACHABILITY REACHABILITY GivenadirectedgraphGandtwonodesxandyinG,isthereadirectedpathfromxtoyinG? Theorem Thereisnorst-orderexpressionwithtwofreevariablesxandy,suchthat-GraphsexpressesREACHABILITY. Proof. Assumethatthereexistssucha.Considerthesentence, 0= 0^ 1^ 2,where, 0=(8x)(8y) 1=(8x)(9y)G(x;y)^(8x)(8y)(8z)((G(x;y)^G(x;z))!(y=z)) 2=(8x)(9y)G(y;x)^(8x)(8y)(8z)((G(y;x)^G(z;x))!(y=z))Arbitrarilylargemodelsarepossiblefor 0,butnoinnitemodels! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinalityL¨owenheim-SkolemTheorem InexpressibilityofReachability REACHABILITY REACHABILITY GivenadirectedgraphGandtwonodesxandyinG,isthereadirectedpathfromxtoyinG? Theorem Thereisnorst-orderexpressionwithtwofreevariablesxandy,suchthat-GraphsexpressesREACHABILITY. Proof. Assumethatthereexistssucha.Considerthesentence, 0= 0^ 1^ 2,where, 0=(8x)(8y) 1=(8x)(9y)G(x;y)^(8x)(8y)(8z)((G(x;y)^G(x;z))!(y=z)) 2=(8x)(9y)G(y;x)^(8x)(8y)(8z)((G(y;x)^G(z;x))!(y=z)) Arbitrarilylargemodelsarepossiblefor 0,butnoinnitemodels! Subramani First-OrderLogic Completeness ConsequencesoftheCompletenesstheorem ComplexityofValidityCompactnessModelCardinalityL¨owenheim-SkolemTheorem InexpressibilityofReachability REACHABILITY REACHABILITY GivenadirectedgraphGandtwonodesxandyinG,isthereadirectedpathfromxtoyinG? Theorem Thereisnorst-orderexpressionwithtwofreevariablesxandy,suchthat-GraphsexpressesREACHABILITY. Proof. Assumethatthereexistssucha.Considerthesentence, 0= 0^ 1^ 2,where, 0=(8x)(8y) 1=(8x)(9y)G(x;y)^(8x)(8y)(8z)((G(x;y)^G(x;z))!(y=z)) 2=(8x)(9y)G(y;x)^(8x)(8y)(8z)((G(y;x)^G(z;x))!(y=z))Arbitrarilylargemodelsarepossiblefor 0,butnoinnitemodels! Subramani First-OrderLogic