DOC PREVIEW
Stanford CS 157 - Lecture 1

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1IntroductionComputational Logic Lecture 1Michael Genesereth Autumn 20072Computational Logicabove(yellow,blue)on(red,yellow)∀x.∀y.(on(x,y) ⇒ above(x,y))∃y.on(blue,y)¬on(yellow,blue)on(green,yellow)∨ on(green,blue)23MathematicsGroup Axioms!TheoremTasks:Proof CheckingProof Generation(x × y) × z = x × (y × z)x × e = xe × x = xx × x−1= ex−1× x = e4Software EngineeringProgramSpecification:Tasks:Partial EvaluationProgram VerificationProof of TerminationComplexity Analysissorter Lsort(L)∀i.∀j.(i < j ⇒ sort(L)i< sort(L)j)35Constraint Satisfaction Systems6Logical Spreadsheets47Deductive Database SystemsDatabase Tables Database Sentencesparentart bobart beabea coeConstraintsView Definitionsparent(art, bob)parent(art, bea)parent(bob,coe)parent(x, y) ∧ parent(y, z) ⇒ grandparent(x, z)¬parent(x, x)parent(x, y) ⇒ ¬parent(y, x)8Data Integrationemployee(x,y)⇐ manager(y,x)name manager office phone John Jill MJH222 38086Jane Jerry Cedar12 57493Jill MJH222 Jerry 420-032 56777name employee location telephone John MJH222 7238086Jane Cedar12 7257493Jill John MJH222 Jerry Jane 420-032 725677759Web Service IntegrationResultFacilitatorRequestQBF (Query by Form) - User queries Internet in his own schemaABF (Application by Form) - User requests services using own schemaInsurer 1Insurer 2AppraiserTitle CompanyBank 1Bank 2Bank 310Regulations and Business Rules611Michigan Lease Termination ClauseThe University may terminate this lease when the Lessee, havingmade application and executed this lease in advance ofenrollment, is not eligible to enroll or fails to enroll in theUniversity or leaves the University at any time prior to theexpiration of this lease, or for violation of any provisions of thislease, or for violation of any University regulation relative toresident Halls, or for health reasons, by providing the studentwith written notice of this termination 30 days prior to theeffective data of termination; unless life, limb, or property wouldbe jeopardized, the Lessee engages in the sales of purchase ofcontrolled substances in violation of federal, state or local law, orthe Lessee is no longer enrolled as a student, or the Lesseeengages in the use or possession of firearms, explosives,inflammable liquids, fireworks, or other dangerous weaponswithin the building, or turns in a false alarm, in which cases amaximum of 24 hours notice would be sufficient.12Logical VersionA ⇐ A1 ∧ A2 ∧¬BA ⇐ A4 ∧¬BA ⇐ A5 ∧¬BA ⇐ A6 ∧¬BA ⇐ A7 ∧¬BB ⇐ B1B ⇐ B2B ⇐ B3B ⇐ B4B ⇐ B5713Elements14Formal MathematicsAlgebra1. Formal language for encoding information2. Legal transformations3. AutomationLogic1. Formal language for encoding information2. Legal transformations3. Automation815Algebra ProblemXavier is three times as old as Yolanda. Xavier's ageand Yolanda's age add up to twelve. How old areXavier and Yolanda?16Algebra SolutionXavier is three times as old as Yolanda. Xavier's ageand Yolanda's age add up to twelve. How old areXavier and Yolanda?Automation: Saint, Sin, Reduce, Macsyma,Mathematicax − 3y = 0x + y = 12−4y = −12y = 3x = 9917Logic ProblemIf Mary loves Pat, then Mary loves Quincy. If it isMonday, then Mary loves Pat or Quincy. If it isMonday, does Mary love Quincy?If it is Monday, does Mary love Pat?Mary loves only one person at a time. If it isMonday, does Mary love Pat?18FormalizationSimple Sentences: Mary loves Pat. Mary loves Quincy. It is Monday.Premises: If Mary loves pat, Mary loves Quincy. If it Monday, Mary loves Pat or Quincy. Mary loves one person at a time.Questions: Does Mary love Pat? Does Mary love Qunicy?p ⇒ qm ⇒ p ∨ qp ∧ q ⇒⇒ p⇒ qpqm1019Rule of InferencePropositional ResolutionNB: If pi is the same as sj, it is okay to drop the twosymbols, with the proviso that only one such pairmay be dropped.NB: If a constant is repeated on the left or the right,all but one of the occurrences can be deleted.p1∧ ... ∧ pk⇒ q1∨ ... ∨ qlr1∧ ... ∧ rm⇒ s1∨ ... ∨ snp1∧ ... ∧ pk∧ r1∧ ... ∧ rm⇒ q1∨ ... ∨ ql∨ s1∨ ... ∨ sn20Examplesp ⇒ q⇒ p⇒ qp ⇒ qq ⇒p ⇒p ⇒ qq ⇒ rp ⇒ r1121Logic Problem Revisitedp ⇒ qm ⇒ p ∨ qm ⇒ q ∨ qm ⇒ qIf Mary loves Pat, then Mary loves Quincy. If it isMonday, then Mary loves Pat or Quincy. If it isMonday, does Mary love Quincy?22Logic Problem Concludedm ⇒ qp ∧ q ⇒m ∧ p ⇒Mary loves only one person at a time. If it isMonday, does Mary love Pat?1223Automated Reasoning24Logic TechnologyLanguages Knowledge Interchange Format (KIF) - ANSI Common Logic - W3CSome Popular Automated Reasoning SystemsOtterPTTP / EpilogSnark / Vampire / …Knowledge Bases Definitions (Bachelor is an unmarried adult male.) Constraints (e.g. PV=nRT) Laws (e.g. 1040 necessary if earnings > $10,000.)1325Study Guide26Multiple LogicsPropositional LogicIf it is raining, the ground is wet.Relational LogicIf x is a parent of y, then y is a child of x.1427Common TopicsCommon TopicsSyntax - expressions in the languageSemantics - meaning of expressionsComputational MattersContrasts Expressiveness - operators, variables, terms, ... Computational Hierarchy - polynomial? decidable? Tradeoffs - expressiveness versus computability28MetaWe will frequently write sentences about sentences.Sentence: When it rains, it pours.Metasentence: That sentence contains two verbs.We will frequently prove things about proofs.Proofs: formalMetaproofs: informal1529Mike took it


View Full Document

Stanford CS 157 - Lecture 1

Documents in this Course
Equality

Equality

32 pages

Lecture 19

Lecture 19

100 pages

Epilog

Epilog

29 pages

Equality

Equality

34 pages

Load more
Download Lecture 1
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture 1 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 1 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?