XAI-LAW: A Logic Programming Tool for Modeling, Explaining, and Learning Legal Decisions

We propose an approach to model articles of the Italian Criminal Code (ICC), using Answer Set Programming (ASP), and to semi-automatically learn legal rules from examples based on prior judicial decisions. The developed tool is intended to support legal experts during the criminal trial phase by providing reasoning and possible legal outcomes. The methodology involves analyzing and encoding articles of the ICC in ASP, including "crimes against the person" and property offenses. The resulting model is validated on a set of previous verdicts and refined as necessary. During the encoding process, contradictions may arise; these are properly handled by the system, which also generates possible decisions for new cases and provides explanations through a tool that leverages the "supportedness" of stable models. The automatic explainability offered by the tool can also be used to clarify the logic behind judicial decisions, making the decision-making process more interpretable. Furthermore, the tool integrates an inductive logic programming system for ASP, which is employed to generalize legal rules from case examples.

Authors

Institutions

Publication Details

Journal
Electronic Proceedings in Theoretical Computer Science
Published
2026-01-08
DOI
https://doi.org/10.4204/eptcs.439.28
Primary Topic
Logic, Reasoning, and Knowledge
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

XAI-LAW: A Logic Programming Tool for Modeling, Explaining, and Learning Legal Decisions

Andrea Formisano, Agostino Dovier, Talissa Dreossi, Benedetta Strizzolo
Electronic Proceedings in Theoretical Computer Science
Logic, Reasoning, and Knowledge
article

XAI-LAW: A Logic Programming Tool for Modeling, Explaining, and Learning Legal Decisions

Andrea Formisano, Agostino Dovier, Talissa Dreossi, Benedetta Strizzolo
article en

Abstract

We propose an approach to model articles of the Italian Criminal Code (ICC), using Answer Set Programming (ASP), and to semi-automatically learn legal rules from examples based on prior judicial decisions. The developed tool is intended to support legal experts during the criminal trial phase by providing reasoning and possible legal outcomes. The methodology involves analyzing and encoding articles of the ICC in ASP, including "crimes against the person" and property offenses. The resulting model is validated on a set of previous verdicts and refined as necessary. During the encoding process, contradictions may arise; these are properly handled by the system, which also generates possible decisions for new cases and provides explanations through a tool that leverages the "supportedness" of stable models. The automatic explainability offered by the tool can also be used to clarify the logic behind judicial decisions, making the decision-making process more interpretable. Furthermore, the tool integrates an inductive logic programming system for ASP, which is employed to generalize legal rules from case examples.

Electronic Proceedings in Theoretical Computer ScienceVol. 439
University of Udine (IT)
Università degli Studi di Udine
Peace, Justice and strong institutions
Openalex Percentile: Top 93%
Logic, Reasoning, and Knowledge
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

XAI-LAW: A Logic Programming Tool for Modeling, Explaining, and Learning Legal Decisions — Andrea Formisano, Agostino Dovier, et al. · Electronic Proceedings in Theoretical Computer Science (2026) | TGRS Research Map | TGRS