[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-501652-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-501652-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","reasonx-declarative-reasoning-on-explanations","REASONX - Declarative Reasoning on Explanations","","Explaining opaque machine learning models is a key challenge in eXplainable AI, yet many XAI methods lack sufficient abstraction, interactive capabilities, and integration with symbolic knowledge. REASONX introduces an explanation tool based on declarative expressions in a closed algebra of operators over linear constraints, enabling interactive factual and contrastive explanations for decision trees and surrogate models. Background/common-sense knowledge is encoded as constraints and reasoning is performed via MILP, using a Python layer plus a CLP meta-interpreter, validated through experiments and qualitative examples.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/reasonx-declarative-reasoning-on-explanations/501652/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/reasonx-declarative-reasoning-on-explanations/501652.png","ImageObject",300,407,{"name":42,"@type":43},"Cipher","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-16","2026-10-03",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is REASONX and what problem does it address in XAI?","Question",{"text":63,"@type":64},"REASONX is an explanation tool that supports declarative and interactive explanations for decision trees and surrogate models. It targets limitations of existing XAI methods, including insufficient abstraction and limited reasoning over symbolic knowledge.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does REASONX represent user queries and background knowledge?",{"text":68,"@type":64},"REASONX uses expressions in a closed algebra of operators over sets of linear constraints. Users can encode background or common-sense knowledge directly as linear constraints to drive factual and contrastive reasoning.",{"name":70,"@type":61,"acceptedAnswer":71},"What reasoning framework and architecture does REASONX use?",{"text":72,"@type":64},"REASONX employs a two-layer architecture: a Python layer for parsing and translating decision trees and queries, and a Constraint Logic Programming (CLP) layer that acts as a meta-interpreter. MILP is leveraged to reason over factual and contrastive instances.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},501652,1791366925,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":99,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":144,"preview_page_count":102,"preview_urls":145},687208528416,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","arXiv :2602 .23810v1 [ cs .CY] 27 Feb 2026  \nREASONX: Declarative Reasoning on Explanations  \nNeurosymbolic Artificial Intelligence XX(X):1–60  \n©The Author(s) 20XX Reprints and permission:  \n[sagepub.co.uk/journalsPermissions.nav](sagepub.co.uk/journalsPermissions.nav)[ ](sagepub.co.uk/journalsPermissions.nav)DOI: 10.1177/ToBeAssigned [www.sagepub.com/](www.sagepub.com/)  \nSAGE  \nLaura State1,2,3 , Salvatore Ruggieri1 and Franco Turini1  \nAbstract  \nExplaining opaque Machine Learning (ML) models has become an increasingly important challenge. However, current eXplanation in AI (XAI) methods suffer several shortcomings, including insufficient abstraction, limited user interactivity, and inadequate integration of symbolic knowledge. We propose REASONX, an explanation tool based on expressions (or, queries) in a closed algebra of operators over theories of linear constraints. REASONX provides declarative and interactive explanations for decision trees, which may represent the ML models under analysis or serve as global or local surrogate models for any black-box predictor. Users can express background or common sense knowledge as linear constraints. This allows for reasoning at multiple levels of abstraction, ranging from fully specified examples to under-specified or partially constrained ones. REASONX leverages Mixed-Integer Linear Programming (MILP) to reason over the features of factual and contrastive instances. We present here the architecture of REASONX, which consists of a Python layer, closer to the user, and a Constraint Logic Programming (CLP) layer, which implements a meta-interpreter of the query algebra. The capabilities of REASONX are demonstrated through qualitative examples, and compared to other XAI tools through quantitative experiments.  \nKeywords  \neXplainable AI, Constraint Logic Programming, Decision Trees, Black-box Machine Learning Models  \n1 University of Pisa, IT  \n2 Scuola Normale Superiore, IT  \n3 Alexander von Humboldt Institute for Internet and Society, GER  \nCorresponding author:  \nLaura State, Alexander von Humboldt Institute for Internet and Society, Französische Str. 9, 10117 Berlin, GER.  \nEmail: [laura.state@hiig.de](laura.state@hiig.de)  \nPrepared using sagej.cls [Version: 2017/01/17 v1.20]  \nIntroduction  \nThe acceptance and trust of Artificial Intelligence (AI) applications is hampered by the opacity and complexity of Machine Learning (ML) models, possibly resulting in biased or even socially discriminatory decision-making (Ntoutsi et al., 2020) . As a possible solution, the field of eXplainable Artificial Intelligence (XAI) provides methods to understand how a ML model reaches a decision (Guidotti et al., 2019b ; Minh et al., 2022 ; Mersha et al., 2024) . However, most existing approaches focus on descriptive explanations and rarely support declarative reasoning over the decision rationale. By reasoning, we mean the possibility for the user to define any number of conditions over explanations (both factual and contrastive ones), which would codify both background knowledge and what-if analyses (Beckh et al., 2023), and then query for explanations at the symbolic and intensional level. Answers could be expressed in the same language as the user queries, thus making the query language closed, i.e., (part of) the answer to a query can be used in following queries. This would support the interactivity of the explanation process – a requirement of XAI (Miller, 2019) .  \nIn this paper, we define a closed algebra of operators on sets of linear constraints. Expressions over such an algebra represent user queries that allow for computing factual and contrastive explanations. On top of the algebra, we design REASONX (reason to explain), an explanation tool that consists of two layers. The first layer is in Python, closer to the data analyst user, where decision trees (DTs) and user queries are parsed and translated. The second layer is in Constraint Logic Programming (CLP) over thereals (Jaffar and","cbCaiguhJm0geKTx","https://ap.wps.com/l/cbCaiguhJm0geKTx","pdf",1417264,"English","# Abstract\n# Keywords\n# Introduction","[{\"question\":\"What is REASONX and what problem does it address in XAI?\",\"answer\":\"REASONX is an explanation tool that supports declarative and interactive explanations for decision trees and surrogate models. It targets limitations of existing XAI methods, including insufficient abstraction and limited reasoning over symbolic knowledge.\"},{\"question\":\"How does REASONX represent user queries and background knowledge?\",\"answer\":\"REASONX uses expressions in a closed algebra of operators over sets of linear constraints. Users can encode background or common-sense knowledge directly as linear constraints to drive factual and contrastive reasoning.\"},{\"question\":\"What reasoning framework and architecture does REASONX use?\",\"answer\":\"REASONX employs a two-layer architecture: a Python layer for parsing and translating decision trees and queries, and a Constraint Logic Programming (CLP) layer that acts as a meta-interpreter. MILP is leveraged to reason over factual and contrastive instances.\"}]","REASONX - Declarative Reasoning on Explanations | PDF",1791022046,151,[146,150,154,158,162,166],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d266e956c916feae2f82aaa9c8ff01fd.webp",983,1415,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/442e207b28145508b56253d4ca71eb8f.webp",982,1414,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/6fd95a88e40d407b7eec00cd49989a95.webp",981,1412,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fa236369527aae037f39e1ee3666fcd3.webp",980,1411,{"page_no":97,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7aebdc44fa6fc4c9603479bc96ae7d89.webp",979,1409,{"page_no":102,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c883e109ea85dc97025617393988259b.webp",978,1408]