The appellate court in Madrid v. Gomez declared that the conditions of extreme social isolation and sensory deprivation for mentally ill prisoners was constitutional.