Introduction
Causal discovery supports scientific understanding and decision making by turning observational and/or interventional data into hypotheses about the underlying causal mechanisms. It is a central ingredient in tasks such as explanation, prediction under interventions, and policy evaluation [30 ] . A wide range of approaches exists, including constraint-based methods relying on independence testing, score-based methods that optimise a goodness-of-fit criterion over graphs, and functional causal model approaches that leverage assumptions on the data-generating mechanism; see e.g. [18 ] .
Constraint-based algorithms such as PC [38 ] infer structure from conditional-independence (CI) information. Causal ABA [35 ] instead treats selected CI facts as defeasible commitments that every returned graph must satisfy if enforced, exposing data-derived premises and a point of contestation. In this context, a contestation asks the system to reconsider a result by revising those input facts. Computational argumentation supports this view: contestation should lead beyond static explanation to reliable revision when redress is warranted [23 ] ; argumentative decision making captures that reliability through contestability guarantees under user-driven changes [15 ] .
Finite-sample CI tests may conflict, making Causal ABA incoherent. Causal ABA restores coherence by fixed strength-ordered release, revealing discarded facts but offering neither optimality nor a guaranteed response to a contested release or cost. We make the correction set the redress object and prove optimal repair. Our claims concern CI-fact selection: redress guarantees revised commitments and consistency with them, without guaranteeing recovery of the generating graph. We focus on the realistic regime where finite-sample CI tests are noisy and potentially conflicting. Majority-PC (MPC) [12 ] , an improved PC variant for finite samples, learns a partially directed graph from CI tests. Under the standard assumptions it is sound with an oracle for error-free CI judgements, but finite-sample outcomes may conflict.
Example 1 (Causal discovery). Consider a simple socioeconomic setting with Education (E E E ), Race (R R R ), Occupation (O O O ) and Income (I I I ) with ground-truth directed acyclic graph (DAG) in Figure 1 . When fed data generated from this DAG, MPC runs 14 CI tests (see Ex. 3) and uses them sequentially to remove and orient edges. With finite-sample noise, it may report mutually incompatible outcomes. For instance, it includes the high-strength independences E ⊥ O ∣ { I } E \perp O \mid\{I\} E ⊥ O ∣ { I } and O ⊥ I O \perp I O ⊥ I , even though it also reports dependencies such as E ⊥̸ O E \not\perp O E ⊥ O and E ⊥̸ I E \not\perp I E ⊥ I . These four statements already cannot be simultaneously satisfied by any DAG: if E E E and O O O are dependent but become independent after conditioning on I I I , then I I I must block every active E E E –O O O path, which implies O ⊥̸ I O \not\perp I O ⊥ I —contradicting O ⊥ I O \perp I O ⊥ I . Nevertheless, MPC returns a non-empty graph (the single undirected edge O O O –R R R ), yet neither identifies the incompatible constraints nor records which it effectively discards.
Figure 1. Example DAG.
We build on work on explanation and repair in logic programming [34 , 24 , 1 ] , particularly minimal unsatisfiable subsets (MUSes) and minimal correction subsets (MCSes). A MUS isolates an irreducible conflict that explains incoherence; an MCS is a minimal set of rules or facts whose removal restores coherence. In Causal ABA, MUSes explain which CI-test outcomes conflict, while MCSes expose the minimal releases available as redress when a user contests a result. Operationally, weighted CI facts yield retained and released facts, compatible DAGs, and a conflict certificate for each release; a user can then require a fact or raise its release cost and re-solve. Concretely, we: (i) formulate Causal ABA’s released CI facts as an explicit repair; (ii) prove a two-way correspondence between optimal MCSes and optimal stable models; (iii) prove soundness and completeness of a compact Bayes-ball encoding [37 ] ; (iv) establish conflict certificates and guaranteed hard and graded contestability; (v) implement the optimisation as OptABA-PC; and (vi) compare it with Causal ABA and standard baselines, generally improving fact selection and/or graph reconstruction while providing redress guarantees.
Related Work
The relationship between inconsistency, repairs, and hitting sets is well established. In model-based diagnosis, diagnoses are hitting sets of conflicts [34 ] ; in constraint systems and SAT, MUSes expose irreducible conflicts and MCSes repair them by hitting those conflicts [24 ] . Related ideas appear in optimisation as maximum feasible subsystem and IIS-cover problems, where one deletes a minimum-weight set of constraints to restore feasibility [11 , 2 ] , and in implicit hitting-set methods, which alternate between a feasibility oracle returning an unhit conflict and an optimiser selecting a new hitting set [27 ] . Core-guided MaxSAT solvers operationalise the same pattern over soft clauses [28 ] . Our use of MUS/MCS terminology therefore does not introduce a new optimisation paradigm; rather, it makes explicit what the repair object is in Causal ABA.
In causal discovery, solver-assisted methods have used SAT to enforce constraints from overlapping observational or interventional data and query graph features common to all solutions [40 , 39 ] , weighted MaxSAT to infer ancestral relations that maximise satisfied evidence [26 ] , and weighted constraint optimisation to obtain robust representative graphs [6 ] . These methods optimise causal conclusions or graph-level agreement; they do not make the correction set of released facts the explicit output.
SAT/ASP has also been used to encode d d d -separation exactly. Hyttinen et al. Hyttinen et al. [20 ] introduce variables for directed and bidirected edges and bounded d d d -connecting walks, then compute backbone features shared by all satisfying cyclic/latent causal graphs; inconsistent inputs yield no repair. Hyttinen et al. Hyttinen et al. [21 ] handle noisy inputs by deriving fail atoms when a graph violates a CI constraint and minimising their total weight. They study hard-dependence, constant, and log-derived weighting schemes; we call the DAG-restricted empirical implementation of this objective ASPCR-DAG.
Our proposed OptABA-PC likewise uses weighted optimisation, but its CI-strength weights are release costs, its released facts form an explicit correction set, and every retained fact is satisfied by every returned graph. The encoding of Hyttinen et al. [21 ] instead permits penalised fail atoms in an optimal model. Compared to ASPCR, Causal ABA targets DAGs, which permits the compact Bayes-ball encoding while preserving an argumentative reading of retained facts.
Hyttinen et al. [22 ] recast the same weighted graph-disagreement objective as MaxSAT: weighted unit soft clauses represent CI constraints, hard clauses connect them to graph satisfaction, a SAT solver extracts unsatisfiable cores, and an integer program computes a minimum-cost hitting set of the accumulated cores. This is the closest prior optimisation architecture to OptABA-PC. Its cores and hitting sets already provide conflict/repair machinery; our additional results connect explicit released-fact sets to optimal stable models and establish fact enforcement and contestability guarantees. Rantanen et al. [32 ] use branch-and-bound with partial-graph propagation, tailored branching, and core-derived bounds.1 Complementary SAT/ASP work weakens assumptions or extends the graph semantics ([45 , 46 ] ); OptABA-PC keeps Causal ABA’s DAG target and correspondence guarantees (that ASPCR lacks), but adds optimality and contestability.
In Causal ABA, accepted CI facts are not merely soft clauses or post-hoc fail atoms: they are enforceable ABA/ASP facts whose satisfaction is guaranteed in every returned stable model, yielding traceability from data-derived facts to graphs. OptABA-PC makes the released facts first-class: by placing weak constraints on unselected objective atoms, optimal stable models correspond to optimal correction sets of the Causal ABA program. Whereas existing ASP work on MUSes studies subset-minimality, enumeration, and cautious reasoning (Alviano et al. [1 ] ), we connect optimal stable models to minimum-cost correction sets and establish contestability guarantees. Quantitative Argumentation for Causal Discovery (QACD) (Wei et al. [42 ] ) also treats noisy CI evidence as graded arguments. It iteratively revises edge acceptability through gradual semantics on abstract argumentation frameworks, with no correspondence guarantees between CIs and output DAGs. Instead, our method identifies the optimal release of CI facts, with correspondence and redress guarantees.
Preliminaries
We consider a finite set of variables V \mathbf{V} V . We write X ⊥ Y ∣ Z X \perp Y \mid Z X ⊥ Y ∣ Z for conditional independence between variables X X X and Y Y Y given conditioning set Z ⊆ V ∖ { X , Y } Z \subseteq\mathbf{V} \setminus\{X,Y\} Z ⊆ V ∖ { X , Y } , and X ⊥̸ Y ∣ Z X \not\perp Y \mid Z X ⊥ Y ∣ Z for dependence (X ⊥ Y ∣ Z X \perp Y \mid Z X ⊥ Y ∣ Z or X ⊥̸ Y ∣ Z X \not\perp Y \mid Z X ⊥ Y ∣ Z ). In our causal-discovery setting, a CI fact is a ground assertion of one such relation, obtained from a statistical CI test for a threshold α \alpha α .
A causal graph is a DAG G = ( V , E ) G = (\mathbf{V}, E) G = ( V , E ) whose edges represent direct causal relations. A node Z Z Z on a path is a collider on that path if the two adjacent path edges both have arrowheads into Z Z Z , as in X → Z ← Y X \to Z \leftarrow Y X → Z ← Y ; otherwise it is a non-collider. A node Y Y Y is a descendant of X X X if there is a directed path from X X X to Y Y Y . A collider is open given a conditioning set Z Z Z when the collider itself or at least one of its descendants belongs to Z Z Z ; otherwise it is closed. DAGs entail CI relations through d d d -separation (Pearl, [29 ] ): a path between X X X and Y Y Y is active given Z Z Z if every non-collider on the path is outside Z Z Z and every collider is open given Z Z Z ; X X X and Y Y Y are d d d -connected given Z Z Z if some such active path exists, and d d d -separated otherwise. Observational data identify at most a Markov equivalence class (MEC), represented by a completed partially DAG (CPDAG) whose directed edges are shared by all DAGs in the class and whose undirected edges are reversible (Chickering, [9 ] ).
Answer Set Programming
Answer Set Programming (ASP) represents a problem by rules whose stable models are its solutions. A ground normal rule has form h : − l 1 , … , l n h \mathrel{:-} l_1,\ldots,l_n h : − l 1 , … , l n , where each body literal is an atom a a a or default negation not a a a , which holds when a a a is absent; a headless rule forbids its body. We write A S ( P ) AS(P) A S ( P ) for the stable models of P P P and call P P P coherent when A S ( P ) ≠ ∅ AS(P) \ne\varnothing A S ( P ) = ∅ . App. A gives the reduct-based semantics (Gelfond & Lifschitz, [17 ] ). We use choice rules { a } \{a\} { a } to allow selecting a a a and weak constraints: ∼ B . [ w @ ℓ , o ] \sim B. [w@\ell,o] ∼ B . [ w @ ℓ , o ] to charge cost w w w when B B B holds (Calimeri et al., [7 ] ). The identifier o o o distinguishes equal-weight facts. With priority ℓ \ell ℓ set to 1 for all constraints, an optimal stable model simply minimises the total cost.
ABA and Causal ABA
An assumption-based argumentation framework (ABAF) is a tuple ( L , R , A , a ˉ ) (\mathcal{L},\mathcal{R},\mathcal{A},\bar{\phantom{a}}) ( L , R , A , a ˉ ) , where L \mathcal{L} L is a language, R \mathcal{R} R is a set of rules over L \mathcal{L} L , A ⊆ L \mathcal{A} \subseteq\mathcal{L} A ⊆ L is a set of assumptions, and a ˉ \bar{\phantom{a}} a ˉ maps each assumption a ∈ A a \in\mathcal{A} a ∈ A to its contrary a ‾ ∈ L \overline{a} \in\mathcal{L} a ∈ L [5 , 13 ] . A set S ⊆ A S \subseteq\mathcal{A} S ⊆ A derives q q q , written S ⊢ q S \vdash q S ⊢ q , if q q q follows from S S S by the rules. It attacks an assumption a a a when S ′ ⊢ a ‾ S^{\prime} \vdash\overline{a} S ′ ⊢ a for some S ′ ⊆ S S^{\prime} \subseteq S S ′ ⊆ S . A stable extension is a conflict-free set of assumptions that attacks every assumption outside it. This formalism is useful for causal discovery because assumptions are defeasible commitments: they may be accepted or rejected based on their interrelations.
Causal ABA [35 ] uses assumptions for candidate graph choices (directed edges) and CI facts, and rules encoding acyclicity and d d d -separation. A stable extension of Causal ABA corresponds to a candidate DAG together with the CI facts it accepts. Enforcing a CI fact means requiring it to be in the accepted set and rejecting any stable extension whose graph violates it; releasing a fact means allowing it to be absent so coherence can be restored. Under the standard correspondence between ABA under stable semantics and ASP stable models [33 ] , this ABAF can be solved as an ASP program. Hence Causal ABA inherits both the argumentation reading of assumptions and the computational machinery of ASP. Causal ABA may admit multiple stable extensions for the same enforced CI facts, with corresponding DAGs spanning one or more MECs. This multiplicity is informative: the CI–DAG correspondence guarantees that every candidate satisfies those facts, while differing graphs expose the structural ambiguity they leave unresolved. These sets describe uncertainty conditional on the enforced facts, without implying calibrated confidence or guaranteed coverage of the generating MEC.
Causal ABA-PC
Example 1 highlights the situation Causal ABA is designed to expose: the empirical CI facts may be mutually incompatible, yet we still want returned graphs to satisfy a subset of the facts that remain enforced and to record the ones released.
Example 2 (Causal ABA). Continuing Ex. 1, Causal ABA’s grounded ASP encoding would include:
collider(o,e,r) :- arrow(e,o), arrow(r,o), e!=r.
nb(o,e,r,Z) :- in(o,Z), collider(o,e,r).
ap(e,r,p_eor,Z) :- arrow(e,o), arrow(r,o), nb(o,e,r,Z).
ap(e,r,p_eior,Z) :- arrow(e,i), arrow(i,o), arrow(r,o), nb(o,e,r,Z).
dep(e,r,Z) :- ap(e,r,_,Z).
indep(e,r,Z):- not ap(e,r,p_eor,Z),not ap(e,r,p_eior,Z).
Intuitively, arrow(x,y) encodes a directed edge X → Y ; in(v,Z) encodes membership in the conditioning set; collider and nb characterise whether a node blocks a path given Z; and ap (x,y,p,Z) witnesses an active path, where labels such as p_eor and p_eior are mnemonic identifiers for the corresponding path shapes. The atoms dep/indep are then derived from ap. Empirical CI tests are provided as input facts (e.g., dep(o,r,{}) for O ⟂̸ R and indep(r,i,{o}) for R ⟂⟂ I | {O}) and enforced by rejecting any stable model whose derived dep/indep atoms disagree with the input. For Z = {O}, conditioning on the collider O opens the path E → O ← R, so the encoding derives dep(e,r,{o}), representing E ⟂̸ R | O.
If the enforced facts are jointly inconsistent, the ASP program becomes incoherent (no stable models) and a repair step must decide which facts to release. Causal ABA-PC [35 ] is a concrete instantiation of Causal ABA in which the defeasible constraints are CI facts obtained from MPC [12 ] . Causal ABA-PC assigns each fact a strength derived from its test p p p -value [8 ] and then incrementally releases low-strength facts until coherence is restored: a simple heuristic baseline repair strategy.
Example 3 (Causal ABA-PC). Continuing Ex. 1, consider a Causal ABA-PC run on variables ( E , R , O , I ) (E,R,O,I) ( E , R , O , I ) whose MPC CI tests produce a trace of dep/indep facts, sorted by descending strength S S S and labelled as true (T) or false (F) w.r.t. the ground-truth DAG in Figure 1 , as follows:
indep(e,o,{i}) S=1.00 (F) dep(e,i,{r}) S=0.56 (T)
indep(r,i,{o}) S=1.00 (F) dep(r,i,{}) S=0.54 (T)
dep(o,r,{}) S=0.99 (T) indep(e,i,{o}) S=0.53 (F)
dep(o,r,{e}) S=0.95 (T) indep(r,i,{e}) S=0.53 (F)
dep(e,o,{}) S=0.92 (T) dep(o,r,{i}) S=0.52 (T)
dep(e,o,{r}) S=0.92 (T) indep(o,i,{}) S=0.51 (F)
dep(e,i,{}) S=0.84 (T) indep(o,i,{r}) S=0.50 (T)
MPC uses all 14 tests (including 5 wrong ones), producing a CPDAG with a single undirected edge ( O − R ) (O-R) ( O − R ) . ABA-PC releases facts in reverse strength order until the nine entries before the dashed separator remain enforced (7 true and 2 false), yielding one compatible DAG with one correct edge (O → I O \to I O → I ) and two wrong ones (O → R O \to R O → R , I → E I \to E I → E ).
Example 3 illustrates that enforcing all CI facts may be impossible, and that the heuristic release strategy of Causal ABA-PC may discard true facts while retaining false ones. We now show how MUSes and MCSes can be used to identify sets of facts that carry desirable properties for repair.
MUSes and MCSes
Explaining and repairing incoherence is a classic theme in diagnosis of ASP programs [34 , 24 ] , and it naturally applies here because noisy CI-test outcomes need not be jointly satisfiable.
MUSes and MCSes are defined relative to a base ASP program P P P and a distinguished set O O O of objective atoms. For S ⊆ O S \subseteq O S ⊆ O , let enforce(P P P , S S S , O O O ) denote the program obtained from P P P by (i) adding a choice rule over atoms in O O O and (ii) forcing every atom in S S S to be true. Concretely:
enforce ( P , S , O ) : = P ∪ { { o } . ∣ o ∈ O } ∪ { : − n o t o ∣ o ∈ S } . \operatorname{enforce}(P,S,O) := P \cup\{\{o\}.\mid o\in O\} \cup\{:-\mathop{\mathrm{not}} o\mid o\in S\}. enforce ( P , S , O ) := P ∪ {{ o } . ∣ o ∈ O } ∪ { : − not o ∣ o ∈ S } .
Definition 1 (Alviano et al. [1 ] ). Let P P P be a program and O O O be a set of objective atoms. Then S ⊆ O S \subseteq O S ⊆ O is an unsatisfiable set if enforce(P P P , S S S , O O O ) is incoherent. S S S is a minimal unsatisfiable set (MUS) if no strict subset S ′ ⊂ S S' \subset S S ′ ⊂ S is an unsatisfiable set.
Definition 2 (Alviano et al. [1 ] ). Let P P P be a program and O O O be a set of objective atoms. Then S ⊆ O S \subseteq O S ⊆ O is a correction set if enforce(P P P , O ∖ S O \setminus S O ∖ S , O O O ) is coherent. S S S is a minimal correction set (MCS) if no strict subset S ′ ⊂ S S' \subset S S ′ ⊂ S is a correction set.
MUSes pinpoint irreducible conflicts, whereas MCSes identify subset-minimal repairs. Write M U S ( P , O ) MUS(P,O) M U S ( P , O ) and M C S ( P , O ) MCS(P,O) M C S ( P , O ) for the families of all MUSes and MCSes of P P P w.r.t. O O O , respectively. Every MCS must hit every MUS; indeed, M C S ( P , O ) MCS(P,O) M C S ( P , O ) is exactly the family of minimal hitting sets of M U S ( P , O ) MUS(P,O) M U S ( P , O ) , and conversely [1 Thm. 5.3] . Their number may be exponential.
Example 4 (MUS/MCS intuition). Consider a program P P P :
a :- not b, o(1). b :- not c, o(2). c :- not a, o(3). :- not d, o(4).with objective O = { o ( 1 ) , o ( 2 ) , o ( 3 ) , o ( 4 ) } O = \{o(1), o(2), o(3), o(4)\} O = { o ( 1 ) , o ( 2 ) , o ( 3 ) , o ( 4 )} . Enforcing all of O O O makes enforce(P P P , O O O , O O O ) incoherent, but for two independent reasons: enforcing o ( 4 ) o(4) o ( 4 ) forces d d d even though it cannot be derived, and enforcing o ( 1 ) , o ( 2 ) , o ( 3 ) o(1), o(2), o(3) o ( 1 ) , o ( 2 ) , o ( 3 ) activates the negative loop over a a a , b b b , c c c . Hence the MUSes are { o ( 4 ) } \{o(4)\} { o ( 4 )} and { o ( 1 ) , o ( 2 ) , o ( 3 ) } \{o(1), o(2), o(3)\} { o ( 1 ) , o ( 2 ) , o ( 3 )} , while the MCSes are the minimal hitting sets { o ( 1 ) , o ( 4 ) } \{o(1), o(4)\} { o ( 1 ) , o ( 4 )} , { o ( 2 ) , o ( 4 ) } \{o(2), o(4)\} { o ( 2 ) , o ( 4 )} , and { o ( 3 ) , o ( 4 ) } \{o(3), o(4)\} { o ( 3 ) , o ( 4 )} .
Optimal Correction Sets in ASP
Let C S ( P , O ) CS(P,O) C S ( P , O ) contain all correction sets for P P P w.r.t. O O O . We assign each objective atom a strictly positive release cost, W = { ( o , w o ) ∣ o ∈ O , w o > 0 } W = \{(o,w_o)\mid o\in O,\ w_o>0\} W = {( o , w o ) ∣ o ∈ O , w o > 0 } , and write C ( R , W ) = ∑ o ∈ R w o C(R,W)=\sum_{o\in R}w_o C ( R , W ) = ∑ o ∈ R w o . We seek a minimum-cost repair without enumerating exponentially many MCSes.
Definition 3 (Optimal MCS). Let P P P be a program, O O O a set of objective atoms, and W W W weights over O O O . An MCS S ∈ M C S ( P , O ) S \in MCS(P,O) S ∈ M C S ( P , O ) is optimal (w.r.t. W W W ) if for every S ′ ∈ M C S ( P , O ) S' \in MCS(P,O) S ′ ∈ M C S ( P , O ) it holds that C ( S , W ) ≤ C ( S ′ , W ) C(S,W) \le C(S',W) C ( S , W ) ≤ C ( S ′ , W ) .
Lemma 1 (Positive-cost minimality). Let P P P be a finite ground program, let O O O be finite, and let W = { ( o , w o ) ∣ o ∈ O , w o > 0 } W = \{(o,w_o)\mid o\in O,\ w_o>0\} W = {( o , w o ) ∣ o ∈ O , w o > 0 } . Every minimum-cost member of C S ( P , O ) CS(P,O) C S ( P , O ) is an optimal MCS with respect to W W W .
All proofs are in Appendix C–F.
Rather than enumerating repairs, we expose each objective atom as a choice and use the solver’s native optimisation. For a program P P P , objective atoms O O O , and weights W W W , define
opt ( P , O , W ) = P ∪ { { o } . ∣ o ∈ O } ∪ { : ∼ n o t o . [ w o @ 1 , o ] ∣ ( o , w o ) ∈ W } . \operatorname{opt}(P,O,W)=P\cup\{\{o\}.\mid o\in O\}\cup\{:\sim\mathop{\mathrm{not}}o.[w_o@1,o]\mid(o,w_o)\in W\}. opt ( P , O , W ) = P ∪ {{ o } . ∣ o ∈ O } ∪ { :∼ not o . [ w o @1 , o ] ∣ ( o , w o ) ∈ W } .
For a stable model M M M , let its released-fact projection be ρ ( M ) = O ∖ M \rho(M)=O\setminus M ρ ( M ) = O ∖ M . The identifier o o o in the weak-constraint tuple prevents equal-weight facts from collapsing into one occurrence. Consequently, the weak-constraint cost of M M M is exactly C ( ρ ( M ) , W ) C(\rho(M),W) C ( ρ ( M ) , W ) .
Example 5 (Optimal MCS). In Ex. 4, assigning costs 5, 10, 15, 20 to o ( 1 ) , … , o ( 4 ) o(1),\ldots,o(4) o ( 1 ) , … , o ( 4 ) gives the three repairs costs 25, 30, 35; releasing o ( 1 ) o(1) o ( 1 ) and o ( 4 ) o(4) o ( 4 ) is therefore uniquely optimal. For the same instance, an optimal model is M = { o ( 2 ) , o ( 3 ) , c } M=\{o(2),o(3),c\} M = { o ( 2 ) , o ( 3 ) , c } , so ρ ( M ) = { o ( 1 ) , o ( 4 ) } \rho(M)=\{o(1),o(4)\} ρ ( M ) = { o ( 1 ) , o ( 4 )} ; the fully instantiated program is in Appendix § 12 .
Theorem 1 (Projection correspondence). Let P P P be a finite ground program, O O O a finite set of objective atoms, and W W W assign strictly positive release weights to all atoms in O O O . Then:
( ⇒ ) (\Rightarrow) ( ⇒ ) If M M M is an optimal stable model of opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) , then ρ ( M ) \rho(M) ρ ( M ) is an optimal MCS (Def. 3), and the weak-constraint cost of M M M is C ( ρ ( M ) , W ) C(\rho(M),W) C ( ρ ( M ) , W ) .
( ⇐ ) (\Leftarrow) ( ⇐ ) For every optimal MCS R R R , there exists an optimal stable model M M M of opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) with ρ ( M ) = R \rho(M)=R ρ ( M ) = R .
Distinct optimal stable models may have the same released-fact projection.
Proposition 1 (Conflict justification). Let P P P be a finite ground program and O O O a finite set of objective atoms. For every R ∈ M C S ( P , O ) R\in MCS(P,O) R ∈ M C S ( P , O ) and every f ∈ R f\in R f ∈ R , there is a MUS U f ∈ M U S ( P , O ) U_f\in MUS(P,O) U f ∈ M U S ( P , O ) such that U f ∩ R = { f } U_f\cap R=\{f\} U f ∩ R = { f } .
Thus every released objective atom has a private conflict certificate containing no other released fact. Reinstating that atom while retaining the others in the certificate restores incoherence. We use this principled repair object to provide contestability and redress for Causal ABA, where objective atoms are weighted CI facts.
OptABA-PC
Bayes-ball Encoding of Causal ABA
We separate the inherited Causal ABA machinery from our replacement for its active-path computation. For a fixed variable set V V V and finite set O O O of valid CI objective atoms, let S O S_O S O contain the conditioning-set identifiers occurring in O O O . The inherited P c o r e C A B A P_{\mathrm{core}}^{\mathrm{CABA}} P core CABA supplies the variable and conditioning-set vocabulary, CI symmetry and consistency, candidate-DAG generation, adjacency, directed reachability, and acyclicity; P B B n e w P_{\mathrm{BB}}^{\mathrm{new}} P BB new computes d d d -connection and enforces selected CI facts. Their union is the finite ground base program
P C A ( V , O ) = P c o r e C A B A ( V , S O ) ∪ P B B n e w ( V , O ) . (1) P_{\mathrm{CA}}(V,O)=P_{\mathrm{core}}^{\mathrm{CABA}}(V,S_O)\cup P_{\mathrm{BB}}^{\mathrm{new}}(V,O). \tag*{(1)} P CA ( V , O ) = P core CABA ( V , S O ) ∪ P BB new ( V , O ) . (1)
For a fixed instance write P C A P_{\mathrm{CA}} P CA . The core chooses X → Y X\to Y X → Y , Y → X Y\to X Y → X , or no edge for each unordered pair, yielding one candidate DAG per stable model; its rules are in Listings 1–3 in Appendix § 10 . Objective choices and weak constraints are added by enforce and opt.
The original Causal ABA encoding derives dep/indep by materialising active paths for each queried triple ( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) . This is faithful to d d d -separation but expensive, since the number of simple paths can be exponential. We therefore replace the path-enumerating modules with an ASP implementation of the Bayes-ball algorithm [37 ] . Bayes-ball does not enumerate paths; for a fixed query ( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) , it propagates a marker through the current DAG according only to the current node, the direction from which the marker arrived, and whether the node is in, or has a descendant in, Z Z Z . Bayes-ball is instantiated for input CI queries and their symmetric counterparts. Its two states record arrival from a child or parent; reaching the target derives ap3( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) , and a d d d -connection witness. The final constraints require this witness for an enforced dependence, and forbid it for an enforced independence. Listing 4 in Appendix § 10 .§ 2 gives the complete encoding.
Lemma 2 (Bayes-ball encoding correctness). Let V V V be finite, let G ∈ D A G ( V ) G\in DAG(V) G ∈ D A G ( V ) fix the arrow atoms, and let qpair ( X , Y , Z ) \operatorname{qpair}(X,Y,Z) qpair ( X , Y , Z ) encode a valid query with distinct endpoints X , Y ∈ V ∖ Z X,Y\in V\setminus Z X , Y ∈ V ∖ Z . In the least fixed point of the grounded propagation rules in Listing 4, ap3 ( X , Y , Z ) \operatorname{ap3}(X,Y,Z) ap3 ( X , Y , Z ) is derived iff X X X and Y Y Y are d d d -connected given Z Z Z in $G.
For a stable model M M M of a Causal ABA instance using P C A P_{\mathrm{CA}} P CA , define its graph projection by
π G ( M ) = ( V , E M ) , E M = { ( X , Y ) ∈ V 2 ∣ arrow ( X , Y ) ∈ M } . \pi_G(M)=(V,E_M),\qquad E_M=\{(X,Y)\in V^2\mid\operatorname{arrow}(X,Y)\in M\}. π G ( M ) = ( V , E M ) , E M = {( X , Y ) ∈ V 2 ∣ arrow ( X , Y ) ∈ M } .
This discards the objective, reachability, and Bayes-ball atoms and differs from the released-fact projection ρ ( M ) \rho(M) ρ ( M ) .
Corollary 1 (Graph fidelity). For the finite sets V V V and O O O defining P C A = P C A ( V , O ) \mathrm{PCA} = \mathrm{PCA}(V,O) PCA = PCA ( V , O ) , let D A G ( V ) \mathrm{DAG}(V) DAG ( V ) be the set of DAGs on the fixed vertex set V V V , and let G ⊨ T G \models T G ⊨ T abbreviate G ⊨ f G \models f G ⊨ f for every f ∈ T f \in T f ∈ T . For every T ⊆ O T \subseteq O T ⊆ O of valid CI facts,
{ π G ( M ) ∣ M ∈ A S ( enforce ( P C A , T , O ) ) } = { G ∈ D A G ( V ) ∣ G ⊨ T } . \{\pi_G(M) \mid M \in AS(\operatorname{enforce}(\mathrm{PCA},T,O))\} = \{G \in\mathrm{DAG}(V) \mid G \models T\}. { π G ( M ) ∣ M ∈ A S ( enforce ( PCA , T , O ))} = { G ∈ DAG ( V ) ∣ G ⊨ T } .
In OptABA-PC, the objective atoms in O O O are the CI facts produced by MPC [12 ] . Let W contain their strictly positive release costs. OptABA-PC solves opt ( P C A , O , W ) \operatorname{opt}(\mathrm{PCA}, O,W) opt ( PCA , O , W ) with clingo [16 ] . Unlike ABA-PC’s incremental strength-ordered release, one solve minimises the total cost of the released set. Note that we use w f = max { 1 , round ( 9,999,999 s ( p f ) ) } w_f = \max\{1,\operatorname{round}(9{,}999{,}999s(p_f))\} w f = max { 1 , round ( 9 , 999 , 999 s ( p f ))} , where s ( p ) = 1 − p / ( 2 α ) s(p)=1-p/(2\alpha) s ( p ) = 1 − p / ( 2 α ) for p < α p<\alpha p < α and s ( p ) = ( p + 1 − 2 α ) / ( 2 ( 1 − α ) ) s(p)=(p+1-2\alpha)/(2(1-\alpha)) s ( p ) = ( p + 1 − 2 α ) / ( 2 ( 1 − α )) otherwise, following ABA-PC [35 ] without weighting on conditioning set size. These costs encode preferences in line with the expected behaviour of p p p -values of being most uncertain around the threshold α \alpha α [19 , 8 ] , not calibrated probabilities.
Example 6 (OptABA-PC). Continuing Ex. 3 with the same fact weights, OptABA-PC releases the optimal MCS R = { indep ( e , o , { i } ) , indep ( r , i , { e } ) , indep ( o , i , { } ) } R = \{\operatorname{indep}(e,o,\{i\}),\operatorname{indep}(r,i,\{e\}),\operatorname{indep}(o,i,\{\})\} R = { indep ( e , o , { i }) , indep ( r , i , { e }) , indep ( o , i , { })} . All three facts are wrong with respect to the d-separations of the DAG in Figure 1 ; the repair retains all nine correct facts and the two remaining wrong facts. Its single compatible DAG is E → O E \to O E → O , R → O R \to O R → O , O → I O \to I O → I , with all three edges correctly oriented; while ABA-PC only one (cf. Ex. 3). Thus global minimum-cost repair can improve both CI selection and its graph witness.
Optimality and Contestability Guarantees
Theorem 2 (OptABA-PC guarantees). Let V V V be finite, O O O a finite set of valid CI facts over V V V , and W W W assign strictly positive release weights to every fact in O O O . Then opt ( P C A , O , W ) \operatorname{opt}(\mathrm{PCA}, O,W) opt ( PCA , O , W ) has an optimal stable model. For every such model M M M , put R = ρ ( M ) R=\rho(M) R = ρ ( M ) and T = O ∖ R T=O\setminus R T = O ∖ R . Then:
(1) π G ( M ) \pi_G(M) π G ( M ) is a DAG on V V V satisfying every fact in T T T ;
(2) R R R is an MCS with minimum release cost among all correction sets of P C A \mathrm{PCA} PCA w.r.t. O O O ;
(3) for every f ∈ R f \in R f ∈ R , enforcing T ∪ { f } T \cup\{f\} T ∪ { f } is incoherent, and a MUS U f U_f U f satisfies U f ∩ R = { f } U_f \cap R = \{f\} U f ∩ R = { f } .
Conversely, every optimal MCS R R R is ρ ( M ) \rho(M) ρ ( M ) for some optimal stable model M M M , with the same cost.
The correspondence is under projection, not a bijection: several optimal stable models may have the same released-fact projection and possibly different graph projections. Our implementation saves a selected repair and separately enumerates compatible graphs within a time budget; the reported graph sets need not exhaust the entire family. These guarantees support two forms of user contestation. A release-cost contestation increases the penalty for releasing f f f ; a fact-enforcement contestation excludes every repair that releases f f f .
Given a stable model M M M and a repair R = ρ ( M ) R=\rho(M) R = ρ ( M ) , a fact f f f is retained if f ∈ M f \in M f ∈ M , equivalently f ∉ R f \notin R f ∈ / R , and released if f ∉ M f \notin M f ∈ / M , equivalently f ∈ R f \in R f ∈ R . For a base program P P P , write F = C S P ( P , O ) F=\mathrm{CSP}(P,O) F = CSP ( P , O ) . In OptABA-PC, returned repairs are projections ρ ( M ) \rho(M) ρ ( M ) of optimal stable models. For a contested fact f f f , let the hard-retention program be:
opt f ( P , O , W ) = opt ( P , O , W ) ∪ { : − not f } . \operatorname{opt}_f(P,O,W)=\operatorname{opt}(P,O,W)\cup\{\mathord{:-}\ \operatorname{not}\ f\}. opt f ( P , O , W ) = opt ( P , O , W ) ∪ { : − not f } .
Property 1 (Release-cost contestability). For a weighted repair method over F \mathcal{F} F , let Rep W ⊆ F \operatorname{Rep}_W \subseteq\mathcal{F} Rep W ⊆ F denote the repairs returned under weights W W W . Suppose W ′ W' W ′ differs from W W W only in that w f ′ > w f w'_f>w_f w f ′ > w f . The method is release-cost contestable at f f f if its returned repairs can change only towards retaining f f f :
{ R ∈ Rep W : f ∉ R } ⊆ Rep W ′ , { R ∈ Rep W : f ∈ R } ⊆ Rep W . \{R \in\operatorname{Rep}_W:f \notin R\}\subseteq\operatorname{Rep}_{W'}, \qquad\{R \in\operatorname{Rep}_W:f \in R\}\subseteq\operatorname{Rep}_W. { R ∈ Rep W : f ∈ / R } ⊆ Rep W ′ , { R ∈ Rep W : f ∈ R } ⊆ Rep W .
Effectively, the optimal MCSes not containing f f f will remain optimal under W ′ W' W ′ while the ones that contain f f f under the updated W ′ W' W ′ must have already been optimal. Thus increasing the release cost may remove releasing repairs or add retaining repairs, but not conversely.
Property 2 (Fact-enforcement contestability). An ASP repair method based on opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) is fact-enforcement contestable at f f f if
{ ρ ( M ) ∣ M is optimal for opt f ( P , O , W ) } = arg min R ∈ F , f ∉ R C ( R , W ) . \{\rho(M)\mid M\text{ is optimal for }\operatorname{opt}_f(P,O,W)\}=\underset{R\in\mathcal{F},\,f\notin R}{\operatorname{arg\,min}}\ C(R,W). { ρ ( M ) ∣ M is optimal for opt f ( P , O , W )} = R ∈ F , f ∈ / R arg min C ( R , W ) .
It is total on a fact domain f f f , for every fact f f f in that domain, some R ∈ F R\in\mathcal{F} R ∈ F satisfies f ∉ R f\notin R f ∈ / R . Thus making f f f mandatory returns exactly the best repairs that retain f f f .
Proposition 2 (OptABA-PC contestability). Let V V V and O O O be finite, let every member of O O O be a valid CI fact over V V V , put P C A = P C A ( V , O ) \mathrm{PCA} = \mathrm{PCA}(V,O) PCA = PCA ( V , O ) as in Equation (1) , and let W = { ( o , w o ) ∣ o ∈ O , w o > 0 } W = \{(o,w_o) \mid o \in O, w_o > 0\} W = {( o , w o ) ∣ o ∈ O , w o > 0 } . Then OptABA-PC satisfies Properties 1 and 2 for every f ∈ O f \in O f ∈ O . Moreover, fact-enforcement contestability is total: opt f ( P C A , O , W ) \operatorname{opt}_f(\mathrm{PCA},O,W) opt f ( PCA , O , W ) has an optimal stable model for every f ∈ O f \in O f ∈ O .
Besides making f f f mandatory, a user may increase its release cost, as in [15 ] . Property 1 guarantees that such graded contestation can only favour retention.
Definition 4 (Contestability margin). Let F \mathcal{F} F be a finite family of repairs and W W W assign a finite release cost to every objective atom. For any fact f f f for which F \mathcal{F} F contains both a repair retaining f f f and a repair releasing f f f , define
c k e e p ( f ) = min R ∈ F , f ∉ R C ( R , W ) , c r e l ( f ) = min R ∈ F , f ∈ R C ( R , W ) . c_{\mathrm{keep}}(f) = \min_{R\in\mathcal{F},\, f\notin R} C(R,W), \qquad c_{\mathrm{rel}}(f) = \min_{R\in\mathcal{F},\, f\in R} C(R,W). c keep ( f ) = R ∈ F , f ∈ / R min C ( R , W ) , c rel ( f ) = R ∈ F , f ∈ R min C ( R , W ) .
If at least one globally optimal repair under W W W releases f f f , then c r e l ( f ) ≤ c k e e p ( f ) c_{\mathrm{rel}}(f) \le c_{\mathrm{keep}}(f) c rel ( f ) ≤ c keep ( f ) . The contestability margin of f f f is μ ( f ) = c k e e p ( f ) − c r e l ( f ) ≥ 0 \mu(f) = c_{\mathrm{keep}}(f) - c_{\mathrm{rel}}(f) \ge0 μ ( f ) = c keep ( f ) − c rel ( f ) ≥ 0 .
Both minima exist: Prop. 2 gives a repair retaining f f f , and releasing all facts is feasible. Increasing w f w_f w f by δ \delta δ adds δ \delta δ only to repairs releasing f f f . Thus below μ ( f ) \mu(f) μ ( f ) every optimum releases f f f , at equality both kinds coexist, and above it every optimum retains f f f ; for integer weights, the least forcing increase is μ ( f ) + 1 (proof in App. F, Prop. S.1) \mu(f) + 1\ \text{(proof in App. F, Prop. S.1)} μ ( f ) + 1 (proof in App. F, Prop. S.1) .
Example 7 (Contestation of a released fact). Consider f = indep ( e , o , { i } ) f = \operatorname{indep}(e,o,\{i\}) f = indep ( e , o , { i }) , released in Ex. 6. For this illustration, set each release cost to 1000 S 1000S 1000 S using the strengths in Ex. 3. The three released facts in R R R therefore cost c r e l ( f ) = 1000 + 530 + 510 = 2040 c_{\mathrm{rel}}(f) = 1000 + 530 + 510 = 2040 c rel ( f ) = 1000 + 530 + 510 = 2040 . One MUS for f f f contains two retained facts: dep ( e , o , { } ) \operatorname{dep}(e,o,\{\}) dep ( e , o , { }) and indep ( e , i , { o } ) \operatorname{indep}(e,i,\{o\}) indep ( e , i , { o }) . The two independences imply indep ( e , o , { } ) \operatorname{indep}(e,o,\{\}) indep ( e , o , { }) , contradicting the retained dependence; hence f f f cannot be reinstated while both other facts stay. The cheapest repair of the full trace with f f f mandatory replaces its release by releases of indep ( e , i , { o } ) \operatorname{indep}(e,i,\{o\}) indep ( e , i , { o }) (cost 530) and indep ( e , r , { } ) \operatorname{indep}(e,r,\{\}) indep ( e , r , { }) (cost 500), leaving the other two releases unchanged. Thus c k e e p ( f ) = 2040 − 1000 + 530 + 500 = 2070 c_{\mathrm{keep}}(f) = 2040 - 1000 + 530 + 500 = 2070 c keep ( f ) = 2040 − 1000 + 530 + 500 = 2070 and μ ( f ) = 30 \mu(f) = 30 μ ( f ) = 30 . Increasing only w f w_f w f from 1000 to 1030 ties the two repair costs; 1031 makes every optimum retain f f f . The returned DAGs satisfy the requested f f f , even though, in this case, it is false wrt the generating DAG.
Within a fixed trace and weighting scheme, the margin measures relative weighted degree of inconsistency; Apps. F and G.3 develop and evaluate this interpretation.
Experiments
Setup. Following [35 ] , we use the Cancer, Earthquake, Survey, and Asia bnlearn networks from [36 ] and add Erdős–Rényi (ER) [14 ] and scale-free (SF) [3 ] DAGs with five and eight nodes. Each dataset has N = 5000 N = 5000 N = 5000 observations and 50 seeds; fixed networks retain their graph and conditional probability tables, whereas each synthetic seed generates both. ABA-PC and OptABA-PC use the same Bayes-ball encoding and receive identical MPC [12 ] G 2 G^2 G 2 CI-test traces and weights (α = 0.01 \alpha= 0.01 α = 0.01 ), isolating their repair mechanisms. Fast Greedy Search (FGS) [31 ] and ASPCR-DAG [21 ] use their native configurations. ABA runs use a 300-second solve limit and a separate 120-second graph-evaluation limit; 32/400 OptABA-PC runs reach the optimisation limit and return a valid incumbent without proved optimality. Full protocol in App. G.2, implementation and experimental material are available at https://github.com/briziorusso/ArgCausalDisco.
Metrics. Table 1 reports mean paired OptABA-PC–ABA-PC differences. Retained true facts agree with the generating DAG; FactF1 also penalises retained false and released true facts. #CPDAG counts saved equivalence classes satisfying all retained facts; CPDAG F1 and Structural Hamming Distance (SHD) measure reconstruction over these budget-limited sets. To evaluate contestability, we instantiate Def. 4 for every released fact f f f : the baseline optimum gives c r e l ( f ) c_{\mathrm{rel}}(f) c rel ( f ) , a re-solve enforcing f f f gives c k e e p ( f ) c_{\mathrm{keep}}(f) c keep ( f ) , and their difference is the empirical margin μ ( f ) \mu(f) μ ( f ) . App. G gives absolute results (including Earthquake), variability, significance, precision–recall, hard-retention feasibility, and margin distributions.
Results. Across all seven datasets in Table 1, OptABA-PC retains more true facts, identifies fewer compatible classes, and improves mean CPDAG F1 and SHD compared to ABA-PC. Against other baselines, graph accuracy is mixed: MPC and FGS often score better, particularly on synthetic benchmarks (Table 11 ). Our scores average over a returned set of compatible CPDAGs, whereas MPC and FGS return one. MPC has no significant advantage over the best F1 and SHD in our set on three of four synthetic settings (Table 14 and Table 15 ). OptABA-PC achieves higher CPDAG and DAG F1 than its closest ASP-based counterpart, ASPCR-DAG, on all shared benchmarks.
Table 11. Graph reconstruction and CI-compatible equivalence classes on the matched primary experiments (mean ± \pm ± standard deviation over seeds). Numbers in brackets after dataset names give the number of nodes. ABA-PC and OptABA-PC CPDAG values average over every equivalence class admitted by the selected repair; MPC and FGS return one CPDAG when their output is structurally valid, and ASPCR-DAG returns one DAG whose equivalence class supplies its CPDAG score. DAG columns average every compatible DAG for ABA-PC/OptABA-PC and every consistent extension of a valid MPC/FGS CPDAG; ASPCR-DAG is scored on its returned DAG. The final column counts CPDAGs satisfying the enforced evidence: retained post-repair facts for ABA-PC/OptABA-PC and every recorded test for MPC/ASPCR-DAG; it is undefined for score-based FGS (‘–’). Stars identify the significant ABA-PC–OptABA-PC winner. Daggers on an external method indicate a paired difference from OptABA-PC; bold daggers favour that external method, whereas unbold daggers favour OptABA-PC. One, two, and three symbols denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01 0.01 0.01 , and 0.001 0.001 0.001 . Subscripts occur only for MPC DAG-extension metrics when its endpoint output is invalid: n = 38 n = 38 n = 38 on Survey and n = 49 n = 49 n = 49 on ER(8).
Table 14. Average, best, and worst CPDAG SHD within each run of the matched primary experiments (mean ± standard deviation over seeds; lower is better). ABA-PC and OptABA-PC are scored over the saved classes satisfying their selected facts. MPC and FGS return one class when structurally valid; ASPCR-DAG’s DAG supplies one class, so their average, best, and worst values coincide within a run. Stars mark the significant ABA-PC–OptABA-PC winner. Daggers compare an external method with OptABA-PC; bold daggers favour that method, unbold daggers favour OptABA-PC. One, two, and three symbols denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001. Compatibility counts are in Table 18 .
Table 15. Average, best, and worst CPDAG F1 within each run of the matched primary experiments (mean ± standard deviation over seeds; higher is better). ABA-PC and OptABA-PC are scored over the saved classes satisfying their selected facts. MPC and FGS return one class when structurally valid; ASPCR-DAG’s DAG supplies one class, so their average, best, and worst values coincide within a run. Stars mark the significant ABA-PC–OptABA-PC winner. Daggers compare an external method with OptABA-PC; bold daggers favour that method, unbold daggers favour OptABA-PC. One, two, and three symbols denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001. Compatibility counts are in Table 18 .
Table 1. Paired OptABA-PC–ABA-PC effects on seven bnlearn and synthetic datasets (nodes in brackets). Entries are mean within-seed differences Δ \Delta Δ ; parentheses give relative change from ABA-PC, except runtime (t O p t / t A B A t_{\mathrm{Opt}}/t_{\mathrm{ABA}} t Opt / t ABA ). Arrows indicate preferred directions. Δ n a c c T \Delta n_{\mathrm{acc}}^{T} Δ n acc T counts additional true CI facts retained; # \# # CPDAG counts saved MECs satisfying every retained fact. Counts and graph means describe saved, budget-limited sets. Tables 9 and 10 in the supplement give absolute mean ± \pm ± standard deviation and significance for all datasets; Earthquake is omitted because outcomes do not differ. CPDAG evaluation.
Table 1 (PDF p. 9). Fact selection and runtime.
The main gains in Table 1 are stronger fact selection (Δ n a c c T \Delta n_{\mathrm{acc}}^{T} Δ n acc T and Δ \Delta Δ FactF1) and fewer competing Markov Equivalence Classes (Δ # \Delta\# Δ# CPDAG). Relative to ABA-PC, OptABA-PC retains more true independence and dependence facts on all seven datasets. FactF1 also improves on Asia and every synthetic benchmark, indicating better retain/release classification overall. Survey trades precision for more true-fact retention; Cancer’s small FactF1 decline is not significant. Over 94% fewer compatible CPDAGs are saved on every eight-variable benchmark, reducing uncertainty over structures consistent with the retained evidence.
CI-DAG correspondence further distinguishes the outputs: every graph by OptABA-PC satisfies the explicitly retained facts, with conflict certificates explaining releases, while MPC and ASPCR-DAG outputs respect their full CI traces in only 80/400 (20%) and 32/250 (12.8%) runs, respectively (Table 5 ). On datasets with at most six variables, all 742 requests to reinstate released facts yielded minimum-cost consistent repairs. For graded contestation, the median increase in a fact’s release cost needed to make retention optimal was 45.5% (Table 6 and Table 8 ). OptABA-PC uses one exact optimisation instead of repeated repair solves: it is faster than ABA-PC on five datasets, but slower on ER(8) and SF(8) (Table 1). Under matched heuristic repair, our Bayes-ball encoding is over 2 × 2\times 2 × as fast as the original active-path encoding on six- and eight-variable benchmarks (Table 4 ).
Table 4. Matched encoding-efficiency ablation over seeds 2026–2075, with N = 5000 N = 5000 N = 5000 , G 2 G^2 G 2 tests at α = 0.01 \alpha= 0.01 α = 0.01 , identical test traces and weights, and the same sequential ABA-PC repair policy. Only the causal-consistency encoding changes. Times are mean ± \pm ± standard deviation for completed seed pairs and include program construction and solving; “BB/original” is the ratio of those means, so values below one favour Bayes-ball. Completion is over all 50 runs. Bold marks the significantly faster implementation under paired two-sided Wilcoxon tests with BH adjustment across datasets (*, **, and *** for adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001). Every completed pair returned identical retained-fact counts, weights, and model counts.
Table 5. Evidence correspondence, run completion, and repair coverage. A trace is feasible if some DAG satisfies every recorded CI outcome; a full-trace output is the method’s returned graph or class satisfying all of them. A timeout incumbent is a valid saved repair whose optimality was not proved before the limit. An explicit repair names excluded facts, and selected-repair enforcement verifies every retained fact against the output. ASPCR-DAG uses its primary matched run set; FGS has no CI trace. A dash denotes an undefined object.
Table 6. Decision and forced-fact evidence. OptABA-PC, ABA-PC, and MPC use the exact 250-trace G 2 G^2 G 2 audit; ASPCR-DAG uses a separate 250-run native Bayesian audit. A forced OptABA-PC solve is a user contestation and μ ( f ) / w f \mu(f)/w_f μ ( f ) / w f is its exact threshold. ASPCR-DAG’s forced solve is a post-hoc sensitivity test of a soft graph-disagreement objective, so its gap/w f w_f w f is not numerically comparable. ABA-PC and MPC define neither category optima nor a forced-fact certificate. Brackets give [ Q 1 , Q 3 ] [Q_1,Q_3] [ Q 1 , Q 3 ] ; a dash means that the object is undefined. Bold marks OptABA-PC’s exact certified result.
Table 8. Dataset-level forced-fact evidence over 250 validated baselines per method (50 per dataset). Each target is a fact rejected by the baseline optimum; all re-solves prove optimality and none has zero gap. OptABA-PC’s μ ( f ) / w f \mu(f)/w_f μ ( f ) / w f is an exact user-contestation threshold; c ∗ c^* c ∗ denotes the complete baseline optimum repair cost. ASPCR-DAG’s μ A S P ( f ) / w f \mu_{\mathrm{ASP}}(f)/w_f μ ASP ( f ) / w f is instead a post-hoc sensitivity gap for its soft graph-disagreement objective. These are not paired effect sizes: the methods use different traces, weights, and objectives, and their synthetic audits use different graph densities.
Conclusion
We cast causal discovery from noisy data as transparent CI-fact repair. By aligning optimal MCSes with weak-constraint optimisation, OptABA-PC couples minimum-cost CI-fact repair with guaranteed CI-DAG correspondence, conflict explanations, and predictable redress. The contribution is optimal and provable redress, not solely competitive graph accuracy. OptABA-PC traceable link from retained facts to every returned DAG supports transparency and contestation. The empirical evidence of higher true CI retention also supports the effectiveness of the approach in contexts where data is limited or uncertain and external input is needed and available, making it particularly suited to high-stakes decisions with modest variable sets. The observed benefits and theoretical guarantees motivate more efficient methods that preserve these properties. Our proposed Bayes-ball encoding is one concrete step in this direction; scalability and robustness to release costs remain priorities.
Acknowledgements
Russo was funded by the ERC under the ERC-POC programme (grant number 101189053), Toni under the EU’s Horizon 2020 research and innovation programme (grant number 101020934) while Mazzotta, Dodaro and Ricca were partially funded by the Italian Ministry of Industrial Development (MISE) under project EI-TWIN n. F/310168/05/X56 CUP B29J24000680005 and also partially by projects SIGENERA (CUP J29I24001770005) and MOZART (J49I24001740005) selected within the framework of the PR FESR – FSE Calabria 2021/2027 and implemented with the support of the Italian State and the Calabria Region.
ASP Semantics
We make explicit the semantics used in the main paper. A finite ground normal rule is
h : − a 1 , … , a m , not b 1 , … , not b n , h :- a_1,\ldots,a_m,\ \operatorname{not}\ b_1,\ldots,\operatorname{not}\ b_n, h : − a 1 , … , a m , not b 1 , … , not b n ,
where the head h h h may be absent. Its body is true in an interpretation I I I iff a i ∈ I a_i \in I a i ∈ I for every i i i and b j ∉ I b_j \notin I b j ∈ / I for every j j j . The rule is satisfied iff its body is false or h ∈ I h \in I h ∈ I ; when the head is absent, satisfaction therefore requires the body to be false.
For a program P P P and interpretation I I I , the Gelfond–Lifschitz reduct P I P^I P I deletes each rule having some negative body literal not b \operatorname{not}\ b not b with b ∈ I b \in I b ∈ I and removes all remaining negative body literals [17 ] . Then I I I is a stable model of P P P iff it is a subset-minimal model of P I P^I P I . Non-ground safe programs are interpreted through their finite ground instantiation. The encoding also uses ground choice and disjunctive constructs, including the inherited default-negated head literal in Listing 2, under their clingo stable-model semantics [16 , 7 ] .
A ground weak constraint : ∼ B . [ w @ ℓ , t ⃗ ] :\sim B.\ [w@\ell,\vec{t}] :∼ B . [ w @ ℓ , t ] is active in I I I when B B B is true in I I I . At priority ℓ \ell ℓ , the solver sums w w w once for each distinct activated tuple ( w , ℓ , t ⃗ ) (w,\ell,\vec{t}) ( w , ℓ , t ) and minimises the resulting cost vectors lexicographically by priority. OptABA-PC uses
: ∼ not o . [ w o @ 1 , o ] :\sim\ \operatorname{not}\ o.\ [w_o@1,o] :∼ not o . [ w o @1 , o ]
for every objective atom o o o . Including o o o as a tuple identifier is essential: two different facts of equal weight then activate different tuples and are both counted. All release weights are strictly positive.
Causal ABA Encodings
Equation (1) separates the rules inherited unchanged from Causal ABA [35 ] , given in Listings 1–3, from the new Bayes-ball encoding in Listing 4. This section gives every rule schema in the inherited component P c o r e C A B A P_{\mathrm{core}}^{\mathrm{CABA}} P core CABA . Together with Listing 4, Listings 1–3 completely define P C A P_{\mathrm{CA}} P CA .
Original Causal ABA encodings
The instance supplies one fact var(v) for every v ∈ V v \in V v ∈ V and one fact in(v,s) for every member v v v of each represented conditioning set s ∈ S O s \in S_O s ∈ S O ; empty denotes ∅ \varnothing ∅ . A CI fact is valid over V V V when it asserts independence or dependence for distinct endpoints X , Y ∈ V X,Y \in V X , Y ∈ V given Z ⊆ V ∖ { X , Y } Z \subseteq V \setminus\{X,Y\} Z ⊆ V ∖ { X , Y } . In Listing 1, lines 1–2 construct the conditioning-set domain, lines 3–4 close CI atoms under endpoint symmetry, and line 5 rejects a simultaneous independence and dependence assertion for the same valid query.
1 set(S) :- in(N,S).
2 set(empty).
3 indep(X,Y,S) :- indep(Y,X,S), var(X), var(Y), set(S), X!=Y.
4 dep(X,Y,S) :- dep(Y,X,S), var(X), var(Y), set(S), X!=Y.
5 :- dep(X,Y,S), indep(X,Y,S), var(X), var(Y), X!=Y, not in(X,S),
not in(Y,S).
Listing 1: Inherited conditioning-set and CI-consistency rules.
The candidate-graph rules in Listing 2 are also inherited unchanged. Line 1 chooses a directed edge in either orientation or no adjacency. Lines 2–3 make edge/2 the symmetric adjacency relation. Line 4 exploits the fact that a direct edge cannot coexist with a valid conditional independence between its endpoints [38 ] ; lines 5–7 keep edge and arrow choices consistent and exclude a two-cycle.
1 arrow(X,Y) | arrow(Y,X) | not edge(X,Y) :- var(X), var(Y), X!=Y.
2 edge(X,Y) :- arrow(X,Y), X!=Y, var(X), var(Y).
3 edge(X,Y) :- edge(Y,X), X!=Y, var(X), var(Y).
4 :- edge(X,Y), indep(X,Y,S), set(S), var(X), var(Y), X!=Y, not in(X,S),
not in(Y,S).
5 :- arrow(X,Y), not edge(X,Y), var(X), var(Y).
6 :- edge(X,Y), not arrow(X,Y), not arrow(Y,X), var(X), var(Y).
7 :- arrow(Y,X), arrow(X,Y), X!=Y, var(X), var(Y).
Listing 2: Inherited candidate-DAG and adjacency rules.
Finally, lines 1–2 of Listing 3 define directed reachability, and line 3 excludes every directed cycle.
1 dpath(X,Y) :- arrow(X,Y), X!=Y, var(X), var(Y).
2 dpath(X,Y) :- arrow(X,Z), dpath(Z,Y), var(X).
3 :- dpath(X,X), var(X).
Listing 3: Inherited reachability and acyclicity rules.
Before any CI fact is enforced, the graph projections produced by Listings 2–3 are exactly all labelled DAGs on the fixed vertex set V V V ; enforcing CI facts subsequently filters this family. The original Causal ABA encoding continues with instance-generated simple-path witnesses and collider/nb rules. Those path-enumerating rules are precisely the component replaced by P B B n e w P_{\mathrm{BB}}^{\mathrm{new}} P BB new . They are therefore not included in P c o r e C A B A P_{\mathrm{core}}^{\mathrm{CABA}} P core CABA or in P C A P_{\mathrm{CA}} P CA ; P B B n e w P_{\mathrm{BB}}^{\mathrm{new}} P BB new derives ap3/3 without materialising paths and enforces the selected dep/indep atoms against that result. Thus Listings 1–3, together with Listing 4, display every rule affecting the graph, Bayes-ball closure, or CI enforcement.
Novel Bayes-ball encoding
We instantiate Bayes-ball for the input CI queries and their symmetric counterparts: for each objective atom over ( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) , the instance supplies both qpair(X,Y,Z) and qpair(Y,X,Z), independently of whether that atom is selected. This symmetric query domain ensures that the enforcement constraints also check the reversed CI atoms derived by Listing 1. The facts in(N,Z) represent membership N ∈ Z N \in Z N ∈ Z . Listing 4 gives the complete Bayes-ball encoding. Lines 2–4 compute whether a node belongs to, or has a descendant in, Z Z Z , and whether it has at least two distinct parents. The predicate is_collider tests only this two-parent condition; collider status on a particular path remains path-relative. The state bb_u(X,N,Z) records arrival at N N N from a child of N N N ; bb_d(X,N,Z) records arrival from a parent. Lines 5–6 initialise both states at the source.
1 qpair(X,Y,Z). % generated for queried CI facts
2 anc_obs(N,Z) :- in(N,Z).
3 anc_obs(N,Z) :- dpath(N,M), in(M,Z).
4 is_collider(N) :- arrow(P,N), arrow(Q,N), P<Q.
5 bb_u(X,X,Z) :- qpair(X,_,Z).
6 bb_d(X,X,Z) :- qpair(X,_,Z).
7 bb_u(X,N,Z) :- bb_d(X,N,Z), not in(N,Z), arrow(P,N).
8 bb_u(X,P,Z) :- bb_d(X,N,Z), is_collider(N), anc_obs(N,Z), arrow(P,N).
9 bb_d(X,C,Z) :- bb_u(X,N,Z), not in(N,Z), arrow(N,C).
10 bb_d(X,C,Z) :- bb_u(X,N,Z), not in(N,Z), arrow(N,C).
11 ap3(X,Y,Z) :- qpair(X,Y,Z), bb_u(X,Y,Z), not in(X,Z), not in(Y,Z).
12 ap3(X,Y,Z) :- qpair(X,Y,Z), bb_d(X,Y,Z), not in(X,Z), not in(Y,Z).
13 :- dep(X,Y,Z), not ap3(X,Y,Z).
14 :- indep(X,Y,Z), ap3(X,Y,Z).
Listing 4: Bayes-ball encoding P B B n e w P_{\mathrm{BB}}^{\mathrm{new}} P BB new of OptABA-PC.
The four propagation rules in Listing 4 distinguish both arrival direction and destination. Line 7 sends a ball that arrived from a child through an unobserved N N N to each parent of N N N , while line 9 sends the same state to each child. Line 8 sends a ball that arrived from a parent out through the parents of a collider that is itself in, or has a descendant in, Z Z Z ; this is the contracted opened-collider transition justified in Appendix C (Lemma S.2). Line 10 continues a parent-arriving ball to each child of an unobserved N N N . All other local cases are blocked and therefore have no propagation rule. Lines 11–12 derive ap3 when either state reaches the target, witnessing d-connection for a valid query. Line 13 requires this witness for an enforced dependence, while line 14 forbids it for an enforced independence, preserving the Causal ABA correspondence between selected CI facts and graph semantics.
Correctness of the Implemented Bayes-Ball Rules
To prove the Bayes-ball correctness lemma recalled below, fix the objects in its statement: a finite DAG G = ( V , E ) G=(V,E) G = ( V , E ) and a valid query ( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) with distinct endpoints X , Y ∉ Z X,Y\notin Z X , Y ∈ / Z . Let Z Z Z denote the ASP identifier encoding Z Z Z , so that in ( v , Z ) \operatorname{in}(v,Z) in ( v , Z ) holds exactly when v ∈ Z v\in Z v ∈ Z . For any A ⊆ V A\subseteq V A ⊆ V , let
An G ( A ) : = { v ∈ V ∣ v ⇝ G a for some a ∈ A } , \operatorname{An}_{G}(A):=\{v\in V\mid v\leadsto_{G}a\text{ for some }a\in A\}, An G ( A ) := { v ∈ V ∣ v ⇝ G a for some a ∈ A } ,
where v ⇝ G a v\leadsto_{G}a v ⇝ G a denotes a directed path in G G G , including one of length zero. Thus A ⊆ An G ( A ) A\subseteq\operatorname{An}_{G}(A) A ⊆ An G ( A ) . Once G G G and Z Z Z are fixed, the recursive definitions of dpath / 2 \operatorname{dpath}/2 dpath /2 , anc_obs / 2 \operatorname{anc\_obs}/2 anc_obs /2 , bb_u / 3 \operatorname{bb\_u}/3 bb_u /3 , bb_d / 3 \operatorname{bb\_d}/3 bb_d /3 , and ap3 / 3 \operatorname{ap3}/3 ap3 /3 form finite positive strata and therefore have a least fixed point. Lines 2–3 of Listing 4 give
anc_obs ( v , Z ) ⟺ v ∈ An G ( Z ) , \operatorname{anc\_obs}(v,Z)\Longleftrightarrow v\in\operatorname{An}_{G}(Z), anc_obs ( v , Z ) ⟺ v ∈ An G ( Z ) ,
and line 4 defines is_collider ( v ) \operatorname{is\_collider}(v) is_collider ( v ) to hold exactly when v v v has at least two distinct parents in G G G .
The atom bb_u ( X , v , Z ) \operatorname{bb\_u}(X,v,Z) bb_u ( X , v , Z ) records arrival at v v v from a child, and bb_d ( X , v , Z ) \operatorname{bb\_d}(X,v,Z) bb_d ( X , v , Z ) records arrival from a parent. With X X X and the identifier Z Z Z for Z Z Z fixed, write u ( v ) u(v) u ( v ) for bb_u ( X , v , Z ) \operatorname{bb\_u}(X,v,Z) bb_u ( X , v , Z ) and d ( v ) d(v) d ( v ) for bb_d ( X , v , Z ) \operatorname{bb\_d}(X,v,Z) bb_d ( X , v , Z ) . Lines 5–6 of Listing 4 initialise both states at X X X , and lines 7–10 close them under:
u ( v ) , v ∉ Z , p → v ⟹ u ( p ) , u ( v ) , v ∉ Z , v → c ⟹ d ( c ) , d ( v ) , v ∉ Z , v → c ⟹ d ( c ) , d ( v ) , v ∈ An G ( Z ) , is_collider ( v ) , p → v ⟹ u ( p ) . \begin{aligned}
u(v),\ v\notin Z,\ p\to v&\Longrightarrow u(p),\\
u(v),\ v\notin Z,\ v\to c&\Longrightarrow d(c),\\
d(v),\ v\notin Z,\ v\to c&\Longrightarrow d(c),\\
d(v),\ v\in\operatorname{An}_{G}(Z),\ \operatorname{is\_collider}(v),\ p\to v&\Longrightarrow u(p).
\end{aligned} u ( v ) , v ∈ / Z , p → v u ( v ) , v ∈ / Z , v → c d ( v ) , v ∈ / Z , v → c d ( v ) , v ∈ An G ( Z ) , is_collider ( v ) , p → v ⟹ u ( p ) , ⟹ d ( c ) , ⟹ d ( c ) , ⟹ u ( p ) .
Equations (2), (3), (4), and (5) are, respectively, lines 7, 9, 10, and 8 of Listing 4.
Shachter’s operational characterisation. A structured belief network in Shachter (1998) is ( V , E , F ) (V,E,F) ( V , E , F ) , where F F F is the set of nodes whose variables are deterministic functions of their parents. Such a node need not be a root or a constant; F = ∅ F=\varnothing F = ∅ here means that our DAG query supplies no functional-determinacy annotations. Apply Shachter’s Algorithm 2 with source set J = { X } J=\{X\} J = { X } and observed set K = Z K=Z K = Z . Algorithm 2 schedules each node for processing according to whether the ball arrives from a child or a parent; sending a ball to its parents marks its top, while sending a ball to its children marks its bottom (Shachter [37 ] , Alg. 2). These marks are not the ASP states themselves: u ( v ) u(v) u ( v ) and d ( v ) d(v) d ( v ) encode the two arrival directions. For example, at an unobserved v v v , line 7 of Listing 4 sends u ( v ) u(v) u ( v ) to its parents and corresponds to a top mark, whereas lines 9–10 send u ( v ) u(v) u ( v ) or d ( v ) d(v) d ( v ) to its children and correspond to a bottom mark. Because F = ∅ F=\varnothing F = ∅ , either arrival direction at an unobserved node causes a bottom mark. Lemma S.1 states the specialisation of Shachter’s irrelevance theorem needed below.
Lemma S.1 (Shachter specialisation). For every v ∉ Z v\notin Z v ∈ / Z , the execution of Shachter’s Algorithm 2 marks v v v on the bottom iff there is an active path from X X X to v v v given Z Z Z , equivalently iff X X X and v v v are d d d -connected given Z Z Z .
Proof. Apply Theorem 2 of Shachter (1998) with the set-valued parameters J = { X } J=\{X\} J = { X } , K = Z K=Z K = Z , and L = { v } L=\{v\} L = { v } , and with F = ∅ F=\varnothing F = ∅ . Step 4 of Algorithm 2 defines N i ( J ∣ K ) N_i(J\mid K) N i ( J ∣ K ) as exactly the nodes not marked on the bottom, while Theorem 2 identifies L ⊆ N i ( J ∣ K ) L\subseteq N_i(J\mid K) L ⊆ N i ( J ∣ K ) with irrelevance of X J X_J X J to X L X_L X L given X K X_K X K . Hence v v v is bottom-marked iff it is not irrelevant to X X X given Z Z Z . Shachter’s Theorem 1 identifies irrelevance with the absence of an active path; when F = ∅ F=\varnothing F = ∅ , this is ordinary d d d -separation. Thus v v v is bottom-marked iff an active path exists, equivalently iff X X X and v v v are d d d -connected given Z Z Z . □
The ASP rules are deliberately a collapsed version of Shachter’s schedule. Lemma S.2 states the simulation property that must be proved for our implementation.
Lemma S.2 (ASP–Bayes-ball simulation). For every v ∉ Z v\notin Z v ∈ / Z , either u ( v ) u(v) u ( v ) or d ( v ) d(v) d ( v ) belongs to the ASP closure iff the execution of Shachter’s Algorithm 2 marks v v v on the bottom.
Proof. A state u ( v ) u(v) u ( v ) represents Shachter’s Algorithm 2 scheduling v v v as reached from a child, and d ( v ) d(v) d ( v ) represents scheduling it as reached from a parent. At an unobserved probabilistic node, Steps 3(c)(i)–(ii) send a child-arriving ball to parents and children, and Step 3(d)(ii) sends a parent-arriving ball to children. These transitions are exactly eq:2 –(4). The remaining ASP transition, eq:5 , contracts the detour used in the proof of Shachter’s Theorem 2: from an ancestor n n n , Algorithm 2 can travel down a directed path to an observed z ∈ Z z \in Z z ∈ Z , bounce there under Step 3(d)(i), return to n n n , and leave through a parent of n n n . Such a detour exists exactly when n ∈ An G ( Z ) n \in\operatorname{An}_G(Z) n ∈ An G ( Z ) .
( ⇒ ) (\Rightarrow) ( ⇒ ) First omit the additional seed d ( X ) d(X) d ( X ) from line 6 of Listing 4. Because X ∉ Z X \notin Z X ∈ / Z , every propagation consequence of this seed already follows from u ( X ) u(X) u ( X ) : its child transitions are available from u ( X ) u(X) u ( X ) , as are any parent transitions. Omitting the seed therefore does not change which vertices are reached, and X X X itself remains reached by u ( X ) u(X) u ( X ) . For the remaining derivations, induction shows that each reached state can be scheduled by Shachter’s Algorithm 2 with the corresponding arrival direction. The base state u ( X ) u(X) u ( X ) matches Algorithm 2, Step 2. Each application of eq:2 –(4) is an ordinary transition. eq:5 expands into the directed detour to an observed descendant and back described above, using the first observed node on that path (or bouncing immediately if the current node is observed). Thus every ASP-reached unobserved vertex is scheduled and, since F = ∅ F = \varnothing F = ∅ , bottom-marked.
( ⇐ ) (\Leftarrow) ( ⇐ ) Suppose Shachter’s Algorithm 2 bottom-marks an unobserved vertex v v v . If v = X v = X v = X , then u ( X ) u(X) u ( X ) is already initial. Otherwise, Lemma S.1 supplies a simple active path from X X X to v v v . The initial state u ( X ) u(X) u ( X ) can traverse its first edge in either direction because X ∉ Z X \notin Z X ∈ / Z . Follow the path inductively. At each non-collider, activity gives a vertex outside Z Z Z , and the arrival and departure directions are exactly one of the three ordinary transitions in eq:2 –(4). At each collider, the path enters and leaves along two distinct incoming edges, so is_collider holds; activity also places the collider in An G ( Z ) \operatorname{An}_G(Z) An G ( Z ) . eq:5 therefore traverses that step. The final step derives either u ( v ) u(v) u ( v ) or d ( v ) d(v) d ( v ) . This proves the required equivalence for reached vertices; it does not require the two procedures to generate identical arrival states.
We now recall the Bayes-ball correctness lemma from the main paper.
Lemma 2 (Bayes-ball encoding correctness). Let V V V be finite, let G ∈ D A G ( V ) G \in\mathrm{DAG}(V) G ∈ DAG ( V ) fix the arrow atoms, and let qpair( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) encode a valid query with endpoints X , Y ∈ V ∖ Z X,Y \in V \setminus Z X , Y ∈ V ∖ Z . In the least fixed point of the grounded propagation rules in Listing 4, ap3( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) is derived iff X X X and Y Y Y are d-connected given Z Z Z in G G G .
Proof. Because V V V is finite, grounding the propagation rules in Listing 4 for the fixed arrow, in, and qpair( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) atoms gives a finite program whose positive recursive strata have the least fixed point described above. The endpoint guards not in( X , Z ) (X,Z) ( X , Z ) and not in( Y , Z ) (Y,Z) ( Y , Z ) on lines 11–12 hold because validity gives X , Y ∉ Z X,Y \notin Z X , Y ∈ / Z .
( ⇒ ) (\Rightarrow) ( ⇒ ) If ap3( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) is derived, one of the endpoint rules on lines 11–12 of Listing 4 has reached Y Y Y in state u ( Y ) u(Y) u ( Y ) or d ( Y ) d(Y) d ( Y ) . Lemma S.2 gives a bottom mark at Y Y Y in Shachter’s Algorithm 2, and Lemma S.1 yields d-connection given Z Z Z .
( ⇐ ) (\Leftarrow) ( ⇐ ) If X X X and Y Y Y are d-connected given Z Z Z , Lemma S.1 gives a bottom mark at Y Y Y in Shachter’s Algorithm 2. Lemma S.2 then derives u ( Y ) u(Y) u ( Y ) or d ( Y ) d(Y) d ( Y ) , so the corresponding endpoint rule on line 11 or 12 of Listing 4 derives ap3( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) .
Let P C A \mathrm{P}_{\mathrm{CA}} P CA be the finite ground program defined component-wise in (1) : the inherited core in Listings 1–3, together with the Bayes-ball encoding in Listing 4. The objective-atom choices and weak constraints are not part of P C A \mathrm{P}_{\mathrm{CA}} P CA ; they are introduced by enforce and opt. Recall from the main paper that, for a stable model M M M of a causal ABA instance on variables V V V , its graph projection is
π G ( M ) = ( V , E M ) , E M = { ( x , y ) ∈ V 2 ∣ arrow ( x , y ) ∈ M } . \pi_G(M) = (V,E_M), \qquad E_M = \{(x,y) \in V^2 \mid\texttt{arrow}(x,y) \in M\}. π G ( M ) = ( V , E M ) , E M = {( x , y ) ∈ V 2 ∣ arrow ( x , y ) ∈ M } .
Unlike ρ ( M ) \rho(M) ρ ( M ) , which records released objective atoms, π G ( M ) \pi_G(M) π G ( M ) discards all non-edge atoms.
We now recall the graph-fidelity corollary from the main paper.
Corollary 1 (Graph fidelity). *For the finite sets V V V and O O O defining P C A = P C A ( V , O ) \mathrm{P}_{\mathrm{CA}} = \mathrm{P}_{\mathrm{CA}}(V,O) P CA = P CA ( V , O ) , let D A G ( V ) \mathrm{DAG}(V) DAG ( V ) be the set of DAGs on the fixed vertex set V V V , and let G ⊨ T G \models T G ⊨ T abbreviate G ⊨ f G \models f G ⊨ f for every f ∈ T f \in T f ∈ T . For
every T ⊆ O T \subseteq O T ⊆ O of valid CI facts,
{ π G ( M ) ∣ M ∈ A S ( enforce ( P C A , T , O ) ) } = { G ∈ D A G ( V ) ∣ G ⊨ T } . \{\pi_G(M) \mid M \in AS(\operatorname{enforce}(P_{\mathrm{CA}},T,O))\} = \{G \in DAG(V) \mid G \models T\}. { π G ( M ) ∣ M ∈ A S ( enforce ( P CA , T , O ))} = { G ∈ D A G ( V ) ∣ G ⊨ T } .
Proof. Fix the finite sets V V V and O O O and the program P C A ( V , O ) P_{\mathrm{CA}}(V,O) P CA ( V , O ) from Equation (1) .
( ⊆ ) (\subseteq) ( ⊆ ) Let M ∈ A S ( enforce ( P C A , T , O ) ) M \in AS(\operatorname{enforce}(P_{\mathrm{CA}},T,O)) M ∈ A S ( enforce ( P CA , T , O )) . Lines 1 and 5–7 of Listing 2 choose at most one orientation per unordered vertex pair, and line 3 of Listing 3 rejects every directed cycle; hence π G ( M ) ∈ D A G ( V ) \pi_G(M) \in DAG(V) π G ( M ) ∈ D A G ( V ) . For every enforced dependence fact, line 13 of Listing 4 requires a p 3 \mathit{ap3} ap3 ; for every enforced independence fact, line 14 forbids a p 3 \mathit{ap3} ap3 . Lemma 2 therefore gives π G ( M ) ⊨ T \pi_G(M) \models T π G ( M ) ⊨ T .
( ⊇ ) (\supseteq) ( ⊇ ) Fix a DAG G G G on V V V satisfying T T T . Proposition 3.3 of Russo et al. [35 ] and the stable ABA–ASP correspondence (Rapberger et al. [33 ] ) supply stable choices of the inherited graph generator whose arrow atoms are exactly the edges of G G G . Choose every objective atom in T T T and close these choices under CI symmetry; no atom outside this symmetric closure needs to be selected. The remaining finite positive or stratified rules have a least closure. Every derived CI fact is either in T T T or its endpoint reversal, so G G G satisfies it. The symmetric query domain ensures that Lemma 2 applies to each such fact in the enforcement constraints. Acyclicity holds because G G G is a DAG, and an enforced independence cannot join adjacent endpoints because a direct edge would be an active path. Thus all graph and CI constraints hold. Constraint filtering (6) preserves the resulting stable model after the constraints enforcing T T T are added, giving some M ∈ A S ( enforce ( P C A , T , O ) ) M \in AS(\operatorname{enforce}(P_{\mathrm{CA}},T,O)) M ∈ A S ( enforce ( P CA , T , O )) with π G ( M ) = G \pi_G(M) = G π G ( M ) = G .
Optimal-MCS
Example 8 (Optimal MCS). Let P P P and O O O be the program and objective atoms from Ex. 4, respectively. Then M C S ( P , O ) = { M 1 , M 2 , M 3 } MCS(P,O) = \{M_1,M_2,M_3\} M C S ( P , O ) = { M 1 , M 2 , M 3 } , with M 1 = { o ( 1 ) , o ( 4 ) } M_1 = \{o(1),o(4)\} M 1 = { o ( 1 ) , o ( 4 )} , M 2 = { o ( 2 ) , o ( 4 ) } M_2 = \{o(2),o(4)\} M 2 = { o ( 2 ) , o ( 4 )} , and M 3 = { o ( 3 ) , o ( 4 ) } M_3 = \{o(3),o(4)\} M 3 = { o ( 3 ) , o ( 4 )} . Let W = { ( o ( 1 ) , 5 ) , ( o ( 2 ) , 10 ) , ( o ( 3 ) , 15 ) , ( o ( 4 ) , 20 ) } W = \{(o(1),5),(o(2),10),(o(3),15),(o(4),20)\} W = {( o ( 1 ) , 5 ) , ( o ( 2 ) , 10 ) , ( o ( 3 ) , 15 ) , ( o ( 4 ) , 20 )} . Then C ( M 1 , W ) = 25 C(M_1,W) = 25 C ( M 1 , W ) = 25 , C ( M 2 , W ) = 30 C(M_2,W) = 30 C ( M 2 , W ) = 30 , and C ( M 3 , W ) = 35 C(M_3,W) = 35 C ( M 3 , W ) = 35 , hence M 1 M_1 M 1 is the unique optimal MCS by Def. 3.
Example 9 (MCSes and Weak Constraints). Let P P P and O O O be the program and objective atoms from Ex. 4, respectively, and let W W W be as in Ex. 8. Then opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) is:
{o(1);o(2);o(3);o(4)}.
a :- not b, o(1). b :- not c, o(2). c :- not a, o(3). :- not d, o(4).
:∼ not o(1). [5@1,o(1)] :∼ not o(2). [10@1,o(2)]
:∼ not o(3). [15@1,o(3)] :∼ not o(4). [20@1,o(4)]
An optimal stable model of opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) is M = { o ( 2 ) , o ( 3 ) , c } M = \{o(2),o(3),c\} M = { o ( 2 ) , o ( 3 ) , c } , making O ∖ M = { o ( 1 ) , o ( 4 ) } O \setminus M = \{o(1),o(4)\} O ∖ M = { o ( 1 ) , o ( 4 )} an optimal MCS for P P P w.r.t. O , W O,W O , W .
Proofs
Throughout this section, P P P is a finite ground program, O O O is a finite set of objective atoms, and W = { ( o , w o ) ∣ o ∈ O , w o > 0 } W = \{(o,w_o) \mid o \in O,\ w_o > 0\} W = {( o , w o ) ∣ o ∈ O , w o > 0 } assigns one strictly positive release weight to every objective atom.
Let
A ( P , O ) = P ∪ { { o } . ∣ o ∈ O } . A(P,O) = P \cup\{\{o\}.\mid o \in O\}. A ( P , O ) = P ∪ {{ o } . ∣ o ∈ O } .
For S ⊆ O S \subseteq O S ⊆ O , enforce ( P , S , O ) \operatorname{enforce}(P,S,O) enforce ( P , S , O ) adds to A ( P , O ) A(P,O) A ( P , O ) the constraints :- not o for o ∈ S o \in S o ∈ S . For a stable model M M M of A ( P , O ) A(P,O) A ( P , O ) , its released-fact projection is ρ ( M ) = O ∖ M \rho(M) = O \setminus M ρ ( M ) = O ∖ M : it records exactly the objective atoms that are false in M M M .
We first recall the positive-cost lemma from the main paper.
Lemma 1 (Positive-cost minimality). Let P P P be a finite ground program, let O O O be finite, and let W = { ( o , w o ) ∣ o ∈ O , w o > 0 } W = \{(o,w_o)\mid o\in O,\ w_o>0\} W = {( o , w o ) ∣ o ∈ O , w o > 0 } . Every minimum-cost member of C S ( P , O ) CS(P,O) C S ( P , O ) is an optimal MCS with respect to $W.
Proof. Let R R R be a minimum-cost member of C S ( P , O ) CS(P,O) C S ( P , O ) . If a strict subset R ′ ⊂ R R' \subset R R ′ ⊂ R were also a correction set, then C ( R ′ , W ) < C ( R , W ) C(R',W) < C(R,W) C ( R ′ , W ) < C ( R , W ) because every weight in the nonempty difference R ∖ R ′ R \setminus R' R ∖ R ′ ... is strictly positive, contradicting the choice of R R R . Thus R ∈ M C S ( P , O ) R \in MCS(P,O) R ∈ M C S ( P , O ) . Since M C S ( P , O ) ⊆ C S ( P , O ) MCS(P,O) \subseteq CS(P,O) M C S ( P , O ) ⊆ C S ( P , O ) , the minimum cost of R R R over all correction sets is no greater than that of any MCS; hence R R R is an optimal MCS with respect to W W W .
Consequently, whenever C S ( P , O ) ≠ ∅ CS(P,O) \ne\varnothing C S ( P , O ) = ∅ , minimising over correction sets has the same value as minimising over MCSes.
We use the standard theorem that constraints filter, but do not create, stable models. For every finite ground program Q Q Q and finite set of constraints D D D ,
A S ( Q ∪ D ) = { M ∈ A S ( Q ) ∣ M ⊨ D } , (2) AS(Q \cup D) = \{M \in AS(Q) \mid M \models D\}, \tag*{(2)} A S ( Q ∪ D ) = { M ∈ A S ( Q ) ∣ M ⊨ D } , (2)
where M ⊨ D M \models D M ⊨ D means that M M M satisfies every constraint in D D D [25 Sec. 5.5, Theorem on Constraints] .
Lemma S.3 (Exact MCS realisability). Let P P P be a finite ground program, let O O O be finite, and let W = { ( o , w o ) ∣ o ∈ O , w o > 0 } W = \{(o,w_o) \mid o \in O, w_o > 0\} W = {( o , w o ) ∣ o ∈ O , w o > 0 } . For every R ∈ M C S ( P , O ) R \in MCS(P,O) R ∈ M C S ( P , O ) there exists a stable model M R M_R M R of A ( P , O ) A(P,O) A ( P , O ) such that ρ ( M R ) = R \rho(M_R) = R ρ ( M R ) = R . The same M R M_R M R is a stable model of opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) , and its weak-constraint cost is exactly C ( R , W ) C(R,W) C ( R , W ) .
Proof. Because R R R is a correction set, enforce ( P , O ∖ R , O ) \operatorname{enforce}(P,O \setminus R,O) enforce ( P , O ∖ R , O ) is coherent; choose one of its stable models M R M_R M R . This program is A ( P , O ) A(P,O) A ( P , O ) together with the constraints enforcing O ∖ R O \setminus R O ∖ R . Constraint filtering (6) shows that removing those constraints leaves M R M_R M R stable for A ( P , O ) A(P,O) A ( P , O ) , while the constraints themselves give O ∖ R ⊆ M R O \setminus R \subseteq M_R O ∖ R ⊆ M R .
Suppose some r ∈ R r \in R r ∈ R also belonged to M R M_R M R . Then M R M_R M R would satisfy the additional constraint : − not r \mathord{:-}\ \operatorname{not}\ r : − not r . Constraint filtering (6) shows that adding this satisfied constraint preserves stability. But the resulting program is enforce ( P , ( O ∖ R ) ∪ { r } , O ) \operatorname{enforce}(P,(O \setminus R) \cup\{r\},O) enforce ( P , ( O ∖ R ) ∪ { r } , O ) , so R ∖ { r } R \setminus\{r\} R ∖ { r } would be a correction set, contradicting minimality of R R R . Therefore M R ∩ O = O ∖ R M_R \cap O = O \setminus R M R ∩ O = O ∖ R and ρ ( M R ) = R \rho(M_R) = R ρ ( M R ) = R .
Weak constraints do not alter the stable models of A ( P , O ) A(P,O) A ( P , O ) ; they only rank them. Exactly those indexed by atoms in R R R are active in M R M_R M R , so its cost is ∑ r ∈ R w r = C ( R , W ) \sum_{r \in R} w_r = C(R,W) ∑ r ∈ R w r = C ( R , W ) .
We next recall the main-paper projection theorem.
Theorem 1 (Projection correspondence). Let P P P be a finite ground program, O O O a finite set of objective atoms, and W W W assign strictly positive release weights to all atoms in O O O . Then:
( ⇒ ) (\Rightarrow) ( ⇒ ) If M M M is an optimal stable model of opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) , then ρ ( M ) \rho(M) ρ ( M ) is an optimal MCS (Def. 3), and the weak-constraint cost of M M M is C ( ρ ( M ) , W ) C(\rho(M),W) C ( ρ ( M ) , W ) .
( ⇐ ) (\Leftarrow) ( ⇐ ) For every optimal MCS R R R , there exists an optimal stable model M M M of opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) with ρ ( M ) = R \rho(M) = R ρ ( M ) = R .
Distinct optimal stable models may have the same released-fact projection.
Proof. ( ⇒ ) (\Rightarrow) ( ⇒ ) Let M M M be an optimal stable model of opt ( P , O , W ) \operatorname{opt}(P,O,W) opt ( P , O , W ) . Weak constraints do not alter stable models, so M M M is stable for A ( P , O ) A(P,O) A ( P , O ) . Let S = M ∩ O = O ∖ ρ ( M ) S = M \cap O = O \setminus\rho(M) S = M ∩ O = O ∖ ρ ( M ) . The model M M M satisfies every constraint enforcing an atom in S S S ; hence constraint filtering (6) makes M M M stable for enforce ( P , S , O ) \operatorname{enforce}(P,S,O) enforce ( P , S , O ) . Therefore ρ ( M ) \rho(M) ρ ( M ) is a correction set. Moreover, precisely the weak constraints indexed by ρ ( M ) \rho(M) ρ ( M ) are active, so the model cost is C ( ρ ( M ) , W ) C(\rho(M),W) C ( ρ ( M ) , W ) .
Suppose a correction set Q Q Q had lower cost. Since O O O is finite, Q Q Q contains an MCS R ⊆ Q R \subseteq Q R ⊆ Q . Positivity of the weights gives
C ( R , W ) ≤ C ( Q , W ) < C ( ρ ( M ) , W ) . C(R,W) \le C(Q,W) < C(\rho(M),W). C ( R , W ) ≤ C ( Q , W ) < C ( ρ ( M ) , W ) .
Lemma S.3 supplies a stable model M R M_R M R whose weak-constraint cost is C ( R , W ) C(R,W) C ( R , W ) , contradicting optimality of M M M . Thus ρ ( M ) \rho(M) ρ ( M ) is a minimum-cost correction set and, by Lemma 1, an optimal MCS.
( ⇐ ) (\Leftarrow) ( ⇐ ) Let R R R be an optimal MCS. Lemma S.3 supplies a stable model M R M_R M R with ρ ( M R ) = R \rho(M_R) = R ρ ( M R ) = R and cost C ( R , W ) C(R,W) C ( R , W ) . If M R M_R M R were not optimal, finiteness of the ground program would let us choose a globally optimal stable model N N N of strictly lower cost. The already proved ( ⇒ ) (\Rightarrow) ( ⇒ ) direction now applies to this optimal N N N : ρ ( N ) \rho(N) ρ ( N ) is an MCS and its cost equals the cost of N N N , so
C ( ρ ( N ) , W ) < C ( R , W ) , (3) C(\rho(N),W) < C(R,W), \tag*{(3)} C ( ρ ( N ) , W ) < C ( R , W ) , (3)
contradicting optimality of R R R . Hence M R M_R M R is optimal and realises R R R exactly.
The two directions establish that ρ \rho ρ maps the optimal stable models onto exactly the optimal MCSes of Definition 3, preserving their costs. If A ( P , O ) A(P,O) A ( P , O ) is incoherent, constraint filtering implies that there are no correction sets, so both families are empty. Thus ρ \rho ρ is surjective onto the optimal MCSes in all cases. Injectivity is not guaranteed: for P = { a : − not b . , b : − not a . } P = \{a \mathrel{:-} \operatorname{not} b., b \mathrel{:-} \operatorname{not} a.\} P = { a : − not b . , b : − not a . } , O = { o } O = \{o\} O = { o } , and any w o > 0 w_o > 0 w o > 0 , the two optimal stable models { a , o } \{a,o\} { a , o } and { b , o } \{b,o\} { b , o } both project to the unique optimal MCS ∅ \varnothing ∅ .
The optimal-repair result also yields a local justification for every released fact. We recall and prove the main-paper private-conflict proposition.
Proposition 1 (Conflict justification). Let P P P be a finite ground program and O O O a finite set of objective atoms. For every R ∈ M C S ( P , O ) R \in MCS(P,O) R ∈ M C S ( P , O ) and every f ∈ R f \in R f ∈ R , there is a M U S MUS M U S U f ∈ M U S ( P , O ) U_f \in MUS(P,O) U f ∈ M U S ( P , O ) such that U f ∩ R = { f } U_f \cap R = \{f\} U f ∩ R = { f } .
Proof. Recall the MUS–MCS hitting-set duality stated in the main paper: M C S ( P , O ) MCS(P,O) M C S ( P , O ) is exactly the family of inclusion-minimal hitting sets of M U S ( P , O ) MUS(P,O) M U S ( P , O ) [1 Thm. 5.3] . Let R ∈ M C S ( P , O ) R \in MCS(P,O) R ∈ M C S ( P , O ) and f ∈ R f \in R f ∈ R . Since R ∖ { f } R \setminus\{f\} R ∖ { f } is not a hitting set, some U f ∈ M U S ( P , O ) U_f \in MUS(P,O) U f ∈ M U S ( P , O ) is disjoint from R ∖ { f } R \setminus\{f\} R ∖ { f } . Since R R R does hit every M U S MUS M U S , it follows that f ∈ U f f \in U_f f ∈ U f and therefore U f ∩ R = { f } U_f \cap R = \{f\} U f ∩ R = { f } . This proves the private-conflict condition in the proposition.
The certificate is local to the contested release: every other member of U f U_f U f was retained. It proves that adding f f f back without a compensating release restores a concrete conflict.
OptABA-PC Guarantees
We recall the OptABA-PC guarantees theorem from the main paper.
Theorem 2 (OptABA-PC guarantees). Let V V V be finite, O O O a finite set of valid CI facts over V V V , and W W W assign strictly positive release weights to every fact in O O O . Then opt ( P C A , O , W ) \operatorname{opt}(P_{\mathrm{CA}}, O, W) opt ( P CA , O , W ) has an optimal stable model. For every such model M M M , put R = ρ ( M ) R = \rho(M) R = ρ ( M ) and T = O ∖ R T = O \setminus R T = O ∖ R . Then:
(1) π G ( M ) \pi_G(M) π G ( M ) is a DAG on V V V satisfying every fact in T T T ;
(2) R R R is an MCS with minimum release cost among all correction sets of P C A P_{\mathrm{CA}} P CA w.r.t. O O O ;
(3) for every f ∈ R f \in R f ∈ R , enforcing T ∪ { f } T \cup\{f\} T ∪ { f } is incoherent, and a M U S MUS M U S U f U_f U f satisfies U f ∩ R = { f } U_f \cap R = \{f\} U f ∩ R = { f } .
Conversely, every optimal MCS R R R is ρ ( M ) \rho(M) ρ ( M ) for some optimal stable model M M M , with the same cost.
Proof. We first prove the existence of an optimal stable model. Proposition 3.3 of Russo et al. [35 ] establishes a stable Causal ABA extension for every DAG on the fixed vertex set V V V . Apply it to the edgeless DAG G ∅ = ( V , ∅ ) G_{\varnothing} = (V,\varnothing) G ∅ = ( V , ∅ ) , which retains all vertices and has no edges. The stable ABA–ASP correspondence (Rabperger et al., 2024) supplies the corresponding stable choices for the inherited ASP core. With no objective facts selected, the finite positive or stratified reachability and Bayes-ball modules have their least closure, and no CI-enforcement constraint is activated. Hence A ( P C A , O ) = enforce ( P C A , ∅ , O ) A(P_{\mathrm{CA}}, O) = \operatorname{enforce}(P_{\mathrm{CA}}, \varnothing, O) A ( P CA , O ) = enforce ( P CA , ∅ , O ) has a stable model. Weak constraints preserve this nonempty feasible set and only rank its members. The program is finite ground, so its attainable costs form a nonempty finite set and have a minimum; therefore opt ( P C A , O , W ) \operatorname{opt}(P_{\mathrm{CA}}, O, W) opt ( P CA , O , W ) has an optimal stable model.
Let M M M be any optimal stable model, let R = ρ ( M ) R = \rho(M) R = ρ ( M ) and T = O ∖ R = M ∩ O T = O \setminus R = M \cap O T = O ∖ R = M ∩ O , and abbreviate F C A = C S ( P C A , O ) \mathcal{F}_{\mathrm{CA}} = CS(P_{\mathrm{CA}}, O) F CA = C S ( P CA , O ) .
Graph fidelity. Weak constraints do not alter stable models, so M M M is stable for A ( P C A , O ) A(P_{\mathrm{CA}}, O) A ( P CA , O ) . Because T = M ∩ O T = M \cap O T = M ∩ O , M M M satisfies every constraint enforcing an atom in T T T . Constraint filtering (6) therefore gives M ∈ A S ( enforce ( P C A , T , O ) ) M \in AS(\operatorname{enforce}(P_{\mathrm{CA}}, T, O)) M ∈ A S ( enforce ( P CA , T , O )) . Corollary 1 now yields π G ( M ) ∈ D A G ( V ) \pi_G(M) \in DAG(V) π G ( M ) ∈ D A G ( V ) and π G ( M ) ⊨ T \pi_G(M) \models T π G ( M ) ⊨ T , which is item 1.
Repair optimality. The ( ⇒ ) (\Rightarrow) ( ⇒ ) direction of Theorem 1 gives R ∈ M C S ( P C A , O ) R \in MCS(P_{\mathrm{CA}}, O) R ∈ M C S ( P CA , O ) , identifies C ( R , W ) C(R,W) C ( R , W ) with the weak-constraint cost of M M M , and makes R R R minimum-cost among all MCSes. By definition, membership in M C S MCS M C S gives subset-minimality. Lemma 1 and the observation following
its proof show that the minimum cost over all correction sets equals the minimum cost over MCSes. Therefore
R ∈ M C S ( P C A , O ) , C ( R , W ) = min Q ∈ F C A C ( Q , W ) , R \in MCS(\mathrm{P}_{\mathrm{CA}}, O), \qquad C(R,W) = \min_{Q \in\mathcal{F}_{\mathrm{CA}}} C(Q,W), R ∈ M C S ( P CA , O ) , C ( R , W ) = Q ∈ F CA min C ( Q , W ) ,
This proves item 2.
3. Conflict justification. Fix f ∈ R f \in R f ∈ R . Since R R R is an MCS, R ∖ { f } R \setminus\{f\} R ∖ { f } is not a correction set. Because
O ∖ ( R ∖ { f } ) = T ∪ { f } , O \setminus(R \setminus\{f\}) = T \cup\{f\}, O ∖ ( R ∖ { f }) = T ∪ { f } ,
A S ( enforce ( P C A , T ∪ { f } , O ) ) = ∅ AS(\operatorname{enforce}(\mathrm{P}_{\mathrm{CA}}, T \cup\{f\}, O)) = \emptyset A S ( enforce ( P CA , T ∪ { f } , O )) = ∅ , which is precisely the incoherence caused by reinstating f f f while retaining T T T . Proposition 1, proved above by MUS–MCS hitting-set duality, supplies a MUS U f U_f U f with U f ∩ R = { f } U_f \cap R = \{f\} U f ∩ R = { f } . Hence f ∈ U f f \in U_f f ∈ U f , while every other member of U f U_f U f lies in T = O ∖ R T = O \setminus R T = O ∖ R . Thus U f U_f U f is a conflict contained in the reinstated set T ∪ { f } T \cup\{f\} T ∪ { f } and certifies that incoherence, proving item 3.
Finally, let R ′ R' R ′ be any optimal MCS. The ( ⇐ ) (\Leftarrow) ( ⇐ ) direction of Theorem 1 supplies an optimal stable model N N N of opt ( P C A , O , W ) \operatorname{opt}(\mathrm{P}_{\mathrm{CA}}, O, W) opt ( P CA , O , W ) such that ρ ( N ) = R ′ \rho(N) = R' ρ ( N ) = R ′ and whose weak-constraint cost is C ( R ′ , W ) C(R',W) C ( R ′ , W ) . This proves the converse clause of Theorem 2. The witness need not be unique, as stated in Theorem 1.
Contestability and Redress
Let F = C S ( P , O ) \mathcal{F} = CS(\mathrm{P}, O) F = C S ( P , O ) , and partition it into
K f = { R ∈ F : f ∉ R } , L f = { R ∈ F : f ∈ R } . K_f = \{R \in\mathcal{F} : f \notin R\}, \qquad L_f = \{R \in\mathcal{F} : f \in R\}. K f = { R ∈ F : f ∈ / R } , L f = { R ∈ F : f ∈ R } .
Because a repair lists released facts, K f K_f K f contains the repairs retaining f f f , whereas L f L_f L f contains those releasing it. Throughout this section, O O O is finite, all release weights are positive, and f ∈ O f \in O f ∈ O . For hard retention, write
A f = opt f ( P , O , W ) = opt ( P , O , W ) ∪ { : − not f } . A_f = \operatorname{opt}_f(\mathrm{P}, O, W) = \operatorname{opt}(\mathrm{P}, O, W) \cup\{:-\ \operatorname{not}\ f\}. A f = opt f ( P , O , W ) = opt ( P , O , W ) ∪ { : − not f } .
We recall the two contestability properties and their OptABA-PC guarantee from the main paper.
Property 1 (Release-cost contestability). For a weighted repair method over F \mathcal{F} F , let Rep W ⊆ F \operatorname{Rep}_W \subseteq\mathcal{F} Rep W ⊆ F denote the repairs returned under weights W W W . Suppose W ′ W' W ′ differs from W W W only in that w f ′ > w f w'_f > w_f w f ′ > w f . The method is release-cost contestable at f f f if its returned repairs can change only towards retaining f f f :
{ R ∈ Rep W : f ∉ R } ⊆ Rep W ′ , { R ∈ Rep W ′ : f ∈ R } ⊆ Rep W . \{R \in\operatorname{Rep}_W : f \notin R\} \subseteq\operatorname{Rep}_{W'}, \qquad\{R \in\operatorname{Rep}_{W'} : f \in R\} \subseteq\operatorname{Rep}_W. { R ∈ Rep W : f ∈ / R } ⊆ Rep W ′ , { R ∈ Rep W ′ : f ∈ R } ⊆ Rep W .
Property 2 (Fact-enforcement contestability). An ASP repair method based on opt ( P , O , W ) \operatorname{opt}(\mathrm{P}, O, W) opt ( P , O , W ) is fact-enforcement contestable at f f f if
{ ρ ( M ) ∣ M is optimal for opt f ( P , O , W ) } = arg min R ∈ F , f ∉ R C ( R , W ) . \{\rho(M) \mid M \text{ is optimal for } \operatorname{opt}_f(\mathrm{P}, O, W)\} = \underset{R \in\mathcal{F},\ f \notin R}{\arg\min}\ C(R,W). { ρ ( M ) ∣ M is optimal for opt f ( P , O , W )} = R ∈ F , f ∈ / R arg min C ( R , W ) . It is total on a fact domain if, for every fact f f f in that domain, some R ∈ F R \in\mathcal{F} R ∈ F satisfies f ∉ R f \notin R f ∈ / R . Thus making f f f mandatory returns exactly the best repairs that retain it.
Proposition 2 (OptABA-PC contestability). Let V V V and O O O be finite, let every member of O O O be a valid CI fact over V V V , put P C A = P C A ( V , O ) \mathrm{P}_{\mathrm{CA}} = \mathrm{P}_{\mathrm{CA}}(V,O) P CA = P CA ( V , O ) as in Equation (1) , and let W = { ( o , w o ) ∣ o ∈ O , w o > 0 } W = \{(o,w_o) \mid o \in O,\ w_o > 0\} W = {( o , w o ) ∣ o ∈ O , w o > 0 } . Then OptABA-PC satisfies Properties 1 and 2 for every f ∈ O f \in O f ∈ O . Moreover, fact-enforcement contestability is total: opt f ( P C A , O , W ) \operatorname{opt}_f(\mathrm{P}_{\mathrm{CA}}, O, W) opt f ( P CA , O , W ) has an optimal stable model for every f ∈ O f \in O f ∈ O .
Proof. Fix the finite sets V V V and O O O of the OptABA-PC instance, where every member of O O O is a valid CI fact over V V V , let P = P C A ( V , O ) \mathrm{P} = \mathrm{P}_{\mathrm{CA}}(V,O) P = P CA ( V , O ) be the unrestricted-DAG program in Equation (1) , let W W W assign one strictly positive release weight to every objective atom, and fix f ∈ O f \in O f ∈ O .
Release-cost contestability. For either positive weight assignment W ‾ ∈ { W , W ′ } \overline{W} \in\{W,W'\} W ∈ { W , W ′ } , both directions of Theorem 1 identify the returned projections with the minimum-cost MCSes, and Lemma 1 identifies those with all minimum-cost correction sets. Consequently,
Rep W ‾ = arg min R ∈ F C ( R , W ‾ ) . \operatorname{Rep}_{\overline{W}} = \underset{R \in\mathcal{F}}{\arg\min}\ C(R,\overline{W}). Rep W = R ∈ F arg min C ( R , W ) .
Let δ = w f ′ − w f > 0 \delta= w'_f - w_f > 0 δ = w f ′ − w f > 0 and abbreviate C ( R ) = C ( R , W ) C(R) = C(R,W) C ( R ) = C ( R , W ) and C ′ ( R ) = C ( R , W ′ ) C'(R) = C(R,W') C ′ ( R ) = C ( R , W ′ ) . Because W ′ W' W ′ changes only w f w_f w f , C ′ ( R ) = C ( R ) C'(R) = C(R) C ′ ( R ) = C ( R ) for R ∈ K f R \in K_f R ∈ K f , while C ′ ( R ) = C ( R ) + δ C'(R) = C(R) + \delta C ′ ( R ) = C ( R ) + δ for R ∈ L f R \in L_f R ∈ L f . If either K f K_f K f or L f L_f L f is empty, every repair receives the same cost change: no repair changes cost when L f = ∅ L_f = \varnothing L f = ∅ , and every repair gains δ \delta δ when K f = ∅ K_f = \varnothing K f = ∅ . In either case Rep W ′ = Rep W \operatorname{Rep}_{W'} = \operatorname{Rep}_W Rep W ′ = Rep W , so both required inclusions are immediate. Assume henceforth that both classes are nonempty. Since F \mathcal{F} F is finite, define the attained within-class minima and their complete sets of minimisers by
k = min R ∈ K f C ( R ) , K f ∗ = arg min R ∈ K f C ( R ) , k = \min_{R \in K_f} C(R), \qquad K_f^* = \mathop{\arg\min}_{R \in K_f} C(R), k = R ∈ K f min C ( R ) , K f ∗ = arg min R ∈ K f C ( R ) ,
ℓ = min R ∈ L f C ( R ) , L f ∗ = arg min R ∈ L f C ( R ) . \ell= \min_{R \in L_f} C(R), \qquad L_f^* = \mathop{\arg\min}_{R \in L_f} C(R). ℓ = R ∈ L f min C ( R ) , L f ∗ = arg min R ∈ L f C ( R ) .
The ranking inside K f K_f K f is unchanged because none of its costs changes, and the ranking inside L f L_f L f is unchanged because the same δ \delta δ is added to every one of its costs. Hence K f ∗ K_f^* K f ∗ and L f ∗ L_f^* L f ∗ remain the respective within-class minimisers, while the best class costs change from k k k and ℓ \ell ℓ under W W W to k k k and ℓ + δ \ell+ \delta ℓ + δ under W ′ W' W ′ . The following five cases exhaust the possible comparisons.
If k < ℓ k < \ell k < ℓ , then Rep W = K f ∗ \operatorname{Rep}_W = K_f^* Rep W = K f ∗ . Since k < ℓ < ℓ + δ k < \ell< \ell+ \delta k < ℓ < ℓ + δ , also Rep W ′ = K f ∗ \operatorname{Rep}_{W'} = K_f^* Rep W ′ = K f ∗ .
If k = ℓ k = \ell k = ℓ , then Rep W = K f ∗ ∪ L f ∗ \operatorname{Rep}_W = K_f^* \cup L_f^* Rep W = K f ∗ ∪ L f ∗ . Since k < ℓ + δ k < \ell+ \delta k < ℓ + δ , the increase breaks the tie in favour of retention and Rep W ′ = K f ∗ \operatorname{Rep}_{W'} = K_f^* Rep W ′ = K f ∗ .
If ℓ < k \ell< k ℓ < k and δ < k − ℓ \delta< k - \ell δ < k − ℓ , then ℓ + δ < k \ell+ \delta< k ℓ + δ < k , so Rep W = Rep W ′ = L f ∗ \operatorname{Rep}_W = \operatorname{Rep}_{W'} = L_f^* Rep W = Rep W ′ = L f ∗ .
If ℓ < k \ell< k ℓ < k and δ = k − ℓ \delta= k - \ell δ = k − ℓ , then ℓ + δ = k \ell+ \delta= k ℓ + δ = k . Therefore Rep W = L f ∗ \operatorname{Rep}_W = L_f^* Rep W = L f ∗ , while Rep W ′ = K f ∗ ∪ L f ∗ \operatorname{Rep}_{W'} = K_f^* \cup L_f^* Rep W ′ = K f ∗ ∪ L f ∗ : the best retaining repairs join the old releasing optima at a tie.
If ℓ < k \ell< k ℓ < k and δ > k − ℓ \delta> k - \ell δ > k − ℓ , then k < ℓ + δ k < \ell+ \delta k < ℓ + δ . Therefore Rep W = L f ∗ \operatorname{Rep}_W = L_f^* Rep W = L f ∗ and Rep W ′ = K f ∗ \operatorname{Rep}_{W'} = K_f^* Rep W ′ = K f ∗ .
Cases 1 and 2 are exactly the cases in which an old optimum retains f f f : every such repair belongs to K f ∗ K_f^* K f ∗ and remains a new optimum. In Cases 3–5 there is no old retaining optimum. Since K f = { R ∈ F : f ∉ R } K_f = \{R \in\mathcal{F} : f \notin R\} K f = { R ∈ F : f ∈ / R } , this establishes the first inclusion in Property 1:
{ R ∈ Rep W : f ∉ R } = Rep W ∩ K f ⊆ Rep W ′ . \{R \in\operatorname{Rep}_W : f \notin R\} = \operatorname{Rep}_W \cap K_f \subseteq\operatorname{Rep}_{W'}. { R ∈ Rep W : f ∈ / R } = Rep W ∩ K f ⊆ Rep W ′ .
Cases 3 and 4 are exactly the cases in which a new optimum releases f f f : every such repair belongs to L f ∗ L_f^* L f ∗ and was already an old optimum. In Cases 1, 2, and 5 there is no new releasing optimum. Since L f = { R ∈ F : f ∈ R } L_f = \{R \in\mathcal{F} : f \in R\} L f = { R ∈ F : f ∈ R } , this establishes the second inclusion:
{ R ∈ Rep W ′ : f ∈ R } = Rep W ′ ∩ L f ⊆ Rep W . \{R \in\operatorname{Rep}_{W'} : f \in R\} = \operatorname{Rep}_{W'} \cap L_f \subseteq\operatorname{Rep}_W. { R ∈ Rep W ′ : f ∈ R } = Rep W ′ ∩ L f ⊆ Rep W .
Together, the two inclusions prove release-cost contestability at f f f .
Fact-enforcement contestability. By constraint filtering (2) , adding :- not f removes precisely the stable models with f ∉ M f \notin M f ∈ / M , equivalently those with f ∈ ρ ( M ) f \in\rho(M) f ∈ ρ ( M ) , and changes no weak-constraint cost. Thus every surviving projection lies in K f K_f K f .
( ⊆ ) (\subseteq) ( ⊆ ) Let M M M be an optimal stable model of A f A_f A f , let R = ρ ( M ) R = \rho(M) R = ρ ( M ) , and let S = M ∩ O S = M \cap O S = M ∩ O . Constraint filtering (2) shows that removing the hard constraint leaves M M M stable for A ( P , O ) A(P,O) A ( P , O ) . Applying the same identity when adding the constraints enforcing S S S shows that R R R is a correction set; since f ∈ M f \in M f ∈ M , R ∈ K f R \in K_f R ∈ K f . Suppose some Q ∈ K f Q \in K_f Q ∈ K f were cheaper. Because O O O is finite, Q Q Q contains an MCS R ′ ⊆ Q R' \subseteq Q R ′ ⊆ Q , which also belongs to K f K_f K f . Lemma S.3 supplies a stable model M R ′ M_{R'} M R ′ with projection R ′ R' R ′ and cost at most C ( Q , W ) C(Q,W) C ( Q , W ) . Because f ∉ R ′ f \notin R' f ∈ / R ′ , the model satisfies the new hard constraint, and constraint filtering preserves stability when that constraint is added. This contradicts optimality of M M M . Hence R ∈ arg min Q ∈ K f C ( Q , W ) R \in\mathop{\arg\min}_{Q \in K_f} C(Q,W) R ∈ arg min Q ∈ K f C ( Q , W ) .
( ⊇ ) (\supseteq) ( ⊇ ) Let R ∈ arg min Q ∈ K f C ( Q , W ) R \in\mathop{\arg\min}_{Q \in K_f} C(Q,W) R ∈ arg min Q ∈ K f C ( Q , W ) . A strict correction subset R ′ ⊂ R R' \subset R R ′ ⊂ R would also lie in K f K_f K f and, by positive weights, would be cheaper; hence R R R is an MCS. Lemma S.3 supplies a stable model M R M_R M R with projection R R R and cost C ( R , W ) C(R,W) C ( R , W ) . Since f ∉ R f \notin R f ∈ / R , M R M_R M R satisfies the hard constraint, and constraint filtering preserves stability after it is added. If a lower-cost stable model N N N of A f A_f A f existed, removing the hard constraint and then adding the constraints enforcing N ∩ O N \cap O N ∩ O , using the two corresponding applications of (2) , would show that ρ ( N ) ∈ K f \rho(N) \in K_f ρ ( N ) ∈ K f is a correction set. Its cost equals the lower model cost, contradicting the choice of R R R . Thus M R M_R M R is optimal for A f A_f A f , proving the reverse inclusion.
Totality. It remains to prove that K f K_f K f is nonempty for every valid CI fact f f f . Corollary 1 shows that P C A P_{\mathrm{CA}} P CA admits every DAG on the fixed vertex set V V V before CI enforcement. If f = ( X ⊥ ⊥ Y ∣ Z ) f = (X \mathbin{\perp\mkern-10mu\perp} Y \mid Z) f = ( X ⊥ ⊥ Y ∣ Z ) , the edgeless (fully disconnected) DAG ( V , ∅ ) (V,\emptyset) ( V , ∅ ) satisfies f f f . If f = ( X ⊥̸ ⊥ Y ∣ Z ) f=(X \not\perp\!\!\!\perp Y \mid Z) f = ( X ⊥ ⊥ Y ∣ Z ) , the DAG ( V , { ( X , Y ) } ) (V,\{(X,Y)\}) ( V , {( X , Y )}) , in which every other vertex is isolated, satisfies f f f because its direct X → Y X \to Y X → Y path has no internal node and validity gives X , Y ∉ Z X,Y \notin Z X , Y ∈ / Z . In either case, Corollary 1 with T = { f } T=\{f\} T = { f } supplies a stable model enforcing f f f ; releasing every other fact therefore gives a correction set in K f K_f K f . Thus the hard-retention program is coherent. It is finite ground, so its nonempty finite set of attainable costs has a minimum and it has an optimal stable model, proving totality.
A fact-enforcement contestation gives categorical redress by making f f f mandatory. A user may instead make a graded contestation, increasing the cost of releasing f f f while leaving it possible. The operational question is then how much that cost must increase before retaining f f f becomes at least as good as releasing it. We first define the relevant quantity generally and then prove that it is the exact switching threshold for OptABA-PC.
We recall the contestability-margin definition from the main paper.
Definition 4 (Contestability margin). Let F \mathcal{F} F be a finite family of repairs and W W W assign a finite release cost to every objective atom. For any fact f f f for which F \mathcal{F} F contains both a repair retaining f f f and a repair releasing f f f , define
c k e e p ( f ) = min R ∈ F , f ∉ R C ( R , W ) , c r e l ( f ) = min R ∈ F , f ∈ R C ( R , W ) . c_{\mathrm{keep}}(f)=\min_{R\in\mathcal{F},\,f\notin R} C(R,W), \qquad c_{\mathrm{rel}}(f)=\min_{R\in\mathcal{F},\,f\in R} C(R,W). c keep ( f ) = R ∈ F , f ∈ / R min C ( R , W ) , c rel ( f ) = R ∈ F , f ∈ R min C ( R , W ) . If at least one globally optimal repair under W W W releases f f f , then c r e l ( f ) ≤ c k e e p ( f ) c_{\mathrm{rel}}(f)\le c_{\mathrm{keep}}(f) c rel ( f ) ≤ c keep ( f ) . The contestability margin of f f f is μ ( f ) = c k e e p ( f ) − c r e l ( f ) ≥ 0 \mu(f)=c_{\mathrm{keep}}(f)-c_{\mathrm{rel}}(f)\ge0 μ ( f ) = c keep ( f ) − c rel ( f ) ≥ 0 .
We now specialise to P = P C A P=P_{\mathrm{CA}} P = P CA . Proposition 2 makes K f K_f K f nonempty for every valid CI fact, and the all-release correction set belongs to L f L_f L f . Since O O O is finite and its release costs are finite, F \mathcal{F} F is finite and every repair has finite cost; both category minima are therefore attained, as required by the definition. Proposition S.1 below shows exactly how their difference governs OptABA-PC’s response.
Proposition S.1 (OptABA-PC contestation threshold). Let f f f be a valid CI fact released by at least one optimal OptABA-PC repair under W W W . For δ ≥ 0 \delta\ge0 δ ≥ 0 , let W δ W_\delta W δ replace w f w_f w f by w f + δ w_f+\delta w f + δ , leaving every other release cost unchanged, and let Rep δ \operatorname{Rep}_\delta Rep δ be the repairs returned after re-solving OptABA-PC under W δ W_\delta W δ . Then:
if δ < μ ( f ) \delta<\mu(f) δ < μ ( f ) , Rep δ ⊆ L f \operatorname{Rep}_\delta\subseteq L_f Rep δ ⊆ L f : every returned repair still releases f f f ;
if δ = μ ( f ) \delta=\mu(f) δ = μ ( f ) , Rep δ \operatorname{Rep}_\delta Rep δ contains both a retaining and a releasing repair;
if δ > μ ( f ) \delta>\mu(f) δ > μ ( f ) , Rep δ ⊆ K f \operatorname{Rep}_\delta\subseteq K_f Rep δ ⊆ K f : every returned repair retains f f f .
With integer implementation weights, μ ( f ) + 1 \mu(f)+1 μ ( f ) + 1 is therefore the smallest integer increase that forces every returned repair to retain f f f .
Proof. Raising only w f w_f w f leaves the cost of every retaining repair unchanged and adds δ \delta δ to every releasing repair. Thus their respective best costs under W δ W_\delta W δ are
c k e e p ( f ) and c r e l ( f ) + δ . c_{\mathrm{keep}}(f) \quad\text{and} \quad c_{\mathrm{rel}}(f)+\delta. c keep ( f ) and c rel ( f ) + δ .
Their difference is c k e e p ( f ) − [ c r e l ( f ) + δ ] = μ ( f ) − δ c_{\mathrm{keep}}(f)-[c_{\mathrm{rel}}(f)+\delta]=\mu(f)-\delta c keep ( f ) − [ c rel ( f ) + δ ] = μ ( f ) − δ . Lemma 1 and Theorem 1 identify the globally minimum-cost correction sets under W δ W_\delta W δ with Rep δ \operatorname{Rep}_\delta Rep δ . Both K f K_f K f and L f L_f L f are finite and nonempty, so both displayed category minima are attained.
Below the margin. If δ < μ ( f ) \delta<\mu(f) δ < μ ( f ) , then c r e l ( f ) + δ < c k e e p ( f ) c_{\mathrm{rel}}(f)+\delta<c_{\mathrm{keep}}(f) c rel ( f ) + δ < c keep ( f ) . Hence no retaining repair is globally optimal and Rep δ ⊆ L f \operatorname{Rep}_\delta\subseteq L_f Rep δ ⊆ L f .
At the margin. If δ = μ ( f ) \delta=\mu(f) δ = μ ( f ) , then c r e l ( f ) + δ = c k e e p ( f ) c_{\mathrm{rel}}(f)+\delta=c_{\mathrm{keep}}(f) c rel ( f ) + δ = c keep ( f ) . A minimiser in each of L f L_f L f and K f K_f K f is therefore globally optimal, so Rep δ \operatorname{Rep}_\delta Rep δ contains both a releasing and a retaining repair.
Above the margin. If δ > μ ( f ) \delta>\mu(f) δ > μ ( f ) , then c k e e p ( f ) < c r e l ( f ) + δ c_{\mathrm{keep}}(f)<c_{\mathrm{rel}}(f)+\delta c keep ( f ) < c rel ( f ) + δ . Hence no releasing repair is globally optimal and Rep δ ⊆ K f \operatorname{Rep}_\delta\subseteq K_f Rep δ ⊆ K f .
Integer threshold. If all weights are integers, both category costs and μ ( f ) \mu(f) μ ( f ) are integers. The smallest integer increase strictly greater than μ ( f ) \mu(f) μ ( f ) is therefore μ ( f ) + 1 \mu(f)+1 μ ( f ) + 1 , which by item 3 is the smallest integer increase forcing every returned repair to retain f f f .
The margin is therefore not a graph-quality measure. It is an actionable threshold: μ ( f ) = 0 \mu(f) = 0 μ ( f ) = 0 exposes an already optimal retaining alternative, μ ( f ) \mu(f) μ ( f ) is the increase that creates a retaining–releasing tie, and any larger increase forces retention.
Beyond enabling an individual contestation, the margin supports a comparative reading of inconsistency. Logical incoherence remains binary, but μ ( f ) \mu(f) μ ( f ) quantifies its weighted consequence for a released fact: it is the additional repair cost incurred by resolving the conflict in favour of retaining f f f , rather than releasing it. Thus, within a fixed trace and weighting scheme, larger margins identify releases that are more strongly supported by the competing evidence and more resistant to reinstatement. The normalised margin μ ( f ) / w f \mu(f)/w_f μ ( f ) / w f gives the proportional increase in f f f ’s release cost required to reach a retaining tie, allowing comparisons across facts and traces that use the same weight semantics. It should therefore be interpreted as relative weighted tension within the repair objective, not as a probability that f f f is false or as an absolute degree of logical inconsistency. Appendix § 15 .§ 3 evaluates both hard-retention responses and these margins (Table 6 and Table 8 ).
These guarantees concern the enforced CI commitments and have a precise consequence for their graph witnesses. Fix an optimal repair R R R releasing f f f and put T = O ∖ R T = O \setminus R T = O ∖ R . By Theorem 2(3), enforcing T ∪ { f } T \cup\{f\} T ∪ { f } is incoherent; Corollary 1 therefore implies that no DAG satisfying T T T can also satisfy f f f . Hard retention, or a cost increase δ > μ ( f ) \delta> \mu(f) δ > μ ( f ) , returns only graphs satisfying f f f , so it excludes every graph compatible with that releasing repair. A graph belonging to a different, already optimal repair retaining f f f may remain when μ ( f ) = 0 \mu(f) = 0 μ ( f ) = 0 . Below the margin, releasing optima remain optimal; at the margin, retaining and releasing optima coexist. Thus changing the enforced facts can force a change of graph witness, without guaranteeing improved graph accuracy or recovery of the generating DAG.
Additional Empirical Evidence
This section complements the primary experiments and formal results. It begins by instantiating the repair, private-conflict, and contestability constructions on the four-node example from the main paper. It then gives the full experimental protocol and metric definitions, summarises the fact enforcement comparison across methods and datasets, compares optimal and heuristic ABA repair, reports fact-level redress, distinguishes the repair claim from MPC’s procedural use of tests and ASPCR-DAG’s different objective, and concludes with the full reconstruction, fact-quality, and computational results.
Four-Node Worked Example
The main paper reports 14 CI facts and their strengths for the variables ( E , R , O , I ) (E, R, O, I) ( E , R , O , I ) . We multiply those reported strengths by 1000 for illustrative integer costs; the empirical weight scaling is given in Table 3 . Exhaustive enumeration of all 543 labelled DAGs on these variables gives the unique OptABA-PC reliable repair
Table 3. Baseline descriptions and final method settings. Shared data, seed, CI, and computational settings are given in the surrounding protocol.
R = { indep ( e , o , { i } ) , indep ( r , i , { e } ) , indep ( o , i , { } ) } R = \{\operatorname{indep}(e,o,\{i\}),\operatorname{indep}(r,i,\{e\}),\operatorname{indep}(o,i,\{\})
\} R = { indep ( e , o , { i }) , indep ( r , i , { e }) , indep ( o , i , { })}
of cost 2040. Its unique graph witness has edges E → O E \to O E → O , R → O R \to O R → O , and O → I O \to I O → I . Table 2 gives one private MUS and the hard-retention cost and margin for every released fact. Each listed MUS intersects R R R only in the contested fact.
Table 2. Contestation certificates and exact integer margins for the three facts released in the 14-fact four-node trace. The weights are the main-paper strengths multiplied by 1000; c k e e p c_{\mathrm{keep}} c keep is the minimum repair cost after making the contested fact mandatory, and μ ( f ) = c k e e p ( f ) − 2040 \mu(f)=c_{\mathrm{keep}}(f)-2040 μ ( f ) = c keep ( f ) − 2040 .
The corresponding minimum-cost hard-retention repairs are, in table order,
R 1 = { indep ( e , i , { o } ) , indep ( r , i , { e } ) , indep ( o , i , { } ) , indep ( e , r , { } ) } , R 2 = { indep ( e , o , { i } ) , indep ( e , i , { o } ) , indep ( o , i , { } ) , indep ( e , r , { } ) } , R 3 = { dep ( e , o , { } ) , dep ( e , o , { r } ) , dep ( r , i , { } ) , indep ( e , i , { o } ) } . \begin{aligned}
R_1 &= \{\operatorname{indep}(e,i,\{o\}),\operatorname{indep}(r,i,\{e\}),\operatorname{indep}(o,i,\{\}),\operatorname{indep}(e,r,\{\})\},\\
R_2 &= \{\operatorname{indep}(e,o,\{i\}),\operatorname{indep}(e,i,\{o\}),\operatorname{indep}(o,i,\{\}),\operatorname{indep}(e,r,\{\})\},\\
R_3 &= \{\operatorname{dep}(e,o,\{\}),\operatorname{dep}(e,o,\{r\}),\operatorname{dep}(r,i,\{\}),\operatorname{indep}(e,i,\{o\})\}.
\end{aligned} R 1 R 2 R 3 = { indep ( e , i , { o }) , indep ( r , i , { e }) , indep ( o , i , { }) , indep ( e , r , { })} , = { indep ( e , o , { i }) , indep ( e , i , { o }) , indep ( o , i , { }) , indep ( e , r , { })} , = { dep ( e , o , { }) , dep ( e , o , { r }) , dep ( r , i , { }) , indep ( e , i , { o })} .
Each differs from R R R and retains the contested fact. The private MUS proves that reinstatement alone is incoherent. Increasing the contested fact’s release weight by 30, 500, or 870, respectively, makes the baseline and hard-retention costs tie; increments of 31, 501, or 871 force every optimum to retain it. A separate 13-fact variant, obtained by omitting indep ( e , r , { } ) \operatorname{indep}(e,r,\{\}) indep ( e , r , { }) from the trace, is also exhaustively checked. It has 18 MCSes, a unique optimal released-fact projection of cost 1570, and four compatible DAGs. Making the released fact indep ( e , i , { o } ) \operatorname{indep}(e,i,\{o\}) indep ( e , i , { o }) mandatory raises the proved optimum to 2040 and yields a disjoint set of 13 compatible DAGs. This fact is false for the generating DAG in the main paper, whose direct edge E → I E \to I E → I remains active given O O O ; neither graph family contains that DAG. The example demonstrates enforced commitment, not truth restoration.
Experimental Protocol and Metrics
Benchmark choice. Using the benchmark design of Causal ABA Russo et al. [35 ] , the fixed-network study includes Cancer (5 nodes, 4 edges), Earthquake (5, 4), Survey (6, 6), and Asia (8, 8) from the bnlearn repository Scutari, [36 ] . These small, standard Bayesian networks include medical, legal, and policy decision models derived from published studies or expert elicitation. They are appropriate for this evaluation for three reasons: their known DAGs and conditional probability tables (CPTs) provide ground truth for both CI facts and graph reconstruction; repeated finite samples expose the test errors and conflicts that motivate repair; and reusing the benchmarks and sampling design of Russo et al. [35 ] makes the comparison with ABA-PC a controlled extension rather than a change of empirical regime. We add Erdős–Rényi (ER) Erdős & Rényi, [14 ] and scale-free (SF) Barabási & Albert, [3 ] DAGs with five and eight nodes to vary topology beyond four fixed networks and to evaluate the MPC Colombo & Maathuis, [12 ] and FGS Ramsey et al., [31 ] reference methods under the same generated samples.
Data generation. For each dataset we use 50 seeds, 2026–2075, and generate N = 5000 N=5000 N = 5000 independent observations per seed. For a bnlearn benchmark, we load its BIF file, including the published DAG and CPTs, and forward-sample a new data matrix for each seed using the sampling protocol of Russo et al. [35 ] . Thus the BN is fixed and only the finite sample changes. For a primary synthetic run, the seed determines both a new graph and its data-generating distribution. An ER graph is formed with n n n edges and given a random acyclic orientation and node permutation; an SF graph is generated by directed Barabási–Albert preferential attachment with one attachment per added node and then randomly permuted. Each node is categorical with at least two states; its allowed cardinality is reduced when it participates in a larger parent configuration, using 20 as the implementation’s CPT-enumeration target. For each node and parent configuration, its probability vector is drawn from a symmetric Dirichlet distribution whose concentration is sampled uniformly from [ 1 , 5 ] [1,5] [ 1 , 5 ] , after which the BN is forward-sampled. Categorical states are numerically encoded and columns are aligned with the generating adjacency matrix. Before CI testing, the bnlearn codes are additionally standardised; this is a one-to-one relabelling and therefore leaves the contingency counts for the G 2 G^2 G 2 CI test Spirtes et al., [38 ] unchanged. FGS independently factorises every categorical column into integer levels for its BDeu score.
Methods and matched evidence. Our proposed OptABA-PC, ABA-PC Russo et al. [35 ] , and MPC Colombo & Maathuis, [12 ] use the likelihood-ratio G 2 G^2 G 2 conditional-independence test Wilks, [44 ] ; Spirtes et al. [38 ] at α = 0.01 \alpha=0.01 α = 0.01 . Within a seed, ABA-PC and OptABA-PC receive exactly the same recorded CI facts and p p p -value-derived release strengths (as in Russo et al., [35 ] ), as well as the same time limits; their paired comparison therefore changes only the repair rule. MPC uses the same sample and test configuration but consumes test outcomes procedurally. FGS Ramsey et al., [31 ] uses Tetrad’s native discrete BDeu score on the same categorical sample and returns one score-selected CPDAG; because it exposes no CI trace, it is a graph-reconstruction rather than fact-repair baseline. ASPCR-DAG Hyttinen et al., [21 ] uses its native Bayesian log-weighted CI configuration (prior independence 0.4 and Bayesian α \alpha α parameter 20) on the same.seed samples. Its graph comparison and forced-fact sensitivity audit cover Cancer, Earthquake, Survey, ER(5), and SF(5), with 50 DAG-restricted (otherwise it could return partial ancestral graphs under no causal sufficiency assumption, allowing for latent confounders) runs per dataset.
Hyperparameters. The configuration of parameters in Table 3 was fixed from the standard published implementation or the Causal ABA protocol. In particular, G 2 G^2 G 2 with α = 0.01 \alpha= 0.01 α = 0.01 is the Causal ABA setting used by MPC, ABA-PC, and OptABA-PC; MPC uses the standard stable-majority rule; FGS uses Tetrad’s native discrete BDeu configuration listed in the table; and ASPCR-DAG uses the authors’ Bayesian log-weighted configuration.
Computation. All ABA repair runs use our proposed Bayes-ball encoding, a 300-second solve limit, a separate 120-second compatible-set evaluation limit, and four clingo threads. ASPCR-DAG is omitted above six nodes because preliminary runs exceed one hour, well beyond the time limit in Table 3 . This is also reported in the original paper [21 ] . At eight nodes, the ( n 2 ) 2 n − 2 = 1792 \binom{n}{2}2^{n-2} = 1792 ( 2 n ) 2 n − 2 = 1792 possible CI constraints define a conceptual space of 2 1792 2^{1792} 2 1792 fact subsets, motivating both the limits and the smaller scope of the exact contestability audit. Table 5 and Table 7 audit all 400 (50 seeds × \times × 8 datasets) primary G 2 G^2 G 2 traces. The exact decision audit in Table 6 uses 250 proved ABA instances and makes each released OptABA-PC fact mandatory in turn. The separate ASPCR-DAG sensitivity audit (Table 6 ) re-solves all 4,330 failed facts in 250 proved native outputs. MPC has no consistent DAG extension for 12 endpoint-invalid Survey outputs and one endpoint-invalid ER(8) output, so only the affected DAG metrics display paired sample sizes of 38 and 49.
Table 7. Repair quality and MPC enforcement on the same 400 primary G 2 G^2 G 2 traces. Feasible inputs admit a DAG satisfying the entire trace; all other inputs require a repair. Lower/inconsistent counts saved OptABA-PC repairs with lower release cost than ABA-PC among the inconsistent inputs, and same cost is the complementary count; ABA-PC is never cheaper. Median saving is conditional on a lower saved cost. Thirty-two OptABA-PC rows are valid timeout incumbents; Table 6 separately gives the 250-instance exact audit with proved optima. MPC full trace counts returned classes satisfying every input test, and gap counts feasible traces that MPC nevertheless fails to satisfy.
Table 4 isolates the efficiency differences between the original active-path [35 ] and our proposed Bayes-ball encodings under the matched primary configuration. Across 50 seeds on each of the eight datasets, both implementations receive identical test traces and weights and use the same sequential ABA-PC repair policy; every pair that completes returns the same retained-fact count and weight. Bayes-ball completes all 400 runs, while active-path materialisation times out on three ER(8) and two SF(8) runs. Its mean end-to-end time is significantly lower on Cancer, Survey, Asia, ER(8), and SF(8), indistinguishable on ER(5), and higher on the very small Earthquake and
SF(5) instances. The largest reductions occur at eight nodes: 94.7% on Asia and at least 96.8% on the paired synthetic runs. Thus the benefit is a marked improvement in scaling rather than a uniform speedup on negligible-runtime instances. The formal proof and independent exhaustive checker establish that the Bayes-ball rules enforce the same d d d -separation semantics without materialising active paths.
Fact and graph metrics. A recorded CI fact is correct when its independence or dependence relation agrees with d d d -separation in the generating DAG. Fact precision treats retained correct and false facts as true and false positives; fact recall additionally counts released correct facts as false negatives; FactF1 is their harmonic mean. Graph F1 is the harmonic mean of edge precision and recall, and Structural Hamming Distance (SHD) [41 ] counts adjacency and orientation edits relative to the generating graph. Because observational data identify a Markov-equivalence class, we score CPDAGs and, where the method returns a CPDAG, its consistent DAG extensions : DAGs in the represented class that preserve its adjacencies and compelled arrowheads while orienting reversible edges. ABA-PC and OptABA-PC are scored over the compatible DAGs saved within the evaluation budget; ASPCR-DAG is scored on its single returned DAG. Average, best, and worst values describe variation within the saved structural set, with the partial-enumeration qualification stated below.
MPC and FGS natively return a CPDAG rather than one oriented DAG. The facts selected by ABA-PC and OptABA-PC can likewise admit several DAGs, possibly spanning several CPDAGs. Table 11 therefore compares equivalence-class reconstruction and then the relevant DAG outputs: every compatible DAG for ABA-PC/OptABA-PC, every consistent extension of the CPDAG returned by MPC/FGS, and the single DAG returned by ASPCR-DAG. Tables 14–17 report SHD and F1 variation across the corresponding CPDAGs and DAGs. All DAGs in one CPDAG entail the same CI model, so compatibility is class-level; their edge orientations can nevertheless have different SHD and F1 against the generating DAG.
Using PC-based methods, returned structures need not satisfy the CI evidence used during discovery. For ABA-PC and OptABA-PC, the reported compatible CPDAGs and DAGs satisfy every retained post-repair fact. For MPC and ASPCR-DAG, compatibility requires satisfaction of every test in the complete recorded native trace. It is undefined for score-based FGS and is shown as “–”. Full-trace enforcement permits no released facts, whereas selected-set enforcement tests only the commitments exposed by a repair. We report the seed-level mean ± \pm ± standard deviation.
Statistical analysis. For every reported method comparison, we align runs by dataset and seed, discard a pair only when that outcome is unavailable for either method, and apply a two-sided Wilcoxon signed-rank test [43 ] to the paired values. Benjamini–Hochberg false-discovery-rate adjustment [4 ] is performed within each dataset–metric family across the available comparisons; adjusted p < 0.05 p < 0.05 p < 0.05 is treated as significant. An all-zero paired difference is assigned p = 1 p = 1 p = 1 . Stars compare OptABA-PC with ABA-PC and daggers compare other methods with OptABA-PC. The only reduced paired samples are the MPC DAG-extension metrics identified above and locally in their tables. Table 1 reports within-seed differences and relative effect sizes; Tables 9 and 10 supply their absolute scale and inferential annotations.
Execution environment. Experiments were run CPU-only on Ubuntu 22.04.5 LTS (Linux 6.8.0-124, x86-64) on one Intel Xeon w5-2455X socket with 12 physical cores, 24 hardware threads, a 3.20 GHz base frequency and 4.60 GHz maximum frequency, and 128 GB RAM (125 GiB visible to the operating system); no GPU was used. The primary environment used Python 3.12.1, clingo 5.8.0, NumPy 1.26.4, pandas 2.2.3, SciPy 1.15.3, scikit-learn 1.6.1, NetworkX 3.4.2, causal-learn 0.1.4.1, pgmpy 1.0.0, py-causal 1.2.1, and OpenJDK 19.0.2. ASPCR-DAG used R 4.1.2 with pcalg 2.7-11, graph 1.72.0, and Rgraphviz 2.38.0.
Fact Enforcement Comparison
Table 5 reports run completion, input feasibility, output correspondence, and repair coverage. Table 6 distinguishes the decision evidence each method supplies. Table 7 then places the 400-trace OptABA-PC–ABA-PC cost comparison beside MPC’s output enforcement statistics, while Table 8 gives the dataset-level forced-fact margins.
Table 5 states the two relevant counts directly. A feasible trace is an input for which at least one DAG satisfies every recorded outcome; a full-trace output is the returned graph or Markov class actually doing so. Only 88/400 primary G2 ^{2} 2 traces are feasible. ABA-PC and OptABA-PC match all 88 whenever an output is present because both expose and enforce a selected repair. MPC returns a graph on every input but matches only 80 traces, leaving eight avoidable failures among the 88 feasible cases. In the primary ASPCR-DAG setting, the proved soft-objective optimum has zero disagreement on 32/250 traces; positive optimum cost establishes that the remainder are infeasible under its DAG encoding. FGS has no CI trace to audit.
Across all 400 runs, 368 completed and 32 stopped at the optimisation limit after saving a valid incumbent: two on Asia, 19 on ER(8), and 11 on SF(8). Compatible-set enumeration is a separate post-solve step: the stored primary ABA/OptABA-PC metadata flags every such enumeration as budget-limited, including all 50 SF(8) instances. The saved set sizes and set-average graph metrics are consequently partial-enumeration summaries; this does not affect the selected facts, saved repair consistency, or the separately proved exact audits below.
Table 6 shifts from availability to the evidence behind a decision. Its G 2 G^2 G 2 rows use the same 250-trace exact ABA/MPC audit, whereas its ASPCR-DAG row uses a separate 250-run native Bayesian audit. The table therefore compares which objects are certified—minimum repair, enforced selected set, or post-hoc sensitivity—but does not treat the two normalised margin columns as paired effect sizes.
Optimal versus heuristic ABA repair ABA-PC exposes a retained/released fact set and its returned graphs satisfy every retained fact, but its strength-ordered stopping rule computes neither of the category optima c r e l ( f ) c_{\mathrm{rel}}(f) c rel ( f ) and c k e e p ( f ) c_{\mathrm{keep}}(f) c keep ( f ) . Re-running the heuristic with f f f made mandatory could enforce that fact, but its cost difference would not be the exact margin or inherit Proposition S.1. Table 7 compares the paired repair costs before graph accuracy is considered and, in the final columns, contrasts this repair with MPC’s enforcement of the input trace.
On the 312 inconsistent primary traces, the saved OptABA-PC repair costs less on 294 and ties on 18; ABA-PC is never cheaper. The conditional median reduction is 63.4%, with strict improvements on every inconsistent Cancer, Survey, and SF(8) trace and on 46/47 ER(8) traces. These full-coverage figures include 32 valid timeout incumbents. The exact 250-instance audit in Table 6 proves the corresponding optimum on every pair: among its 111 inconsistent traces, OptABA-PC costs less on 108 and ties on three.
OptABA-PC: fact-level redress and robustness We instantiated the hard-retention contestation and exact margin from Proposition 2, Definition 4, and Proposition S.1 on the frozen OptABA-PC runs. The exact audit uses Cancer, Earthquake, Survey, ER(5), and SF(5), with 50 seeds (2026–2075) per dataset, N = 5000 N = 5000 N = 5000 , and the matched χ 2 \chi^2 χ 2 test at α = 0.01 \alpha= 0.01 α = 0.01 . We do not pool eight-node margins because not every baseline and hard-retention solve reached proved optimality within the computational budget.
For every fact f f f in the released-fact projection of a baseline optimum, we re-solved the emitted optimisation program after adding the hard constraint that makes f f f mandatory. Because the baseline optimum releases f f f , its proved cost gives c r e l ( f ) c_{\mathrm{rel}}(f) c rel ( f ) ; the proved hard-retention optimum gives c k e e p ( f ) c_{\mathrm{keep}}(f) c keep ( f ) .
Their difference therefore directly instantiates the margin in Definition 4 . We report μ ( f ) / w f \mu(f)/w_f μ ( f ) / w f and, to relate this fact-specific threshold to the complete repair, compare μ ( f ) \mu(f) μ ( f ) with the baseline total release cost c r e l ( f ) c_{\mathrm{rel}}(f) c rel ( f ) .
Table 8 records every dataset-level and pooled threshold. All 742 OptABA-PC contestations prove both category optima, with no timeout, infeasible hard-retention instance, or zero margin; ER (5) has no rejected fact and therefore no imputed value. This instantiates Proposition 2 under its unrestricted-DAG assumptions.
Strict positivity means that no reported release merely selects one member of an already tied retaining/releasing optimum. It also resolves the baseline-witness issue at the fact-selection level: if another baseline optimum retained a contested fact, that fact would have zero margin, while positive weights rule out an optimal strict superset of the reconstructed release. Hence every audited instance has a unique optimal released-fact projection, although it may still have multiple stable-model or graph witnesses.
The margins distinguish releases sensitive to small increases in their cost from those robust to larger increases, holding other costs fixed. For 11.6% of releases, an increase of at most 10% makes retention optimal; 22.5% require more than doubling their release cost (Table 6 ). These thresholds mark the first tie with a retaining optimum; a strictly larger increase forces every optimum to retain the fact (Proposition S.1). The median margin is 45.5% of the contested fact’s release cost, normalising instead by the complete baseline repair cost gives a median of 5.7% (Table 8 ). Cancer, Survey, and SF(5) have appreciably different medians, while Earthquake’s large estimate rests on only four targets.
Majority-PC: use of tests versus output enforcement A procedure can use a CI test without constraining its final graph to satisfy that test. This distinction is central to interpreting MPC. Within KPC a CI outcome is consumed during skeleton discovery and collider orientation, but is not posted as a global d d d -separation constraint on the returned CPDAG. Forcing a local test routine would therefore only force that procedural branch; other paths, separating sets, or downstream orientation steps could still yield a Markov class contradicting the same relation. MPC also exposes neither a retained/released fact set nor a global release-cost objective, so c r e l ( f ) c_{\mathrm{rel}}(f) c rel ( f ) and c k e e p ( f ) c_{\mathrm{keep}}(f) c keep ( f ) are not defined for it.
The final columns of Table 7 report the MPC audit on the same 400 primary traces; the exact 250-trace comparison, including its denser ER(5)/SF(5) setting, appears in Table 6 . Since every DAG in one CPDAG has the same conditional-independence model, one consistent extension suffices for the semantic check; endpoint-invalid outputs remain explicit and count as incompatible.
MPC’s raw full-compatibility count is dominated by input inconsistency: only 88/400 primary traces are feasible. Conditional on feasibility, it succeeds on 80/88 and leaves eight avoidable gaps, five on ER(5) and three on SF(5). The separate exact audit gives the same conditional pattern: 126/139 compatible feasible traces and 13 gaps, two on ER(5) and 11 on SF(5). The corresponding success rates, 90.9% and 90.6%, show that the change in raw counts reflects trace feasibility and graph density rather than a reversal in method behaviour. MPC can still be a strong graph estimator (Table 11 ), but it neither identifies a repair on inconsistent inputs nor distinguishes unavoidable contradictions from avoidable output gaps.
ASPCR-DAG: forced-fact sensitivity under a different objective ASPCR-DAG permits a forced-fact sensitivity audit, but not a test of the OptABA-PC contestability guarantee. Let F A S P F_{\mathrm{ASP}} F ASP be its exhaustive native Bayesian CI trace and w i w_i w i the integer log weight of fact f i f_i f i . Its DAG-restricted encoding derives fail ( f i ) \operatorname{fail}(f_i) fail ( f i ) exactly when a candidate graph contradicts f i f_i f i and minimises
C A S P ( G ) = ∑ i w i 1 [ G ⊭ f i ] . C_{\mathrm{ASP}}(G)=\sum_i w_i\,1[G \not\models f_i]. C ASP ( G ) = i ∑ w i 1 [ G ⊨ f i ] .
The term 1 [ ⋅ ] 1[\cdot] 1 [ ⋅ ] denotes the indicator function, equal to one when its argument is true and zero otherwise. For every fact f f f failed by the saved optimum, we perform what we call a hardening : as a sensitivity probe, we add the integrity constraint ← fail ( f ) \leftarrow\operatorname{fail}(f) ← fail ( f ) and re-solve. This turns that one test from a soft, penalised correspondence into a mandatory requirement that the new DAG satisfy it, while every other test remains soft. Hence
μ A S P ( f ) = min G ⊨ f C A S P ( G ) − min G C A S P ( G ) \mu_{\mathrm{ASP}}(f)=\min_{G\models f} C_{\mathrm{ASP}}(G)-\min_G C_{\mathrm{ASP}}(G) μ ASP ( f ) = G ⊨ f min C ASP ( G ) − G min C ASP ( G )
is an exact sensitivity margin for the modified ASPCR-DAG objective: the new DAG is forced to correspond to the targeted test, while its correspondence to every other test remains soft. The hard constraint is imposed by our audit rather than supplied as a method-level redress operation, and ASPCR-DAG has no counterpart of Proposition S.1. It returns one optimal DAG rather than the complete structural set supported by an explicit correction set.
Tables 6 and 8 report this diagnostic alongside, but separately from, the OptABA-PC audit. The regenerated ASP programs reproduce the saved proved objective on all 250 ASPCR-DAG baselines. Only 23 native traces have zero graph–test disagreement; the other baselines supply 4,330 failed facts for hardening. Every hardening reaches a proved optimum, with no timeout, infeasible target, enforcement failure, or zero gap. Thus every graph at the original optimum cost contradicts the targeted test; enforcing correspondence to it changes the optimum but leaves all remaining test-graph correspondences soft. This is sensitivity evidence about ASPCR-DAG’s objective, not actual redress since no consistent repair is offered.
Within that objective, the pooled median normalised gap is 2.828, with the dataset variation shown in Table 8 . If g = μ A S P ( f ) / w f g=\mu_{\mathrm{ASP}}(f)/w_f g = μ ASP ( f ) / w f , hardening removes the target’s penalty w f w_f w f yet raises the optimum by g w f gw_f g w f ; the net penalty transferred to other disagreements is therefore ( 1 + g ) w f (1+g)w_f ( 1 + g ) w f . At the pooled median this is 3.828 times the target’s weight. This is useful sensitivity information, but not evidence that ASPCR-DAG is “more contestable”: its weights, trace, objective, and operation differ from OptABA-PC’s.
The absence of zero gaps agrees only at the level of solver sensitivity: neither saved optimum fails a targeted fact merely because it selected one member of a retaining/failing tie. It does not transfer OptABA-PC’s correction-set semantics, total fact-enforcement result, or exact response guarantee to ASPCR-DAG. Nor should the normalised values be ranked: ASPCR-DAG uses all ( n 2 ) 2 n − 2 \binom{n}{2}2^{n-2} ( 2 n ) 2 n − 2 native Bayesian tests and log weights, whereas OptABA-PC uses the matched adaptive G2 ^2 2 trace and corresponding release weights.
Additional Empirical Results and Discussion
Tables 9–18 give the complete evidence behind the compact primary comparison for the fixed bnlearn networks and the ER/SF graphs under the setup in the main paper. Tables 9 and 10 report absolute ABA-PC–OptABA-PC fact/time and CPDAG results for all eight datasets, including Earthquake; Table 12 gives the fact account and Table 13 their precision, recall, and F1; Table 11 compares graph-level results; Tables 14–17 give SHD and F1 reconstruction ranges; and Table 18 reports timing, output-set sizes, and CI compatibility. Values are absolute mean ± \pm ± standard deviation. Stars compare OptABA-PC with ABA-PC; daggers compare an all other baselines with OptABA-PC. No missing value is imputed. ASPCR-DAG is reported on Cancer, Earthquake, Survey, ER(5), and SF(5), with 50 matched runs on each.
Graph-level findings. Table 11 confirms that optimal repair improves mean CPDAG reconstruction over heuristic repair on seven datasets, while Earthquake is effectively tied. Across the five matched ASPCR-DAG datasets, OptABA-PC has significantly higher mean CPDAG F1 throughout and lower SHD on four; Survey SHD is indistinguishable. Its returned-DAG F1 is likewise higher on all five and SHD on four; SF(5) DAG SHD is indistinguishable. Native discrete FGS is a strong graph estimator: it significantly outperforms OptABA-PC on both CPDAG metrics for Cancer, ER(5), ER(8), and SF(5), on F1 for Survey, and on SHD for SF(8). OptABA-PC significantly outperforms FGS on both metrics for Earthquake and on SHD for Asia; the remaining mean CPDAG differences are not significant. This mixed comparison reinforces the distinction between reconstruction and repair: FGS selects a graph by score but provides no retained CI set, compatibility audit, or contestation object. The ASPCR-DAG comparisons use the same saved samples and generating DAG, but their different fact universes, weights, and optimisation costs are not numerically comparable. MPC is stronger on both mean CPDAG metrics for Survey and the four synthetic datasets; Cancer favours MPC only on CPDAG F1, Asia favours OptABA-PC on CPDAG F1, and Earthquake is tied. These are graph-estimation comparisons, not fact-repair comparisons.
The synthetic MPC result is consistent with Majority-PC’s specialisation. It returns one targeted CPDAG when structurally valid, whose reversible orientations remain uncommitted, whereas OptABA-PC is evaluated over the saved, budget-limited structural set admitted by its selected coherent fact repair. OptABA-PC admits on average 3.0, 4.7, 85.1, and 170.3 compatible CPDAGs on ER(5), ER(8), SF(5), and SF(8), respectively (Table 11 ). MPC beats the OptABA-PC average on all four, but does not significantly beat its best compatible CPDAG on ER(5), ER(8), or SF(5); SF(8) remains a significant MPC advantage (Table 14 and Table 15 ). This narrowing should not be mistaken for a best-DAG win by OptABA-PC. After expanding each valid class, MPC has significantly better best-DAG SHD and F1 on ER(5), SF(5), and SF(8), and better best-DAG SHD on ER(8), where best-DAG F1 is indistinguishable (Table 16 and Table 17 ). Thus comparing MPC’s single partially oriented class with OptABA-PC’s saved output set explains part, but not all, of MPC’s average margin. In this broader sparse primary setting, full-trace compatibility holds for only 22%, 6%, 34%, and 4% of the corresponding MPC outputs (Table 18 ); Table 6 gives the separate exact 250-trace comparison. Its structural advantage therefore does not establish a fact-repair advantage.
Table 16: Average, best, and worst DAG SHD within each run of the matched primary experiments (mean ± \pm ± standard deviation over seeds; lower is better). ABA-PC and OptABA-PC are scored over saved compatible DAGs; MPC and FGS over consistent extensions of each valid returned CPDAG; ASPCR-DAG on its single DAG, so its average, best, and worst coincide. Subscripts mark MPC’s reduced samples: 38 on Survey and 49 on ER(8). Stars mark the significant ABA-PC–OptABA-PC winner. Daggers compare an external method with OptABA-PC; bold daggers favour that method, unbold daggers favour OptABA-PC. One, two, and three symbols denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001. Compatibility counts are in Table 18 .
Table 16.
Table 17. Average, best, and worst DAG F1 within each run of the matched primary experiments (mean ± \pm ± standard deviation over seeds; higher is better). ABA-PC and OptABA-PC are scored over saved compatible DAGs; MPC and FGS over consistent extensions of each valid returned CPDAG; ASPCR-DAG on its single DAG, so its average, best, and worst coincide. Subscripts mark MPC’s reduced samples: 38 on Survey and 49 on ER(8). Stars mark the significant ABA-PC–OptABA-PC winner. Daggers compare an external method with OptABA-PC; bold daggers favour that method, unbold daggers favour OptABA-PC. One, two, and three symbols denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001. Compatibility counts are in Table 18 .
Table 18: Timing, structural output size, and CI compatibility for the matched primary experiments (mean ± \pm ± standard deviation over 50 seeds for each reported method–dataset pair). Returned CPDAGs and DAGs are structural output/extension counts. CI-compatible counts additionally require all retained post-repair facts for ABA-PC/OptABA-PC or every recorded native test for MPC/ASPCR-DAG; compatibility is undefined for score-based FGS (‘–’). ABA-PC and OptABA-PC times include construction, solving, and compatible-set evaluation and are directly paired. MPC/FGS time the learner call, while ASPCR-DAG reports its native end-to-end R run; their values and paired daggers describe implementations with different timing scopes and are not a controlled cross-family speed ranking. Stars identify the significant ABA-PC–OptABA-PC winner. Bold daggers favour the external method and unbold daggers favour OptABA-PC. One, two, and three symbols denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01 0.01 0.01 , and 0.001 0.001 0.001 .
Table 18.
The range tables further show that OptABA-PC significantly improves worst CPDAG and worst DAG SHD/F1 over ABA-PC on seven of eight datasets. Best-of-set values favour ABA-PC because its much larger output set has more opportunities to contain one unusually accurate member; average and worst values expose the cost of that ambiguity. Compatibility is stricter than structural validity: across the broader eight-dataset primary setting, only 80 of 400 MPC outputs have a CPDAG satisfying every recorded G2 ^2 2 outcome, while Cancer, Survey, and Asia have none (Table 18 ). For saved ASPCR-DAG outputs the corresponding native-trace count is 32 of 250: 22 on Earthquake, six on ER(5), and four on SF(5). FGS has no CI trace and is therefore marked – rather than zero.
Fact quality and computation. Table 12 reports retained correct/false facts; Table 13 reports their precision, recall, and FactF1. Table 18 reports timing and structural and CI-compatible output counts. Paired ABA-PC–OptABA-PC timings include program construction, solving, and compatible-set evaluation on a like-for-like basis. Cross-method scopes differ: MPC/FGS time the learner call, while ASPCR-DAG reports its native end-to-end R run. They describe implementation cost, not a controlled speed ranking.
Table 12: CI-fact counts on the matched primary experiments (mean ± \pm ± standard deviation over 50 seeds per reported row). Node counts are in brackets. Correct available counts recorded tests agreeing with d d d -separation in the generating DAG; correct/false kept split retained facts. ABA-PC and OptABA-PC repair the identical test set. Only a significant paired ABA-PC–OptABA-PC winner is bold and starred: one, two, and three stars denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001 from two-sided Wilcoxon tests. For ASPCR-DAG, kept means its returned DAG satisfies a native soft test relation: descriptive graph–test agreement, not an explicit retained CI set. MPC and FGS expose no comparable fact accounting. Precision, recall, and F1 are in Table 13.
Table 12. CI-fact counts on the matched primary experiments (mean ± \pm ± standard deviation over 50 seeds per reported row). Node counts are in brackets. Correct available counts recorded tests agreeing with d d d -separation in the generating DAG; correct/false kept split retained facts. ABA-PC and OptABA-PC repair the identical test set. Only a significant paired ABA-PC–OptABA-PC winner is bold and starred: one, two, and three stars denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001 from two-sided Wilcoxon tests. For ASPCR-DAG, kept means its returned DAG satisfies a native soft test relation: descriptive graph–test agreement, not an explicit retained CI set. MPC and FGS expose no comparable fact accounting. Precision, recall, and F1 are in Table 13.
Table 13: CI-fact precision, recall, and F1 on the matched primary experiments (mean ± \pm ± standard deviation over 50 seeds per reported row; higher is better). Node counts are in brackets. Retained correct tests are true positives, retained false tests are false positives, and released correct tests are false negatives; counts are in Table 12 . For ASPCR-DAG, retention denotes satisfaction of native soft tests by its returned DAG, not an explicit retained CI set. MPC and FGS expose no comparable fact accounting. Only a significant paired ABA-PC–OptABA-PC winner is bold and starred: one, two, and three stars denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001 from two-sided Wilcoxon tests.
Table 13. CI-fact precision, recall, and F1 on the matched primary experiments (mean ± \pm ± standard deviation over 50 seeds per reported row; higher is better). Node counts are in brackets. Retained correct tests are true positives, retained false tests are false positives, and released correct tests are false negatives; counts are in Table 12 . For ASPCR-DAG, retention denotes satisfaction of native soft tests by its returned DAG, not an explicit retained CI set. MPC and FGS expose no comparable fact accounting. Only a significant paired ABA-PC–OptABA-PC winner is bold and starred: one, two, and three stars denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001 from two-sided Wilcoxon tests.
Table 9: Absolute retained-fact quality and runtime for the primary ABA-PC–OptABA-PC comparison (mean ± \pm ± standard deviation over 50 matched seeds, N = 5000 N = 5000 N = 5000 , α = 0.01 \alpha= 0.01 α = 0.01 ). Both methods repair the same recorded CI tests. All eight datasets are included, with node counts in brackets. Correct retained counts facts agreeing with d d d -separation in the generating DAG; Fact F1 scores retained-fact classification. Time includes program construction, solving, and compatible-set evaluation. Arrows indicate preferred directions. Only a significant paired ABA-PC–OptABA-PC winner is bold and starred: one, two, and three stars denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01 0.01 0.01 , and 0.001 0.001 0.001 from two-sided Wilcoxon tests. CPDAG evaluation is in Table 10 .
Table 9.
Table 10. Absolute CPDAG evaluation for the primary ABA-PC–OptABA-PC comparison on the same 50 matched seeds per dataset as Table 9 . Counts, F1, and SHD are mean ± \pm ± standard deviation. Node counts are in brackets. #CPDAGs counts saved equivalence classes satisfying every retained post-repair fact; F1 and SHD average reconstruction quality over these budget-limited sets. Arrows indicate preferred directions. Only a significant paired ABA-PC–OptABA-PC winner is bold and starred: one, two, and three stars denote BH-adjusted p < 0.05 p < 0.05 p < 0.05 , 0.01, and 0.001 from two-sided Wilcoxon tests.