“Fair is foul, and foul is fair,” chanted the witches in Macbeth, meaning that appearances can be deceptive: things can differ from how they appear. And our idea of fairness, under the law, can fall foul of algorithms when computer scientists try to develop fair computer systems that make...