Consistent higher derivative gravitational theories with stable de Sitter and anti–de Sitter backgrounds | Synapse