"And He Built a Crooked House" is a science fiction short story by American writer Robert A. Heinlein. The full title, as originally published, includes quotation marks and dashes: "'—And He Built a Crooked House—'". It was first published in Astounding Science Fiction in February 1941. The story was reprinted in the anthology Fantasia Mathematica (edited by Clifton Fadiman) in 1958 and in the Heinlein collections The Unpleasant Profession of Jonathan Hoag (1959) and The Best of Robert Heinlein (1973). The title is paraphrased from the nursery rhyme "There Was a Crooked Man."
Plot summary
The story concerns Quintus Teal, a "Graduate Architect" in the Los Angeles area who wishes to apply concepts from topology to architecture. During a conversation with his friend Homer Bailey, Teal demonstrates models made of toothpicks and clay representing projections of a four-dimensional tesseract (the four-dimensional analogue of a cube) and convinces Bailey to build such a structure as a house. The house is constructed in an "inverted double cross" shape, comprising eight cubical rooms arranged as a stack of four cubes with four additional cubes surrounding the second cube in the stack.
The night before Teal is to show the house to Bailey and his wife, Matilda, an earthquake occurs. When the three arrive the next morning, they find what appears to be only a single cubical room. Inside, the upper floors are intact, but the stairs form a closed loop, and all doors and windows lead into other spaces with no apparent exit. At one point they look down a hallway and see their own backs. Teal concludes that the earthquake caused the house to fold into an actual tesseract.
During their exploration, windows of the original top room connect to unexpected locations: one offers a view from above the Empire State Building, another an upside-down view of a seascape, a third looks onto a place of no-space with no color, and the fourth looks out onto an unearthly desert scene. A second earthquake strikes, and the group exits through an open window, finding themselves in a desert with twisted, tree-like vegetation. They initially fear they may be on another planet but are relieved to discover, from a passing truck driver, that they are in Joshua Tree National Park. Returning to where the house had stood, they find it has vanished; Teal remarks that it must have "fell through into another section of space" and that he should have anchored it at the foundations. The story ends with Teal proposing a new revolutionary house design while Bailey attempts, unsuccessfully, to punch him.
Address
The story gives Quintus Teal's address as 8775 Lookout Mountain Avenue in Hollywood, California, across the street from the residence of Heinlein himself at the time the story was written.
Reception
In 1978, Carl Sagan cited "—And He Built a Crooked House—" as an example of how science fiction "can convey bits and pieces, hints and phrases, of knowledge unknown or inaccessible to the reader," noting that the story was, for many readers, the first introduction to four-dimensional geometry that held any promise of comprehensibility.
The story is frequently cited as a notable example of mathematical fiction due to its treatment of the tesseract and four-dimensional geometry.