Using SAT and Partial MaxSAT for Reasoning with System Z and System W Christoph Beierle1 , Aron Spang1 and Jonas Haldimann1,2,3 1 Knowledge Based Systems, FernUniversität in Hagen, 58084 Hagen, Germany 2 Institute of Logic and Computation, TU Wien, 1040 Vienna, Austria 3 University of Cape Town and CAIR, Cape Town, South Africa Abstract Nonmonotonic reasoning from conditional belief bases typically depends on a structure over possible worlds that relies on the verifi- cation and falsification of conditionals. A major challenge in implementing such reasoning approaches is that the number of worlds in these structures grows exponentially with the number of propositional variables occurring in the belief base. For addressing this problem by using the power of current solvers, recently an implementation of reasoning with system W using Partial MaxSAT prob- lems has been proposed. In this paper, we investigate this approach in more detail, present a formal correctness proof of the system W inference algorithm SWinf , and extend its empirical evaluation. Furthermore, we show that the approach can be transferred to imple- menting Pearl’s system Z by using SAT problems, and prove the correctness of the resulting system Z inference algorithm SZinf . Our implementations of system Z and system W demonstrate that they outperform previous implementations and allow for signature and knowledge base sizes that have been infeasible before. 1. Introduction • We give a correctness proof for our system Z infer- ence algorithm SZinf. Conditionals play a major role in knowledge representa- • We implement system Z correspondingly, outper- tion and reasoning, and many different semantics have been forming previous implementations and allowing for proposed for conditional belief bases, like probability dis- signature and knowledge base sizes that have not tributions, plausibility orderings, possibility distributions, been possible before. ranking functions and special instances of them, or condi- tional objects (see, e.g., [1, 2, 3, 4, 5, 6, 7, 8]). However, soft- This paper is organized as follows. After briefly recalling ware systems implementing any of these inference methods the background on conditional logic in Section 2 and sys- have attracted much less attention. Any such implementa- tem W in Section 3, we present and illustrate our algorithm tion of inference with respect to a conditional belief base Δ SWinf for system W in Section 4 and prove its correctness has to cope with the number of worlds growing exponen- in Section 5. We adapt this approach for system Z in Sec- tially with the number of propositional variables occurring tion 6, illustrate the resulting algorithm SZinf and prove in Δ. For addressing this practical side of nonmonotonic this algorithm’s correctness in Section 7. Finally we evalu- reasoning, we consider Pearl’s well-known system Z [9], ate the runtimes of our new algorithms for system W and and system W [10] that exhibits some notable properties like system Z in Section 8 before concluding and pointing out extending system Z and thus rational closure [11], avoid- future work in Section 9. ing the drowning problem [12], and fully complying with syntax splitting [13, 14] and also with conditional syntax splitting [15]. Because the first implementation of system W 2. Background: Conditional Logic [16] severely limits the number of propositional variables A (propositional) signature is a finite set Σ of propositional in Δ to about 20 for practical applications, corresponding variables, and ℒΣ denotes the propositional language over Σ. to about one million worlds, recently an implementation of We may denote a conjunction 𝐴 ∧ 𝐵 by 𝐴𝐵 and a negation reasoning with system W using partial MaxSAT problems ¬𝐴 by 𝐴. The set of interpretations over a signature Σ, has been developed, with first evaluation results of up to 60 also called worlds, is ΩΣ . We may identify a world with variables and thus 260 worlds [17]. the corresponding complete conjunction of all elements Σ This paper extends our work presented in [17] in several in either positive or negated form. An 𝜔 ∈ ΩΣ is a model directions, providing the following main contributions: of 𝐴 ∈ ℒΣ if 𝐴 holds in 𝜔, denoted as 𝜔 |= 𝐴, and the • We elaborate the approach in [17] in more detail and set of models of 𝐴 is Mod Σ (𝐴) = {𝜔 ∈ ΩΣ | 𝜔 |= 𝐴}, provide a formal correctness proof for its system W sometimes denoted as Ω𝐴 . A formula 𝐴 entails a formula 𝐵, inference algorithm SWinf. written 𝐴 |= 𝐵, if Mod Σ (𝐴) ⊆ Mod Σ (𝐵). Furthermore, • We extend its empirical evaluation, demonstrating for 𝐹 ∈ ℒΣ and 𝑀 ⊆ ℒΣ , we use the notation 𝜔 |= 𝑀 iff that it scales up system W inference up to 120 vari- 𝜔 |= 𝐹𝑖 for every 𝐹𝑖 ∈ 𝑀 ; Ω𝑀 = {𝜔 ∈ ΩΣ | 𝜔 |= 𝑀 }; ables and thus 2120 worlds and to belief bases of up 𝑀 = {𝐹 𝑖 | 𝐹𝑖 ∈ 𝑀 }; and 𝐹 ∧ 𝑀 = 𝐹 ∧ 𝐹1 ∧ . . . ∧ 𝐹𝑚 to 200 conditionals. for 𝑀 = {𝐹1 , . . . , 𝐹𝑚 }. • We show how the approach can be transferred, yield- A conditional (𝐵|𝐴) connects two formulas 𝐴, 𝐵 and ing a SAT-based realization of system Z. represents the rule “If 𝐴 then usually 𝐵”. The conditional 22nd International Workshop on Nonmonotonic Reasoning, November 2- language over Σ is (ℒ|ℒ)Σ = {(𝐵|𝐴) | 𝐴, 𝐵 ∈ ℒΣ }. A 4, 2024, Hanoi, Vietnam belief base Δ is a finite set of conditionals. For a world christoph.beierle@fernuni-hagen.de (C. Beierle); 𝜔, a conditional (𝐵|𝐴) is either verified by 𝜔 if 𝜔 |= 𝐴𝐵, aron.spang@fernuni-hagen.de (A. Spang); jonas@haldimann.de falsified by 𝜔 if 𝜔 |= 𝐴𝐵, or not applicable to 𝜔 if 𝜔 |= 𝐴 (J. Haldimann) [18]. An example for semantics of conditionals are functions  0000-0002-0736-8516 (C. Beierle); 0000-0002-2618-8721 (J. Haldimann) 𝜅 : ΩΣ → N such that 𝜅(𝜔) = 0 for at least one 𝜔 ∈ © 2024 Copyright for this paper by its authors. Use permitted under Creative Commons License ΩΣ , called ranking functions or ordinal conditional functions Attribution 4.0 International (CC BY 4.0). CEUR ceur-ws.org Workshop ISSN 1613-0073 Proceedings (OCF), introduced (in a more general form) by Spohn (1988). 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 They express degrees of plausibility where a lower degree denotes “less surprising”. Each 𝜅 uniquely extends to a 𝑏𝑝𝑓 𝑤 function 𝜅 : ℒΣ → N ∪ {∞} with 𝜅(𝐴) = min{𝜅(𝜔) | 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 𝜔 |= 𝐴} where min ∅ = ∞. A ranking function 𝜅 accepts a conditional (𝐵|𝐴), written 𝜅 |= (𝐵|𝐴), if 𝜅(𝐴𝐵) < 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 𝜅(𝐴𝐵), and 𝜅 accepts Δ, written 𝜅 |= Δ, if 𝜅 accepts all conditionals in Δ, and Δ is consistent if there is a ranking 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 function accepting Δ. Every 𝜅 induces a nonmonotonic inference relation |∼ 𝜅 between formulas in ℒΣ , given by 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 𝑏𝑝𝑓 𝑤 𝐴 |∼ 𝜅 𝐵 iff 𝐴 ≡ ⊥ or 𝜅(𝐴𝐵) < 𝜅(𝐴𝐵). (1) Figure 1: The preferred structure on worlds 0 canonically to a set Δ of condtionals. Thus return Yes iff recWinf (0, {𝑝 ∨ 𝑓 , 𝑝 ∨ 𝑏}) = nf (Δ) = {𝐴 ∨ 𝐵 | (𝐵|𝐴) ∈ Δ} Yes nf (Δ) = {𝐴𝐵 | (𝐵|𝐴) ∈ Δ} recWinf (𝑗 = 0, 𝐻 = {𝑝 ∨ 𝑓 , 𝑝 ∨ 𝑏}) 𝒱 = {{𝑏 ∨ 𝑓 }} are the sets of non-falsifying and falsifying formulas, respec- ℱ = {{𝑏 ∨ 𝑓, 𝑏 ∨ 𝑤}} tively, for the conditionals in Δ. (∀𝑁 ′ ∈ ℱ ∃𝑁 ∈ 𝒱 . 𝑁 ⊆ 𝑁 ′ ) = true 𝒱 ∩ ℱ = ∅ → return Yes Example 2. Let Δbird and OP (Δbird ) = (Δ0 , Δ1 ) as in Example 1. For 𝑆 = nf (Δ1 ) and 𝐻 = {𝑝𝑤} we get Thus, SWinf(Δbird , 𝑝, 𝑤) returns Yes, and 𝑝 |∼ wΔbird 𝑤. MSS (nf (Δ1 ), {𝑝𝑤}) = MSS ({𝑝 ∨ 𝑓 , 𝑝 ∨ 𝑏}, {𝑝𝑤}) = When asking whether 𝑤 can be inferred from 𝑝 in the con- {{𝑝 ∨ 𝑓 , 𝑝 ∨ 𝑏}}, and thus MCS (nf (Δ1 ), {𝑝𝑤}) = {∅}. text of Δbird with system W, SWinf(Δbird , 𝑝, 𝑤) yields No: For 𝑆 = nf (Δ0 ) and 𝐻 = nf (Δ1 ) ∪ {𝑝𝑤} we get recWinf (𝑗 = 1, 𝐻 = ∅) MSS (nf (Δ0 ), nf (Δ1 ) ∪ {𝑝𝑤}) 𝒱 = {∅} ℱ = {∅} =MSS ({𝑏 ∨ 𝑓, 𝑏 ∨ 𝑤}, {𝑝 ∨ 𝑓 , 𝑝 ∨ 𝑏, 𝑝𝑤}) (∀𝑁 ′ ∈ ℱ ∃𝑁 ∈ 𝒱 . 𝑁 ⊆ 𝑁 ′ ) = true ={{𝑏 ∨ 𝑤}} 𝒱 ∩ ℱ = {∅} 𝑗=1>0 and thus MCS (nf (Δ0 ), nf (Δ1 ) ∪ {𝑝𝑤}) = {{𝑏 ∨ 𝑓 }}. return Yes iff recWinf (0, {𝑝 ∨ 𝑓 , 𝑝 ∨ 𝑏}) = Yes In addition to using the minima as in Proposition 1 for computing |∼ wΔ , SWinf exploits the fact that the under- recWinf (𝑗 = 0, 𝐻 = {𝑝 ∨ 𝑓, 𝑝 ∨ 𝑏}) lying relation 𝜔 0 and assume the propo- 6. Algorithm SZinf for System Z sition holds for 𝑗 ′ = 𝑗 − 1. We show that recWinf (𝑗, 𝐻) returns “Yes” iff (5) holds by showing both directions of this Pearl’s system Z [20] is a well-known inductive inference equivalence. operator that was shown to coincide with rational closure Direction ⇒: Assume that recWinf (𝑗, 𝐻) returns [26, 27] “Yes”; therefore the algorithm reaches Line 13 at some point. Definition 6 (System Z [20]). Let Δ be consistent with It is left to show that (5) holds. Let 𝜔 ′ be any world in OP (Δ) = (Δ0 , . . . , Δ𝑘 ). The ranking function 𝜅𝑧Δ is de- Mod Σ (𝐻 ∧ 𝐴𝐵). W.l.o.g. assume that there is no 𝜔 ′* with fined as follows: If 𝜔 ∈ ΩΣ does not falsify any conditional 𝜉 𝑗 (𝜔 ′* ) ⫋ 𝜉 𝑗 (𝜔 ′ ). in Δ, then let 𝜅𝑧Δ (𝜔) := 0. Otherwise, let Δ𝑗 be the last part The algorithm passes Lines 5 and 6 without returning in OP (Δ) that contains a conditional falsified by 𝜔, and let “No”. Therefore, there is a world 𝜔 ∈ Mod Σ (𝐻 ∧ 𝐴𝐵) such 𝜅𝑧Δ (𝜔) := 𝑗 + 1. System Z maps Δ to the inference relation that 𝜉 𝑗 (𝜔) ⊆ 𝜉 𝑗 (𝜔 ′ ). W.l.o.g. assume that there is no 𝜔 * |∼ 𝑧Δ induced by 𝜅𝑧Δ according to (1). with 𝜉 𝑗 (𝜔 * ) ⊊ 𝜉 𝑗 (𝜔). We can distinguish two cases. Case 1: 𝜉 𝑗 (𝜔) ⫋ 𝜉 𝑗 (𝜔 ′ ). For any consistent Δ, the function 𝜅𝑧Δ is the unique least Because 𝐻 is an nf/f -condition for (Δ, 𝑗), all models of ranking model of Δ [20]. 𝐻, including 𝜔 and 𝜔 ′ , falsify the same conditionals in Δ𝑗+1 , . . . , Δ𝑘 . Therefore, 𝜔 0 and assume the proposi- (|Σ|, |Δ|)-combinations, in summary, 2 800 belief bases and tion holds for 𝑗 ′ = 𝑗 −1. By assumption 𝑆𝐴𝐵 𝑗+1 and 𝑆𝐴𝐵 𝑗+1 are 28 000 queries were created; the belief bases and queries consistent, and thus, by Lemma 4 we have 𝜅𝑧Δ (𝐴𝐵) < 𝑗 +2 obtained thereby are available at the CLKR repository [35] and 𝜅𝑧Δ (𝐴𝐵) < 𝑗 + 2. We can distinguish several cases at https://www.fernuni-hagen.de/wbs/clkr/ as problem set Case 1: 𝑆𝐴𝐵𝑗 is inconsistent CLKR-PS004. By Lemma 4 we have 𝜅𝑧Δ (𝐴𝐵) ⩾ 𝑗 + 1 implying that We benchmarked our (Partial Max-)SAT based Python 𝜅𝑧Δ (𝐴𝐵) ̸< 𝜅𝑧Δ (𝐴𝐵). Also, the check in Line 4 succeeds implementations of SWinf and SZinf against existing Java- and recZinf returns “No”. The proposition holds. based approaches for inference according to system-W (WJ) Case 2: 𝑆𝐴𝐵𝑗 is consistent and 𝑆𝐴𝐵 𝑗 is inconsistent and system-Z (ZJ) that both consider all possible worlds By Lemma 4 we have 𝜅𝑧Δ (𝐴𝐵) < 𝑗+1 and 𝜅𝑧Δ (𝐴𝐵) ⩾ 𝑗+1 explicitly [16, 31]. No other previous system implementa- implying that 𝜅𝑧Δ (𝐴𝐵) < 𝜅𝑧Δ (𝐴𝐵). The checks in Line 4 tions of system W exist, and to the best of our knowledge all and 7 fail and recZinf returns “Yes”. The proposition holds. other existing implementations of system Z, e.g., [36, 37, 38], Case 3: 𝑆𝐴𝐵𝑗 is consistent and 𝑆𝐴𝐵 𝑗 is consistent cannot handle belief bases over signature size of 50 or more. In this case the function recZinf is called recursively for 𝑗 − Performance was assessed on a machine with an Intel i7- 1. The preconditions for applying this proposition for 𝑗 ′ = 3770 CPU and 32GB RAM under Arch Linux (Linux kernel 𝑗−1 are satisfied, and therefore, by the induction hypothesis, 6) and Python 3.11 (single threaded). Each implementation recZinf (𝑗) returns “Yes” iff 𝜅𝑧Δ (𝐴𝐵) < 𝜅𝑧Δ (𝐴𝐵). The was tested on the full set of randomly generated belief bases proposition holds. and queries described above. The run times presented in Table 2 are averaged over 1,000 queries across 100 belief Using Proposition 3, we can now show the correctness of bases for every combination of (|Σ|, |Δ|). Time is presented SZinf. in ms, timeout was set to 5 minutes. Theorem 2. Given a consistent belief base Δ and 𝐴, 𝐵 ∈ The evaluation results in Table 2 show that only for the ℒΣ , the call SZinf(Δ, 𝐴, 𝐵) always terminates, and it re- very smallest (|Σ|, |Δ|)-combinations with |Σ| = 6 and turns “Yes” iff 𝐴 |∼ 𝑧Δ 𝐵. |Δ| = 6 the Java-based implementations WJ and ZJ of system W and system Z, respectively, are faster than our im- Proof. For 𝐴 ≡ ⊥, SWinf(Δ, 𝐴, 𝐵) returns “Yes” (cf. Line plementations of SWinf and SZinf. Furthermore, for every 14) and 𝐴 |∼ 𝑧Δ 𝐵, thus the theorem holds in this case. For (|Σ|, |Δ|) combination with |Σ| ⩾ 18 both WJ and ZJ ran the remainder of the proof assume that 𝐴 ̸≡ ⊥. into a timeout in our evaluation scenario, while SWinf and SWinf(Δ, 𝐴, 𝐵) terminates because for every recursive SZinf successfully cope with all (|Σ|, |Δ|) combinations call of recZinf the index 𝑗 is decreased by one, and the up to |Σ| = 120 and |Δ| = 200. It is interesting to note algorithm terminates at latest for 𝑗 = 0. For 𝑗 = 𝑘, the sets that SZinfconsistently performs faster than SWinf in our 𝑗+1 𝑆𝐴𝐵 and 𝑆𝐴𝐵 𝑗+1 are empty and are thus trivially consistent. evaluation only by a factor of up to 2 across all (|Σ|, |Δ|) By Proposition 3, the call SWinf(Δ, 𝐴, 𝐵) returns “Yes” iff combinations. In summary, this comparative evaluation 𝜅𝑧Δ (𝐴𝐵) < 𝜅𝑧Δ (𝐴𝐵), which is equivalent to 𝐴 |∼ 𝑧Δ 𝐵. showcases SWinf’s and SZinf’s superior scalability and ef- |Σ| 6 8 10 12 14 16 18 20 30 40 50 60 60 60 60 80 80 80 80 100 100 100 100 120 120 120 120 120 |Δ| 6 8 10 12 14 16 18 20 30 40 50 60 80 100 120 60 80 120 160 60 100 160 200 60 80 120 160 200 WJ 19 204 4967 248323 to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. SWinf 32 37 44 49 53 55 61 64 87 106 157 156 181 218 259 130 212 254 343 135 294 320 407 123 179 785 334 403 ZJ 11 52 302 1705 10337 80014 to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. to. SZinf 32 35 38 40 42 44 45 46 55 62 74 78 106 129 143 78 95 150 200 75 104 175 219 75 92 128 177 224 Table 2 Evaluation of implementations of inference with system W and system Z, time in milliseconds, timeout (to.) is at 5 min. ficiency, particularly in handling queries on larger belief [5] D. Dubois, H. Prade, Conditional objects as nonmono- bases within reasonable time frames. tonic consequence relationships, Special Issue on Con- ditional Event Algebra, IEEE Transactions on Systems, Man and Cybernetics 24 (1994) 1724–1740. 9. Conclusions and Future Work [6] S. Benferhat, D. Dubois, H. Prade, Nonmonotonic reasoning, conditional objects and possibility theory, In this paper, we presented SAT and Partial MaxSAT based Artificial Intelligence 92 (1997) 259–276. approaches for implementing nonmonotonic reasoning with [7] G. Kern-Isberner, Conditionals in nonmonotonic rea- system Z and system W. We presented the corresponding soning and belief revision, volume 2087 of LNAI, algorithms SZinf and SWinf and gave formal correctness Springer, 2001. proofs for them. The Python-based implementations of [8] C. Beierle, C. Eichhorn, G. Kern-Isberner, S. Kutsch, SZinf and SWinf use the power of current SAT and Partial Properties and interrelationships of skeptical, weakly MaxSAT solvers and scale up reasoning both with system Z skeptical, and credulous inference induced by classes and system W to a new dimension, easily coping with belief of minimal models, Artificial Intelligence 297 (2021) bases over 120 variables and containing up to 200 condition- 103489. doi:10.1016/j.artint.2021.103489. als. This advancement also puts larger practical applications [9] M. Goldszmidt, J. Pearl, Qualitative probabilities for into reach for the first time. default reasoning, belief revision, and causal modeling, Our current and future work includes extending the pre- Artificial Intelligence 84 (1996) 57–112. sented work in multiple ways. For instance, while the eval- [10] C. Komo, C. Beierle, Nonmonotonic reasoning from uation presented in Section 8 focuses on runtime, we will conditional knowledge bases with system W, Ann. further evaluate SZinf and SWinf by taking also the mem- Math. Artif. Intell. 90 (2022) 107–144. doi:10.1007/ ory consumption into account. We will also analyse the s10472-021-09777-9. complexity of the algorithms. While previous practical ap- [11] D. Lehmann, M. Magidor, What does a conditional plications were limited by small belief base sizes, we will knowledge base entail?, Artif. Intell. 55 (1992) 1–60. address larger and more realistic scenarios in the medical [12] S. Benferhat, C. Cayrol, D. Dubois, J. Lang, H. Prade, and bio-medical domain as they have already been modelled Inconsistency Management and Prioritized Syntax- with conditional logic [39], using the new opportunities Based Entailment, in: Proc. IJCAI’93, volume 1, Mor- opened up by the enriched power of our new implementa- gan Kaufmann Publishers, San Francisco, CA, USA, tions of nonmonotonic inference. 1993, pp. 640–647. [13] G. Kern-Isberner, C. Beierle, G. Brewka, Syntax split- Acknowledgments ting = relevance + independence: New postulates This work was supported by the Deutsche Forschungs- for nonmonotonic reasoning from conditional belief gemeinschaft (DFG, German Research Foundation) - bases, in: D. Calvanese, E. Erdem, M. Thielscher (Eds.), 512363537, grant BE 1700/12-1 awarded to Christoph Principles of Knowledge Representation and Reason- Beierle. ing: Proceedings of the 17th International Confer- ence, KR 2020, IJCAI Organization, 2020, pp. 560–571. doi:10.24963/kr.2020/56. References [14] J. Haldimann, C. Beierle, Inference with system W satisfies syntax splitting, in: G. Kern-Isberner, G. Lake- [1] E. Adams, The Logic of Conditionals, D. Reidel, Dor- meyer, T. Meyer (Eds.), Proceedings of the 19th In- drecht, 1975. ternational Conference on Principles of Knowledge [2] D. Nute, Topics in Conditional Logic, D. Reidel Pub- Representation and Reasoning, KR 2022, Haifa, Is- lishing Company, Dordrecht, Holland, 1980. rael. July 31 - August 5, 2022, 2022, pp. 405–409. [3] W. Spohn, Ordinal conditional functions: a dynamic doi:10.24963/kr.2022/41. theory of epistemic states, in: W. Harper, B. Skyrms [15] J. Heyninck, G. Kern-Isberner, T. Meyer, J. P. (Eds.), Causation in Decision, Belief Change, and Statis- Haldimann, C. Beierle, Conditional syntax splitting for tics, II, Kluwer Academic Publishers, 1988, pp. 105– non-monotonic inference operators, in: B. Williams, 134. Y. Chen, J. Neville (Eds.), Proceedings of the 37th AAAI [4] S. Kraus, D. Lehmann, M. Magidor, Nonmonotonic Conference on Artificial Intelligence, volume 37, 2023, reasoning, preferential models and cumulative logics, pp. 6416–6424. doi:10.1609/aaai.v37i5.25789. Artif. Intell. 44 (1990) 167–207. [16] C. Beierle, J. Haldimann, D. Kollar, K. Sauerwald, L. Schwarzer, An implementation of nonmonotonic (Eds.), Proceedings of the 1st International Confer- reasoning with system W, in: R. Bergmann, L. Mal- ence on Principles of Knowledge Representation and burg, S. C. Rodermund, I. J. Timm (Eds.), KI 2022: Ad- Reasoning (KR’89). Toronto, Canada, May 15-18 1989, vances in Artificial Intelligence - 45th German Con- Morgan Kaufmann, 1989, pp. 212–222. ference on AI, Trier, Germany, September 19-23, 2022, [27] M. Goldszmidt, J. Pearl, On the relation between ratio- Proceedings, volume 13404 of LNCS, Springer, 2022, nal closure and system-z, in: Proceedings of the Third pp. 1–8. doi:10.1007/978-3-031-15791-2_1. International Workshop on Nonmonotonic Reasoning, [17] C. Beierle, A. Spang, J. Haldimann, A Partial MaxSAT May 31 – June 3, 1990, pp. 130–140. approach to nonmonotonic reasoning with system [28] N. Bjørner, L. de Moura, L. Nachmanson, C. M. Winter- W, in: Proceedings of the 37th International Florida steiger, Programming Z3, Engineering Trustworthy Artificial Intelligence Research Society Conference, Software Systems: 4th International School, SETSS 2024. doi:10.32473/FLAIRS.37.1.135330. 2018, Chongqing, China, April 7–12, 2018, Tutorial [18] B. de Finetti, La prévision, ses lois logiques et ses Lectures 4 (2019) 148–201. sources subjectives, Ann. Inst. H. Poincaré 7 (1937) [29] M. Gario, A. Micheli, Pysmt: a solver-agnostic library 1–68. Engl. transl. Theory of Probability, J. Wiley & for fast prototyping of smt- based algorithms, in: SMT Sons, 1974. Workshop 2015, 2015. [19] C. Komo, C. Beierle, Nonmonotonic inferences with [30] N. S. Bjørner, A. Phan, L. Fleckenstein, 𝜈z - an op- qualitative conditionals based on preferred structures timizing SMT solver, in: C. Baier, C. Tinelli (Eds.), on worlds, in: U. Schmid, F. Klügl, D. Wolter Tools and Algorithms for the Construction and Analy- (Eds.), KI 2020: Advances in Artificial Intelligence - sis of Systems - 21st International Conference, TACAS 43rd German Conference on AI, Bamberg, Germany, 2015, Held as Part of the European Joint Confer- September 21-25, 2020, Proceedings, volume 12325 ences on Theory and Practice of Software, ETAPS of LNCS, Springer, 2020, pp. 102–115. doi:10.1007/ 2015, London, UK, April 11-18, 2015. Proceedings, 978-3-030-58285-2_8. volume 9035 of LNCS, Springer, 2015, pp. 194–199. [20] J. Pearl, System Z: A natural ordering of defaults doi:10.1007/978-3-662-46681-0_14. with tractable applications to nonmonotonic reason- [31] S. Kutsch, C. Beierle, InfOCF-Web: An online tool ing, in: Proc. of the 3rd Conf. on Theoretical Aspects for nonmonotonic reasoning with conditionals and of Reasoning About Knowledge (TARK’1990), Morgan ranking functions, in: Z. Zhou (Ed.), Proceedings of the Kaufmann Publ. Inc., San Francisco, CA, USA, 1990, Thirtieth International Joint Conference on Artificial pp. 121–135. Intelligence, IJCAI 2021, ijcai.org, 2021, pp. 4996–4999. [21] C. Beierle, C. Eichhorn, G. Kern-Isberner, Skeptical doi:10.24963/ijcai.2021/711. inference based on c-representations and its charac- [32] M. von Berg, A. Sanin, C. Beierle, An implementation terization as a constraint satisfaction problem, in: of nonmonotonic reasoning with c-representations M. Gyssens, G. Simari (Eds.), Foundations of Informa- using an SMT solver, Int. J. Approx. Reason. 175 (2024) tion and Knowledge Systems - 9th International Sym- 109285. doi:10.1016/j.ijar.2024.109285. posium, FoIKS 2016, Linz, Austria, March 7–11, 2016. [33] J. Haldimann, C. Beierle, G. Kern-Isberner, T. Meyer, Proceedings, volume 9616 of LNCS, Springer, 2016, pp. Conditionals, infeasible worlds, and reasoning with 65–82. doi:10.1007/978-3-319-30024-5_4. system W, The International FLAIRS Conference [22] J. Haldimann, C. Beierle, Properties of system W and Proceedings 36 (2023). doi:10.32473/flairs.36. its relationships to other inductive inference operators, 133268. in: I. Varzinczak (Ed.), Foundations of Information and [34] J. P. Haldimann, T. Meyer, G. Kern-Isberner, C. Beierle, Knowledge Systems - 12th International Symposium, Rational closure extension in spo representable in- FoIKS 2022, Helsinki, Finland, June 20-23, 2022, Pro- ductive inference operators, in: S. Gaggl, M. V. ceedings, volume 13388 of LNCS, Springer, 2022, pp. Martinez, M. Ortiz (Eds.), Logics in Artificial Intel- 206–225. doi:10.1007/978-3-031-11321-5_12. ligence 18th European Conference, JELIA 2023, Dres- [23] J. Haldimann, C. Beierle, Characterizing multiprefer- den, Germany, September 20–22, 2023, Proceedings, ence closure with system W, in: F. D. de Saint-Cyr, volume 12678 of LNCS, Springer, 2023, pp. 561–576. M. Öztürk-Escoffier, N. Potyka (Eds.), Scalable Uncer- doi:10.1007/978-3-031-43619-2_38. tainty Management - 15th International Conference, [35] C. Beierle, J. Haldimann, L. Schwarzer, CLKR – Con- SUM 2022, Paris, France, October 17-19, 2022, Proceed- ditional Logic and Knowledge Representation, KI – ings, volume 13562 of LNCS, Springer, 2022, pp. 79–91. Künstliche Intelligenz (2024). URL: https://doi.org/10. doi:10.1007/978-3-031-18843-5_6. 1007/s13218-024-00842-z. [24] J. Haldimann, C. Beierle, Approximations of system [36] M. Thimm, Tweety: A comprehensive collection of W for inference from strongly and weakly consistent java libraries for logical aspects of artificial intelli- belief bases, Int. J. Approx. Reason. 175 (2024) 109295. gence and knowledge representation, in: C. Baral, doi:10.1016/j.ijar.2024.109295. G. D. Giacomo, T. Eiter (Eds.), Principles of Knowl- [25] J. Larrosa, E. Rollon, Towards a better understanding of edge Representation and Reasoning: Proceedings of (partial weighted) MaxSAT proof systems, in: L. Pulina, the Fourteenth International Conference, KR 2014, Vi- M. Seidl (Eds.), Theory and Applications of Satisfia- enna, Austria, July 20-24, 2014, AAAI Press, 2014, pp. bility Testing - SAT 2020 - 23rd International Con- 528–537. URL: http://www.aaai.org/ocs/index.php/KR/ ference, Alghero, Italy, July 3-10, 2020, Proceedings, KR14/paper/view/7811. volume 12178 of LNCS, Springer, 2020, pp. 218–232. [37] C. Beierle, C. Eichhorn, S. Kutsch, A practical compar- URL: https://doi.org/10.1007/978-3-030-51825-7_16. ison of qualitative inferences with preferred ranking [26] D. Lehmann, What does a conditional knowledge base models, KI – Künstliche Intelligenz 31 (2017) 41–52. entail?, in: R. J. Brachman, H. J. Levesque, R. Reiter doi:10.1007/s13218-016-0453-9. [38] A. Labecki, System Z default reasoning solver, 2017. URL: https://github.com/alabecki/System-Z, (accessed on 19/07(2924). [39] J. Haldimann, A. Osiak, C. Beierle, Modelling and reasoning in biomedical applications with qualitative conditional logic, in: U. Schmid, F. Klügl, D. Wolter (Eds.), KI 2020: Advances in Artificial Intelligence - 43rd German Conference on AI, volume 12325 of LNCS, Springer, 2020, pp. 283–289. doi:10.1007/ 978-3-030-58285-2_24.