scieee AI-readable full text Open interactive document viewer

MaxSAT resolution with inclusion redundancy

Bonacina, Ilario,Bonet Carbonell, M. Luisa,Lauria, Massimo

Abstract

Popular redundancy rules for SAT are not necessarily sound for MaxSAT. The works of [Bonacina-Bonet-Buss-Lauria’24] and [Ihalainen-Berg-Järvisalo’22] proposed ways to adapt them, but required specific encodings and more sophisticated checks during proof verification. Here, we propose a different way to adapt redundancy rules from SAT to MaxSAT. Our rules do not require specific encodings, their correctness is simpler to check, but they are slightly less expressive. However, the proposed redundancy rules, when added to MaxSAT-Resolution, are already strong enough to capture Branch-and-bound algorithms, enable short proofs of the optimal cost of notable principles (e.g., the Pigeonhole Principle and the Parity Principle), and allow to break simple symmetries (e.g., XOR-ification does not make formulas harder).

Full text

MaxSAT Resolution with Inclusion Redundancy Ilario Bonacina # Universitat Politècnica de Catalunya, Barcelona, Spain Maria Luisa Bonet # Universitat Politècnica de Catalunya, Barcelona, Spain Massimo Lauria # Sapienza Università di Roma, Italy Abstract Popular redundancy rules for SAT are not necessarily sound for MaxSAT. The works of [Bonacina- Bonet-Buss-Lauria’24] and [Ihalainen-Berg-Järvisalo’22] proposed ways to adapt them, but required specific encodings and more sophisticated checks during proof verification. Here, we propose a different way to adapt redundancy rules from SAT to MaxSAT. Our rules do not require specific encodings, their correctness is simpler to check, but they are slightly less expressive. However, the proposed redundancy rules, when added to MaxSAT-Resolution, are already strong enough to capture Branch-and-bound algorithms, enable short proofs of the optimal cost of notable principles (e.g., the Pigeonhole Principle and the Parity Principle), and allow to break simple symmetries (e.g., XOR-ification does not make formulas harder). 2012 ACM Subject Classification Theory of computation → Proof complexity; Theory of computation →Complexity theory and logic Keywords and phrases MaxSAT, Redundancy, MaxSAT resolution, Branch-and-bound, Pigeonhole principle, Parity Principle Digital Object Identifier 10.4230/LIPIcs.SAT.2024.7 Funding Ilario Bonacina: The author was supported by grant PID2022-138506NB-C22 (PROOFS BEYOND) funded by AEI. Maria Luisa Bonet: The author was supported by grant PID2022-138506NB-C22 (PROOFS BEYOND) funded by AEI. Massimo Lauria: The author has been supported by the project PRIN 2022 “Logical Methods in Combinatorics” N. 2022BXH4R5 of the Italian Ministry of University and Research (MIUR). 1 Introduction MaxSAT is the problem of finding an assignment that minimizes the number of falsified clauses in a given CNF formula. Several variants of MaxSAT exist that, for example, allow to give different weights to clauses, or enforce some clauses to be hard requirements for the solution. While all state-of-the-art SAT-solvers are more or less based on the same theoretical approach, there is more variety among state-of-the-art MaxSAT solvers, e.g., core-guided, minimum-hitting-set, branch-and-bound, and MaxSAT Resolution [ 27 , 4 ]. Here we focus mostly on MaxSAT Resolution and we make some observations about branch-and-bound (in Section 5). MaxSAT Resolution was first defined in [ 15 ] and proved complete for MaxSAT in [ 12 ]. Although MaxSAT is a much harder problem than SAT, in some cases MaxSAT solvers can be adapted to be more efficient than CDCL SAT-solvers on hard problems, for instance dual-rail MaxSAT Resolution [10] has short proofs of the Pigeonhole Principle. We propose new proof systems for MaxSAT by incorporating redundancy rules into MaxSAT resolution. Redundancy rules were introduced in SAT solving to allow the introduction of clauses that preserve satisfiability even though they are not logical consequences. ©Ilario Bonacina, Maria Luisa Bonet, and Massimo Lauria; licensed under Creative Commons License CC-BY 4.0 27th International Conference on Theory and Applications of Satisfiability Testing (SAT 2024). Editors: Supratik Chakraborty and Jie-Hong Roland Jiang; Article No. 7; pp. 7:1–7:15 Leibniz International Proceedings in Informatics Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany 7:2 MaxSAT Resolution with Inclusion Redundancy In other words, redundant clauses formalize the notion of reasoning “without loss of generality” [ 29 ] by restricting the space of solutions without killing it entirely. The first type of redundancy rules considered were Blocked Clauses ( BC ) [ 26 ] and Resolution Asymmetric Tautologies ( RAT ) [ 23 , 18 ]. BC , RAT and stronger redundancy rules are extensively used in proof logging of pre-processing and in-processing of state-of-the-art SAT-solvers, and hence are extensively studied in the literature, for instance in [ 16 , 17 , 19 , 21 , 24 , 30 ]. Particularly relevant to this article is the work of Buss and Thapen [ 13 ]. Redundancy rules strengthen significantly the Resolution proof system, for instance allowing to prove efficiently the Pigeonhole Principle [21]. Redundancy rules for MaxSAT can only add clauses that do not increase the minimum number of falsified clauses, and the usual redundancy checks used in SAT do not provide any guarantees on that. Recently, some papers have proposed ways to integrate and study redundancy rules in MaxSAT. The work of Ihalainen, Berg and Järvisalo [ 22 ], building on [ 6 ], studies the advantage of redundancy to preprocess MaxSAT instances. Proof system veriPB [ 7 ] includes redundancy rules, among many others. Being rooted in cutting planes, veriPB is particularly apt at certifying optimality, and it can log the reasoning of MaxSAT solver strategies that are way out of reach of MaxSAT resolution [ 5 ]. In contrast to these works, the explicit goal of the of Bonacina, Buss, Bonet, Lauria [ 8 ] is to study the proof complexity of redundancy rules for MaxSAT in a similar vein of what [ 13 ] does for SAT, something that is beyond the scope of those other works, more focused on proof logging actual solvers. To witness that a clause is redundant for SAT it is sufficient to provide an appropriate variable substitution, and even that is not necessary for the weakest forms of redundancy like BC . For MaxSAT, a proof must witness that the redundant clause preserves optimality. In [ 22 ] the authors do not provide a polynomially checkable methods for their most powerful rule, but they do for the simplest ones. In [ 7 ] they leverage the underlying language cutting planes, usually strong enough to prove the redundancy of a clause explicitly. The work in [ 8 ] gives a simple condition that is easy to check and allow to reuse all redundancy rule from [13] in the MaxSAT setting. The scope of this paper is to understand the power of redundancy rules in the context of MaxSAT and MaxSAT resolution. We analyze forms of redundancy that are simple, and yet add non-trivial power to MaxSAT resolution. In particular, we adapt the rules from [ 13 ], namely Literal Propagation Redundancy ( LPR ), Subset Propagation Redundancy (SPR), Propagation Redundancy (PR), or Substitution Redundancy (SR), to the context of MaxSAT. For simplicity of presentation, we develop our redundancy rules in a setting where all clauses are soft. Everything generalizes easily to a setting with soft/hard clauses. There, the hard clauses would be manipulated by standard resolution, while the soft clauses would be subjected to MaxSAT resolution and our new redundancy rules. That setting would make the arguments more cumbersome, without providing any further technical insight. We stress again that this paper does not provide strong proof systems for MaxSAT. Even MaxSAT-Resolution +i SR , which the stronger proof system presented here, is easily simulated by veriPB, a very strong proof system that captures most proof techniques in SAT/CP solving and optimization. Our goal is quite the opposite: we add redundancy in the least intrusive way possible to a simple proof system for MaxSAT, and we investigate its strength. In this setting lower bounds could be reachable, at least for weak redundancy rules as i SPR . On the contrary lower bounds for veriPB are way beyond the reach of current techniques. Moreover, regarding proof logging applications, the framework we propose captures simple branch-and-bound algorithms, it is plausible it could capture some branch-and-bound usage from MaxCDCL [ 28 ], and can also witness some preprocessing techniques. On the other hand, I. Bonacina, M. L. Bonet, and M. Lauria 7:3 it is unlikely that MaxSAT-Resolution +i SR could capture core-guided MaxSAT. Nevertheless, a small advantage over veriPB is that DRAT/PR verifiers can be adapted to work with our framework with minimal effort. The redundancy rules in [ 22 , 8 , 7 ] are all variants of rules LPR , SPR , PR , SR as given in [ 13 ]. All these variants rely on a specific, although common, blocking variables encoding of MaxSAT instances. Furthermore, every time a redundant clause is added to the proof, the verifier must check that cost is preserved. In this work we follow a different approach. Essentially, we show that BC and suitable variants of LPR , SPR , PR and SR rules are already cost-preserving, thus no additional check is necessary. Moreover, our approach works even without the blocking variable encoding. To give a concrete idea, when studying satisfiability we say that a clause C is redundant w.r.t. a set of clauses Γif there exists a partial assignment α that satisfies C and such that Γ |C| = Γ |α ; that is, the set of clauses Γ |C , i.e., the clauses of Γrestricted by the assignment which is the negation of C , logically imply all the clauses in Γ |α . In other words, if we can find a solution of Γassuming C is false, there is also a solution of Γassuming the partial assignment α . Unfortunately the relation | =is not polynomially checkable therefore the relation is substituted with unit-propagation ⊢1 , a simpler form of logical implication which is efficiently checkable. This notion is fine for satisfiability, but unfortunately the ⊢1 relation is not cost-preserving: the central idea in this paper is to consider ⊆ instead of ⊢1 in the redundancy condition. In the context of MaxSAT, we say that a clause C is redundant w.r.t. a multiset of clauses Γ, when Γ |C⊇ Γ |α for some α that satisfies C . Recall that inclusion between multiset takes multiple occurrences in account. We define rules i LPR ,i SPR ,i PR and i SR that are the “inclusion” versions of redundancy rules LPR , SPR , PR , and SR (Definition 3.2). There is no inclusion version of BC since it is already defined using inclusion. This change makes the rules immediately cost-preserving, thus avoids the extra check on the cost and the blocking variables encoding, needed in [ 22 , 8 , 7 ]. The relation ⊇ is weaker than ⊢1 , therefore, in principle, our rules are formally less expressive. This does not seem to be a limitation: in the context of SAT, all the upper bounds for hard tautologies showed in [ 13 ], while described using the SPR rule, do not use unit-propagation but only inclusion, even if the SPR rule would have allowed it. Adding redundancy rules to the resolution proof system makes it stronger. We add our new rules to the MaxSAT-Resolution proof system (Definition 3.4) and we see that indeed it becomes more powerful: we see that some hard contradictions for MaxSAT-Resolution become easy (the Pigeonhole Principle and the Parity Principle, Theorem 4.3 and Theorem 4.4 resp.), and we show that we can “undo” the effect of xorifications (Theorem 4.5). Both the Pigeonhole Principle and the Parity Principle are exponentially hard for MaxSAT-Resolution , since a MaxSAT-Resolution proof of cost at least 1is also, syntactically, a Resolution refutation, and the principles above are exponentially hard for Resolution [14]. One goal of proof systems for MaxSAT is to capture the reasoning of MaxSAT solvers and it turns out that the i PR rule is quite apt at logging Branch-and-Bound ( BnB ) approaches to optimization. In its simplest form, the BnB approach explores the possible assignments for a CNF formula in a tree-like fashion, in order to find one that satisfies the largest number of clauses, cutting the branches that are bound to give solutions worse than the best one discovered so far. This works well in many scenarios, but historically has not performed well on MaxSAT industrial instances. Recently, though, a better integration with CDCL has made BnB competitive again [ 28 ]. As a proof of concept we show how the basic BnB approach can be simulated in MaxSAT-Resolution+iPR. SAT 2024 7:4 MaxSAT Resolution with Inclusion Redundancy Structure of the Paper Section 2 contains notation and preliminaries. In Section 3 we introduce the redundancy rules for MaxSAT and proof systems for MaxSAT based on them. Section 4 showcases the strength of the system. We give short refutation of the Pigeonhole Principle, the Parity Principle, and show how to undo xor-ifications. In Section 5 we show how to simulate in the system Branch-and-bound algorithms. Finally, Section 6 contains some concluding remarks and open problems. 2 Preliminaries Basic Notation. For n∈N, let [n] = {1, . . . , n}. We denote with capital Roman or Greek letters sets and multisets. The size of a multiset S is |S| , the number of elements in S (counted with multiplicity). Given two multisets S, T , S is included in T ( S⊆T ) if each element of Sappears in Twith multiplicity at least the multiplicity it had in S. ABoolean variable x is a variable that takes values ⊤ (true) or ⊥ (false). A literal is a Boolean variable x or its negation x . We consider fixed a finite set X of Boolean variables and let X = {x|x∈X} . A clause is a finite disjunction of literals. A clause D is a weakening of a clause Cif D=C∨C′for some clause C′. The empty disjunction is ⊥. A map σ:X∪X∪ {⊤,⊥} → X∪X∪ {⊤,⊥} is a substitution if σ is the identity on {⊤,⊥} , and for each x∈X , σ ( x ) = σ(x) , where ⊤ = ⊥ , ⊥ = ⊤ , and for each Boolean variable x , x = x . The composition σ◦τ of two substitutions σ, τ is also a substitution, where σ◦τ(v) = σ(τ(v)) for every v∈X∪X∪ {⊤,⊥}. A substitution σ is an assignment if for every ℓ∈X∪X , either σ ( ℓ ) = ℓ or σ ( ℓ ) ∈ {⊤,⊥} . An assignment τ extends an assignment σ if σ−1 ( {⊤,⊥} ) ⊆τ−1 ( {⊤,⊥} ). An assignment σ is total if for every ℓ∈X∪X , σ ( ℓ ) ∈ {⊤,⊥} . The domain of an assignment σ is dom(σ) = σ−1({⊤,⊥}). Given a clause Wx∈Lℓ and a substitution σ , the restriction of C under σ is C|σ = Wx∈Lσ ( ℓ ), simplified using the usual logic rules ( ⊤ ∨ ℓ = ⊤ , ℓ∨ℓ = ℓ , etc.). A substitution σ satisfies a clause C if C|σ is a tautology, i.e., C|σ is a weakening either of ⊤ or x∨x for some variable x . Given a clause C = Wℓ∈Lℓ , we denote with C the assignment given by σ ( ℓ ) = ⊥ and σ(ℓ) = ⊤if ℓ∈Land the identity otherwise. In particular, C|C=⊥. Given a set of clauses Γand a substitution σ , the restriction of Γunder σ is the multiset Γ |σ = {C|σ : C∈ Γ and σ| = C} . A substitution σ satisfies a multiset of clauses Γ( σ| = Γ) if σ satisfies all the clauses in Γ, i.e., Γ |σ = ∅ . A multiset of clauses Γentails a multiset of clauses ∆if for every substitution σs.t. σ|= Γ it holds σ|= ∆. ▶ Fact 1. If S, T are multisets of clauses with S⊆T and σ is a substitution then S|σ⊆T|σ . ▶ Fact 2 ([ 13 , Lemma 1.1]). If S is a multiset of clauses and σ , τ are substitutions, then (S|σ)|τ=S|τ◦σ. MaxSAT and MaxSAT-Resolution .Given a multiset of clauses S , MaxSAT asks to find the maximum number of clauses in S that can be simultaneously satisfied. Equivalently, find a total assignment mapping to ⊥ the smallest number of clauses in S possible. The cost of a multiset of clauses S is cost ( S ), the minimum of size of S|α over all possible total assignments α . Notice that for a total assignment α , S|α is a multiset of the form {⊥,...,⊥} . The goal of proof systems for MaxSAT is to show lower bounds on the cost of MaxSAT instances. One of such systems is MaxSAT-Resolution which was introduced in [ 15 ] and proved complete in [ 12 ]. We present the system using the rules of [ 2 ], first used in the context of MaxSAT in [11]. I. Bonacina, M. L. Bonet, and M. Lauria 7:5 ▶ Definition 2.1 ( MaxSAT-Resolution ).A sequence of multisets ( Si ) i∈[m] is a derivation of Smfrom S1in MaxSAT-Resolution if for each i∈[m]either (i) Si+1 = (Si\ {C∨x, C ∨x})∪ {C}where {C∨x, C ∨x} ⊆ Si(symm. cut); or (ii) Si+1 = (Si\ {C})∪ {C∨x, C ∨x}where C∈Si(split). The size of the derivation is Pi∈[m]|Si|. It is known that MaxSAT-Resolution is sound and complete for MaxSAT: Soundness Whenever ( Si ) i∈[m] is a MaxSAT-Resolution derivation, cost ( S1 ) = cost ( Sm ). Therefore, if ⊥ appears in Sm with multiplicity k , then trivially cost ( Sm ) ≥k and we say that the MaxSAT-Resolution derivation certifies cost ( S1 ) ≥k , since cost ( S1 ) = cost ( Sm ). Completeness Whenever cost ( S1 ) = k there is a MaxSAT-Resolution derivation ( Si ) i∈[m] where ⊥ occurs k times in Sm , and all the remaining clauses in Sm are satisfiable [ 12 , Theorem 10]. 3 Cost-preserving rules In the context of SAT, a clause C is redundant w.r.t. a set of clauses F if adding C to F does not affect its satisfiability or unsatisfiability, i.e., F∪ {C} is satisfiable if and only if F is satisfiable [26]. In particular if F|=C, then Cis redundant. In the context of MaxSAT the intuition is similar, a clause C is redundant w.r.t. a multiset of clauses S if adding C to S does not affect the cost. In this context, even when F| = C , it is not clear that C is redundant w.r.t. S . The notion of redundancy for MaxSAT was introduced in [22] in a slightly different setting than ours. ▶ Definition 3.1 (redundant clause).A clause C is redundant w.r.t. a multiset of clauses S if cost(S) = cost(S∪ {C}). Notice that C is redundant w.r.t. S if and only if there exists a total assignment β with |S|β| = cost ( S )and β| = C . In particular, if C is redundant w.r.t. S , then the clause C could be added to S with arbitrary multiplicity without changing the cost, i.e., cost ( S ) = cost(S∪ {C}) = cost(S∪ {C, . . . , C}). Unless P= NP , it is not polynomially checkable whether a clause C is redundant w.r.t. a multiset of clauses S , therefore, as in the context of SAT, we consider polynomially verifiable notions of redundancy, i.e., ways of adding redundant clauses (as per Definition 3.1) while certifying efficiently their redundancy. In [ 8 ] the authors described a systematic way of porting to MaxSAT the notions of efficiently certifiable redundancy already studied in the literature of SAT [ 20 ], for example the systems SR / PR / SPR / LPR / BC . This relied on (1) a particular form of the MaxSAT instance considered, and (2) an additional condition to enforce the correctness for MaxSAT. By considering limited versions of the rules SR / PR / SPR / LPR / BC , we show a conceptually simpler way of adding redundancy rules to MaxSAT. This approach is alternative to the one in [8, 22]. ▶ Definition 3.2 (Inclusion Substitution Redundant, i SR ).A clause C is Inclusion Substitution Redundant (iSR)w.r.t. a multiset of clauses Sif exists a substitution σs.t. (S∪ {C})|σ⊆S|C. If the substitution σ has some additional structure, we also have the following redundancy rules, listed in decreasing order of generality: Inclusion Propagation Redundant (iPR)if σis an assignment. Inclusion Subset Propagation Redundant (iSPR) if σ is an assignment with the same domain of C. Hence σdiffers from Cin the value given to some variables. SAT 2024 7:6 MaxSAT Resolution with Inclusion Redundancy Inclusion Literal Propagation Redundant (iLPR) if σ is an assignment with the same domain of Cand differs from Cin the value given to exactly one variable. Blocked Clause (BC) if σ is an assignment with the same domain of C and differs from C in the value given to exactly one variable x , and moreover for every clause in D∈S containing the variable x,σ|=D.1 Notice that while BC and i LPR might look very similar, they are distinct concepts. For instance, the clause C = x is i LPR w.r.t. S = {y, y ∨x, y ∨x} but it is not BC w.r.t. the same set. Another redundancy rule is SBC , a generalization of BC defined in [ 25 ] which we do not address explicity. As it happens for BC and i LPR , SBC is a valid redundancy rule for MaxSAT and a proper special case of i SPR . For instance, the clause C = {x∨z} is i SPR w.r.t. F={y, y ∨x, y ∨x, y ∨x∨z, y ∨x∨z}, but it is not SBC (nor iLPR). ▶ Lemma 3.3. If a clause C is i SR w.r.t a multiset of clauses S , then C is redundant w.r.t. S, i.e., cost(S) = cost(S∪ {C}). Proof. Clearly cost ( S ) ≤cost ( S∪ {C} ). To prove the other inequality, let k = cost ( S )and let β be a total assignment such that |S|β| = k . If β| = C , then we are done. Suppose then C|β = ⊥ . That is β extends C . By assumption, there is a substitution σ such that ( S∪{C} ) |σ⊆S|C . Therefore ( S∪{C} ) |β◦σ⊆S|β◦C = S|β . Hence | ( S∪{C} ) |β◦σ|≤|Sβ| = k , and cost(S∪ {C})≤k.◀ Checking whether a clause is i SR w.r.t. S , given the substitution σ , is doable in polynomial time. Therefore we can extend any proof system for MaxSAT with a rule that introduces iSR clauses. We now consider such extension for MaxSAT-Resolution. ▶ Definition 3.4 ( MaxSAT-Resolution+ i SR ).A sequence of multisets ( Si ) i∈[m] is a derivation of Sm from S1 in MaxSAT-Resolution + i SR if for each i∈ [ m ]either one of the cases (i),( ii ) of the definition of MaxSAT-Resolution occur, or (iii) Si+1 =Si∪ {C}where Cis iSR w.r.t. Si; (iv) Si+1 =Si\ {C}where Cis iSR w.r.t. Si\ {C}. Each occurrence of the rules (iii) and (iv) is accompanied by the corresponding substitution σ witnessing the validity of the rule. The size of the derivation is Pi∈[m]|Si| . The definition of MaxSAT-Resolution+Rfor any R∈ {iPR,iSPR,iLPR,BC}is analogous. We only consider the case where MaxSAT-Resolution +iSR derivation are not allowed to introduce new variables, since introducing new variables makes the systems as strong as Extended Resolution [ 26 ]. To be consistent with [ 13 ], the rules/systems should be called MaxSAT-Resolution +i SR− , where the “ − ” is used to indicate that the systems are not allowed to introduce new variables. We ignore that convention to ease notation. The system MaxSAT-Resolution +iSR is sound and complete. Soundness Lemma 3.3 and the soundness of MaxSAT-Resolution immediately imply that MaxSAT-Resolution + i SR is also sound, i.e., whenever ( Si ) i∈[m] is a MaxSAT-Resolution + i SR derivation, cost ( S1 ) = cost ( Sm ). Therefore, as in the case of MaxSAT-Resolution , we say that the MaxSAT-Resolution + i SR derivation certifies cost ( S1 ) ≥k if Sm contains ⊥with multiplicity at least k. Completeness The completeness of MaxSAT-Resolution + i SR is immediate from the completeness of the system MaxSAT-Resolution. 1This is not the usual definition of BC but it is equivalent, as shown in [8]. I. Bonacina, M. L. Bonet, and M. Lauria 7:7 ▶ Remark 3.5. The choice of MaxSAT-Resolution in Definition 3.4 is in some sense arbitrary: the rule i SR (i.e., items (iii) and (iv) in Definition 3.4) could be added or easily adapted to any sound proof system for MaxSAT with substitution rules, for instance, the weighted resolution proof system from [ 11 ]. In particular, since weighted resolution is equivalent to Sherali-Adams, and restricted weighted resolution is equivalent to Nullstellensatz [ 11 , 9 ], this means the iSR rule could be also added to those (semi-)algebraic proof systems. ▶ Remark 3.6. Our goal is to adapt rules like SR from the SAT framework to MaxSAT. Nevertheless the i SR rule and its restrictions i PR /i SPR /i LPR / BC still make sense for SAT. If we apply them to sets instead of multisets, they immediately become special cases of the original redundancy rules for SAT. For example i SR in this context is a special case of the SR rule that we spell here for convenience. A clause C is Substitution Redundant ( SR ) w.r.t. a set of clauses Sif S|C⊢1(S∪ {C})|σ, where ⊢1 indicates unit propagation, an efficiently checkable form of entailment. To the best of our knowledge, the i SR /i PR /i SPR /i LPR rules are presented here for the first time, both in the context of SAT and MaxSAT. We observe, though, that the upper bounds for pigeonhole principle, bit-pigeonhole principles, clique-coloring, parity, xor-ification, and Tseitin formulas in [ 13 , Section 4] are stated for the rule SPR in the case of SAT, but in fact fulfill the inclusion condition as in i SPR . On the other hand, these results cannot be automatically adapted to MaxSAT-Resolution+iSPR due to the MaxSAT-Resolution rule restrictions. 4 Certifying the cost of some hard tautologies In this section we exemplify the power of MaxSAT-Resolution + i SR by (1) efficiently certifing the optimum cost of the pigeonhole principle PHPm n , (2) efficiently certifying the optimum cost of the parity principle, and (3) reversing the hardness increase due to xor-ification of CNFs. To do so we use few simple, yet useful, lemmas. ▶ Lemma 4.1. Given a clause C and multisets of clauses S and T , if there is a substitution π such that S|π⊆S and C|π∨C is a tautology and for every clause D∈T , D|π∨C is also a tautology, then Cis iSR w.r.t. S∪T. Proof. Let π such that S|π⊆S and C|π∨C is a tautology. Let σ = C◦π . Since C|π∨C is a tautology we have C| = C|π and σ| = C . Similarly for every clause D∈T , σ| = D . That is (S∪T∪ {C})|σ=S|σ=S|C◦π= (S|π)|C⊆S|C⊆(S∪T)|C.◀ It is well known that pure literals are blocked clauses. For convenience here we state essentially the same fact for iLPR. ▶ Lemma 4.2. Given a multiset of clauses Γand a literal ℓ such that ℓ does not occur in Γ. We can derive Γ ′ from Γusing the i LPR rule where Γ ′⊆ Γand Γ ′ is a multiset not containing any clause with the literal ℓ. Proof. It is sufficient to consider the symmetric difference to be a single clause C∨ℓ and show that C∨ℓ is i LPR w.r.t. to Γ. The main claim follows by repeated applications of i LPR rules. Let Γ = Γ 0∪ Γ ℓ where Γ 0 are the clauses containing neither ℓ nor ℓ , and Γ ℓ are the clauses with literal ℓ. We fix σ={C∧ℓ= 1}, and observe that (Γ ∪ {C∨ℓ})|σ= Γ0|C= Γ0|C∧ℓ=0 ⊆Γ|C∧ℓ=0 .◀ SAT 2024 7:8 MaxSAT Resolution with Inclusion Redundancy 4.1 Pigeonhole principle PHPm n Let m, n ∈N with m > n . The propositional encoding of the Pigeonhole Principle PHPm n uses Boolean variables pi,j with i∈ [ m ]and j∈ [ n ]with intended meaning that pi,j is true if and only if the pigeon i flies to hole j . For i < k let the injectivity axiom Inji,k,j be the clause pi,j ∨pk,j , expressing that the two pigeons i, k cannot fly at the same time to hole j ; and let the totality axiom Toti,n be the clause Wj∈[n]pi,j , expressing that the pigeon i must fly somewhere among the nholes. The CNF encoding of Pigeonhole Principle is PHPm n={Toti,n |i∈[m]}∪{Inji,k,j |i, k ∈[m], j ∈[n]and i<k}. An assignment that maps the first n pigeons to the n holes, and leaves the other pigeons unassigned, falsifies m−n totality axioms and no injectivity axioms. Hence cost ( PHPm n ) ≤ m−n, and we can prove that this is optimal in MaxSAT-Resolution +iSR. ▶ Theorem 4.3. There is a polynomial size derivation in MaxSAT-Resolution + i SR showing that cost(PHPm n)≥m−n. Proof. It is enough to show how to derive PHPm−1 n−1 from PHPm n , since repeating this process n times gives PHPm−n 0 . This latter formula contains no other clauses than m−n totality axioms Toti,0 , that are indeed copies of the empty clause ⊥ . This would conclude the proof. To derive PHPm−1 n−1 from PHPm n we use i SR to enforce one by one all the pigeons of index below mnot to fly into hole n. Namely for 1≤i≤mwe have the intermediate sets Γi=PHPm n\ {Injℓ,k,n :ℓ<iand k=ℓ}\ {Totℓ,n :ℓ < i}∪ {Totℓ,n−1:ℓ < i}, In particular, Γ 1 = PHPm n and Γ m = PHPm−1 n−1∪ {Totm,n} . The variable xm,n appears only in Totm,n therefore, by Lemma 4.2, this clause can be removed from Γmto get PHPm−1 n−1. Suppose now 1 ≤i<m , we have the database of clauses is Γ i and we want to obtain Γ i+1 . Step 1. The clause C = pm,n ∨pi,n is i SR for Γ i , and we witness that with permutation π that exchanges pigeons i and m . That is, π ( pm,j ) = pi,j , π ( pi,j ) = pm,j , π ( pm,j ) = pi,j and π ( pi,j ) = pm,j for every j∈ [ n ]. On the other variables π is the identity. The permutation π maps Γ i to itself: totality axioms Totm,n and Toti,n are both in Γ i−1 and get swapped; the injectivity axioms Injℓ,k,n in Γ i all have ℓ, k ≥i , therefore π maps this set of axioms to itself, the set of remaining axioms is also mapped to itself. Applying Lemma 4.1 with T = ∅ we get that pm,n ∨pi,n is i SR wrt Γ i . Once we add pm,n ∨pi,n to Γ i , we cut it with the injectivity axiom Inji,m,n to get pi,n. Now the database of clauses is Γi\ {Inji,m,n}∪{pi,n}. Step 2. To cut pi,n with Toti,n , i.e., Wj∈[n]pi,j we need first to split pi,n repeatedly getting the database of clauses Γi\ {Inji,m,n}∪{pi,n ∨_ ℓ∈[j−1] pi,ℓ∨pi,j :j∈[n−1]}∪{pi,n ∨pi,1∨pi,2∨· · ·∨pi,n−1}. Now cut pi,n ∨pi,1∨pi,2∨ · · · ∨ pi,n−1 with the totality axiom Toti,n to obtain Toti,n−1 and the database of clauses ∆ = Γi\ {Inji,m,n,Toti,n}∪ {Toti,n−1}∪{pi,n ∨_ ℓ∈[j−1] pi,ℓ∨pi,j :j∈[n−1]}. I. Bonacina, M. L. Bonet, and M. Lauria 7:9 Step 3. The database ∆only contains variable pi,n with negative polarity, hence, Lemma 4.2 allows to remove all the clauses containing pi,n, and get the database of clauses Γi\ {Inji,k,n :i<k}\ {Toti,n}∪ {Toti,n−1}= Γi+1 .◀ The proof of Theorem 4.3 is a generalization of the argument to prove efficiently the unsatisfiability of PHPn+1 nin [13, Example 1.4], which in turn is based on [20]. 4.2 Parity principle The Parity Principle claims that there is a perfect matching between an odd number of elements. The propositional encoding of this principle ( Parityn ) is minimally unsatisfiable, and here we show that it has a short proof in MaxSAT-Resolution+ i SR . This is interesting since the formula is hard for Sherali-Adams and Sum-of-Squares proof systems [3, 1]. The set of clauses Parityn has Boolean variables x{i,j} for i, j ∈ [ n ]with i = j , where x{i,j} means that elements i and j are matched together. To ease the notation we use xi,j and xj,i as alternative notations for x{i,j}. For each i, n′∈[n]we define the set of clauses AtLeastn′ i=_ j∈[n′]\{i} xi,j AtMostn′ i={xi,j ∨xi,j′:j, j′∈[n′], i, j, j′all distinct}. Their informal meaning is that the element i matches with at least and at most one distinct element in [n′]respectively. The set of clauses Paritynis then Parityn={AtMostn i,AtLeastn i:i∈[n]}. For n odd, there is an assignment of the variables satisfying all but one clause, that is Parityn is minimally unsatisfiable. ▶ Theorem 4.4. For odd n , there is a polynomial size derivation in MaxSAT-Resolution +iSR showing that cost(Parityn)≥1. Proof. The strategy of the proof is to start with a clauses of Parityn and deduce from it the clauses of Parityn−2 . Since n is odd at some point we get to Parity1 , which contains AtLeast1 1 which is the empty disjunction, i.e., ⊥. To reduce Paritynto Parityn−2we enforce the elements n−1and nto match. Step 1. Derive clauses Ci = xn,i ∨xn,(n−1) for every 1 ≤i≤n− 2in this order one by one. To derive the clause Ci we use Lemma 4.1 with S = Parityn and T = {Cj : j < i} . As witnessing substitution we use π , the variable permutation induced by swapping indices i and n− 1. By symmetry Parityn|π = Parityn . Then, observe that the clause Ci|π and all clauses Cj|π for Cj∈T contain the literal xn,i , while Ci contains xn,i . Therefore Ci|π∨Ci and all Cj|π∨Ciare tautologies and Lemma 4.1 applies. Step 2. Derive clauses Di = x(n−1),i ∨x(n−1),n for every 1 ≤i≤n− 2in this order, using almost the same strategy of Step 1. To derive the clause Di we again use Lemma 4.1 with substitution π induced by the variable permutation induced by swapping indices i and n . Everything works as in the previous paragraph, S=Paritynand T={Dj:j < i}∪{Ck:k∈[n−2]}. Clause Di|π contains the literal x(n−1),i and the same happens for all Dj|π with j < i , and for all Ck|π with k∈ [ n− 2]. Hence, as in Step 1, all Dj|π∨Di with j≤i and all Ck|π∨Di with k∈ [ n− 2] are tautologies, and Lemma 4.1 applies. The current database of clauses is Γ = Parityn∪ {Ci:i∈[n−2]}∪{Dj:j∈[n−2]}. SAT 2024