SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
2



              Assignment 5. Due Date: 02/28/11
1.   Consider axioms from Assignment 4.
     Prove that John likes peanuts using resolution.
2. Consider the following facts:
       • The members of the Elm St. Bridge Club are Joe,
          Sally, Bill, and Ellen.
       • Joe is married to Sally.
       • Bill is Ellen’s brother.
       • The spouse of every married person in the club is also
          in the club.
       • The last meeting of the club was at Joe’s house.
  (a) Represent these facts in the predicate logic.
  (b) From the facts given above, most people would be able
       to decide on the truth of the following additional
       statements:
       • The last meeting of the club was at Sally’s house.
       • Ellen is not married.
       Can you construct resolution proofs to demonstrate the
       truth of each of these statements given the five listed
       above? Do so if possible. Otherwise, add the facts you
       need and then construct the proofs.
3.   Assume the following facts:
       • Steve only likes easy courses.
       • Science courses are hard.
       • All the courses in the basketweaving department are
          easy.
       • BK 301 is a basketweaving course.
     Use resolution to answer the question, “What course would
     Steve like?” (read pp. 160-164 of the handout)
3




           Conversion to Clause Form:
All Romans who know Marcus either hate Caesar or
think that anyone who hates anyone is crazy.
Problem:
∀x: [Roman(x) ∧ know(x, Marcus)] →
[hate(x, Caesar) ∨ (∀y: ∃z: hate(y, z) → thinkcrazy(x, y))]

Solution:
  • Flatten
  • Separate out quantifiers

Conjunctive Normal Form:
  ¬Roman(x) ∨ ¬know(x, Marcus) ∨
    hate(x, Caesar) ∨ ¬hate(y, z) ∨ thinkcrazy(x,z)

Clause Form:
   • Conjunctive normal form
   • No instances of ∧
4



            Algorithm: Convert to Clause Form
1.       Eliminate →, using: a → b = ¬a ∨ b.
2.       Reduce the scope of each ¬ to a single term, using:
     •   ¬(¬p) = p
     •   de Morgan’s laws: ¬(a ∧ b) = ¬a ∨ ¬b
                              ¬(a ∨ b) = ¬a ∧ ¬b
     •   ¬∀x: P(x) = ∃x: ¬P(x)
     •   ¬∃x: P(x) = ∀x: ¬P(x)
3.       Standardize variables: ∀x: P(x) ∨ ∀x: Q(x) should be
         replaced with ∀x: P(x) ∨ ∀y: Q(y) (y is a unique variable)
4.       Move all quantifiers to the left of the formula without
         changing their relative order.
5.       Eliminate existential quantifiers by inserting Skolem
         functions.
6.       Drop the prefix.
7.       Convert the matrix into a conjunction of disjuncts, using
         associativity and distributivity.
8.       Create a separate clause for each conjunct. Standardize
         apart the variables in the set of clauses generated in step 8,
         using the fact that
         (∀x: P(x) ∧ Q(x)) = ∀x: P(x) ∧ ∀x: Q(x),
         thus we have two clauses
         P(x)
         Q(y)
5



     Examples of Conversion to Clause Form

Example:
∀x: [Roman(x) ∧ know(x, Marcus)] →
[hate(x, Caesar) ∨ (∀y: ∃z: hate(y, z) → thinkcrazy(x, y))]

1.   Eliminate →
     ∀x: ¬[Roman(x) ∧ know(x, Marcus)] ∨ [hate(x, Caesar) ∨
     (∀y: ¬(∃z: hate(y,z)) ∨ thinkcrazy(x, y))]
2.   Reduce scope of ¬
     ∀x: [¬Roman(x) ∨ ¬know(x, Marcus)] ∨ [hate(x, Caesar)
     ∨ (∀y: ∀z: ¬hate(y,z) ∨ thinkcrazy(x, y))]
3.   Standardize variables.
     ∀x: P(x) ∨ ∀x: Q(x)
     will be converted to
     ∀x: P(x) ∨ ∀y: Q(y)
4.   Move quantifiers
     prefix         matrix
     ∀x: ∀y: ∀z: [¬Roman ∨ ¬know(x, Marcus)] ∨
          [hate(x, Caesar) ∨ (¬hate(y, z) ∨ thinkcrazy(x, y))]
6



     Examples of Conversion to Clause Form

5.  Eliminate existential quantifiers.
    ∃y: President(y)
  will be converted to
President(S1)
   while
    ∀x: ∃y: father-of(y, x)
   will be converted to
    ∀x: father-of(S2(x), x))

6.   Drop the prefix
     [¬Roman(x) ∨ ¬know(x, Marcus)] ∨
     [hate(x, Caesar) ∨ (¬hate(y, z) ∨ thinkcrazy(x, y))]

7.   Convert to a conjunction of disjuncts.
     ¬Roman(x) ∨ ¬know(x, Marcus) ∨ hate(x, Caesar) ∨
     ¬hate(y, z) ∨ thinkcrazy(x, y)
7



     Examples of Conversion to Clause Form

Distribution Law
(a ∧ b) ∨ c = (a ∨ c) ∧ (b ∨ c)

The formula
     (winter ∧ wearingboots) ∨ (summer ∧ wearingsandals)
becomes
     [winter ∨ (summer ∧ wearingsandals)] ∧
     [wearingboots ∨ (summer ∧ wearingsandals)]
and then becomes
     (winter ∨ summer) ∧
 (winter     ∨ wearingsandals) ∧
     (wearingboots ∨ summer) ∧
     (wearingboots ∨ wearingsandals)
and finally
     (winter ∨ summer)
 (winter     ∨ wearingsandals)
     (wearingboots ∨ summer)
     (wearingboots ∨ wearingsandals)
8



           A Set of Facts about Marcus

1.  man(Marcus)
2.  Pompeian(Marcus)
3.  born(Marcus, 40)
4.  ∀x: man(x) → mortal(x)
5.  ∀x: Pompeian(x) → died(x, 79)
6.  erupted(volcano, 79)
7.  ∀x: ∀t1: ∀ t2: mortal(x) ∧ born(x, t1) ∧
    gt(t2 - t1, 150) → dead(x, t2)
8. now = 2009
9. ∀x: ∀t: [alive(x, t) → ¬dead(x, t)] ∧
             [¬dead(x, t) → alive(x, t)]
10. ∀x: ∀ t1: ∀ t2: died(x, t1) ∧ gt(t2, t1) → dead(x, t2)
9



             Axioms in clause form:

1.    man(Marcus)
2.    Pompeian(Marcus)
3.    born(Marcus, 40)
4.    ¬ man(x1) ∨ mortal(x1)
5.    ¬Pompeian(x2)∨ died(x2, 79)
6.    erupted(volcano, 79)
7.    ¬mortal(x3) ∨ ¬born(x3, t1) ∨
      ¬gt(t2 - t1, 150) ∨ dead(x3, t2)
8.     now = 2009
9.     ¬alive(x4, t3) ∨ ¬dead(x4, t3)
10.   dead(x 5, t4) ∨ alive(x5, t4)
11.   ¬died(x6, t5) ∨ ¬gt(t6, t5) ∨ dead(x6, t6)
10



               The Basis of Resolution

Given:
    winter ∨ summer
    ¬winter ∨ cold

We can conclude:

    summer ∨ cold

Two clauses winter and ¬winter produce the empty clause.
11




          Algorithm: Propositional Resolution


1.  Convert all the propositions of F to clause form.
2.  Negate P and convert the result to clause form. Add it to
    the set of clauses obtained in step 1.
3. Repeat until either a contradiction is found or no progress
    can be made:
    (a) Select two clauses. Call these the parent clauses.
    (b) Resolve them together. The           resolvent will be the
         disjunction of all the literals of both of the parent
         clauses with the following exception: If there are any
         pairs of literals L and ¬L such that one of the parent
         clauses contains L and the other contains ¬L. then
         select one such pair and eliminate both L and ¬L from
         the resolvent.
(c) If the resolvent is the empty clause, then a contradiction has
    been found. If it is not, then add it to the set of clauses
    available to the procedure.
12



              Propositional Resolution

We want to prove R.
Given Axioms      Clause Form
P                 P                      (1)
(P ∧ Q) → R       ¬P ∨ ¬Q ∨ R (2)
(S ∨ T) → Q       ¬S ∨ Q    (3)
                  ¬T ∨ Q    (4)
T                 T                      (5)


¬P ∨ ¬Q ∨ R                         ¬R


                 ¬P∨ ¬Q                        P


              ¬T ∨ Q         ¬Q


                       ¬T                          T
13



                Herbrand’s Theorem


• To show that a set of clauses      S is unsatisfiable, it is
  necessary to consider only interpretations over a particular
  set, called the Herbrand universe of S.

• A set of clauses S is unsatisfiable if and only if a finite
  subset of ground instances (in which all bound variables
  have had a value substituted for them) of S is unsatisfiable.
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle
Elm St Bridge Club Logic Puzzle

Weitere ähnliche Inhalte

Was ist angesagt?

Artificial Intelligence: The Nine Phases of the Expert System Development Lif...
Artificial Intelligence: The Nine Phases of the Expert System Development Lif...Artificial Intelligence: The Nine Phases of the Expert System Development Lif...
Artificial Intelligence: The Nine Phases of the Expert System Development Lif...The Integral Worm
 
Virtualization in cloud computing ppt
Virtualization in cloud computing pptVirtualization in cloud computing ppt
Virtualization in cloud computing pptMehul Patel
 
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersappasami
 
Model of information retrieval (3)
Model  of information retrieval (3)Model  of information retrieval (3)
Model of information retrieval (3)9866825059
 
Bayesian Networks - A Brief Introduction
Bayesian Networks - A Brief IntroductionBayesian Networks - A Brief Introduction
Bayesian Networks - A Brief IntroductionAdnan Masood
 
CLOUD ARCHITECTURE AND SERVICES.pptx
CLOUD ARCHITECTURE AND SERVICES.pptxCLOUD ARCHITECTURE AND SERVICES.pptx
CLOUD ARCHITECTURE AND SERVICES.pptxDr Geetha Mohan
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logicankush_kumar
 
Levels of Virtualization.docx
Levels of Virtualization.docxLevels of Virtualization.docx
Levels of Virtualization.docxkumari36
 
Multivector and multiprocessor
Multivector and multiprocessorMultivector and multiprocessor
Multivector and multiprocessorKishan Panara
 
Introduction of Big data, NoSQL & Hadoop
Introduction of Big data, NoSQL & HadoopIntroduction of Big data, NoSQL & Hadoop
Introduction of Big data, NoSQL & HadoopSavvycom Savvycom
 
Grid protocol architecture
Grid protocol architectureGrid protocol architecture
Grid protocol architecturePooja Dixit
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database SystemMeghaj Mallick
 

Was ist angesagt? (20)

Artificial Intelligence: The Nine Phases of the Expert System Development Lif...
Artificial Intelligence: The Nine Phases of the Expert System Development Lif...Artificial Intelligence: The Nine Phases of the Expert System Development Lif...
Artificial Intelligence: The Nine Phases of the Expert System Development Lif...
 
Virtualization in cloud computing ppt
Virtualization in cloud computing pptVirtualization in cloud computing ppt
Virtualization in cloud computing ppt
 
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answers
 
MapReduce in Cloud Computing
MapReduce in Cloud ComputingMapReduce in Cloud Computing
MapReduce in Cloud Computing
 
Model of information retrieval (3)
Model  of information retrieval (3)Model  of information retrieval (3)
Model of information retrieval (3)
 
First order logic
First order logicFirst order logic
First order logic
 
Database System Architectures
Database System ArchitecturesDatabase System Architectures
Database System Architectures
 
Digital library
Digital libraryDigital library
Digital library
 
Bayesian Networks - A Brief Introduction
Bayesian Networks - A Brief IntroductionBayesian Networks - A Brief Introduction
Bayesian Networks - A Brief Introduction
 
CLOUD ARCHITECTURE AND SERVICES.pptx
CLOUD ARCHITECTURE AND SERVICES.pptxCLOUD ARCHITECTURE AND SERVICES.pptx
CLOUD ARCHITECTURE AND SERVICES.pptx
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
Levels of Virtualization.docx
Levels of Virtualization.docxLevels of Virtualization.docx
Levels of Virtualization.docx
 
Multivector and multiprocessor
Multivector and multiprocessorMultivector and multiprocessor
Multivector and multiprocessor
 
Expert system
Expert systemExpert system
Expert system
 
Introduction of Big data, NoSQL & Hadoop
Introduction of Big data, NoSQL & HadoopIntroduction of Big data, NoSQL & Hadoop
Introduction of Big data, NoSQL & Hadoop
 
predicate logic example
predicate logic examplepredicate logic example
predicate logic example
 
Graph Theory: Trees
Graph Theory: TreesGraph Theory: Trees
Graph Theory: Trees
 
Grid protocol architecture
Grid protocol architectureGrid protocol architecture
Grid protocol architecture
 
Spark
SparkSpark
Spark
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database System
 

Andere mochten auch

Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Ai & expert introduction
Ai & expert introductionAi & expert introduction
Ai & expert introductionRamesh Kumar
 
Means end analysis, knowledge in learning
Means end analysis,  knowledge in learningMeans end analysis,  knowledge in learning
Means end analysis, knowledge in learningGaurav Chaubey
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Yasir Khan
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
Informativo de janeiro
Informativo de janeiroInformativo de janeiro
Informativo de janeiroLua Barros
 
ipsum.pdf
ipsum.pdfipsum.pdf
ipsum.pdfreezo21
 
Affordable Taiwan Travel
Affordable Taiwan TravelAffordable Taiwan Travel
Affordable Taiwan TravelMUSTHoover
 
Must taitung team
Must taitung teamMust taitung team
Must taitung teamMUSTHoover
 
Informative Presentation
Informative PresentationInformative Presentation
Informative Presentationgjohn13
 
7 a0480 nb evaluacion
7 a0480 nb evaluacion7 a0480 nb evaluacion
7 a0480 nb evaluacionUnfv Fiis
 
Why should healthcare professionals care about social media?
Why should healthcare professionals care about social media?Why should healthcare professionals care about social media?
Why should healthcare professionals care about social media?Innovation Agency
 
Javascript Apps at Build Artifacts
Javascript Apps at Build ArtifactsJavascript Apps at Build Artifacts
Javascript Apps at Build ArtifactsClay Smith
 
Mag One Products Inc. Investor Presentation
Mag One Products Inc. Investor PresentationMag One Products Inc. Investor Presentation
Mag One Products Inc. Investor PresentationRedChip Companies, Inc.
 
JRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell YouJRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell Youelliando dias
 

Andere mochten auch (20)

Chapter 4 (final)
Chapter 4 (final)Chapter 4 (final)
Chapter 4 (final)
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Ai & expert introduction
Ai & expert introductionAi & expert introduction
Ai & expert introduction
 
Ai
AiAi
Ai
 
Means end analysis, knowledge in learning
Means end analysis,  knowledge in learningMeans end analysis,  knowledge in learning
Means end analysis, knowledge in learning
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Informativo de janeiro
Informativo de janeiroInformativo de janeiro
Informativo de janeiro
 
ipsum.pdf
ipsum.pdfipsum.pdf
ipsum.pdf
 
Affordable Taiwan Travel
Affordable Taiwan TravelAffordable Taiwan Travel
Affordable Taiwan Travel
 
Must taitung team
Must taitung teamMust taitung team
Must taitung team
 
Informative Presentation
Informative PresentationInformative Presentation
Informative Presentation
 
Venetia panorama
Venetia panoramaVenetia panorama
Venetia panorama
 
Lina oti
Lina otiLina oti
Lina oti
 
7 a0480 nb evaluacion
7 a0480 nb evaluacion7 a0480 nb evaluacion
7 a0480 nb evaluacion
 
Presentation_NEW.PPTX
Presentation_NEW.PPTXPresentation_NEW.PPTX
Presentation_NEW.PPTX
 
Why should healthcare professionals care about social media?
Why should healthcare professionals care about social media?Why should healthcare professionals care about social media?
Why should healthcare professionals care about social media?
 
Javascript Apps at Build Artifacts
Javascript Apps at Build ArtifactsJavascript Apps at Build Artifacts
Javascript Apps at Build Artifacts
 
Mag One Products Inc. Investor Presentation
Mag One Products Inc. Investor PresentationMag One Products Inc. Investor Presentation
Mag One Products Inc. Investor Presentation
 
JRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell YouJRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell You
 

Ähnlich wie Elm St Bridge Club Logic Puzzle

Ch8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.pptCh8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.pptFELICIALILIANJ
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicManjula V
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceasimnawaz54
 
1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the tofariyaPatel
 
Unit 1-logic
Unit 1-logicUnit 1-logic
Unit 1-logicraksharao
 
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
Unit III  Knowledge Representation in AI   K.Sundar,AP/CSE,VECUnit III  Knowledge Representation in AI   K.Sundar,AP/CSE,VEC
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VECsundarKanagaraj1
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.pptTejasAditya2
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introductionyashirraza123
 
Resolution method in AI.pptx
Resolution method in AI.pptxResolution method in AI.pptx
Resolution method in AI.pptxAbdullah251975
 
Inference in First-Order Logic
Inference in First-Order Logic Inference in First-Order Logic
Inference in First-Order Logic Junya Tanaka
 
Algorithmic foundations.docx
Algorithmic foundations.docxAlgorithmic foundations.docx
Algorithmic foundations.docxedwin orege
 
AIML 7th semester VTU
AIML 7th semester VTUAIML 7th semester VTU
AIML 7th semester VTUAyushiLodha3
 

Ähnlich wie Elm St Bridge Club Logic Puzzle (20)

Ch8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.pptCh8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.ppt
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 
chapter9.ppt
chapter9.pptchapter9.ppt
chapter9.ppt
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inference
 
1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to1004_theorem_proving_2018.pptx on the to
1004_theorem_proving_2018.pptx on the to
 
Course notes2summer2012
Course notes2summer2012Course notes2summer2012
Course notes2summer2012
 
Unit 1-logic
Unit 1-logicUnit 1-logic
Unit 1-logic
 
Evaluating definite integrals
Evaluating definite integralsEvaluating definite integrals
Evaluating definite integrals
 
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
Unit III  Knowledge Representation in AI   K.Sundar,AP/CSE,VECUnit III  Knowledge Representation in AI   K.Sundar,AP/CSE,VEC
Unit III Knowledge Representation in AI K.Sundar,AP/CSE,VEC
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
 
3 fol examples v2
3 fol examples v23 fol examples v2
3 fol examples v2
 
Resolution method in AI.pptx
Resolution method in AI.pptxResolution method in AI.pptx
Resolution method in AI.pptx
 
Inference in First-Order Logic
Inference in First-Order Logic Inference in First-Order Logic
Inference in First-Order Logic
 
Algorithmic foundations.docx
Algorithmic foundations.docxAlgorithmic foundations.docx
Algorithmic foundations.docx
 
patel
patelpatel
patel
 
02 RULES OF INFERENCES.pptx
02 RULES OF INFERENCES.pptx02 RULES OF INFERENCES.pptx
02 RULES OF INFERENCES.pptx
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
 
AIML 7th semester VTU
AIML 7th semester VTUAIML 7th semester VTU
AIML 7th semester VTU
 
mcmc
mcmcmcmc
mcmc
 

Kürzlich hochgeladen

Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Kürzlich hochgeladen (20)

Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 

Elm St Bridge Club Logic Puzzle

  • 1. 2 Assignment 5. Due Date: 02/28/11 1. Consider axioms from Assignment 4. Prove that John likes peanuts using resolution. 2. Consider the following facts: • The members of the Elm St. Bridge Club are Joe, Sally, Bill, and Ellen. • Joe is married to Sally. • Bill is Ellen’s brother. • The spouse of every married person in the club is also in the club. • The last meeting of the club was at Joe’s house. (a) Represent these facts in the predicate logic. (b) From the facts given above, most people would be able to decide on the truth of the following additional statements: • The last meeting of the club was at Sally’s house. • Ellen is not married. Can you construct resolution proofs to demonstrate the truth of each of these statements given the five listed above? Do so if possible. Otherwise, add the facts you need and then construct the proofs. 3. Assume the following facts: • Steve only likes easy courses. • Science courses are hard. • All the courses in the basketweaving department are easy. • BK 301 is a basketweaving course. Use resolution to answer the question, “What course would Steve like?” (read pp. 160-164 of the handout)
  • 2. 3 Conversion to Clause Form: All Romans who know Marcus either hate Caesar or think that anyone who hates anyone is crazy. Problem: ∀x: [Roman(x) ∧ know(x, Marcus)] → [hate(x, Caesar) ∨ (∀y: ∃z: hate(y, z) → thinkcrazy(x, y))] Solution: • Flatten • Separate out quantifiers Conjunctive Normal Form: ¬Roman(x) ∨ ¬know(x, Marcus) ∨ hate(x, Caesar) ∨ ¬hate(y, z) ∨ thinkcrazy(x,z) Clause Form: • Conjunctive normal form • No instances of ∧
  • 3. 4 Algorithm: Convert to Clause Form 1. Eliminate →, using: a → b = ¬a ∨ b. 2. Reduce the scope of each ¬ to a single term, using: • ¬(¬p) = p • de Morgan’s laws: ¬(a ∧ b) = ¬a ∨ ¬b ¬(a ∨ b) = ¬a ∧ ¬b • ¬∀x: P(x) = ∃x: ¬P(x) • ¬∃x: P(x) = ∀x: ¬P(x) 3. Standardize variables: ∀x: P(x) ∨ ∀x: Q(x) should be replaced with ∀x: P(x) ∨ ∀y: Q(y) (y is a unique variable) 4. Move all quantifiers to the left of the formula without changing their relative order. 5. Eliminate existential quantifiers by inserting Skolem functions. 6. Drop the prefix. 7. Convert the matrix into a conjunction of disjuncts, using associativity and distributivity. 8. Create a separate clause for each conjunct. Standardize apart the variables in the set of clauses generated in step 8, using the fact that (∀x: P(x) ∧ Q(x)) = ∀x: P(x) ∧ ∀x: Q(x), thus we have two clauses P(x) Q(y)
  • 4. 5 Examples of Conversion to Clause Form Example: ∀x: [Roman(x) ∧ know(x, Marcus)] → [hate(x, Caesar) ∨ (∀y: ∃z: hate(y, z) → thinkcrazy(x, y))] 1. Eliminate → ∀x: ¬[Roman(x) ∧ know(x, Marcus)] ∨ [hate(x, Caesar) ∨ (∀y: ¬(∃z: hate(y,z)) ∨ thinkcrazy(x, y))] 2. Reduce scope of ¬ ∀x: [¬Roman(x) ∨ ¬know(x, Marcus)] ∨ [hate(x, Caesar) ∨ (∀y: ∀z: ¬hate(y,z) ∨ thinkcrazy(x, y))] 3. Standardize variables. ∀x: P(x) ∨ ∀x: Q(x) will be converted to ∀x: P(x) ∨ ∀y: Q(y) 4. Move quantifiers prefix matrix ∀x: ∀y: ∀z: [¬Roman ∨ ¬know(x, Marcus)] ∨ [hate(x, Caesar) ∨ (¬hate(y, z) ∨ thinkcrazy(x, y))]
  • 5. 6 Examples of Conversion to Clause Form 5. Eliminate existential quantifiers. ∃y: President(y) will be converted to President(S1) while ∀x: ∃y: father-of(y, x) will be converted to ∀x: father-of(S2(x), x)) 6. Drop the prefix [¬Roman(x) ∨ ¬know(x, Marcus)] ∨ [hate(x, Caesar) ∨ (¬hate(y, z) ∨ thinkcrazy(x, y))] 7. Convert to a conjunction of disjuncts. ¬Roman(x) ∨ ¬know(x, Marcus) ∨ hate(x, Caesar) ∨ ¬hate(y, z) ∨ thinkcrazy(x, y)
  • 6. 7 Examples of Conversion to Clause Form Distribution Law (a ∧ b) ∨ c = (a ∨ c) ∧ (b ∨ c) The formula (winter ∧ wearingboots) ∨ (summer ∧ wearingsandals) becomes [winter ∨ (summer ∧ wearingsandals)] ∧ [wearingboots ∨ (summer ∧ wearingsandals)] and then becomes (winter ∨ summer) ∧ (winter ∨ wearingsandals) ∧ (wearingboots ∨ summer) ∧ (wearingboots ∨ wearingsandals) and finally (winter ∨ summer) (winter ∨ wearingsandals) (wearingboots ∨ summer) (wearingboots ∨ wearingsandals)
  • 7. 8 A Set of Facts about Marcus 1. man(Marcus) 2. Pompeian(Marcus) 3. born(Marcus, 40) 4. ∀x: man(x) → mortal(x) 5. ∀x: Pompeian(x) → died(x, 79) 6. erupted(volcano, 79) 7. ∀x: ∀t1: ∀ t2: mortal(x) ∧ born(x, t1) ∧ gt(t2 - t1, 150) → dead(x, t2) 8. now = 2009 9. ∀x: ∀t: [alive(x, t) → ¬dead(x, t)] ∧ [¬dead(x, t) → alive(x, t)] 10. ∀x: ∀ t1: ∀ t2: died(x, t1) ∧ gt(t2, t1) → dead(x, t2)
  • 8. 9 Axioms in clause form: 1. man(Marcus) 2. Pompeian(Marcus) 3. born(Marcus, 40) 4. ¬ man(x1) ∨ mortal(x1) 5. ¬Pompeian(x2)∨ died(x2, 79) 6. erupted(volcano, 79) 7. ¬mortal(x3) ∨ ¬born(x3, t1) ∨ ¬gt(t2 - t1, 150) ∨ dead(x3, t2) 8. now = 2009 9. ¬alive(x4, t3) ∨ ¬dead(x4, t3) 10. dead(x 5, t4) ∨ alive(x5, t4) 11. ¬died(x6, t5) ∨ ¬gt(t6, t5) ∨ dead(x6, t6)
  • 9. 10 The Basis of Resolution Given: winter ∨ summer ¬winter ∨ cold We can conclude: summer ∨ cold Two clauses winter and ¬winter produce the empty clause.
  • 10. 11 Algorithm: Propositional Resolution 1. Convert all the propositions of F to clause form. 2. Negate P and convert the result to clause form. Add it to the set of clauses obtained in step 1. 3. Repeat until either a contradiction is found or no progress can be made: (a) Select two clauses. Call these the parent clauses. (b) Resolve them together. The resolvent will be the disjunction of all the literals of both of the parent clauses with the following exception: If there are any pairs of literals L and ¬L such that one of the parent clauses contains L and the other contains ¬L. then select one such pair and eliminate both L and ¬L from the resolvent. (c) If the resolvent is the empty clause, then a contradiction has been found. If it is not, then add it to the set of clauses available to the procedure.
  • 11. 12 Propositional Resolution We want to prove R. Given Axioms Clause Form P P (1) (P ∧ Q) → R ¬P ∨ ¬Q ∨ R (2) (S ∨ T) → Q ¬S ∨ Q (3) ¬T ∨ Q (4) T T (5) ¬P ∨ ¬Q ∨ R ¬R ¬P∨ ¬Q P ¬T ∨ Q ¬Q ¬T T
  • 12. 13 Herbrand’s Theorem • To show that a set of clauses S is unsatisfiable, it is necessary to consider only interpretations over a particular set, called the Herbrand universe of S. • A set of clauses S is unsatisfiable if and only if a finite subset of ground instances (in which all bound variables have had a value substituted for them) of S is unsatisfiable.