SlideShare uma empresa Scribd logo
1 de 37
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree LearningMilind Gokhale
 
Bayesian networks in AI
Bayesian networks in AIBayesian networks in AI
Bayesian networks in AIByoung-Hee Kim
 
Approximation algorithms
Approximation algorithmsApproximation algorithms
Approximation algorithmsGanesh Solanke
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningVeni7
 
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain RatioLecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain RatioMarina Santini
 
Fuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemFuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemDigiGurukul
 
Machine Learning 3 - Decision Tree Learning
Machine Learning 3 - Decision Tree LearningMachine Learning 3 - Decision Tree Learning
Machine Learning 3 - Decision Tree Learningbutest
 
Neuro-fuzzy systems
Neuro-fuzzy systemsNeuro-fuzzy systems
Neuro-fuzzy systemsSagar Ahire
 
Greedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemGreedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemMadhu Bala
 
Dealing with inconsistency
Dealing with inconsistencyDealing with inconsistency
Dealing with inconsistencyRajat Sharma
 
2.4 rule based classification
2.4 rule based classification2.4 rule based classification
2.4 rule based classificationKrish_ver2
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agentsMegha Sharma
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingVimal Dewangan
 
Fuzzy Logic Ppt
Fuzzy Logic PptFuzzy Logic Ppt
Fuzzy Logic Pptrafi
 

Mais procurados (20)

Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
 
Bayesian networks in AI
Bayesian networks in AIBayesian networks in AI
Bayesian networks in AI
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Approximation algorithms
Approximation algorithmsApproximation algorithms
Approximation algorithms
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Fuzzy arithmetic
Fuzzy arithmeticFuzzy arithmetic
Fuzzy arithmetic
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoning
 
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain RatioLecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
 
Fuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemFuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th Sem
 
Machine Learning 3 - Decision Tree Learning
Machine Learning 3 - Decision Tree LearningMachine Learning 3 - Decision Tree Learning
Machine Learning 3 - Decision Tree Learning
 
Neuro-fuzzy systems
Neuro-fuzzy systemsNeuro-fuzzy systems
Neuro-fuzzy systems
 
Greedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack ProblemGreedy Algorithm - Knapsack Problem
Greedy Algorithm - Knapsack Problem
 
Dealing with inconsistency
Dealing with inconsistencyDealing with inconsistency
Dealing with inconsistency
 
2.4 rule based classification
2.4 rule based classification2.4 rule based classification
2.4 rule based classification
 
Lecture 6 expert systems
Lecture 6   expert systemsLecture 6   expert systems
Lecture 6 expert systems
 
Predicate logic
 Predicate logic Predicate logic
Predicate logic
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
Fuzzy Membership Function
Fuzzy Membership Function Fuzzy Membership Function
Fuzzy Membership Function
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
 
Fuzzy Logic Ppt
Fuzzy Logic PptFuzzy Logic Ppt
Fuzzy Logic Ppt
 

Destaque

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
 

Destaque (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
 

Semelhante a 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
 
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
 

Semelhante a 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
 
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
 

Último

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
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
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
 
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
 
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
 
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
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
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
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
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
 

Último (20)

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
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
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
 
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
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
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
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
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🔝
 
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)
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.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
 
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
 

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.