A fundamental criterion of viability of any gravity theory is existence of a
stable ground-state solution being either Minkowski, dS or AdS space. Stability
of the ground state is independent of which frame is physical. In general, a
given theory has multiple ground states and splits into independent physical
sectors. All metric gravity theories with the Lagrangian being a function of
Ricci tensor are dynamically equivalent to Einstein gravity with a source and
this allows us to study the stability problem using methods developed in GR. We
apply these methods to f(R) theories. As is shown in 13 cases of Lagrangians
the stability criterion works simply and effectively whenever the curvature of
the ground state is determined. An infinite number of gravity theories have a
stable ground state and further viability criteria are necessary.Comment: A modified and expanded version of a second part of the paper which
previously appeared as gr-qc/0702097v1. The first, modified part is now
published as gr-qc/0702097v2 and as a separate paper in Class. Qu. Grav. The
present paper matches the published versio