Գրեք սա: Viability, invariance and applications