Revealing mistake: Just before entering Robertson's office after climbing the stairs, Spooner is behind Sonny with a flashlight. The light shines on Sonny's back and the door, but Sonny does not cast a shadow.

I, Robot (2004)
Plot summary
Directed by: Alex Proyas
Starring: Will Smith, James Cromwell, Bruce Greenwood, Alan Tudyk, Bridget Moynahan
It is the year 2035, in a world where robots are now common assistants for their human owners. 'Robophobic' police Detective Del Spooner played by Will Smith (Hitch) investigates the murder of Dr. Alfred Lanning (James Cromwell) designer of the robots at U.S Robotics based in Chicago. Robot Sonny, (Alan Tudyk) is found 'hiding' at the scene of the crime where Lanning was murdered. Spooner takes this action into account and suggests Sonny killed Lanning. But surely a robot can't violate the three laws of robotics...
Sonny: 2880 steps, detective.
Del Spooner: Do me a favor and keep that kind of shit to yourself.
Trivia: Often times when a movie is distributed the name of the movie on the actual can is changed or altered to prevent piracy. The name on this movie was "Hal," a reference to "2001: A Space Odyssey" (1968).





Answer: Sonny killed Lanning. Lanning had designed Sonny with the ability to opt out of the Three Laws when he deemed it absolutely necessary. Lanning forced Sonny to promise to do Lanning a favor, then told him the favor was to throw Lanning out the window. Forced to keep his word by Lanning's own programming, Sonny overrode the Three Laws and tossed Lanning out the window.
Phoenix