The rules for Robots from “Handbook of Robotics, 56th Edition, 2058 A.D.”, are:
- A robot may not injure a human being or, through inaction, allow a human being to come to harm.
- A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.
- A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws
0. A robot may not harm humanity, or, by inaction, allow humanity to come to harm.
The zeroth law is why democratic governments kill terrorists using all means possible. One dead terrorist is better than many innocents killed.