Paper deep dive
Explainable Belief Harmonization under Dynamic Epistemic Partitions
Adam Kostka, JarosĹaw A. Chudziak
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 94%
Last extracted: 7/24/2026, 2:52:33 AM
Summary
This paper introduces a formal framework for explainable belief harmonization in multi-agent systems where agents have dynamic, heterogeneous observational capabilities (epistemic partitions). The authors propose a hybrid architecture combining Answer Set Programming (ASP) for structural logic and integrity constraints with Python for numerical belief processing. The framework handles runtime changes in agent resolution (refinement and coarsening), ensuring admissibility preservation or providing unique mass-preserving repairs. It offers formal guarantees for violation detection and explanation completeness, validated through experiments on randomly generated topology changes.
Entities (9)
Relation Signals (8)
Adam Kostka â affiliatedwith â Warsaw University of Technology
confidence 98% ¡ Adam Kostka Warsaw University of Technology, Warsaw, Poland
JarosĹaw A. Chudziak â affiliatedwith â Warsaw University of Technology
confidence 98% ¡ JarosĹaw A. Chudziak Warsaw University of Technology, Warsaw, Poland
This Work â publishedin â ICLP 2026
confidence 95% ¡ 42nd International Conference on Logic Programming (ICLP 2026)
This Work â uses â Python
confidence 95% ¡ with the numerical flexibility of Python
This Work â uses â Answer Set Programming
confidence 95% ¡ A hybrid approach exploits the advantages of answer set programming
Coarsening â canviolate â Admissibility
confidence 92% ¡ Coarsening can violate admissibility... beliefs must be repaired
Refinement â preserves â Admissibility
confidence 92% ¡ Refinement preserves admissibility... refinement events... require no repair step
Projection â provides â Mass-preserving repair
confidence 90% ¡ Projection is the unique mass-preserving admissible repair
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Existing approaches to multi-agent belief combination have established mature foundations for combining uncertain beliefs under common assumptions: consensus methods use iterative averaging, logic-based methods resolve conflicting knowledge bases, and epistemic logic analyzes agents' information states. Typically, these approaches assume that the structure determining what each agent can represent remains fixed. However, in many scenarios, agents gain or lose observational capacity during execution, and what was once admissible may become structurally impossible. This paper presents a formal framework for handling such runtime changes in epistemic partitions over continuous belief profiles. A hybrid approach exploits the advantages of answer set programming in elaboration tolerance, declarative integrity constraints, and explanations, with the numerical flexibility of Python. The framework applies to domains where agents operate at heterogeneous and possibly changing levels of resolution, and provides formal guarantees of admissibility preservation under refinement, unique mass-preserving repair under coarsening, and explanation completeness. Evaluation across 100 randomly generated topology changes confirms complete violation detection and explanation coverage.
Tags
Links
- Source: https://arxiv.org/abs/2607.21210v1
- Canonical: https://arxiv.org/abs/2607.21210v1
Trouble viewing inline? Open PDF directly â
Full Text
46,497 characters extracted from source content.
Expand or collapse full text
W. Faber, L. Giordano, R. Rocha, V. Santos Costa (Eds.): 42nd International Conference on Logic Programming (ICLP 2026) EPTCS 450, 2026, p. 529â543, doi:10.4204/EPTCS.450.39 Š Kostka & Chudziak This work is licensed under the Creative Commons Attribution License. Explainable Belief Harmonization under Dynamic Epistemic Partitions Adam Kostka Warsaw University of Technology, Warsaw, Poland adam.kostka.stud@pw.edu.pl JarosĹaw A. Chudziak Warsaw University of Technology, Warsaw, Poland jaroslaw.chudziak@pw.edu.pl Existing approaches to multi-agent belief combination have established mature foundations for combining uncertain beliefs under common assumptions: consensus methods use iterative averaging, logic-based methods resolve conflicting knowledge bases, and epistemic logic analyzes agentsâ information states. Typically, these approaches assume that the structure determining what each agent can represent remains fixed. However, in many scenarios, agents gain or lose observational capacity during execution, and what was once admissible may become structurally impossible. This paper presents a formal framework for handling such runtime changes in epistemic partitions over continuous belief profiles. A hybrid approach exploits the advantages of answer set programming in elaboration tolerance, declarative integrity constraints, and explanations, with the numerical flexibility of Python. The framework applies to domains where agents operate at heterogeneous and possibly changing levels of resolution, and provides formal guarantees of admissibility preservation under refinement, unique mass-preserving repair under coarsening, and explanation completeness. Evaluation across 100 randomly generated topology changes confirms complete violation detection and explanation coverage. 1 Introduction Combining uncertain beliefs for multiple agents is an established problem with mature theories for its solution, including consensus theory [DeG74,HK02], logic-based merging [KP02,KP11], and epistemic logic [FHMV95]. These theories provide effective solutions for averaging over multiple iterations, merging conflicting knowledge bases, and logical analysis of agentsâ information states. In aggregate, they provide a solid foundation for combining uncertain beliefs for multiple agents when the representational structure is known a priori. However, in many practical cases, this representational structure is dynamic. Agents gain or lose observational capacity, new agents can be added, or existing agents can be removed, and previously admissible beliefs can become structurally inconsistent with respect to the new structure [FHMV95]. The system must recognize this inconsistency, identify its cause, correct it, and continue. Dynamic representational structures occur naturally in systems where agents have different and changing levels of resolution. For example, imagine a system where multiple sensors provide probability distributions over a set of conditions, but at different levels of resolution, which can be dynamic. A high-resolution LiDAR sensor can distinguish ten different surfaces, a camera can aggregate them at five levels, and an ultrasonic sensor can distinguish between obstacles and no obstacles. If it rains and the cameraâs resolution changes or a sensor fails, the representational structure changes, and previously admissible beliefs may no longer be valid. The existing theories for combining uncertain beliefs assume fixed representational structures, while logic-based merging assumes discrete knowledge bases. The nearest existing solution for combining uncertain beliefs is Equibel [VDS15], where discrete propositional beliefs are combined on 530Explainable Belief Harmonization under Dynamic Epistemic Partitions Logic & Epistemic Structure Continuous Beliefs & Consensus Hybrid Architectures DEL [DHK08] Konieczny [KP02] DeGroot [DeG74] Equibel [VDS15] DâAsaro [DBDM24] This work Figure 1: Positioning relative to nearest approaches. Three overlapping areas represent epistemic structure and logic programming, continuous beliefs and consensus, and hybrid solverâdriver architectures. This work sits at the intersection of all three. a graph topology. The problem is how to handle dynamic changes to a continuous belief structure and automatically explain the changes. In order to address this problem, the study sets out to examine how a system can handle changes to agentsâ observational capabilities during belief harmonization, while maintaining consistency and explaining what changed. The main argument is thatASPis able to provide an abstraction boundary for the discrete structural part of the epistemic constraints.ASPis also able to provide a declarative structural controller for reconfiguration, integrity, violation localization, and explanation, while Python is used for the numerical part. Three hypotheses are developed to support this argument. The first hypothesis (H1) is that the management of partition changes is possible usingASPfacts without modifying the rules, thus capturing the elaboration tolerance principle [McC98] in a novel domain. The second hypothesis (H2) is thatASPintegrity constraints are used to provide a declarative solution to the well-formedness of the structure, thus capturing malformed edits. The third hypothesis (H3) is that the solver is able to automatically provide explanation atoms that are precise with regard to the distinctions and violations. The contribution presented in this paper proposes a framework in which changes in partitions are treated as main events during runtime, and such changes can invalidate belief states previously deemed admissible. Although each concept, such as epistemic partitions, projection repair, hybridASP, and multi-shot solving, has been previously studied, the contribution is how these concepts are combined to facilitate the automatic detection and handling of changes in domains where agents operate with different and varying levels of resolution, such as sensor fusion, federated analytics, and collaborative diagnosis. Concretely, the paper contributes (i) a formal model of dynamic epistemic partition structures, (i) a declarativeASPencoding supporting fact-only reconfiguration, violation localization, and explanation generation, and (i) an experimental evaluation confirming the three hypotheses. The remainder of this paper is organized as follows: Section 2 discusses related work, Section 3 formalizes the problem, Section 4 describes the implementation, Section 5 presents the empirical Kostka & Chudziak531 evaluation, Section 6 discusses scope and limitations, and Section 7 concludes. 2 Related Work The problem of achieving consistency among agents with differing observational capabilities is a problem at the intersection of several traditional research areas [FHMV95,DeG74]. Figure 1 illustrates how these areas overlap. There are three threads in the discussion: traditions of logic programming with regard to epistemic structure and uncertainty, hybrid architectures of solver and driver, and traditions of consensus and belief revision. 2.1 Epistemic and Probabilistic Logic Programming The tradition of epistemic specifications starts with the idea of strong introspection due to Gelfond [Gel91], classical negation due to Gelfond and Lifschitz [GL91], then epistemic negation due to Shen and Eiter [SE16], autoepistemic expansions due to Cabalar et al. [CFC20], properties of epistemic logic programs due to Costantini and Formisano [CF24], and more recent refinements due to Su et al. [Su25]. Epistemic planning in multi-agent systems with theASPparadigm investigates Kripke structures and sequences of actions due to Burigana and Fabiano [BFDP20,FBD + 21]. All of these traditions demonstrate the potential of logic programming to make epistemic structure and uncertainty explicit, but they focus on qualitative reasoning in the logical framework and do not deal with quantitative probabilistic reasoning constrained by the representational abilities of the agents that may change during execution. Probabilistic logic programming approaches the problem of uncertainty from a different angle. This tradition starts with probabilistic Horn abduction due to Poole [Poo93], continues with distribution semantics due to Sato [Sat95], and then with the system of ProbLog and its weighted variant due to De Raedt et al. [RKT07,FBR + 15]. Answer set programming approaches include P-log due to Baral et al. [BGR09], LPMLN due to Lee et al. [LY17], and the recent Plingo system [HJK + 25]. These systems reason probabilistically inside the logic itself. The design point of the present work is narrower: probability belongs to the numerical layer, whileASPrepresents structural admissibility and generates explanations. Neither tradition addresses what happens when the epistemic structure itself changes during execution. 2.2 Hybrid Solver-Driver Architectures The most similar methodological predecessors are hybrid systems, which include declarative reasoning in the most expressive domain while moving other computations to an external layer. Research into the integration ofASPand description logics for the Semantic Web initiated the paradigm of âa solver coupled with an external theoryâ [EIL + 08]. Subsequently, the paradigm of âmulti-shotclingocontrolâ has been proposed, which allows the solver state to be preserved across iterative solving processes [GKKS19]. In the area of language interoperability, Natlog has been proposed as an integration of logic programming within the Python deep learning stack [Tar23], while Janus is a system for multi-paradigm Prolog+Python programming [SA23]. Specifically, DâAsaro et al.âsASP-based approach to epistemic probabilistic event calculus [DBDM24] combinesASPwith probabilistic epistemic reasoning in a hybrid architecture, differing from the current approach in the focus on temporal event sequences rather than dynamic partition structures. The above-mentioned predecessors confirm the applicability of the engineering pattern of âa solver coupled with an external theory.â In the current research, the pattern is followed, while the solver is ASP, and the external theory is Python, which is responsible for numerical operations involving belief 532Explainable Belief Harmonization under Dynamic Epistemic Partitions structures. The approach is applied to the new domain of constrained probabilistic harmonization under various epistemic partitions, which has not been covered in the above-mentioned predecessors. 2.3 Consensus, Belief Change, and Structural Dynamics Besides logic programming, there are other areas of study concerning consensus and merging of beliefs. DeGrootâs model deals with averaging-based consensus under fixed interaction structures, where it is assumed that all agents have the same representational capacity [DeG74]. Hegselmann and Krauseâs bounded confidence model restricts who an agent can listen to, leading to clustering instead of global consensus [HK02]. These models assume all agents have the same representational capacity; however, having partitions restrict what an agent can represent is a different kind of restriction. At a more basic level, Aumannâs Agreement Theorem proves that Bayesian agents with a common prior cannot agree to disagree if their posteriors become common knowledge [Aum76]. Agents with different partitions do not fit this model because they cannot represent the same posterior, thus disagreeing is a structural, not irrational, property. Logic-based belief merging using distance-based operators is applicable to the integration of con- flicting propositional knowledge bases with explicit integrity constraints [KP02,KP11], and this is well understood, although not in the continuous domain with agent-specific partitions. The Equibel system [VDS15] is an implementation of consistency-based multi-agent belief change, using anASP+ Python workflow on graph topologies, and this is very close architecturally to the system presented here. The same type of hybrid symbolic-agent system is found in multi-agent LLM systems that have a logical layer for knowledge management and coordination [KC24]. The main difference is the use of the solver, as ASPis used to compute the belief change in the Equibel system, while Python is used in the system presented here. Dynamic Epistemic Logic [DHK08] is another approach to the problem, using modal logic to reason about the change in the knowledge, although without the use ofASPor continuous probability. Elaboration tolerance, the ability to adapt to new pieces of information by editing the facts rather than the programs, is the fundamental requirement driving knowledge representation [McC98], and this is achieved usingASPthrough the declarative separation of facts and rules. The need to provide explanations for the reasoning performed by the solver, as indicated by the recent appearance of explanation techniques forASPprograms [FS19,ATSB24], suggests that the problem is gaining popularity, and the current traditions do not handle the problem as presented, although they are related and address other aspects of the problem. 3 Problem Formulation The preceding discussion revealed a gap at the intersection of epistemic structure, dynamic change, and continuous beliefs. This section formalizes this problem, including the structural objects, the changes that are made to these objects, and the repair that is performed to ensure consistency. The refinement and coarsening propositions help to explain why dynamic change is asymmetric. The projection uniqueness theorem justifies the repair operator as non-ad hoc. The explanation completeness theorem ties changes to symbolic beliefs to actual admissibility violations. 3.1 Problem Statement The fundamental question that this research seeks to address is how a system can handle changes to agentsâ observational capabilities during belief harmonization, while maintaining consistency and explaining Kostka & Chudziak533 what changed. LetWbe a finite set of possible worlds andAa finite set of agents. Each agentaâAobserves the world through an epistemic partitionÎ a ofWinto cells [FHMV95]. Those possible worlds within a cell are indistinguishable to agenta. Each agentaâAalso has a probability distributionÎź a overW, representing its beliefs about the actual world. The partition imposes a constraint on the representational capabilities of the agent. The agent is unable to represent different probabilities for worlds that are indistinguishable to itself. This constraint is the source of the problem. As partitions change over time, beliefs that are consistent with the structural constraints may become invalid. During execution, various types of changes can occur. The most common are changes to an agentâs partition. A cell can either refine or coarsen. Agents can also be added or deleted. With regard to the specific domain, the set of possible worldsWis usually finite. More formally, with a set of agents with varying partitions and a belief profileÎź=Îź a aâA , the goal is to satisfy the following three objectives: 1. Determine whetherÎźis structurally consistent with the current partition configuration. 2. If not, compute a repaired profile that restores consistency while staying close to the original beliefs. 3. Generate an explanation that identifies exactly which distinctions were gained or lost. 3.2 Partitions and Admissibility Returning to the sensor fusion scenario from the introduction, let W=w 0 ,w 1 ,w 2 ,w 3 ,w 4 ,w 5 represent six surface conditions. The LiDAR sees three groups: Î lidar =w 0 ,w 1 ,w 2 ,w 3 ,w 4 ,w 5 . The camera has access to two groups:Î cam =w 0 ,w 1 ,w 2 ,w 3 ,w 4 ,w 5 . The ultrasonic sensor cannot distinguish any of the states. Therefore,Î ultra =W. This gives us three sensors with varying levels of granularity over the same reality. In terms ofASP, this equates tos1(LiDAR),s2(camera), ands3 (ultrasonic). Definition 1(Epistemic Partition Structure).An epistemic partition structure (EPS) is a tupleE= â¨W,A,Î a aâA âŠwhereWis a finite set of worlds,Ais a finite set of agents, and eachÎ a is a partition of W into cells. Definition 2(Admissible belief profile).A belief profileÎź=Îź a aâA , where eachÎź a is a probability distribution overW, is admissible with respect toEPSEif for every agentaâAand every cellCâÎ a : âw,w ⲠâC:Îź a (w) =Îź a (w Ⲡ). This definition expresses an important and basic idea. An agent must have the same probabilities for worlds it cannot distinguish. If the camera cannot distinguishw 3 ,w 4 , andw 5 because they are in the same cell, it must give each of these worlds the same probability. Singleton cells vacuously satisfy admissibility because the universal equality condition is over one world. The admissibility constraint is both semantic and runtime. 534Explainable Belief Harmonization under Dynamic Epistemic Partitions 3.3 Topology Operations In practice, the structure of the partitions need not be fixed, as agents may gain or lose the capacity to observe, and agents may be added to or removed from the system. Dealing with these issues requires elaboration tolerance [McC98]. The two fundamental operations on partitions are defined as follows. Definition 3(Refinement and coarsening).PartitionΠⲠa refinesÎ a (writtenΠⲠa â¤Î a ) if every cell ofΠⲠa is a subset of some cell ofÎ a . PartitionΠⲠa coarsensÎ a ifÎ a refinesΠⲠa . Refinement corresponds to an agent gaining observational capacity. In the sensor fusion scenario, when a firmware upgrade improves the cameraâs resolution, it can now distinguishw 0 andw 1 fromw 2 . Its cellw 0 ,w 1 ,w 2 splits intow 0 ,w 1 andw 2 . Coarsening corresponds to losing capacity. When rain degrades the LiDARâs resolution, its cells merge. The two operations have opposite effects on admissibility. Proposition 1(Refinement preserves admissibility).IfÎź a is admissible with respect toÎ a andΠⲠa refines Î a , thenÎź a is admissible with respect toΠⲠa . Proof.LetC ⲠâΠⲠa . SinceΠⲠa refinesÎ a , there existsCâÎ a withC ⲠâC. SinceÎź a is admissible with respect toÎ a ,Îź a is uniform onC. SinceC ⲠâC,Îź a is uniform onC Ⲡ. This means refinement events (the most common topology change in practice) require no repair step, reducing the runtime cost of gaining observational capacity to a single re-solve. Proposition 2(Coarsening can violate admissibility).There existÎź a admissible with respect toÎ a and ΠⲠa coarseningÎ a such thatÎź a is not admissible with respect toΠⲠa . Proof.LetW=w 1 ,w 2 ,Î a =w 1 ,w 2 ,Îź a (w 1 ) =0.7,Îź a (w 2 ) =0.3. This is admissible (singleton cells). Coarsen toΠⲠa =w 1 ,w 2 . NowÎź a (w 1 )̸=Îź a (w 2 )within the same cell. 3.4 Admissibility Repair When coarsening violates admissibility, beliefs must be repaired. The natural repair operation averages beliefs within each cell of the new partition. Definition 4(Projection).Given a distributionÎź a overWand a partitionÎ a , the projectionP a (Îź a ) assigns to each wâCâÎ a the cell average: P a (Îź a )(w) = 1 |C| â w ⲠâC Îź a (w Ⲡ). By construction,P a (Îź a )is admissible with respect toÎ a . The following proposition shows that this repair is not merely convenient but uniquely determined. Proposition 3(Projection is the unique mass-preserving admissible repair).GivenÎź a overWand partitionÎ a , the projectionP a (Îź a )is the unique admissible distribution that preserves cell masses: for every CâÎ a , â wâC P a (Îź a )(w) = â wâC Îź a (w). It is also the unique L 2 -minimizer among all admissible distributions over W . Proof. Uniqueness under mass preservation. Since admissibility impliesP a (Îź a )(w) =c C for allwâC, mass conservation implies thatc C ¡|C|= â wâC Îź a (w). This implies thatc C = 1 |C| â wâC Îź a (w)is uniquely determined. Kostka & Chudziak535 L 2 Optimality. DefineV a =vâR |W| :vis constant on each cell ofÎ a .V a is a linear subspace of R |W| . By the orthogonal projection theorem,P a (Îź a )is the unique minimizer ofâĽÎź a âv⼠2 overvâV a . SinceÎź a is a probability distribution, the averages over each cell are nonnegative, and the total mass is preserved. Therefore,P a (Îź a )ââ |W|â1 . The unconstrained minimizer already satisfies the simplex constraints, so it is also the unique minimizer overV a âŠâ |W|â1 , the set of all admissible distributions. In this sensor fusion problem, when the cameraâs two cells with belief levels 0.180 and 0.153 combine to form a single cell, projection computes an average of all six worlds at 0.167. This uniqueness implies that no choice or configuration is required for the repair operator; it is determined purely based on the partition. Having described this formal framework, the next section will show how this is achieved usingASP. 4 Model Realization The structural layer directly corresponds toASPfacts and rules. The encoding has been designed to be concise, with just fifteen rules needed to cover any number of agents, any number of worlds, and any possible change in topology. To illustrate, we present a listing here in which we constrain cell identities toC=1..10, although in practice, we dynamically determine the appropriate range from the provided partition. The rules, however, are invariant. 4.1 Partition Management The core encoding uses external facts to represent partition membership and derives indistinguishability directly. Listing 1: Core ASP encoding for dynamic epistemic structure. world(w0). world(w1). world(w2). world(w3). world(w4). world(w5). agent(s1). agent(s2). agent(s3). agent(critic). % Partition cells -- external (changed dynamically) #external partition(A, C, W) : agent(A), world(W), C = 1..10. % Indistinguishability derived from shared cell membership indist(A, W1, W2) :- partition(A, C, W1), partition(A, C, W2), W1 != W2. % Well-formedness: every agent covers every world covered(A, W) :- partition(A, _, W). :- agent(A), world(W), not covered(A, W). % Well-formedness: no world in two cells :- partition(A, C1, W), partition(A, C2, W), C1 != C2. The#externaldeclaration is the key enabler. It tellsclingothatpartition/3atoms may be asserted or retracted at any time without re-grounding the program [GKKS19]. A topology change reduces to a sequence ofassign_externalcalls in Python: when the cameraâs cellw 0 ,w 1 ,w 2 splits intow 0 ,w 1 andw 2 , three atoms are retracted and three asserted. Zero rule changes. The solver automatically recomputesindist/3atoms under the new partition. This is elaboration tolerance [McC98] in action. 536Explainable Belief Harmonization under Dynamic Epistemic Partitions ASPLayer partition/3 (#external) indist/3 well-formedness newly_indist violates/3 PythonLayer topology change admissibility check projection repair assign_external export pairs export atoms Figure 2: Hybrid architecture. TheASPlayer (left, solid border) manages partition structure, derives explanations, and localizes violations. The Python layer (right, dashed border) handles topology edits, numerical inequality computation, and belief repair. Proposition 4(Elaboration tolerance).Any reconfiguration of anEPSEto a new structureE Ⲡover the same world and agent sets is realizable by modifying only the external atoms inpartition/3, without modifying the rules of theASPencoding. The encoding is doing something more than just storing the data; it is a declarative structural controller. The well-formedness constraints filter out invalid partitions at solve time, theindist/3atoms generated determine the structure for admissibility, and theviolates/3atoms determine where particular admissibility violations are, and the explanation rules calculate relation deltas that would otherwise require reimplementing the indistinguishability and violation logic procedurally in the numerical layer. The resulting proposition directly relates to the formal framework, showing that the formal definitions are implemented by the encoding. Proposition 5(Encoding correctness).For any validEPSinput (each agentâs partition covers every world with no overlapping cells), theASPprogram in Listings 1 and 2 has a unique stable model in which: (i)indist(a,w 1 ,w 2 )holds iffw 1 andw 2 belong to the same cell inÎ a ; (i)violates(a,w 1 ,w 2 ) holds iff w 1 âź a w 2 andneq(a,w 1 ,w 2 )is asserted. Proof. The model is stratified, with the external world represented by the atomspartition/3andneq/3, while the derived atomsindist/3,covered/2, andviolates/3are computed using Horn clauses. The two integrity constraints ensure that the model is not empty or contains overlapping regions. The unique stable model for valid input will haveindist(a,w 1 ,w 2 )if and only if there is some cellCthat contains w 1 andw 2 , and will haveviolates(a,w 1 ,w 2 )if and only ifw 1 andw 2 are also marked as unequal by the Python code. 4.2 Hybrid Architecture The encoding scheme presented above is responsible for the structural layer. The current section is responsible for explaining the integration with the numerical layer. Figure 2 shows the division of labor. TheASPpart is responsible for the partition structure, derivation of indistinguishability, well-formedness, violation localization, and explanation generation. Python is responsible for the belief storage, floating- point calculations, and re-projection repairs. Moreover, Python is responsible for calculating the numerical inequality facts (represented asneq/3facts that specify the world pairs with differing beliefs) and passing them to the ASP part, which calculates the structural illicitness using theviolates/3predicate. Kostka & Chudziak537 This division separates concerns by design:ASPrepresents the structural constraints and explanations, where elaboration tolerance and declarative violation localization are natural, while Python handles continuous probabilities and projection repair, where floating-point arithmetic is natural. The multi-shot solving approach is based on the ground-and-edit approach, where theASPprogram is grounded once, and the#externalatoms are edited and the solving is repeated as the topology changes. There is no need to re-ground theASPprogram when the partition is changed. The only case that requires re-grounding is the addition of new worlds (new domain elements), and this is more expensive than editing the partition facts. 4.3 Explanation Generation With the hybrid pipeline in place, the focus is now on the second main feature of the framework, which is to reveal the changes that take place when the topology is reconfigured. This is in line with the general goal of making the reasoning performed byASPtransparent [FS19,ATSB24]. When the topology is modified, the system records the previous partition asold_partition/3atoms and constructs explanation atoms using Negation as Failure. Listing 2: Explanation and violation localization rules. #external old_partition(A, C, W) : agent(A), world(W), C = 1..10. old_indist(A, W1, W2) :- old_partition(A, C, W1), old_partition(A, C, W2), W1 != W2. newly_dist(A, W1, W2) :- old_indist(A, W1, W2), not indist(A, W1, W2), W1 < W2. newly_indist(A, W1, W2) :- indist(A, W1, W2), not old_indist(A, W1, W2), W1 < W2. % Violation localization #external neq(A,W1,W2) : agent(A), world(W1), world(W2), W1<W2. violates(A,W1,W2) :- indist(A,W1,W2), neq(A,W1,W2), W1<W2. The atomnewly_dist(A, W1, W2)expresses that worldsW 1 andW 2 were indistinguishable for agentAunder the previous topology but are distinguishable under the new one. Conversely, the atom newly_indist(A, W1, W2)expresses that two worlds previously distinguishable for agentAhave become indistinguishable. The ruleviolates/3closes this loop. Python will deriveneq/3facts for pairs of worlds whose beliefs are different, andASPis responsible for derivingviolates(A, W1, W2)for those pairs that are supposed to be indistinguishable but are not. Proposition 6(Explanation completeness).Given oldEPSEand newEPSE Ⲡ, the explanation atoms newly_dist(a,w,w Ⲡ),newly_indist(a,w,w Ⲡ)capture exactly the symmetric difference of the indis- tinguishability relationsâź a âłâź Ⲡa . Furthermore, if the belief profileÎźis admissible with respect toE, then any admissibility violation ofÎźunderE Ⲡmust involve a pair innewly_indist. Proof. Definewâź a w ⲠiffâCâÎ a :w,w ⲠâC. Thennewly_dist(a,w,w Ⲡ)holds iffwâź a w Ⲡâ§ÂŹ(w⟠Ⲡa w Ⲡ), andnewly_indist(a,w,w Ⲡ)holds iffÂŹ(wâź a w Ⲡ)â§w⟠Ⲡa w Ⲡ. These are exactly the two halves ofâź a âłâź Ⲡa . For the second claim: a violation requiresÎź a (w)̸=Îź a (w Ⲡ)withw⟠Ⲡa w Ⲡ. Ifwâź a w Ⲡalready held, admissibility ofÎźwith respect toEwould have requiredÎź a (w) =Îź a (w Ⲡ), contradicting the violation. So the violating pair must satisfyÂŹ(wâź a w Ⲡ)â§w⟠Ⲡa w Ⲡ, which is exactlynewly_indist. The pre- admissibility assumption is necessary: without it, a pair already indistinguishable underEcould already violate uniformity, and such a violation would persist without involvingnewly_indist. 538Explainable Belief Harmonization under Dynamic Epistemic Partitions Before: Camera partition w0,w1,w2 0.180 w3,w4,w5 0.153 Two cells, different beliefs coarsen After: merged partition w0, w1, w2, w3, w4, w5 0.180 â 0.153 â VIOLATION ASP Explanation Output newly_indist(s2,w0,w3) newly_indist(s2,w0,w4) newly_indist(s2,w0,w5) newly_indist(s2,w1,w3) newly_indist(s2,w1,w4) newly_indist(s2,w1,w5) newly_indist(s2,w2,w3) newly_indist(s2,w2,w4) newly_indist(s2,w2,w5) violates(s2,w0,w3) violates(s2,w1,w4) ... 9 violations total Repair: project â uniform 0.167 within merged cell Figure 3: Topology change and explanation generation. Left: the camera distinguishes two groups of surface conditions. Right: after coarsening, all conditions merge. TheASPlayer derivesnewly_indist pairs andviolatesatoms. Projection repair restores uniform beliefs. In the sensor fusion scenario, after the refinement done by the LiDAR, the solver assertsnewly_- dist(s1, w0, w2)andnewly_dist(s1, w1, w2), reflecting the fact that worldw 2 is now distin- guishable from worldsw 0 andw 1 . Then, after the coarsening done by the camera, the solver asserts ninenewly_indiststatements, each involving the pairing of one world from the first group (w 0 âw 2 ) and one world from the second group (w 3 âw 5 ). Figure 3 illustrates this process. The explanation atoms immediately identify the basic cause of the admissibility violation, and the completeness guarantee ensures that no violation escapes the explanation mechanism. With the encoding in place, the next section evaluates whether the formal properties hold experimen- tally. 5 Evaluation The evaluation process considers the three aspects of the declarative structural control thesis: reconfiguring via fact edits (H1), structural integrity (H2), and the quality of the explanations (H3). The sensor fusion scenario is a good example of this; the framework applies to domains matching Definition 1, and the random topology experiments conducted in Table 1 and Section 5.3 directly test the general formal object. All experiments use the multi-shot API of theclingosystem [GKKS19] accessed via the Python interface. All timings are the median of five runs and can be found in the repository accompanying this paper. 5.1 Reconfiguration Stress Test H1, elaboration tolerance, is evaluated by performing 50 consecutive topology operations on a20Ă8 configuration, with 20 worlds and 8â12 agents, including refinement, coarsening, adding and deleting agents, and a variety of intentionally erroneous edits. TheASPrules are kept unchanged throughout this experiment. The median time to re-solve is 10.3 ms, with a maximum time of 180.6 ms on a cold cache, showing that multi-shot editing through external edits is indeed possible. All eleven intentionally erroneous edits are caught by integrity constraints during solve time, marked as UNSAT. The single coarsening operation Kostka & Chudziak539 Table 1: Scalability of the hybrid ASP encoding with random partitions. |W|Ă|A|GroundingSolvingTotalIndist atoms 6Ă41 ms<1 ms2 ms82 10Ă66 ms4 ms10 ms212 20Ă897 ms58 ms155 ms888 50Ă103.2 s1.8 s5.0 s6 392 100Ă1550.8 s30.7 s81.4 s37 343 leading to violations is caught byviolates/3and fixed by re-projection. No changes to the rules are needed throughout this 50-step process. Table 1 shows how grounding and solving scale with problem size. The main bottleneck is grounding indist/3atoms, which scales likeO(|A|¡|W| 2 ). The cost of re-solving after a topology change on an already grounded program has a median cost of 10 ms, showing that our multi-shot approach indeed amortizes this cost effectively. 5.2 Structural Integrity Benchmark This evaluation is for H2, declarative integrity enforcement. It introduces three classes of malformed partitions: omission of world coverage, overlaps, and stale facts after agent removal. Each variety is tested 20 times for a10Ă4configuration, comparing the hybrid system to a Python baseline that uses explicit coverage and overlap validation. Both systems detect all 60 classes of malformed partitions (100% detection rate). The difference is qualitative: theASPlayer catches all three classes through two declarative integrity constraints already in the encoding, requiring no additional validation code. The Python baseline requires dedicated procedural logic for each class. While Python is faster per check (0.01 ms vs. 3 ms), the question is whether structural invariants live inside the encoding or alongside it as separate obligations. 5.3 Explanation Completeness This experiment verifies H3 (explanation coverage) and provides a stress test for Proposition 6 by simulating 100 random topology changes in the12Ă6configuration. Each test begins with an admissible belief profile, applies a random partition change to one agent (which is either refinement, coarsening, or reassignment of a cell that is neither refinement nor coarsening), and checks whether each admissibility violation is caused by anewly_indistpair. In the 100 tests, 673 violations are found. All violations (100%) are caused by world pairs classified asnewly_indist, thus strongly supporting the proposition. All 54 coarsening tests have violations, and all violations are pinpointed by the explanation atoms. Theviolates/3atoms computed in theASP code pinpoint each violation to the specific agent and world pair, instead of the global âadmissibility failedâ message. Since the tests are performed on randomly generated partitions, not the sensor fusion scenario, they test the general formal object. To confirm domain independence, the same framework was applied to a sensor fusion instance with three sensors over eight road conditions and 20 topology changes. All 12 violations traced tonewly_indistpairs (100% coverage), three malformed edits were caught, and no rule changes were necessary. 540Explainable Belief Harmonization under Dynamic Epistemic Partitions 6 Discussion The benchmarks support the main thesis within the considered scope, as fact-only reconfiguration is feasible, declarative integrity constraints detect malformed edits without the need to add additional validation code, and explanation atoms have complete violation coverage. An ablation study on the sensor fusion scenario confirms that eachASPcomponent adds distinct value: without explanation atoms, violations cannot be traced to their structural cause; without multi-shot solving, each topology change requires re-grounding. A natural question is why the structural layer was not simply replaced with Python. If the partition is fixed, a procedural solution would be faster. The declarative layer provides significant benefit when partitions change during execution, because elaboration tolerance [McC98] means onlypartition/3 facts need editing, while a procedural solution would require updating validation logic, cell structures, and explanation code separately [SC25b,SC25a,FS19]. Theviolates/3and explanation atoms together provide a diagnostic chain from structural cause to numerical symptom, consistent with the pattern of explicitly assessing internal belief states in multi-agent systems [KC25]. The approach has several limitations. The grounding cost of theviolates/3predicate has an upper bound ofO(|A|¡|W| 2 ), which in practice only allows us to interactively use the approach for approximately 50 worlds, although incremental grounding or agent-specific grounding heuristics could improve the limit. The explanations are diagnostic rather than prescriptive, i.e., the system will indicate what has changed but not how to fix it. Closing this gap is an interesting area of further research, which relates to the concept of abductive reasoning inASP. The evaluation is based on a single domain, which has been artificially scaled, so the general applicability of the approach would be better supported by the extension of the framework to other domains. Other repair operators, e.g., maximum entropy or minimum KL-divergence, are not explored in the current study. 7 Conclusion In this paper, a system is presented that can handle changes to agentsâ observational capabilities during belief harmonization, while maintaining consistency and explaining what changed. The main idea presented here is that epistemic partitions not only determine what agents believe, but also what structural capabilities exist for representation, and how refinement and coarsening differ fundamentally from one another in terms of admissibility. Thus, when partitions change, a structural explanation for what has occurred and why is necessary, rather than remediation in terms of numbers. In this regard, a formal framework for dynamic epistemic partition structures has been developed and implemented using a hybridASP+ Python approach, in which changes in structure are translated into editing external atoms inclingo[GKKS19], and explanation atoms are derived automatically by the solver, providing exact identification of what has been gained or lost in terms of distinctions. Six propositions define the formal properties of this framework, and evaluation has provided support for the hypotheses (H1)â(H3). Three avenues for further research are presented, including providing prescriptive explanations through abductive reasoning, integrating with probabilisticASPsystems such as Plingo [HJK + 25], and neuro- symbolic approaches, in which neural beliefs are constrained by the structure enforced byASP. On a broader scale, a design pattern has been developed, in whichASPfunctions as a structural runtime controller for numerical components in a system whose discrete constraints change during execution. Kostka & Chudziak541 References [ATSB24] Mario Alviano, Ly Ly T. Trieu, Tran Cao Son & Marcello Balduccini (2024):The XAI System for Answer Set Programming xASP2.Journal of Logic and Computation34(8), p. 1500â1525, doi:10.1093/logcom/exae036. [Aum76] Robert J. Aumann (1976):Agreeing to Disagree.The Annals of Statistics4(6), p. 1236â1239, doi:10.1214/aos/1176343654. [BFDP20]Alessandro Burigana, Francesco Fabiano, Agostino Dovier & Enrico Pontelli (2020):Modelling Multi- Agent Epistemic Planning in ASP.Theory and Practice of Logic Programming20(5), p. 593â608, doi:10.1017/S1471068420000289. [BGR09]Chitta Baral, Michael Gelfond & Nelson Rushton (2009):Probabilistic Reasoning with Answer Sets. Theory and Practice of Logic Programming9(1), p. 57â144, doi:10.1017/S1471068408003645. [CF24] Stefania Costantini & Andrea Formisano (2024):Epistemic Logic Programs:A Study of Some Properties.Theory and Practice of Logic Programming24(3), p. 482â504, doi:10.1017/S1471068424000012. [CFC20]Pedro Cabalar, Jorge Fandinno & Luis FariĂąas del Cerro (2020):Autoepistemic Answer Set Program- ming.Artificial Intelligence289, p. 103382, doi:10.1016/j.artint.2020.103382. [DBDM24]Fabio Aurelio DâAsaro, Antonis Bikakis, Luke Dickens & Rob Miller (2024):An Answer Set Programming-based Implementation of Epistemic Probabilistic Event Calculus.International Journal of Approximate Reasoning165, p. 109101, doi:10.1016/j.ijar.2023.109101. [DeG74] Morris H. DeGroot (1974):Reaching a Consensus.Journal of the American Statistical Association 69(345), p. 118â121, doi:10.1080/01621459.1974.10480137. [DHK08]Hans van Ditmarsch, Wiebe van der Hoek & Barteld Kooi (2008):Dynamic Epistemic Logic. Springer, doi:10.1007/978-1-4020-5839-4. [EIL + 08]Thomas Eiter, Giovambattista Ianni, Thomas Lukasiewicz, Roman Schindlauer & Hans Tompits (2008):Combining Answer Set Programming with Description Logics for the Semantic Web.Artificial Intelligence172(12-13), p. 1495â1539, doi:10.1016/j.artint.2008.04.002. [FBD + 21]Francesco Fabiano, Alessandro Burigana, Agostino Dovier, Enrico Pontelli & Tran Cao Son (2021): Multi-agent Epistemic Planning with Inconsistent Beliefs, Trust and Lies. In:PRICAI 2021: Trends in Artificial Intelligence, Springer, Cham, p. 586â597, doi:10.1007/978-3-030-89188-6_44. [FBR + 15]Daan Fierens, Guy Van den Broeck, Joris Renkens, Dimitar Shterionov, Bernd Gutmann, Ingo Thon, Gerda Janssens & Luc De Raedt (2015):Inference and Learning in Probabilistic Logic Programs Using Weighted Boolean Formulas.Theory and Practice of Logic Programming15(3), p. 358â401, doi:10.1017/S1471068414000076. [FHMV95] Ronald Fagin, Joseph Y. Halpern, Yoram Moses & Moshe Y. Vardi (1995):Reasoning about Knowledge. MIT Press, doi:10.7551/mitpress/5803.001.0001. [FS19]Jorge Fandinno & Claudia Schulz (2019):Answering the âWhyâ in Answer Set Programming â A Survey of Explanation Approaches.Theory and Practice of Logic Programming19(2), p. 114â203, doi:10.1017/S1471068418000534. [Gel91]Michael Gelfond (1991):Strong Introspection. In:Proceedings of the Ninth National Conference on Artificial Intelligence (AAAI-91), p. 386â391. Available athttps://cdn.aaai.org/AAAI/1991/ AAAI91-060.pdf. [GKKS19] Martin Gebser, Roland Kaminski, Benjamin Kaufmann & Torsten Schaub (2019):Multi-shot ASP Solving with clingo.Theory and Practice of Logic Programming19(1), p. 27â82, doi:10.1017/S1471068418000054. [GL91]Michael Gelfond & Vladimir Lifschitz (1991):Classical Negation in Logic Programs and Disjunctive Databases.New Generation Computing9(3-4), p. 365â385, doi:10.1007/BF03037169. 542Explainable Belief Harmonization under Dynamic Epistemic Partitions [HJK + 25]Susana Hahn, Tomi Janhunen, Roland Kaminski, Javier Romero, Nicolas RĂźhling & Torsten Schaub (2025):Plingo: A System for Probabilistic Reasoning in Answer Set Programming.Theory and Practice of Logic Programming25(2), p. 134â167, doi:10.1017/S1471068424000449. [HK02]Rainer Hegselmann & Ulrich Krause (2002):Opinion Dynamics and Bounded Confidence Models, Analysis, and Simulation.Journal of Artificial Societies and Social Simulation5(3). Available at https://w.jasss.org/5/3/2.html. [KC24]Adam Kostka & JarosĹaw A. Chudziak (2024):Synergizing Logical Reasoning, Knowledge Man- agement and Collaboration in Multi-Agent LLM System. In:Proceedings of the 38th Pacific Asia Conference on Language, Information and Computation, Tokyo University of Foreign Studies, Tokyo, Japan, p. 203â212. Available athttps://aclanthology.org/2024.paclic-1.19/. [KC25] Adam Kostka & JarosĹaw A. Chudziak (2025):Evaluating Theory of Mind and Internal Beliefs in LLM-Based Multi-Agent Systems. In:Computational Collective Intelligence (ICCCI 2025),Lecture Notes in Computer Science16138, Springer, p. 18â32, doi:10.1007/978-3-032-09318-9_2. [KP02] SĂŠbastien Konieczny & RamĂłn Pino PĂŠrez (2002):Merging Information Under Constraints: A Logical Framework.Journal of Logic and Computation12(5), p. 773â808, doi:10.1093/logcom/12.5.773. [KP11]SĂŠbastien Konieczny & RamĂłn Pino PĂŠrez (2011):Logic Based Merging.Journal of Philosophical Logic40(2), p. 239â270, doi:10.1007/s10992-011-9175-5. [LY17]Joohyung Lee & Zhun Yang (2017):LPMLN, Weak Constraints, and P-log.Proceedings of the AAAI Conference on Artificial Intelligence31(1), doi:10.1609/aaai.v31i1.10686. [McC98]John McCarthy (1998):Elaboration Tolerance. Presented at the Fourth Symposium on Logical Formalizations of Commonsense Reasoning (Common Sense 1998), London, UK. Available at http://jmc.stanford.edu/articles/elaboration.html. [Poo93]David Poole (1993):Probabilistic Horn Abduction and Bayesian Networks.Artificial Intelligence 64(1), p. 81â129, doi:10.1016/0004-3702(93)90061-F. [RKT07]Luc De Raedt, Angelika Kimmig & Hannu Toivonen (2007):ProbLog: A Probabilistic Prolog and Its Application in Link Discovery. In:Proceedings of the Twentieth International Joint Conference on Artificial Intelligence, p. 2462â2467. Available athttps://w.ijcai.org/Proceedings/07/ Papers/396.pdf. [SA23] Theresa Swift & Carl Andersen (2023):The Janus System: Multi-paradigm Programming in Prolog and Python.Electronic Proceedings in Theoretical Computer Science385, p. 241â255, doi:10.4204/EPTCS.385.24. [Sat95]Taisuke Sato (1995):A Statistical Learning Method for Logic Programs with Distribution Semantics. In:Logic Programming, MIT Press, p. 715â730, doi:10.7551/mitpress/4298.003.0069. [SC25a]Albert Sadowski & JarosĹaw A. Chudziak (2025):Explainable Rule Application via Structured Prompting: A Neural-Symbolic Approach. In:Proceedings of the 29th International Conference on Knowledge-Based and Intelligent Information and Engineering Systems (KES 2025),Procedia Computer Science270, Elsevier, p. 2166â2175, doi:10.1016/j.procs.2025.09.337. [SC25b]Albert Sadowski & JarosĹaw A. Chudziak (2025):On Verifiable Legal Reasoning: A Multi-Agent Framework with Formalized Knowledge Representations. In:Proceedings of the 34th ACM Interna- tional Conference on Information and Knowledge Management (CIKM 2025), ACM, p. 2535â2545, doi:10.1145/3746252.3761057. [SE16]Yi-Dong Shen & Thomas Eiter (2016):Evaluating Epistemic Negation in Answer Set Programming. Artificial Intelligence237, p. 115â135, doi:10.1016/j.artint.2016.04.004. [Su25]Ezgi Iraz Su (2025):Pearceâs Characterisation in an Epistemic Domain.Electronic Proceedings in Theoretical Computer Science416, p. 201â214, doi:10.4204/EPTCS.416.18. [Tar23] Paul Tarau (2023):Natlog: Embedding Logic Programming into the Python Deep-Learning Ecosystem.Electronic Proceedings in Theoretical Computer Science385, p. 141â154, doi:10.4204/EPTCS.385.15. Kostka & Chudziak543 [VDS15]Paul Vicol, James Delgrande & Torsten Schaub (2015):An Implementation of Consistency-Based Multi-agent Belief Change Using ASP. In:Logic Programming and Nonmonotonic Reasoning,Lecture Notes in Computer Science9345, Springer, Cham, p. 480â487, doi:10.1007/978-3-319-23264-5_40.