Abstract 1 Introduction 2 Preliminaries 3 Top-down procedure 4 Bounded conclusion-degree 5 Bounded premise-degree 6 Conclusion References

Enumerating the Irreducible Closed Sets of an Acyclic Implicational Base of Bounded Degree

Oscar Defrain ORCID Aix-Marseille Université, CNRS, LIS, Marseille, France Arthur Ohana ORCID Aix-Marseille Université, CNRS, LIS, Marseille, France
Université Grenoble Alpes, Grenoble, France
Simon Vilmin ORCID Aix-Marseille Université, CNRS, LIS, Marseille, France
Abstract

We consider the problem of enumerating the irreducible closed sets of a closure system given by an implicational base. To date, the complexity status of this problem is widely open, and it is further known to generalize the notorious hypergraph dualization problem, even in the case of acyclic convex geometries, i.e., closure systems admitting an acyclic implicational base. This paper studies this case with a focus on the degree, which corresponds to the maximal number of implications in which an element occurs. We show that the problem is tractable for bounded values of this parameter, even when relaxed to the notions of premise- and conclusion-degree. Our algorithms rely on a sequential approach leveraging from acyclicity, combined with the solution graph traversal technique for the case of premise-degree. They are shown to perform in incremental-polynomial time. These results are complemented in the long version of this document by showing that the dual problem of constructing the implicational base can be solved in polynomial time. Finally, we argue that our running times cannot be improved to polynomial delay using the standard framework of flashlight search.

Keywords and phrases:
Algorithmic enumeration, closure systems, acyclic convex geometries, solution graph traversal, flashlight search, extension, hypergraph dualization
Copyright and License:
[Uncaptioned image] © Oscar Defrain, Arthur Ohana, and Simon Vilmin; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Mathematics of computing Enumeration
Related Version:
Full Version: https://arxiv.org/abs/2506.24052 [16]
Funding:
The authors have been supported by the ANR project PARADUAL (ANR-24-CE48-0610-01).
Acknowledgements:
The authors are grateful to anonymous reviewers for their suggestions to improve this extended abstract as well as the long version.
Editors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung Tsai

1 Introduction

Finite closure systems appear in disguise in several areas of mathematics and computer science, including database theory [29, Chapter 13], Horn logic [12, Chapter 6], or lattice theory [13, Chapter 2], to mention but a few.

A closure system is a family of subsets of some finite ground set being closed by intersection and containing the ground set. The study of the various representations of closure systems and the algorithmic task of translating between them have received lots of attention in these respective fields, and have been the topic of the Dagstuhl Seminar 14201 [1]. Most importantly, the translation task we consider in this paper is known for being a considerable generalization of the notorious and widely open hypergraph dualization problem, while also not being known to be intractable, contrary to analogous other natural generalizations such as lattice dualization [26, 4, 14]. We refer the reader to the surveys [39, 7, 33] for more information on this topic.

Among the several representations of closure systems, two of them occupy a central role, namely, irreducible closed sets and implicational bases, whose formal definitions are postponed to Section 2. Informally, irreducible closed sets are elementary sets of the closure system from which every other can be recovered. On the other hand, implicational bases are sets of implications of the form AB, where A, the premise, and B, the conclusion, are subsets of the ground set. As noted in [28], these two representations are generally incomparable in size and usefulness. Notably, there exist instances where the minimum cardinality of an implicational bases is exponential in the number of irreducible closed sets, and vice versa. Moreover, the computational complexity of some algorithmic tasks such as reasoning, abduction, or recognizing lattice properties can differ significantly depending on the representation at hand [25, 3, 29]. These observations motivate the problem of translating between the two representations, in which one representation is given, and the other is to be computed. In this extended abstract, a focus is made on the problem of enumerating irreducible closed sets, denoted by ICSEnum; the dual problem of constructing the implicational base is only addressed in the long version of this work.

Because of the possible exponential gap between the sizes of the two representations, input sensitive complexity is not a meaningful efficiency criterion when analyzing the performance of an algorithm solving ICSEnum. Instead, the framework of algorithmic enumeration in which an enumeration algorithm has to list without repetitions a set of solutions, is usually adopted. The complexity of an algorithm is then analyzed from the perspective of output-sensitive complexity, which estimates the running time of the algorithm using both input and output sizes. In that context, an algorithm is considered tractable when it runs in output-polynomial time, that is, if its execution time is bounded by a polynomial in the combined sizes of the input and the output. This notion can be further constrained to guarantee some regularity in the enumeration. Namely, we say that an algorithm runs in incremental-polynomial time if it outputs the ith solution in a time which is bounded by a polynomial in the input size plus i. It is said to run with polynomial delay if the time spent before the first output, after the last output, and between consecutive outputs is bounded by a polynomial in the input size only. We refer the reader to [24, 35] for more details on enumeration complexity.

In this work, we investigate acyclic convex geometries, a particular class of closure systems. They are the convex geometries – closure systems with the anti-exchange property – that admit an implicational base with acyclic implication-graph. Acyclic convex geometries have been extensively studied [23, 37, 8, 34, 15]. Even in this class though, the problem ICSEnum was shown in [15] to be harder than distributive lattices dualization, a generalization of hypergraph dualization. On the other hand, the authors in [15] show that if, in addition to acyclicity, the implication graph admits a rank function, then the problem can be solved using hypergraph dualization. Using this result, they derive a tractable algorithm for so-called ranked convex geometries admitting an implicational base of bounded premise size. It should be noted that, even under these restrictions, the problem generalizes the one of enumerating all maximal independent sets of a graph (in fact of hypergraphs of bounded edge size) a central and notorious problem in enumeration [36, 24]. These results have then been extended to a more general setting in [32]. Other related results in the literature include the work [5] which deals with k-meet-semidistributive lattices, and closure systems of bounded Caratheodory number, see e.g., [39].

In this paper, we continue the line of research of characterizing tractable cases of acyclic convex geometries, by identifying for which parameters k one can derive tractable algorithms for ICSEnum for fixed values of k. We note that in this research, finding an algorithm running in quasi-polynomial time should already be considered a success, since no sub-exponential time algorithms are known to date. We focus on the degree, which is defined as the maximum number of implications in which an element participates, and its two obvious relaxations which are the premise- and conclusion-degree; these parameters are defined in Section 2. The principal message of this work is that bounding one of these two relaxed notions of degree suffices to provide not only quasi-polynomial but polynomial algorithms for the translation. More specifically, as the first of our two main theorems, we obtain the following, whose quantitative formulation is postponed to Sections 4 and 5.

Theorem 1.

There is an incremental-polynomial time algorithm enumerating the irreducible closed sets of an acyclic convex geometry given by an acyclic implicational base of bounded premise- or conclusion-degree.

Our algorithms for acyclic convex geometries of bounded degree rely on several steps which combine structure and enumeration techniques. We give a rough description which highlight the techniques used, and refer to the appropriate sections for more details.

First, we use the fact that each irreducible closed set is attached to an element of the ground set, and that this element is unique in convex geometries; this is detailed in Section 2. Then, leveraging from acyclicity, our algorithm relies on a sequential procedure which consists of enumerating, incrementally and in a top-down fashion according to a topological ordering x1,,xn of the elements of the ground set, all the irreducible closed sets attached to xi. This step can be seen as enumerating the irreducible closed set attached to xi with additional information as an input, namely, the irreducible closed sets of ancestor elements. Finally, it remains to solve this later task, which we can do either by brute forcing minimal transversals of a carefully designed hypergraph in case of bounded conclusion-degree, or performing a solution graph traversal in case of bounded premise-degree. In the end, the resulting algorithms run in incremental-polynomial time, where the dependence in the number of solutions principally arises from the sequential top-down procedure.

Let us note that Theorem 1 also has implications on the dual problem of constructing an implicational base of minimum cardinality. Namely it allows us to obtain the following result whose description is detailed in the long version of this work [16] and included here for the reader familiar with closure systems.

Theorem 2.

There is a polynomial-time algorithm constructing a minimum implicational base of an acyclic convex geometry of bounded premise- or conclusion-degree given by its irreducible closed sets.

We note that in this direction, our algorithm is (input) polynomial thanks to the fact that the output has polynomial cardinality because of the bounded degree.

The remainder of the paper is organized as follows. Section 2 introduces the concepts and notations used throughout the paper. Section 3 presents the top-down approach that we use as the key ingredient in our algorithms. Sections 4 and 5 are devoted to proving Theorem 1 in the respective cases of bounded conclusion- and premise-degree. In Section 6 we discuss possible generalizations and open problems related to the current work, and also argue that our running times cannot be improved to polynomial delay using the standard framework of flashlight search.

Due to space constraints, the proofs of our different statements are not included in the present extended abstract: the interested reader is referred to [16] for more details.

2 Preliminaries

All the objects we consider in this paper are finite. If X is a set, 𝒫(X) is its powerset. The size of X is denoted |X|. A set system, or hypergraph, over a ground set X is a pair (X,) where is a (non-empty) collection of subsets of X, that is 𝒫(X). Its size is |X|+||; note that the binary length of any standard encoding of a hypergraph is polynomially related to its size. Thus, for simplicity, we shall consider this measure for families as input sizes in the different problems we will consider. If X is clear from the context, we may identify with (X,). In examples, if there is no ambiguity, we may write a set as the concatenation of its elements, for instance 123 instead of {1,2,3}. Similarly, to avoid cumbersome notations, we sometimes withdraw brackets when dealing with singletons, e.g., we may write say ϕ(x) instead of ϕ({x}).

Independent and hitting sets, hypergraph parameters.

Let =(X,) be a hypergraph. We call vertices of the elements in X, and edges the sets in . We say that is Sperner if any two of its edges are pairwise incomparable by inclusion. An independent set of is a set IX that contains no edges of , i.e., EI for every E in . The family of inclusion-wise maximal independent sets of is denoted MIS(). Formally, MIS()=max{I:IXEI for every E in }. Dually, a hitting set, or transversal, of is a subset T of X that intersects each edge of . The collection of inclusion-wise minimal hitting sets of is MHS()=min{T:TXTE for every E in }. The hypergraph MHS() is usually called the dual hypergraph of . Observe that IX is independent if and only if T:=XI is a hitting set. Consequently, MHS()={XI:IMIS()}. Moreover, if is not Sperner, then its minimal hitting sets (resp. maximal independent sets) are precisely those of the hypergraph formed by the inclusion-wise minimal edges of . The two equivalent generation problems associated to maximal independent sets and minimal hitting sets read as follows:

    Maximal Independent Sets Enumeration (MISEnum)
    Input: A (Sperner) hypergraph =(X,).
    Output: the family MIS().
    Minimal Hitting Sets Enumeration (MHSEnum)
    Input: A (Sperner) hypergraph =(X,).
    Output: the family MHS().

To date, the best algorithm for these tasks runs in output-quasi-polynomial time and is due to Fredman and Khachiyan [21]. However, a number of output-polynomial time algorithms have been proposed for particular cases, especially when bounding structural parameters [19], in particular the dimension of being the size of its largest edge, and the dual dimension, being the dimension of the dual hypergraph of .

Closure systems, closure spaces.

A closure system is a set system (X,𝒞) that satisfies X𝒞, and CC𝒞 whenever C,C𝒞. The sets in 𝒞 are called closed (sets). A closure space is a pair (X,ϕ) where ϕ:𝒫(X)𝒫(X) is a mapping that satisfies for every A,BX: (1) Aϕ(A), (2) ϕ(A)ϕ(B) if AB, and (3) ϕ(ϕ(A))=ϕ(A). The map ϕ is a closure operator. Closure spaces and closure systems are in one-to-one correspondence. More precisely, if (X,ϕ) is a closure space, the family 𝒞={C:CX,ϕ(C)=C} defines a closure system. Dually, if (X,𝒞) is a closure system, the map ϕ defined by ϕ(A)=min{C:C𝒞,AC}={C:C𝒞,AC} is a closure operator whose associated closure system is precisely (X,𝒞). In this paper, if (X,ϕ) is a closure space, we call (X,𝒞) the corresponding closure system and vice-versa. Moreover, we assume without loss of generality that 𝒞, a standard assumption.

Let (X,𝒞) be a closure system. The poset (𝒞,) of closed sets ordered by inclusion is a (closure) lattice where CC=CC and CC=ϕ(CC). Let MC, MX. The closed set M is irreducible if it is not the intersection of other distinct closed sets, that is, M=CC for some C,C𝒞 only if C=M or C=M. We denote by irr(𝒞) the family of irreducible closed sets of (X,𝒞). For every C𝒞, we have C={M:Mirr(𝒞),CM}. Moreover, irr(𝒞) is the unique minimal subset of 𝒞 from which 𝒞 can be reconstructed using intersections. Let xX. We denote by irr(x) the inclusion-wise maximal closed sets not containing x, i.e., irr(x)=max{M:M𝒞,xM}. Observe that irr(x)irr(𝒞) for every xX. An irreducible closed set M in irr(x) is said to be attached to x. In fact, it is well known that irr(𝒞)=xXirr(x) (see, e.g., [29, 38]) and this union will even be disjoint for us (see Proposition 3). An example of a closure system and its irreducible closed sets is depicted in Figure 1.

Figure 1: A closure system over X={1,2,3,4,5} represented via the Hasse diagram of its closure lattice. Black dots are irreducible closed sets which can be seen by the fact that they have a unique successor. We have, for instance, ϕ(25)=235 and ϕ(4)=14, irr(3)={5,2,14} and mingen(3)={25,15,24,45}. An implicational base for this closure system is for instance Σ={41,253,123,1523}.

Implicational bases.

An implication over X is a statement AB where A,B are subsets of X. In AB, A is the premise and B the conclusion. An implicational base (IB) is a pair (X,Σ) where Σ is a collection of implications over X. Given an IB (X,Σ), |Σ| is the cardinality of Σ, that is the number of implications in Σ. The size of the IB is the value |X|+|Σ|. The degree of an element xX, denoted deg(x), is the number of implications of Σ in which x appears. We refine this notion by defining the premise-degree of x as pdeg(x):=|{A:ABΣ,xA}|, and its conclusion-degree as cdeg(x):=|{AB:ABΣ,xB}|. Then deg(x)pdeg(x)+cdeg(x). Equality may not hold in general because an element can belong to both premise and the conclusion of an implication. In this paper though, we avoid this degenerate case by always considering the premise and conclusion of an implication are disjoint. Moreover, we will mainly use the degree, premise-degree, and conclusion-degree of Σ defined by pdeg(Σ):=maxxXpdeg(x), cdeg(Σ):=maxxXcdeg(x), deg(Σ):=maxxXdeg(x). Note that deg(Σ)pdeg(Σ)+cdeg(Σ) for any Σ. As an example, for the implicational base given in Figure 1, we have pdeg(2)=2 and cdeg(2)=1.

We now relate IBs to closure systems. Let (X,Σ) be an IB. A set CX is closed for (X,Σ) if for every implication ABΣ, AC implies BC. The pair (X,𝒞) where 𝒞 is the family of closed sets of (X,Σ) is a closure system. An IB (X,Σ) thus induces a closure operator ϕ() that can be computed in polynomial time using the forward chaining algorithm. This procedure starts from a set Y and produces a sequence of sets Y=Y0Y1Yk=ϕ(Y) such that Yi=Yi1{B:ABΣ,AYi1,BYi1} for 1ik. On the other hand, any closure system (X,𝒞) can be represented by several equivalent IBs. For instance, Σ={Aϕ(A):AX} constitutes an IB for (X,𝒞) as well as Σ={C{x}ϕ(C{x}):C𝒞,xC} (recall that we assume 𝒞). If (X,Σ) is an IB, we use the notation irr(Σ) to denote the irreducible closed sets of the associated closure system. An implicational base for the closure system of Figure 1 is given in Figure 2.

The degree of a closure system is the least integer k such that it admits an implicational bases of degree k. The premise- and conclusion-degree are defined analogously.

Convex geometries, acyclic convex geometries.

A closure system (X,𝒞) is a convex geometry if for every closed set C distinct from X there exists xC such that C{x} is closed. Equivalently, (X,𝒞) is a convex geometry if the corresponding closure operator ϕ has the anti-exchange property: for every closed set C and each distinct x,yC, xϕ(C{y}) entails yϕ(C{x}). The closure system depicted in Figure 1 is a convex geometry. Convex geometries have been rediscovered in several fields and, as such, enjoy several characterizations [31]. In particular, they can be characterized by their irreducible closed sets, as recalled in the subsequent statement:

Proposition 3 (see e.g., [18, Theorem 2.4]).

A closure system (X,𝒞) is a convex geometry if and only if each irreducible closed set is attached to a unique element, i.e., {irr(x):xX} is a partition of irr(𝒞).

Let TX. We call irreducible selection for T a family of sets obtained by choosing, for each tT, one Mirr(t). Note that since we are dealing with convex geometries, and by Proposition 3, the closed sets M are all distinct and the resulting family has the same cardinal as T. In the following, we denote by 𝒮(T) the family of all irreducible selections for a given set T. We will use irreducible selections as a way to forbid elements, as stated in the following observation.

Observation 4.

For any TX and any selection 𝒮𝒮(T), the intersection 𝒮 of all sets in 𝒮 is disjoint from T, i.e., it contains no tT.

Let us now turn our attention to acyclic convex geometries. They have been studied under various names such as poset-type convex geometries [34], G-geometries [37], or as acyclic Horn functions from the perspective of Horn CNFs [23, 8]. Let (X,Σ) be an IB. The implication-graph [23, 8] of (X,Σ) is the directed graph G(Σ)=(X,E) where there is an arc ab in E if there exists AB in Σ such that aA and bB. The IB (X,Σ) is acyclic if G(Σ) is. In this case, G(Σ) can be seen as a poset, and naturally induces an ancestor relation over X defined for all xX as follows:

anc(x) ={y:yXxy, and there exists a directed path from y to x in G(Σ)}

Equivalently, anc(x) is the set of in-neighbors of x in the transitive closure of G(Σ). An element x of X is thus maximal if it has no ancestors, and minimal if it has no descendants. As an example, Figure 2 illustrates the implication-graph of the IB given in Figure 1. A closure system that admits an acyclic IB is acyclic and it is a well-known fact that acyclic closure systems are convex geometries [37, 34].

Figure 2: The implication-graph G(Σ) of the IB (X,Σ) of Figure 1. This directed graph is acyclic, which makes the closure system an acyclic convex geometry. The ancestors of 2, highlighted in green, are 1,4,5, i.e., anc(2)={1,4,5}. Maximal elements are 4, 5 and the unique minimal element is 3. Here, an example of topological order that we will refer to in the next section is 4,1,5,2,3.

Irreducible closed sets enumeration.

To conclude the preliminaries, we formally present the enumeration problem we study in this paper and review its main aspects.

    Irreducible Closed Sets Enumeration (ICSEnum)
    Input: An implicational base (X,Σ).
    Output: The irreducible closed sets of the associated closure system.

Let us stress the fact that in ICSEnum, only an implicit (and possibly compact) description of the closure system is provided, namely, the implicational base. Typically, the output of ICSEnum may be of exponential size with respect to the input size, as illustrated in Example 5 below. Hence, the problem is studied through the lens of output-sensitive complexity.

Example 5.

Let X={a1,,an}{b1,,bn}{x}, and Σ={aibix:1in}. Denoting (X,𝒞) the associated closure system, we have irr(𝒞)={X{y}:yX,yx}{{c1,,cn}:ci{ai,bi}, 1in}. Therefore, |irr(𝒞)|=2n+2n while |Σ|=n.

As explained in the introduction, this problem has been studied in different fields [28, 22, 17, 38, 3] and its complexity remains unsettled to date. Yet it is harder than MISEnum, in the sense that an output-polynomial time algorithm for one of ICSEnum implies one for MISEnum. Moreover, ICSEnum reduces to the problem of enumerating the irreducible closed sets attached to a point, which we call ACSEnum, and that will be considered in this paper:

    Attached Irreducible Closed Set Enumeration (ACSEnum)
    Input: An implicational base (X,Σ) and xX.
    Output: The family irr(x) of irreducible closed sets attached to x.

Indeed, an algorithm solving ACSEnum in output-polynomial time can be applied to each element x to produce all irreducible closed sets of a closure system, with at most a linear number of repetitions in general, and no repetitions in convex geometries by Proposition 3. Unfortunately, it was shown by Kavvadias et al. [26] in the language of Horn CNFs that the problem ACSEnum admits no output-polynomial time algorithm unless P=NP.

Nevertheless, in the remaining of the paper, we will show that a variation of the problem taking profit of the acyclicity of the input allows us to obtain tractable algorithms for acyclic convex geometries of bounded degree.

3 Top-down procedure

We describe the general sequential procedure that we use to solve ICSEnum. We use a similar approach to tackle the dual problem of constructing the implicational base in the long version of this work [16]. Intuitively, it consists in enumerating, incrementally and in a top-down fashion according to a topological ordering x1,,xn of the implicational base, all the irreducible closed sets attached to xi.

Recall that the ancestors of an element x in an acyclic implicational base are the elements that participate in a path of implications to x, and which can be identified in polynomial time; see Section 2. More formally, we show that ICSEnum reduces to the following version of ACSEnum in which we are given ancestors’ irreducible closed sets as additional information.

    Attached Closed Sets Enumeration with Ancestors’ solutions (ACS+AEnum)
    Input: An acyclic implicational base (X,Σ), an element xX, and the family irr(y) for every ancestor y of x in Σ.
    Output: The set irr(x).

Clearly, an algorithm for ACSEnum can be used to solve ACS+AEnum, while the reverse may not be true. We argue that by iteratively using an algorithm for ACS+AEnum on a maximal element of the implicational base among those that have not been selected yet, we obtain an algorithm for ICSEnum. Note that the base case corresponds to computing the irreducible closed set of maximal elements x verifying irr(x)={X{x}}. Moreover, this procedures preserves incremental-polynomial bounds. In terms of difficulty, ACS+AEnum may thus be seen as standing as an intermediate problem between ACSEnum and ICSEnum in acyclic convex geometries. More formally, we obtain the following.

Theorem 6.

Let f:2 be a function. Let us assume that there is an algorithm that, given an instance of ACS+AEnum of size N, produces its ith solution in f(N,i)-time. Then there is an algorithm that, given an acyclic instance of ICSEnum of size N, produces its jth solution in O(poly(N)+f(N+j,j)) time.

We note that an analogous statement to the one in Theorem 6 holds by relaxing the required and obtained time bounds to output-polynomial times. On the other hand, improving the complexity of an algorithm for ACS+AEnum to polynomial delay (or even input-polynomial as we will provide later for the case of bounded conclusion-degree) does not generally ensure polynomial delay (or incremental-linear) for ICSEnum, since the size of an instance of ACS+AEnum grows with the number of already obtained solutions for ICSEnum, which typically becomes exponential in the size of the implicational base.

Further limitations related to the top-down approach – in particular on the hardness of ACSEnum on implicational bases of height at most two – are discussed in the long version of this work [16]. Nevertheless, we shall argue in the remaining of the paper that this approach yields tractable algorithms when bounding structural parameters such as the premise- and conclusion-degree.

4 Bounded conclusion-degree

We show that the top-down approach successfully provides an incremental-polynomial time algorithm for ICSEnum whenever the implicational base has bounded conclusion-degree, proving one of the two cases of Theorem 1.

In the following, let us consider an instance of ACS+AEnum, i.e., we fix some acyclic implicational base (X,Σ), an element xX, and assume that we are given irr(y) for all ancestors y of x in Σ. Let us consider the hypergraph defined by

x :={A:ABΣ,xB},and
x :=(x,x).

The intuition behind the following lemma is that, in order to get an irreducible closed set attached to x, one should remove at least one element a in the premise of each implication having x in the conclusion, which can be done by considering the intersection with an irreducible closed set attached to a. Recall that 𝒮(T) denotes the family of irreducible selections; see Section 2.

Lemma 7.

For every Mirr(x) there exists a minimal transversal T of x and an irreducible selection 𝒮𝒮(T) such that M=(𝒮){x}.

Note that, by definition, the number of edges in x is exactly cdeg(x), which is at most cdeg(Σ). Moreover, since the ground set of x is a subset of the ancestors of x, the selections of Lemma 7 are part of the input we consider for ACS+AEnum. By brute-forcing the irreducible selections for every transversal, we derive a polynomial-time algorithm for ACS+AEnum whenever the conclusion-degree of x is bounded by a constant.

Theorem 8.

There is an algorithm solving ACS+AEnum in NO(k) time on inputs of size N and maximum conclusion-degree k.

We conclude to the following, as a corollary of Theorems 6 and 8, and proving the case of bounded-conclusion degree in Theorem 1.

Theorem 9.

There is an incremental-polynomial time algorithm solving ICSEnum on acyclic implicational bases of bounded conclusion-degree.

Let us remark that in our algorithm, we actually do not need the knowledge of irr(a) for all ancestors of x, but only for those in a premise which has x in conclusion. This however makes no asymptotic difference on the final complexity we get for ICSEnum.

Also, it appears in the proof of Theorem 8 that we only need a constant upper bound on the size k of a minimal transversal of x, to derive an input-polynomial time algorithm solving ACS+AEnum. We immediately derive the following generalization of Theorem 9 dealing with hypergraphs of bounded dual-dimension (admitting minimal transversals of bounded size) who define complements of conformal hypergraphs [6].

Theorem 10.

There is an incremental-polynomial time algorithm solving ICSEnum if, for any element x of the ground set, the hypergraph of premises having x in their conclusion has bounded dual-dimension.

We end the section by showing the limitations of this approach in order to get output-polynomial time bounds whenever we drop the condition of bounded conclusion-degree.

First, note that the key step of the approach is to compute all possible intersections as provided in Lemma 7. However, there are cases where the number of possible such intersections is exponential in |irr(Σ)|, which typically occurs if minimal transversals of x are of unbounded size, or if MHS(x) is of exponential size in irr(x).

To get one such example, consider k and the implicational base defined by X={a1,b1,,ak,bk,x} and Σ={aibix:1ik}{bibi+1:1i<k}; see Figure 3 for an illustration. Then irr(x)={(ai)1ij(bi)j+1ik:0jk} so |irr(x)|=k+1, and the other elements in X{x} are easily seen to have a single attached closed set. Therefore, irr(Σ) is of polynomial size in |X|=2k+1 and |Σ|=2k1. However, |MHS(x)|=2k and computing this set would fail in providing an output-polynomial time algorithm for enumerating irr(x).

Figure 3: An instance where |MHS(x)|=2k but |irr(Σ)|=3k+1 and |Σ|=2k1.

At last, we note that this example has bounded premise-degree. We will show however in the next section that such instances can actually be efficiently solved by solution graph traversal.

5 Bounded premise-degree

We provide an incremental-polynomial time algorithm solving ICSEnum whenever the given implicational base has bounded premise-degree. Our algorithm relies on the top-down approach from Section 3 and solves ACS+AEnum relying on the solution graph traversal technique.

In the solution graph traversal framework, one has to define a digraph called solution graph, whose nodes are the solutions we aim to enumerate, and whose arcs (F,F) consists of ways of reconfigurating a given solution F into another solution F. Then, the goal is not to build the solution graph entirely, but rather to traverse all its nodes efficiently and avoiding repetitions of nodes. This general technique has been fruitfully applied to numerous enumeration problems, see e.g., [9, 27, 40], and generalized to powerful frameworks [2, 10, 11]. In the following we will use the next folklore result which states conditions for such a technique to be efficient; see [20] for a quantitative statement and a proof.

Theorem 11 (Folklore).

Let 𝒫(X) be a solution set over a ground set X, and let us denote by n the size of the input. Then there is a poly(n)-delay algorithm enumerating whenever:

  1. 1.

    one member of can be found in poly(n)-time;

  2. 2.

    there is a function 𝒩:𝒫() called neighboring function mapping every solution to a set of solutions that can be computed in poly(n) time given F;

  3. 3.

    the directed solution graph (,{(F,F):F𝒩(F)}) is strongly connected.

In the following, let us consider an instance of ACS+AEnum, i.e., we fix some acyclic implicational base (X,Σ), an element xX, and we assume that we are given irr(y) for all ancestors y of x.

We first argue that Condition 1 holds for ACS+AEnum. Let GCx be a function which maps any EX such that xϕ(E) to a maximal set ME with this property. We call the resulting set the greedy completion of E. Note that GCx(E) can be computed in polynomial time in the size of (X,Σ), and that the obtained set lies in irr(x); see Section 2. We derive the following.

Lemma 12.

A first solution GCx()irr(x) can be obtained in poly(|X|+|Σ|) time.

We now turn on showing the existence of a polynomial-time computable neighboring function satisfying Conditions 2 and 3. Given some irreducible closed set Mirr(x), and some element yXM, we define

M,y :={A:ABΣwithAM={y},BM},
VM,y :=M,yandM,y:=(VM,y,M,y).

In other words, M,y is the hypergraph of premises of Σ not included in M, triggered by adding y, and with a conclusion not in M. Note that |M,y|pdeg(y)pdeg(Σ). Also, because every premise in M,y implies a bM, hence an ancestor of x, we derive the following observation by transitivity.

Observation 13.

Every vertex in VM,y is an ancestor of x.

Regarding Condition 2, we first need the following statement, which holds the same idea as Lemma 7.

Lemma 14.

Let M,M be two distinct sets in irr(x). Then there exist yMM, TMHS(M,y), and 𝒮𝒮(T) such that M𝒮.

We are now ready to define the aforementioned neighboring function. Given Mirr(x) and yM, we define

𝒩(M,y) :={GCx((M𝒮){y}):𝒮𝒮(T) andTMHS(M,y)such that xϕ((M𝒮){y})}

and put 𝒩(M):=yM𝒩(M,y). We prove that Conditions 2 and 3 hold for this function.

Observation 15.

By definition, the greedy completion in the definition of 𝒩(M,y) is well defined and 𝒩(M)irr(x).

Lemma 16.

Let N be the sum of the sizes of X, Σ, and irr(a) for all aanc(x). Then, for all Mirr(x), 𝒩(M) can be computed in NO(k) time where k is the premise-degree of Σ.

Note that Condition 2 is ensured by Observation 15 and Lemma 16. We are thus left to prove Condition 3, which we obtain by proving that for any pair of solutions, there is a neighbor of the first one with greater intersection with the second.

Lemma 17.

Let M,M be two distinct sets in irr(x). Then there exists M𝒩(M) such that MMMM.

Corollary 18.

The solution graph (irr(x),{(M,M):M𝒩(M)}) is strongly connected.

Combining Theorem 11, Lemma 12, Lemma 16, and Corollary 18, we obtain a polynomial-delay algorithm for ACS+AEnum by solution graph traversal for acyclic implicational bases of bounded premise-degree. This, together with Theorem 6, in turn implies the following theorem, proving the remaining case of bounded premise-degree in Theorem 1.

Theorem 19.

There is an incremental-polynomial time algorithm solving ICSEnum on acyclic implicational bases of bounded premise-degree.

As in the previous section, we only needed to bound the size of a minimal transversal of M,y in the proof of previous theorem to derive an input-polynomial time algorithm solving ACS+AEnum. This gives the following result, analogous to Theorem 10.

Theorem 20.

There is an incremental-polynomial time algorithm solving ICSEnum if, for any irreducible closed set M and yM, the hypergraph M,y has bounded dual-dimension.

6 Conclusion

In this paper, we described two incremental-polynomial time algorithms for the enumeration of irreducible closed sets in acyclic convex geometries of bounded (premise- or conclusion-) degree. This solves one of the two translation task for this class, the other one being addressed in the long version of this work [16]. We note that the delay of our algorithms is intrinsically not polynomial since our algorithm rely on a sequential top-down procedure which reduces the enumeration to an auxiliary enumeration problem whose instance grows with the total number of solutions output so far. This suggests the following question.

Figure 4: An illustration of the construction from Theorem 21. Black edges correspond to the incidence bipartite graph of a given CNF with clauses’ size at most 3, and variable occurring in at most 3 clauses. There is a blue implication for each such edge (partially represented). The green implications represent conflicting literals. With this reduction, there is an irreducible closed set attached to t and avoiding the red set if and only if the formula is satisfiable.
Question 1.

Can ICSEnum be solved with polynomial delay for acyclic convex geometries of bounded degree?

Toward this direction, we now argue that the classic flashlight search framework may not be used in a straightforward way to obtain a positive answer to this question. In the flashlight search technique, the goal is to construct solutions one element at a time, according to a linear order x1,,xn on the ground set, and deciding at each step whether xi should or should not be included in the solution. For this approach to be tractable, the framework requires to solve the so-called “extension problem” in polynomial time: given two disjoint subsets K,F of the ground set, decide whether there exists a solution including K and avoiding F. We refer to, e.g., [9, 30] for a more detailed description of this folklore technique. More formally, this technique reduces the enumeration to the following decision problem.

    Irreducible Closed Set Extension (ICSExt)
    Input: An implicational base (X,Σ) and K,FX.
    Question: Does there exist Mirr(𝒞) such that KM and MF=?

We show that this problem is NP-complete even for acyclic implicational bases of bounded degree with K=, suggesting that this framework may not be used in a straightforward way to improve our results. Let us however remark that this does not rule out the possibility of a polynomial-delay algorithm for the problem, using a different approach or relying on particular vertex orderings. We refer to [16] for the proof of this result, the construction of which is hinted in Figure 4.

Theorem 21.

The extension problem for ICSEnum is NP-complete even for acyclic implicational bases with degree, premise-degree, conclusion-degree and dimension (i.e., the maximum size of a premise) simultaneously bounded by 4, 4, 2 and 2, respectively.

Note that, as an intermediate step, one may wonder whether there exists an incremental-polynomial time algorithm for ICSEnum where the degree of the polynomial in the number of solutions is independent of the premise degree.

Among other directions, it is natural to ask whether our results extend to broader classes of closure systems or to parameters that generalize the degree. We include a thorough discussion on the relevant classes and parameters in the long version of this work [16] as well as some considerations related to parameterized enumeration. In particular, we argue that without acyclicity the degree alone is not helpful anymore as ICSEnum for instances with bounded degree becomes as general as ICSEnum.

References

  • [1] Kira V. Adaricheva, Giuseppe F. Italiano, Hans Kleine Büning, and György Turán. Horn formulas, directed hypergraphs, lattices and closure systems: related formalisms and applications (Dagstuhl Seminar 14201). Dagstuhl Reports, 4(5):1–26, 2014. doi:10.4230/DagRep.4.5.1.
  • [2] David Avis and Komei Fukuda. Reverse search for enumeration. Discrete Applied Mathematics, 65(1-3):21–46, 1996. doi:10.1016/0166-218X(95)00026-N.
  • [3] Mikhail A. Babin and Sergei O. Kuznetsov. Computing premises of a minimal cover of functional dependencies is intractable. Discrete Applied Mathematics, 161(6):742–749, 2013. doi:10.1016/J.DAM.2012.10.026.
  • [4] Mikhail A. Babin and Sergei O. Kuznetsov. Dualization in lattices given by ordered sets of irreducibles. Theoretical Computer Science, 658:316–326, 2017. doi:10.1016/J.TCS.2016.01.005.
  • [5] Laurent Beaudou, Arnaud Mary, and Lhouari Nourine. Algorithms for k-meet-semidistributive lattices. Theoretical Computer Science, 658:391–398, 2017. doi:10.1016/J.TCS.2015.10.029.
  • [6] Claude Berge. Hypergraphs: combinatorics of finite sets, volume 45. Elsevier, 1984.
  • [7] Karell Bertet, Christophe Demko, Jean-François Viaud, and Clément Guérin. Lattices, closures systems and implication bases: a survey of structural aspects and algorithms. Theoretical Computer Science, 743:93–109, 2018. doi:10.1016/J.TCS.2016.11.021.
  • [8] Endre Boros, Ondřej Čepek, Alexander Kogan, and Petr Kučera. A subclass of Horn CNFs optimally compressible in polynomial time. Annals of Mathematics and Artificial Intelligence, 57(3-4):249–291, 2009. doi:10.1007/S10472-010-9197-7.
  • [9] Endre Boros, Khaled Elbassioni, and Vladimir Gurvich. Algorithms for generating minimal blockers of perfect matchings in bipartite graphs and related problems. In European Symposium on Algorithms, pages 122–133. Springer, 2004. doi:10.1007/978-3-540-30140-0_13.
  • [10] Sara Cohen, Benny Kimelfeld, and Yehoshua Sagiv. Generating all maximal induced subgraphs for hereditary and connected-hereditary graph properties. Journal of Computer and System Sciences, 74(7):1147–1159, 2008. doi:10.1016/J.JCSS.2008.04.003.
  • [11] Alessio Conte, Roberto Grossi, Andrea Marino, Takeaki Uno, and Luca Versari. Proximity search for maximal subgraph enumeration. SIAM Journal on Computing, 51(5):1580–1625, 2022. doi:10.1137/20M1375048.
  • [12] Yves Crama and Peter L. Hammer. Boolean functions: Theory, algorithms, and applications. Cambridge University Press, 2011.
  • [13] Brian A. Davey and Hilary A. Priestley. Introduction to lattices and order. Cambridge university press, 2002.
  • [14] Oscar Defrain and Lhouari Nourine. Dualization in lattices given by implicational bases. Theoretical Computer Science, 814:169–176, 2020. doi:10.1016/J.TCS.2020.01.028.
  • [15] Oscar Defrain, Lhouari Nourine, and Simon Vilmin. Translating between the representations of a ranked convex geometry. Discrete Mathematics, 344(7):112399, 2021. doi:10.1016/J.DISC.2021.112399.
  • [16] Oscar Defrain, Arthur Ohana, and Simon Vilmin. Translating between the representations of an acyclic convex geometry of bounded degree. arXiv preprint, 2025. doi:10.48550/arXiv.2506.24052.
  • [17] Jean-Paul Doignon and Jean-Claude Falmagne. Knowledge spaces. Springer Science & Business Media, 2012.
  • [18] Paul H. Edelman and Robert E. Jamison. The theory of convex geometries. Geometriae dedicata, 19(3):247–270, 1985.
  • [19] Thomas Eiter, Kazuhisa Makino, and Georg Gottlob. Computational aspects of monotone dualization: A brief survey. Discrete Applied Mathematics, 156(11):2035–2049, 2008. doi:10.1016/J.DAM.2007.04.017.
  • [20] Khaled Elbassioni. A polynomial delay algorithm for generating connected induced subgraphs of a given cardinality. Journal of Graph Algorithms and Applications, 19(1):273–280, 2015. doi:10.7155/JGAA.00357.
  • [21] Michael L. Fredman and Leonid Khachiyan. On the complexity of dualization of monotone disjunctive normal forms. Journal of Algorithms, 21(3):618–628, 1996. doi:10.1006/JAGM.1996.0062.
  • [22] Georg Gottlob and Leonid O. Libkin. Investigations on Armstrong relations, dependency inference, and excluded functional dependencies. Acta Cybernetica, 9(4):385–402, 1990. URL: https://cyber.bibl.u-szeged.hu/index.php/actcybern/article/view/3383.
  • [23] Peter L. Hammer and Alexander Kogan. Quasi-acyclic propositional Horn knowledge bases: Optimal compression. IEEE Transactions on knowledge and data engineering, 7(5):751–762, 1995. doi:10.1109/69.469822.
  • [24] David S. Johnson, Mihalis Yannakakis, and Christos H. Papadimitriou. On generating all maximal independent sets. Information Processing Letters, 27(3):119–123, 1988. doi:10.1016/0020-0190(88)90065-8.
  • [25] Henry A. Kautz, Michael J. Kearns, and Bart Selman. Reasoning with characteristic models. In Proceedings of the Eleventh National Conference on Artificial Intelligence, AAAI’93, pages 34–39. AAAI Press, 1993. URL: http://www.aaai.org/Library/AAAI/1993/aaai93-006.php.
  • [26] Dimitris J. Kavvadias, Martha Sideri, and Elias C. Stavropoulos. Generating all maximal models of a Boolean expression. Information Processing Letters, 74(3-4):157–162, 2000. doi:10.1016/S0020-0190(00)00023-5.
  • [27] Leonid Khachiyan, Endre Boros, Khaled Elbassioni, and Vladimir Gurvich. On enumerating minimal dicuts and strongly connected subgraphs. Algorithmica, 50(1):159–172, 2008. doi:10.1007/S00453-007-9074-X.
  • [28] Roni Khardon. Translating between Horn representations and their characteristic models. Journal of Artificial Intelligence Research, 3:349–372, 1995. doi:10.1613/JAIR.183.
  • [29] Heikki Mannila and Kari-Jouko Räihä. The design of relational databases. Addison-Wesley Longman Publishing Co., Inc., 1992.
  • [30] Arnaud Mary and Yann Strozecki. Efficient enumeration of solutions produced by closure operations. Discret. Math. Theor. Comput. Sci., 21(3), 2019. doi:10.23638/DMTCS-21-3-22.
  • [31] Bernard Monjardet. A use for frequently rediscovering a concept. Order, 1(4):415–417, 1985.
  • [32] Lhouari Nourine and Simon Vilmin. Hierarchical decompositions of implicational bases for the enumeration of meet-irreducible elements. Theoretical Computer Science, 969:114030, 2023. doi:10.1016/J.TCS.2023.114030.
  • [33] Sebastian Rudolph. Succinctness and tractability of closure operator representations. Theoretical Computer Science, 658:327–345, 2017. doi:10.1016/J.TCS.2015.12.028.
  • [34] Luigi Santocanale and Friedrich Wehrung. Lattices of regular closed subsets of closure spaces. International Journal of Algebra and Computation, 24(07):969–1030, 2014. doi:10.1142/S021819671450043X.
  • [35] Yann Strozecki. Enumeration complexity. Bulletin of EATCS, 1(129), 2019.
  • [36] Shuji Tsukiyama, Mikio Ide, Hiromu Ariyoshi, and Isao Shirakawa. A new algorithm for generating all the maximal independent sets. SIAM Journal on Computing, 6(3):505–517, 1977. doi:10.1137/0206036.
  • [37] Marcel Wild. A theory of finite closure spaces based on implications. Advances in Mathematics, 108(1):118–139, 1994.
  • [38] Marcel Wild. Computations with finite closure systems and implications. In International Computing and Combinatorics Conference, pages 111–120. Springer, 1995. doi:10.1007/BFB0030825.
  • [39] Marcel Wild. The joy of implications, aka pure Horn formulas: mainly a survey. Theoretical Computer Science, 658:264–292, 2017. doi:10.1016/J.TCS.2016.03.018.
  • [40] Kaiqiang Yu, Cheng Long, Shengxin Liu, and Da Yan. Efficient algorithms for maximal k-biplex enumeration. In Proceedings of the 2022 International Conference on Management of Data, pages 860–873, 2022. doi:10.1145/3514221.3517847.