The logic of the miniature garden