edited by
4,306 views
0 votes
0 votes
A detective has interviewed four witnesses to a crime. From the stories of the witnesses the detective has concluded that if the butler is telling the truth then so is the cook; the cook and the gardener cannot both be telling the truth; the gardener and the handyman are not both lying; and if the handyman is telling the truth then the cook is lying. For each of the four persons can the detective determine whether that person is telling the truth or lying ? Explain your reasoning.
edited by

2 Answers

Best answer
4 votes
4 votes
Figured out the answer myself.

I will use B,C,G,H

The problem says (~B + C).(~C + ~G).(G + H).(~H + ~C) using + for OR and . for AND

Taking B to be true we get :

C.(~C + ~G).(G + H).(~H + ~C) which gives C.~G.(G + H).~H which is a contradiction. So B is false. Taking B to be false the main problem reduces to :

(~C + ~G).(G + H).(~H + ~C)

Now let us take C to be true. Taking C to be true will give ~G.(G + H).~H which is a contradiction. So C has to be false.

At the end we are left with (G + H). So we cannot say whether handyman or gardener or both are telling the truth.
selected by
0 votes
0 votes

P1: Butler is telling truth
P2: Cook is telling truth
P3: Gardener is telling truth
P4: HandyMan is telling the truth

  • if the butler is telling the truth then so is the cook;
    • P1 => P2 i.e ~P1 or P2 is true -(1)
  •  the cook and the gardener cannot both be telling the truth;
    • ~(P2.P3)-(2)
  • the gardener and the handyman are not both lying;
    • P3 or P4 is true - (3)
  •  if the handyman is telling the truth then the cook is lying
    • P4 => ~P2 i.e ~p4 or ~p2 is true i.e ~(P4.P2) is true - (4)

  
When P1 is true:
- P2 must be true (By 1) -(5)
- P3 must be false (By 2) -(6)
- P4 must be false (By 4 and 5)
When P1 is false
- P2 can be true or false (By 1)

  •  P1 is false P2 is true
    • P3 must be false - (By 2)
    • P4 must be false - (By 4)
    • But this means p3 or p4 is false. This will contradict (3). So this is not possible.
  •  P1 is false P2 is false.
    • P3 or P4 must be true. (P3,P4 = TT,TF,FT)


So there are the following possible solutions
P1,P2,P3,P4 = {T,T,F,F} and {F,F,T,F}, {F,F,T,T}, {F,F,F,T}

Hence we can't uniquely determine the values of P1,P2,P3,P4

edited by

Related questions

588
views
3 answers
1 votes
Pooja Khatri asked Mar 16, 2019
588 views
Show that $(p \rightarrow q) \vee (p \rightarrow r)$ and $p \rightarrow (q \vee r)$ are logically equivalent.
1.7k
views
2 answers
0 votes
pavan singh asked Jan 12, 2023
1,666 views
Freedonia has fifty senators. Each senator is either honest or corrupt. Suppose you know that at least one of the Freedonian senators is honest and that, given any two Fr...
1.5k
views
2 answers
1 votes
pavan singh asked Jan 9, 2023
1,491 views
Suppose there are signs on the doors to two rooms. The sign on the first door reads “In this room there is a lady, and in the other one there is a tiger”; and the sig...
2.1k
views
2 answers
1 votes
pavan singh asked Jan 9, 2023
2,149 views
Four friends have been identified as suspects for an unauthorized access into a computer system. They have made statements to the investigating authorities. Alice said“...