The theory of A-spaces