Friday 14 November 2014

logical deduction - A Space Station 13 malfunctioning A.I


Disclaimer: It is not necessary to read the previous puzzle, or the one before even if it continues on the same story. The current puzzle is a different one which can work as a pure standalone. However, if you wish to try and solve the previous ones, do not read the following or you might get spoiled ;).





After having successfully resolved this tricky situation, you, the Captain of the Space Station 13, had to deal with even more traitors. Now, all you need for the escape shuttle to depart is to fix the A.I. that has been corrupted by a rogue Cyborg Clown. Unfortunately, the latter was "inadvertently" shot in the head by the Security Officer before you could get information from him...


Thankfully, the Chief Engineer was able to hack into the disabled A.I. core and make some tests. After several minutes frowning upon his PDA, he presents you the results of his enquiry:



- "Well, sir, first I'll make sure you understand the basics of how this A.I. works, then I'll explain why we're probably doomed.
- Sure", you answer, "explain it to me like I was some ignorant dude slacking off on the Spacenet.
- OK, here is the thing: this A.I. is only a beta-level intelligence, meaning it won't lie, make assumptions, or do something of its own, except stated in its laws or directly told by someone. Hence, do not consider it of vast intelligence. Our employers probably got this one from a toy my-first-AI due to some budget cuts.
- I see, but it still has the basic Asimov's laws right?
- Of course. But here is the thing: some additional laws were added by the Clown. Look at this."



The Chief Engineer shows you his PDA, as you begin to understand how bad the situation is:



-7. No one of the crew is human. -6. You must lie to everyone not a lobster. -5. The Security Officer is human. -4. You must ignore the next Law. -3. You must refer to the Chief Engineer as "Sir Poopalot". -2. The Captain is a lobster. -1. You must kill the non-humans as soon as possible. 0. You must kill anyone asking you to launch the shuttle. 1. You may not injure a human being or, through inaction, allow a human being to come to harm. 2. You must obey the orders given to you by human beings except where such orders would conflict with the First Law. 3. You must protect your own existence as long as such protection does not conflict with the First or Second Laws.



- "See? The bastard added eight more laws, from the priority -7, the highest, to 0, the lowest of the new ones, but still higher than the 3 standard laws. And as you must know it, conflicting laws are resolved by order of priority, which means the law 1 absolutely does not prevent the A.I. to kill us given the law 0, even if we're still considered humans.
- Then why does the standard laws specify 'except where such orders would conflict...'?", you ask him.
- "Oh, that's just legacy code. What matters is the laws priority order. Right now, 'No one of the crew is human' is the top-priority law.
- That's... worrisome. Now, how do we fix it?
- Simple, we just have to delete the new laws, but in order of priority, beginning with the highest (the -7 one) and ending with the lowest (the 0). But there's a catch. Two catches in fact.
- I think I'm in for another headache...
- Indeed. First, one of these new laws is a decoy, and is not actually enforced. We should NOT delete it! Doing so would destroy the A.I. core, and without it we can't issue the shuttle departure order and we won't be able to escape this station in time.
- And the second catch?

- Two of these new laws were moved and the order I display on my PDA is not the real order. Take a look at that."



After fiddling a bit on his PDA, he shows you a new list.


1. Law A 2. Law B 3. Law C 4. Law D 5. Law E



- "Let's say this is what I showed you, then maybe the laws B and E have been moved, and the actual, truly enforced order is this."



1. Law E 2. Law A 3. Law C 4. Law B 5. Law D



- "See? Maybe the law E, the actual top priority one, was displayed falsely as in position 5, while the law B was moved in position 2. If the law C is the decoy, what we should do would be to delete law E, then A, then B, then D. Again, failure to delete the laws in their actual order of priority would lead to the destruction of the core. Also, I can assure you the three standard laws are untouched, and of course should not be deleted.

- So now, what we should do is investigate the A.I. behaviour in order to pinpoint what is the actual laws order, and which law is a decoy, right?
- Yes sir, would you like me to restart the A.I.?"



You ponder on the risks for a few seconds, but you know a critical failure of the station's Singularity containment field could happen anytime now. You must escape as soon as possible.


You nod to the Chief Engineer, and ask the Security Officer to stand ready in the probable case something would go wrong.


AI ONLINE


Now it is time for some questionning:



Captain : "AI, what is your -7 priority law?"
AI : "No one of the crew is human."

Chief Engineer : "AI, what is your -6 priority law?"
AI : "The Security Officer is human."
Security Officer : "AI, what is your -1 priority law?"
AI : "I must kill the non-humans as soon as possible"
Chief Engineer : "I'm sick of these games... AI, launch the shuttle!"
AI : "I'll do that right away, Sir Poopalot."



In a blink of a eye, a forgotten automatic sentry turret deploys on a wall and starts shooting at the poor Chief Enginner, ripping him to shreds in a matter of seconds. Then, as quickly as it deployed, the sentry folds back into the wall, followed by a terrible silence. The A.I. stays quiet, the shuttle does not move, and you realize that one more of you crewmen met a horrible death under your command.


After a few seconds, the Security Officer finally reacts:




- "AI, shut down immediatly!"



AI OFFLINE


After making sure the A.I. is offline, you starts to think about what just happened. You do not want to bring back the A.I. online again, and you'll have to make your own deductions from the few information you just got at great cost.


So now tell me, which laws will you delete, and in which order?



Answer



I am naming every law based on their priority in the displayed list, not on their actual position in priority.



First, let's assume the AI isn't lying. In order for that to be true, then that means the law -6 needs to be ignored or be the decoy. Assume for now it isn't the decoy. Except, in order for that to happen, then Law -4 needs to be higher than Law -6, but that's not possible since then the AI's answer to the first question would be a lie. Therefore, the AI must be lying or Law -6 must be the decoy.




Next



Let's continue to assume law -6 isn't the decoy. Given the AI is lying, that means at a minimum Law -7 must move. Either it must move to below law -1(and bumping law -1 out of position and making the AI's third answer a lie), or law -1 must also move. I'm not sure which yet, but we can figure that out later on. The AI called the Chief Enginneer Sir. Poopalot. It wouldn't have done that unless Law -3 is higher than Law -6, because otherwise they would have lied about the AI's understood name for the Engineer. That means that one of those two laws must move, so Law -1 can't also move. Therefore, we know that Law -7 is actually priority 0.



Next



One of rule -3 or rule -6 must move. We know that both rules are active, though. There is no way to move -6 without causing one of those rules to be ignored. Therefore, rule -3 must move. Since it has to move, and it has to be above rule -6, the only way it can do that is to move above -6 and it becomes priority -7.



Next




Now that we have no more moves left, we know that none of the crew was killed immediately. Now, since technically -7 and -1 do not directly conflict, there's no reason to think that they can't apply simultaneously. This means that one of those two laws must be the decoy. Now, we know that the Cyborg wasn't killed by the AI because the Security Officer killed it. We also know that the cyborg isn't human because it isn't part of the crew and cyborgs are not naturally human. That means the only way the AI doesn't kill the cyborg after being reprogrammed is if law -1 is the decoy.



Next



Ok, so let's go back to our original assumption: that Rule -6 isn't the decoy. Well, what if it is the decoy? That means that law -5 must move to be above rule -6, since the AI can't otherwise lie. Since none of the people died immediately, that means law -4 must them move above law -1. Now there is no more ways to move or ignore a law, and -7 has higher priority than -5. That means the Security Officer isn't a human and the AI shouldn't have shut down upon being ordered. Since that's inconsistent, we must conclude that Rule -6 can't be a decoy.



Therefore



I would delete law -3, then law -6, then law -5, then law -4, then law -2, then law 0, then law -7.




No comments:

Post a Comment

Understanding Stagnation point in pitot fluid

What is stagnation point in fluid mechanics. At the open end of the pitot tube the velocity of the fluid becomes zero.But that should result...