A model of d-wave superconductivity, antiferromagnetism, and charge order on the square lattice.