Commensurate line theory