Exile to Hell
Isaac Asimov
 A man named Jenkins is put on trial after accidentally damaging a computer system that potentially could have a disastrous effect on the totally computerized underground society in which he lives. The trial, which is carried out by computers programmed with prosecution and defence arguments, finds Jenkins guilty of equipment damage, a major crime by the society's laws. He is sentenced to permanent exile. Only at the end of the story is it revealed that the society is built beneath the surface of the Moon, with a totally conditioned and computer-controlled environment, and that the place of exile is on the surface of the Earth.