SlideShare une entreprise Scribd logo
1  sur  37
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AIIldar Nurgaliev
 
Knnowledge representation and logic lec 11 to lec 15
Knnowledge representation and logic lec 11 to lec 15Knnowledge representation and logic lec 11 to lec 15
Knnowledge representation and logic lec 11 to lec 15Subash Chandra Pakhrin
 
Planning in AI(Partial order planning)
Planning in AI(Partial order planning)Planning in AI(Partial order planning)
Planning in AI(Partial order planning)Vicky Tyagi
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and SearchHitesh Mohapatra
 
Constraint satisfaction problems (csp)
Constraint satisfaction problems (csp)   Constraint satisfaction problems (csp)
Constraint satisfaction problems (csp) Archana432045
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AIMegha Sharma
 
DISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEMDISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEMMANISH KUMAR
 
Conceptual dependency
Conceptual dependencyConceptual dependency
Conceptual dependencyJismy .K.Jose
 
Substitution techniques
Substitution techniquesSubstitution techniques
Substitution techniquesvinitha96
 
unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programminghodcsencet
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...Lê Anh Đạt
 
El Gamal Cryptosystem
El Gamal CryptosystemEl Gamal Cryptosystem
El Gamal CryptosystemAdri Jovin
 

Tendances (20)

Knapsack Problem
Knapsack ProblemKnapsack Problem
Knapsack Problem
 
N queen problem
N queen problemN queen problem
N queen problem
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AI
 
Fuzzy Membership Function
Fuzzy Membership Function Fuzzy Membership Function
Fuzzy Membership Function
 
Knnowledge representation and logic lec 11 to lec 15
Knnowledge representation and logic lec 11 to lec 15Knnowledge representation and logic lec 11 to lec 15
Knnowledge representation and logic lec 11 to lec 15
 
Fuzzy Logic
Fuzzy LogicFuzzy Logic
Fuzzy Logic
 
Planning in AI(Partial order planning)
Planning in AI(Partial order planning)Planning in AI(Partial order planning)
Planning in AI(Partial order planning)
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
 
Constraint satisfaction problems (csp)
Constraint satisfaction problems (csp)   Constraint satisfaction problems (csp)
Constraint satisfaction problems (csp)
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AI
 
DISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEMDISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEM
 
Conceptual dependency
Conceptual dependencyConceptual dependency
Conceptual dependency
 
Substitution techniques
Substitution techniquesSubstitution techniques
Substitution techniques
 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
 
convex hull
convex hullconvex hull
convex hull
 
unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programming
 
Diffie-hellman algorithm
Diffie-hellman algorithmDiffie-hellman algorithm
Diffie-hellman algorithm
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
 
El Gamal Cryptosystem
El Gamal CryptosystemEl Gamal Cryptosystem
El Gamal Cryptosystem
 
Frames
FramesFrames
Frames
 

En vedette

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
 

En vedette (20)

Chapter 4 (final)
Chapter 4 (final)Chapter 4 (final)
Chapter 4 (final)
 
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
 
Tech coach flyer
Tech coach flyerTech coach flyer
Tech coach flyer
 

Similaire à 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
 

Similaire à 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
 

Dernier

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
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
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Dernier (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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 ...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

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.