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?

unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programminghodcsencet
 
dynamic programming Rod cutting class
dynamic programming Rod cutting classdynamic programming Rod cutting class
dynamic programming Rod cutting classgiridaroori
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplicationRespa Peter
 
Greedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemGreedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemMadhu Bala
 
Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningSagacious IT Solution
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programmingShakil Ahmed
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and LiftingMegha Sharma
 
Non regular languages
Non regular languagesNon regular languages
Non regular languageslavishka_anuj
 
Approximation algorithms
Approximation algorithmsApproximation algorithms
Approximation algorithmsGanesh Solanke
 
Presentation on "Knowledge acquisition & validation"
  Presentation on "Knowledge acquisition & validation"  Presentation on "Knowledge acquisition & validation"
Presentation on "Knowledge acquisition & validation"Aditya Sarkar
 
03 Analysis of Algorithms: Probabilistic Analysis
03 Analysis of Algorithms: Probabilistic Analysis03 Analysis of Algorithms: Probabilistic Analysis
03 Analysis of Algorithms: Probabilistic AnalysisAndres Mendez-Vazquez
 
Daa:Dynamic Programing
Daa:Dynamic ProgramingDaa:Dynamic Programing
Daa:Dynamic Programingrupali_2bonde
 
Raspberry pi course syllabus
Raspberry pi course syllabusRaspberry pi course syllabus
Raspberry pi course syllabusSoftroniics india
 
recurrence relations
 recurrence relations recurrence relations
recurrence relationsAnurag Cheela
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI Bharat Bhushan
 

Was ist angesagt? (20)

unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programming
 
dynamic programming Rod cutting class
dynamic programming Rod cutting classdynamic programming Rod cutting class
dynamic programming Rod cutting class
 
Primitive Recursive Functions
Primitive Recursive FunctionsPrimitive Recursive Functions
Primitive Recursive Functions
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplication
 
Greedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemGreedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack Problem
 
Knapsack Problem
Knapsack ProblemKnapsack Problem
Knapsack Problem
 
Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and Reasoning
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and Lifting
 
Non regular languages
Non regular languagesNon regular languages
Non regular languages
 
Approximation algorithms
Approximation algorithmsApproximation algorithms
Approximation algorithms
 
Presentation on "Knowledge acquisition & validation"
  Presentation on "Knowledge acquisition & validation"  Presentation on "Knowledge acquisition & validation"
Presentation on "Knowledge acquisition & validation"
 
Greedy algorithm
Greedy algorithmGreedy algorithm
Greedy algorithm
 
03 Analysis of Algorithms: Probabilistic Analysis
03 Analysis of Algorithms: Probabilistic Analysis03 Analysis of Algorithms: Probabilistic Analysis
03 Analysis of Algorithms: Probabilistic Analysis
 
Daa:Dynamic Programing
Daa:Dynamic ProgramingDaa:Dynamic Programing
Daa:Dynamic Programing
 
Raspberry pi course syllabus
Raspberry pi course syllabusRaspberry pi course syllabus
Raspberry pi course syllabus
 
recurrence relations
 recurrence relations recurrence relations
recurrence relations
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI
 
Master theorem
Master theoremMaster theorem
Master theorem
 

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
 
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
 
Some history of quantum groups
Some history of quantum groupsSome history of quantum groups
Some history of quantum groupsDaniel Tubbenhauer
 

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

Ch8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.pptCh8-LogicalRepresentationAndReasoning.ppt
Ch8-LogicalRepresentationAndReasoning.ppt
 
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
 
Some history of quantum groups
Some history of quantum groupsSome history of quantum groups
Some history of quantum groups
 

Kürzlich hochgeladen

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Kürzlich hochgeladen (20)

Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

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.