FILE - This undated file photo provided by the Alabama Department of Corrections shows a police mug shot of Vernon Madison, who is scheduled to be executed for the 1985 murder of Mobile police officer Julius Schulte on Thursday. Alabama is asking the U.S. Supreme Court to let it proceed with this week's scheduled execution of the 67-year-old inmate whose lawyers say can no longer remember his crime. The Alabama attorney general's office told justices in a filing Monday that the state's high court last year ruled the execution could proceed and should do so again. (Alabama Department of Corrections, via AP, File)
FILE - This undated file photo provided by the Alabama Department of Corrections shows a police mug shot of Vernon Madison, who is scheduled to be executed for the 1985 murder of Mobile police officer Julius Schulte on Thursday. Alabama is asking the U.S. Supreme Court to let it proceed with this week's scheduled execution of the 67-year-old inmate whose lawyers say can no longer remember his crime. The Alabama attorney general's office told justices in a filing Monday that the state's high court last year ruled the execution could proceed and should do so again. (Alabama Department of Corrections, via AP, File)

WASHINGTON — An inmate suffering from dementia may not be executed if his disease is so severe that he is not able to rationally understand the reason for his punishment, the Supreme Court ruled on Wednesday.

Chief Justice John Roberts joined the court’s four liberals in saying Alabama death row inmate Vernon Madison deserves another chance to prove that a series of strokes and worsening vascular dementia means that he can no longer remember his crime or why the state wants to execute him.

The court previously has ruled that the Eighth Amendment’s prohibition on cruel and unusual punishment means those who suffer from pervasive delusions associated with schizophrenia and psychosis may not be put to death.

Justice Elena Kagan, delivering the opinion for the majority in the 5 to 3 ruling, said the same logic applies to those who cannot understand the link between their crimes and punishment because of dementia.

“If a person suffering from any mental disorder — dementia included — is unable to rationally understand why the state wants to execute him, then the Eighth Amendment doesn’t allow the execution,” Kagan said in reading a summary of the opinion from the bench.

In previous cases, the court has said there is no “retributive value” in executing someone who does not understand the meaning of the community’s judgment, and that it “simply offends humanity” to kill someone who doesn’t comprehend his crime or punishment.

The court had taken the case to decide a second issue: whether the fact that Madison cannot remember committing his crime meant that he could not be executed. The court ruled that, on its own, it did not.

“A person lacking memory of his crime may yet rationally understand why the state seeks to execute him; if so, the Eighth Amendment poses no bar to his execution,” Kagan wrote. Besides Roberts, she was joined in the opinion by Justices Ruth Bader Ginsburg, Stephen G. Breyer and Sonia Sotomayor.

The court’s ruling does not automatically spare Madison from execution. It said the case has to go back to a lower court to determine the extent of Madison’s dementia; it said there was reason to believe the lower court had not performed that task.

In briefs and at oral argument in the case, Madison’s lawyers said their client can no longer state the season, the day of the week or recite the alphabet beyond “G.”

After 33 years in solitary confinement, two strokes and vascular dementia, they said that, if reminded, he knows he might be executed for killing a police officer in 1985. But the next day, he’ll have to be reminded again.

Breyer, who has questioned in the past whether the death penalty can be applied in a constitutional way, said at oral argument the issues in Madison’s case are likely to recur.

“There are many, many, many prisoners on death row under threat of execution who are in their 40s, 50s, 60s, 70s, possibly 80s, who have been there for 20, 30, 40 years perhaps,” Breyer said. “So this will become a more common problem.”

The court’s three most conservative members — Clarence Thomas, Samuel Alito Jr. and Neil Gorsuch — dissented (the case was argued before Justice Brett Kavanaugh was confirmed to the court). Those three also had objected when the Supreme Court in 2018 blocked Madison’s execution.

In a sharply worded opinion, Alito said that “what the court has done in this case makes a mockery of our rules.”

He said the court accepted the case to decide the discrete question of whether Madison could be executed for a crime he no longer remembered. But Alito said that when Madison’s lawyer saw he could not prevail on that question, he convinced the court to focus on the dementia issue.

“The majority rewards counsel’s trick,” Alito wrote. Madison was represented by Bryan A. Stevenson, executive director of the anti-death penalty Equal Justice Initiative in Montgomery, Ala.

But Kagan said Alito’s “high dudgeon” was unwarranted.

Madison’s petition “presented two questions — the same two we address here,” she wrote.

The case is Madison v. Alabama.