IHTM28090 | Liabilities: investigating liabilities: separation, divorce or dissolution of a civil partnership payments
From HM Revenue & Customs · Inheritance Tax Manual
You may only allow a deduction if the deceased was under a legally enforceable financial obligation to a former spouse or civil partner.
The guidance on the following pages gives separate instructions for specific types of claims against the estate.