Abstract 1 Introduction 2 Isometric partitions of hypercubes 3 Long-run Gray code construction 4 Proof of Theorem 1 5 Proof of Theorem 2 6 Remarks and open problems References

On Minimum Venn Diagrams

Sofia Brenner ORCID Institute of Mathematics, University of Kassel, Germany    Petr Gregor ORCID Department of Theoretical Computer Science and Mathematical Logic, Charles University, Prague, Czech Republic    Torsten Mütze ORCID Institute of Mathematics, University of Kassel, Germany    Francesco Verciani ORCID Institute of Mathematics, University of Kassel, Germany
Abstract

An n-Venn diagram is a diagram in the plane consisting of n simple closed curves that intersect only finitely many times such that each of the 2n possible intersections of their interiors is represented by a single connected region. An n-Venn diagram has at most 2n2 crossings, and if this maximum number of crossings is attained, then only two curves intersect in every crossing. To complement this, Bultena and Ruskey considered n-Venn diagrams that minimize the number of crossings, which implies that many curves intersect in every crossing. Specifically, they proved that the total number of crossings in any n-Venn diagram is at least Ln2n2n1, and if this lower bound is attained, then essentially all n curves intersect in every crossing. Diagrams achieving this bound are called minimum Venn diagrams, and are known only for n7. Bultena and Ruskey conjectured that they exist for all n8. In this work, we establish an asymptotic version of their conjecture. For n=8 we construct a diagram with 40 crossings, only 3 more than the lower bound L8=37. Furthermore, for every n of the form n=2k for some integer k4, we construct an n-Venn diagram with at most (1+338n)Ln=(1+o(1))Ln many crossings. Via a doubling trick this also gives (n+m)-Venn diagrams for all 0m<n with at most 402m crossings for n=8 and at most (1+338n)n+mnLn+m=(2+o(1))Ln+m many crossings for k4. In particular, we obtain n-Venn diagrams with the smallest known number of crossings for all n8. Our constructions are based on partitions of the hypercube into isometric paths and cycles, using a result of Ramras.

Keywords and phrases:
Venn diagram, crossing, conjecture, hypercube, partition
Copyright and License:
[Uncaptioned image] © Sofia Brenner, Petr Gregor, Torsten Mütze, and Francesco Verciani; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Computational geometry
; Mathematics of computing Discrete mathematics
Related Version:
Full Version: https://arxiv.org/abs/2511.09230 [1]
Funding:
Sofia Brenner, Torsten Mütze, and Francesco Verciani were supported by German Science Foundation (DFG) grant 522790373. Sofia Brenner also acknowledges funding by a postdoc fellowship of the German Academic Exchange Service (DAAD).
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

An n-Venn diagram is a collection of n1 simple closed curves in the plane that intersect in only finitely many points and that create exactly 2n connected regions, one for every possible combination of being inside or outside with respect to each curve. It is easy to see that in any intersection point of at least two curves, at least two of them must cross, and thus we refer to any such intersection point as a crossing. A Venn diagram is simple if every crossing involves only two curves; see Figure 1.

Venn diagrams are an appealing tool to visualize sets and their containment relations, and they are named after the English mathematician John Venn (1834–1923), who used them in the context of propositional logic [24]. Despite the simple definition, many questions about Venn diagrams lead to interesting and challenging mathematical and computational problems, which triggered a long and fruitful line of research devoted to them; see Ruskey and Weston’s survey [19] and the many beautiful illustrations therein. These problems touch and connect various areas such as discrete geometry, graph drawing, graph theory, poset theory, coding theory, and enumerative combinatorics.

Figure 1: Simple Venn diagrams for n=3,4,5, maximizing the number of crossings. For n=3,4,5 the number of crossings 2n2 equals 6,14,30. The diagrams (a)+(c) are rotationally symmetric. All diagrams are monotone and convex.

General constructions of n-Venn diagrams, valid for every n1, were provided already by Venn [24] and much later by Edwards [7, 8]. In fact, these two constructions are connected via the well-known binary reflected Gray code, a listing of all 2n binary strings of length n such that any two consecutive strings differ in a single bit.

Particularly pleasing for the human eye are rotationally symmetric Venn diagrams, such as the ones in Figure 1 (a)+(c) and Figure 2 (a)+(e). They exist if and only if n2 is a prime number. The necessity of this condition was established by Henderson [13], and the sufficiency, i.e., a construction valid for all prime n was shown by Griggs, Killian and Savage [10]. Their approach builds a symmetric chain partition in the so-called necklace poset. The problem to find simple symmetric n-Venn diagrams is open in general. Solutions for small cases are only known for n=1,3,5,7,11,13 [16], and for general prime n a construction is known that guarantees at least half of all crossings to be simple [15].

A k-region in an n-Venn diagram is a region that lies inside of exactly k of the curves, and outside the remaining nk curves. A monotone diagram is one in which for every 0<k<n, every k-region is adjacent to both a (k1)-region and a (k+1)-region. A convex diagram is one in which every curve is convex. It is not hard to show that convex diagrams are monotone. Bultena, Grünbaum and Ruskey [3] also proved the converse, namely that every monotone diagram is isomorphic to a convex one. Thus, the combinatorial notion of monotonicity completely captures the geometric notion of convexity.

The number of non-isomorphic simple n-Venn diagrams for n=1,,6 is 1,1,1,1,20,3 430 404, and the number of monotone simple diagrams is 1,1,1,1,11,32 255 [2, 6, 12] (OEIS A386795 and A390247, respectively).

A well-known conjecture in the area, raised by Peter Winkler [26] in 1984 and reiterated in [27, 28], was that every simple n-Venn diagram can be extended to a simple (n+1)-Venn diagram by adding a suitable curve. Very recently, Winkler’s conjecture was disproved by Brenner, Kleist, Mütze, Rieck, and Verciani [2], who constructed counterexamples to the conjecture for all n6. In particular, out of the 3 430 404 many 6-Venn diagrams, 72 are not extendable to a 7-Venn diagram. Already earlier, Grünbaum [11] proposed a variant of Winkler’s conjecture, by dropping the requirement for the diagrams to be simple. Grünbaum’s conjecture was settled affirmatively by Chilakamarri, Hamburger and Pippert [5], using a classical theorem in graph theory of Whitney [25], later generalized by Tutte [23].

1.1 Maximizing and minimizing the number of crossings

Figure 2: Non-simple Venn diagrams for n=3,4,5,6,7 that minimize the number of crossings. For those values of n, the number of crossings Ln=2n2n1 equals 3,5,8,13,21. Only in the diagrams (a) and (e) every crossing involves all n curves. The diagrams (a) and (e) are symmetric. The diagram (a) is monotone, while (b)–(e) are not monotone. None of the diagrams is convex, though (a) can be made convex by fixing the crossings and moving the centers of the circular arcs.

In this work, we are particularly interested in the number of crossings in an n-Venn diagram. It is easy to see that simple n-Venn diagrams have exactly 2n2 many crossings, and this is the largest possible number of crossings among all n-Venn diagrams. To complement this, Bultena and Ruskey [4] considered Venn diagrams with the smallest possible number of crossings. They proved that any n-Venn diagram with n2 has at least

Ln2n2n1

many crossings, and they called diagrams achieving this lower bound minimum Venn diagrams. If (2n2)/(n1) is integral, which happens for n=2,3,7,19,43,55,127,163, (this is OEIS sequence A014741 incremented by 1), then this means that every crossing of the diagram involves all n curves. So far, minimum Venn diagrams are only known for n7; see Figure 2. Bultena and Ruskey [4] conjectured that minimum n-Venn diagrams exist for all n8, and this is also mentioned as an open problem in Ruskey and Weston’s survey [19].

As a partial result, Bultena and Ruskey [4] proved that among monotone n-Venn diagrams with n2, the smallest possible number of crossings is (nn/2), and this lower bound is achievable. Note that (nn/2)=2nπn/2(1+o(1)), so this is still a Θ(n)-factor away from the general lower bound Ln.

The problem of minimizing crossings in Venn diagrams can be seen as a variant of the well-known and heavily studied crossing number problem [9, 20], where one attempts to draw a graph in the plane with the goal of minimizing the number of edge crossings. Even for the complete graph Kn or the hypercube Qn, this quantity is not known exactly.

1.2 Our results

Our first construction yields n-Venn diagrams for the case when n is a power of 2 in which the number of crossings is minimized up to a (1+o(1))-factor (as n).

Theorem 1.

There is an 8-Venn diagram with 40 crossings, and for every k4 and n2k, there is an n-Venn diagram with exactly

(1+338n22n/22n2n)2nn(1+338n)Ln=(1+o(1))Ln

many crossings.

The 8-Venn diagram with 40 crossings is shown in Figure 3.

Figure 3: An 8-Venn diagram with 40 crossings obtained from Theorem 1. The 8 curves are drawn with colors. Each black/white bubble represents one crossing that has to be contracted to a single point, where the open bubbles at the left and right boundary wrap around at the bottom.

For a general number of curves, i.e., when n is not necessarily a power of 2, we apply a doubling construction to obtain an n-Venn diagram in which the number of crossings is minimized up to a (2+o(1))-factor.

Theorem 2.

For every 0m7 there is an (8+m)-Venn diagram with 402m crossings, and for every k4, n2k and 0m<n, there is an (n+m)-Venn diagram with exactly

(1+338n22n/22n2n)2n+mn(1+338n)n+mnLn+m(2+o(1))Ln+m

many crossings.

Figure 4 shows the approximation ratio guaranteed by Theorem 2 for all 8n+m255.

Figure 4: Log-linear plot of the ratio r of the number of crossings of the Venn diagrams obtained from Theorem 2 and the lower bound.

In particular, Theorem 2 gives n-Venn diagrams with the smallest known number of crossings for all n8; see Table 1.

Table 1: The number of crossings in the Venn diagrams obtained from Theorem 2 versus the lower bound, and the minimum numbers for monotone diagrams.
n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
lower bound Ln=2n2n1 [4] 0 2 3 5 8 13 21 37 64 114 205 373 683 1261 2341 4369
Figure 2 0 2 3 5 8 13 21
Theorem 2 40 80 160 320 640 1280 2560 5120 5118
monotone (nn/2) [4] 0 2 3 6 10 20 35 70 126 252 462 924 1716 3432 6435 12870

1.3 Duals of Venn diagrams

Venn diagrams are conveniently studied by considering their dual graph; see Figure 5. Specifically, we consider the n-dimensional hypercube Qn, or n-cube for short, the graph formed by all subsets of [n]{1,2,,n}, with an edge between any two sets that differ in a single element. For an edge e={x,x{i}} of Qn, we refer to i as its direction.

The dual graph Q(D) of an n-Venn diagram D satisfies the following properties:

It is a spanning subgraph of Qn, i.e., all 2n vertices are present. Specifically, the vertex in Q(D) corresponding to a region of the diagram D is the set of all indices of curves that contain this region in their interior.

It is a plane graph, i.e., it is drawn in the plane without edge crossings, such that each face has even length 2 for some integer 2n and contains exactly two edges of distinct directions. These directions correspond to the curves intersecting in the crossing corresponding to the face.

For every j[n], the two subgraphs of Q(D) induced by all vertices x with jx, and with jx, respectively, are connected. This corresponds to the jth curve being simple.

Conversely, the dual of any subgraph of Qn satisfying these properties is an n-Venn diagram.

Figure 5: The dual of the 4-Venn diagram from Figure 2 (b) is a spanning subgraph of the 4-cube.

Clearly, the number of crossings of the diagram D equals the number of faces of the dual graph Q(D). If D is a minimum n-Venn diagram, then almost all crossings involve all n curves, i.e., in the dual graph Q(D), almost all faces have length 2n.

1.4 Proof ideas

Our proofs of Theorems 1 and 2 are constructive, and we proceed to give an informal sketch of the main steps of these constructions.

Using the characterization presented in the previous section, we build n-Venn diagrams by constructing planar spanning subgraphs of the hypercube Qn satisfying conditions ①–③, with the goal of minimizing the number of faces.

For n=2k we start with a partition of Qn into isometric cycles of length 2n that is derived from a partition of Qn1 into isometric paths found by Ramras [18]. These cycles are translates of a single isometric cycle of length 2n by a certain linear subspace of 2n of dimension d2kk1. For our construction we choose a slightly different basis of this space, denoted by Ck, than originally used by Ramras.

In the first step of the construction, we embed the isometric cycles of the partition into the plane concentrically in an order that is specified by a certain Hamiltonian path R of Qd (see Figure 9). Each vertex of Qd represents coefficients of a linear combination of the basis Ck, so consecutive concentric cycles in this order differ only by one element of the basis Ck. This guarantees that there are edges between consecutive cycles that create mainly large faces, but also some 6-faces. These edges between pairs of consecutive cycles are added in the second step.

In the last step, some cycle edges shared by 6-faces are removed to further reduce the total number of faces. For this purpose we specify a Hamiltonian path R that contains long runs in its flip sequence. A run is a contiguous increasing or decreasing subsequence with increment or decrement 1, respectively. Interestingly, our construction of such long-run Hamiltonian cycles uses the same partition into isometric cycles as the aforementioned Venn diagram construction.

For values of n that are not powers of 2, we use a straightforward doubling construction (see Lemma 10) to derive n-Venn diagrams with relatively few crossings from the ones of the next smaller power of 2 constructed as described before. This is why the number of crossings increasingly deviates from the lower bound Ln the farther the distance from the next smaller power of 2 gets, until the next larger power of 2 resets the process, which explains the behavior seen in Figure 4.

2 Isometric partitions of hypercubes

2.1 Preliminaries

Recall that [n]={1,2,,n}. We also define 2[n]{xx[n]}. For x[n] we write x¯[n]x for the complement of x w.r.t. the ground set [n]. Given a vertex x of Qn, we refer to x¯ as the antipodal vertex of x. For x[n] and an integer k1 we define kx{kiix}. All these operations thread in the natural way over sets and sequences. For example, for a set X2[n] and an integer k1 we have kX={kxxX}.

For x,y[n] we define the symmetric difference as xy(xy)(yx). For any set X2[n] we define the span of X by X{x1x2xtt{0,,n} and xiX for all i[t]}.

We refer to an edge e={x,x{i}} of direction i in Qn as an i-edge. The flip sequence of a path or cycle P in Qn, denoted by σ(P), is the sequence of directions of edges along P. We write |σ(P)| for the length of this sequence. For example, the flip sequence of the path P=({1,2},{1,2,3},{1,3},{3},{2,3}) in Q3 is σ(P)=(3,2,1,2) and we have |σ(P)|=4.

A subgraph H of a graph G is isometric if it preserves distances, i.e., dH(u,v)=dG(u,v) for any two vertices u,vV(H). In particular, a path in the hypercube Qn is isometric if and only if it contains no two edges of the same direction. A cycle in Qn is isometric if and only if the edges of the same direction come in pairs that lie oppositely on the cycle.

2.2 Partition into isometric paths

Ramras [18] described a partition of the hypercube Qn1, for n=2k and k1, into isometric paths. For this we consider the sequence of sets (Bk)k1 defined recursively by B1 and

BkBk1{{1,2k1+1},{2,2k1+2},,{2k11,2k1}} for k2. (1)

According to this definition, the first few sets are

B1=,B2={{1,3}},B3={{1,3},{1,5},{2,6},{3,7}},B4={{1,3},{1,5},{2,6},{3,7},{1,9},{2,10},{3,11},{4,12},{5,13},{6,14},{7,15}}.

The sets in Bk, viewed as binary (characteristic) vectors, are linearly independent and hence they form the basis of a linear subspace Bk of dimension |Bk|=2kk1 of the space 2n. For any xBk, Ramras [18] defines a path P(x) of length n1 in Qn1 by

P(x)(x,x{1},x{1,2},,x{1,2,,n1}). (2)

The flip sequence along this path is σ(P)=(1,2,,n1), and the end vertices of P(x) are antipodal in Qn1, i.e., the last vertex x{1,2,,n1} is the complement of the first vertex x w.r.t. the ground set [n1]. The following theorem is illustrated on the left hand side of Figure 6.

Theorem 3 ([18, Thm. 2.5]).

For any k1 and n2k, the isometric paths P(x) of length n1 defined in (2) for all xBk form a partition of the vertex set of Qn1.

Figure 6: Illustration of Theorem 3 (left) and Corollary 5 (right) for the case k=2. The bottom right shows a schematic illustration of the cycles showing only the starting vertices on the left and the flip sequences along each cycle.

2.3 Finding another basis for 𝑩𝒌

For our purposes, we choose a different basis of the subspace Bk, namely one that contains a larger number of 2-sets {a,b} with |ba|=2. We define

C1O1,Ok{{1,3},{3,5},,{2k3,2k1}} for k2, andCkOk2Ck1 for k2. (3)

According to this definition, the first few sets are

O1=,O2={{1,3}},O3={{1,3},{3,5},{5,7}},O4={{1,3},{3,5},{5,7},{7,9},{9,11},{11,13},{13,15}},

and

C1=,C2={{1,3}},C3={{1,3},{3,5},{5,7},{2,6}},C4={{1,3},{3,5},{5,7},{7,9},{9,11},{11,13},{13,15},{2,6},{6,10},{10,14},{4,12}}.

Note that |ba|=2 for every {a,b}Ok and furthermore, |Ok|=2k11 and |Ck|=2kk1.

Lemma 4.

The sets Bk and Ck defined in (1) and (3), respectively, satisfy Bk=Ck for any k1.

The proof of Lemma 4 can be found in the preprint [1].

2.4 Partition into isometric cycles

From Theorem 3 it follows that for n=2k

C(x)(P(x),P(x)¯{n}) (4)

is an isometric cycle of length 2n in Qn, with flip sequence σ(C(x))=(1,2,,n,1,2,,n), and furthermore, the cycles C(x) for all xBk form a partition of the vertex set of Qn. Combining this with Lemma 4 we obtain the following isometric partition into cycles, which is the starting point of our constructions later on; see the right hand side of Figure 6.

Corollary 5.

For any k1 and n2k, the isometric cycles C(x) of length 2n defined in (4) for all xCk form a partition of the vertex set of Qn.

The following lemma describes the edges between the cycles C(x), and it is illustrated in Figure 7. The proof is elementary, and we omit it.

Figure 7: Illustration of Lemma 6 and definitions of the edge sets E(x,{a,b}), F(x,{a,b}), E(x,a), and E(x,a).
Lemma 6.

Let k2 and n2k, and let x,yCk be such that y=x{a,b} with a<b. Then the cycles C(x) and C(y) have the following edges between them in Qn:

  1. (i)

    From the start/end vertex of each of the two a-edges of C(x), there is a b-edge to the end/start vertex of the corresponding a-edge of C(y).

  2. (ii)

    From the start/end vertex of each of the two b-edges of C(x), there is an a-edge to the end/start vertex of the corresponding b-edge of C(y).

If b=a+2, then in addition the following edges are present:

  1. (iii)

    From the start/end vertex of each of the two a-/(a+2)-edges of C(x), there is an (a+1)-edge to the end/start vertex of the corresponding (a+2)-/a-edge of C(y).

For b>a+2 we write E(x,{a,b}) for the set of four edges shown in Figure 7 (a1). Furthermore, for b=a+2 we write E(x,a) and E(x,a) for the two sets of three edges shown in parts (b1) and (b2) of the figure, respectively. Lastly, we write F(x,{a,b}) for the 4-cycle shown in part (a2) of the figure.

3 Long-run Gray code construction

Given a path or cycle P in Qn and integer ρ[n], an increasing or decreasing ρ-run in its flip sequence σ(P) is a contiguous subsequence (a,a+1,a+2,,a+) or (a+,a+1,,a+1,a) such that a+ρ. In words, it is a sequence of values that are increasing or decreasing (with increment 1 or decrement 1, respectively) such that all flipped directions are at most ρ. The parameter 0, which is one less than the length of the subsequence, is called the length of the run.

A ρ-run is maximal if it cannot be extended, i.e., if it is not contained in another ρ-run. Note that two maximal ρ-runs may overlap in at most one element, namely the last element of an increasing run and the first element of a decreasing run, or vice versa. Furthermore, note that a maximal ρ-run of length 0 does not overlap with any other ρ-runs, and a maximal ρ-run of length 1 does not overlap with two other ρ-runs in the first and last element, as this would create a flip sequence a+1,a,a+1,a or a,a+1,a,a+1, i.e., a 4-cycle, which is impossible. A ρ-run partition of σ(P) is obtained by considering all maximal ρ-runs in σ(P), and removing, from every pair of consecutive overlapping runs, the element in which they overlap from one of the two runs. For example, the flip sequence σ(P)=(3,1,2,3,2,1,2,4,3,2,4) has the maximal 3-runs (3,1,2,3,2,1,2,4,3,2,4), where increasing and decreasing runs are marked by overbrackets and underbrackets, respectively, and the cancelled elements are not contained in any 3-run. Thus we obtain (3,1,2,3,2,1,2,4,3,2,4) as a 3-run partition of σ(P), where the boxes indicate the runs. Similarly, (3,1,2,3,2,1,2,4,3,2,4), (3,1,2,3,2,1,2,4,3,2,4) and (3,1,2,3,2,1,2,4,3,2,4) are also valid 3-run partitions.

Although there may be different ρ-run partitions, their number and total length, i.e., sum of lengths of all runs, is the same, and we denote these quantities by νρ(P) and λρ(P). Note that the number of entries of σ(P) exceeding ρ equals |σ(P)|νρ(P)λρ(P). In the example from before we have ν3(P)=5 and λ3(P)=4.

Our first aim is to find a Hamiltonian path P in the hypercube Qn for n=2k for which the quantity νn1(P)+2λn1(P) is as large as possible, i.e., we want to maximize the number of flipped directions contained in long (n1)-runs. We shall see that maximizing this quantity corresponds to minimizing the number of crossings in the Venn diagrams constructed in the next section (see Lemma 9).

Lemma 7.

Let k2 and n2k. There is a Hamiltonian path P in Qn that satisfies

νn1(P)={6if k=2,1782nn4if k3, and λn1(P)={8if k=2,2n2582nn+4if k3.

Proof.

For k=2 we take the Hamiltonian path P with σ(P)=(1,2,3,2,1,2,3,4,3,2,1,2,3,2,1), proving that ν3(P)=6 and λ3(P)=8; see the top part of Figure 8.

Figure 8: Illustration of the proof of Lemma 7. The edges that are removed while taking the symmetric difference are dashed, including the wrap-around edge of the first cycle. The subsequences highlighted in gray are (n1)-runs.

For k3 we construct a Hamiltonian path P in Qn as follows; see the bottom part of Figure 8. We start with the partition of Qn into cycles given by Corollary 5. Formally, we define the cycle factor 𝒞xCkC(x). Each of the cycles of 𝒞 has length 2n and the total number of cycles is 2n/(2n)=22k/2k+1=22kk1=2d for d2kk1. Recall that |Ck|=2kk1=d.

Let (c1,,cd) be a sequence obtained by sorting all elements of the set Ck such that c1={1,3},c2={3,5},c3={2,6}, and the remaining elements appear in arbitrary order. We take a Hamiltonian path R in Qd whose flip sequence σ(R)(s1,,s2d1) alternates copies of the subsequence S(1,2,1,3,1,2,1) with single flips s8i4 for i1, starting with S, i.e., σ(R)=(S,s8,S,s16,S,s24,,S,s2d8,S). For example, we may take for R the well-known binary reflected Gray code in Qd. Note that σ(R) contains exactly 2d3 copies of S. We define an ordering x1,,x2d of all elements of Ck recursively by x1 and xi+1xicsi for i=1,,2d1. Note that this definition is valid since each element of Ck is a linear combination of the basis Ck, and R visits all d-tuples of {0,1}-coefficients.

Consider the symmetric difference of the edge sets of the cycle factor 𝒞 with all 4-cycles F(xi,csi) for i=1,,2d1. Each of the 4-cycles has a pair of opposite edges in common with two consecutive cycles from the factor, and thus glues them together to a single cycle. Therefore, the resulting set of edges is a Hamiltonian cycle in Qn. Removing one of its n-edges gives a Hamiltonian path P in Qn. Note that the 4-cycles F(xi,csi) and F(xi+1,csi+1) are edge-disjoint for i=1,,2d2.

In the remainder of the proof we compute the quantities νn1(P) and λn1(P). Recall from (2) and (4) that for each cycle C(xi), i=1,,2d, the flip sequence is σ(C(xi))=(1,2,,n,1,2,,n), i.e., it has two maximal (n1)-runs of length n2 each. Observe from Figure 8 that when gluing together the eight cycles C(xi) for which si{1,2,3} belongs to a copy of S in σ(R), the flip sequence of the resulting cycle has the (n1)-run partition

(3,2,5,4,,n1,n,1,,n1,n,
3,6,3,,n1,n,1,,n1,n,
3,2,5,4,,n1,n,1,,n1,n,
3,2,,n1,n,1,,n1,n,
3,2,5,4,,n1,n,1,,n1,n,
3,6,3,,n1,n,1,,n1,n,
3,2,5,4,,n1,n,1,,n1,n,
3,2,,n1,n,1,,n1,n),

consisting of 30 runs of total length 16n46.

When taking the symmetric difference with the 2d31 remaining 4-cycles F(xi,csi) with si4, then inserting each such 4-cycle splits two runs 2,,n1 into two times two runs 2,,a1, a+1,,n1 and two trivial runs b, where {a,b}csi such that a<b, i.e., the number of runs increases by 4 and the total length decreases by 4.

Lastly, note that removing one n-edge from the resulting Hamiltonian cycle to break it into the Hamiltonian path P does not change any (n1)-runs.

Combining these observations, we obtain

νn1(P)=302d3+4(2d31)=1782nn4 and λn1(P)=(16n46)2d34(2d31)=2n2582nn+4,

where we used the relation 2d=2n2n.

For a general dimension that is not necessarily a power of 2 we generalize the result from before by applying a straightforward product construction.

Corollary 8.

Let k2, n2k, and 0m<n. There is a Hamiltonian path P in Qn+m that satisfies

νn1(P)={62mif k=2,2m(1782nn4)if k3, and λn1(P)={82mif k=2,2m(2n2582nn+4)if k3.

Proof.

We use the fact that Qn+m is isomorphic to the Cartesian product QnQm. Consequently, if P is a Hamiltonian path in Qn and R is a Hamiltonian path in Qm with flip sequence σ(R)(s1,,s2m1), then Qn+m has a Hamiltonian path P with flip sequence

σ(P)=(σ(P),s1+n,rev(σ(P)),s2+n,σ(P),,s2m2+n,σ(P),s2m1+n,rev(σ(P))),

where rev(σ(P)) denotes the reverse of the sequence σ(P). By taking the Hamiltonian path P in Qn given by Lemma 7 and any Hamiltonian path R in Qm, the lemma follows.

Note that as n, we have λn1(P)=(1o(1))2n+m, i.e., almost all flips along the Hamiltonian path P belong to an (n1)-run.

4 Proof of Theorem 1

In this section, we describe our constructions of almost-minimum n-Venn diagrams for the case where n is a power of 2, thus proving Theorem 1.

Lemma 9.

Let k3, n2k, d2kk1, and ρ2k11=n/21, and let P be a Hamiltonian path in Qd. Then there is an n-Venn diagram with exactly 22nnνρ(P)2λρ(P)2 many crossings.

Proof.

To prove the lemma, we construct a plane subgraph HQn satisfying properties ①–③ stated in Section 1.3 that has exactly 22nnνρ(P)2λρ(P)2 many faces, as follows. We start with the partition of Qn into cycles given by Corollary 5. Formally, we define the cycle factor 𝒞xCkC(x). Each of the cycles of 𝒞 has length 2n and the total number of cycles is 2n/(2n)=22k/2k+1=22kk1=2d. Recall that |Ck|=2kk1=d.

Let c=(c1,,cd) be a sequence obtained by sorting all elements of the set Ck such that all 2-sets from OkCk appear first and with increasing minimum values, and the remaining 2-sets appear afterwards in arbitrary order. That is, we choose the first ρ elements as (c1,,cρ)=({1,3},{3,5},,{2k3,2k1}), which is the order from (3), or equivalently, ci={2i1,2i+1} for 1iρ. Recall that |Ok|=2k11=ρd.

Figure 9: Illustration of the proof of Lemma 9 for the case k=3, i.e., n=8. The dashed edges are deleted, so they are not part of H. The constructed dual graph H of an 8-Venn diagram has 40 faces, i.e., the corresponding Venn diagram has 40 crossings; see Figure 3, only 3 more than the lower bound L8=37. All faces except the red ones have maximum possible length 2n.

We consider the flip sequence σ(P)(s1,,s2d1) of the given Hamiltonian path P in Qd. The ρ-runs in this sequence will be particularly relevant for our construction. We define an ordering x1,,x2d of all elements of Ck recursively by x1 and xi+1xicsi for i=1,,2d1. Note that this definition is valid since each element of Ck is a linear combination of the basis Ck, and P visits all d-tuples of {0,1}-coefficients.

To construct H, we first embed the cycles of the factor 𝒞 in the plane by nesting them concentrically according to this ordering, i.e., C(x1) is the outermost cycle, and for i=1,,2d1, the cycle C(xi+1) is nested concentrically inside C(xi).

Next, we add edges between every pair of consecutive cycles C(xi) and C(xi+1) for i=1,,2d1 according to the following rules; see Figure 9. We first fix a ρ-run partition of P throughout, so whenever we refer to a ρ-run in the following, we mean a run in this fixed partition. If siρ, then we have csi={a,a+2} for a2si1. If the entry si of σ(P) is contained in an increasing ρ-run, then we add the three edges of E(xi,a), and if it is contained in a decreasing ρ-run, then we add the three edges of E(xi,a) instead. If the run has length 0, i.e., it consists only of a single entry, we treat it as one of the two cases, say, increasing. On the other hand, if si>ρ, then we add the four edges of E(xi,csi).

In this way, we obtain an intermediate connected plane graph with C(x1) as the outer face and C(x2d) as the innermost face that has either 3 or 4 faces between cycles C(xi) and C(xi+1) for i=1,,2d1, namely if siρ or si>ρ holds, respectively. Since the number of entries si in σ(P) with siρ is exactly νρ(P)+λρ(P), the number of faces of the intermediate graph is exactly

2+4(2d1)(νρ(P)+λρ(P))=22nnνρ(P)λρ(P)2.

In the last step of constructing H, we remove edges from some of the cycles C(xi), i=2,,2d1, according to the following rules: If si1 and si belong to the same increasing ρ-run in σ(P), then we have csi1={a2,a} and csi={a,a+2} for a2si1, and then we remove the first a-edge of C(xi). If si1 and si belong to the same decreasing ρ-run in σ(P), then we have csi1={a,a+2} and csi={a2,a} for a2si+1, and then we remove the first a-edge of C(xi). This completes the description of how to construct the subgraph H of Qn.

Note that each removed edge decreases the number of faces by 1. Since the number of removed edges is exactly λρ(P), the number of faces of H is exactly

22nnνρ(P)2λρ(P)2,

as claimed. It remains to check that the graph HQn just defined satisfies conditions ①–③.

Condition ① holds since the cycles C(xi) for i=1,,2d form a partition of Qn by Corollary 5. To verify condition ②, first observe in Figure 7 (a1), (b1) and (b2) that no two edges from any of the sets E(x,{a,b}), E(x,a), or E(x,a) are crossing and thus H is a plane graph. Furthermore, observe from Figure 7 (a1) that the four facial cycles between two cycles obtained by adding the edge set E(x,{a,b}) have lengths 2(ba)+2 and 2(n(ba))+2 and flip sequences

(a,a+1,,b1,a,b,b1,,a+1,b), and
(b,b+1,,n,1,2,,a1,b,a,a1,,1,n,n1,,b+1,a),

respectively. Similarly, observe from Figures 7 (b1) and (b2) that the three facial cycles between two cycles obtained by adding the edge set E(x,a) or E(x,a) have lengths 6, 2n, and 2n and flip sequences

(a,a+1,a,a+2,a+1,a+2),
(a+2,a+3,,n,1,2,,a1,a+1,a+2,a+1,,1,n,n1,,a+3,a), and
(a,a+1,,n,1,2,,a1,a+2,a,a1,,1,n,n1,,a+3,a+1),

respectively. It can be checked directly that the aforementioned faces, as well as the outer face C(x1) and the innermost face C(x2d) satisfy condition ②.

In the last step of the construction we removed some edges from the cycles C(xi). Specifically, for each increasing or decreasing run of length 2, we glue together adjacent 6-cycles, creating a new facial cycle of length 4+2. Observe that the adjacent 6-faces have edge directions shifted by 2 and therefore their directions overlap only in the largest resp. smallest direction, and the shared direction is the direction of the edge that was removed. It follows that the resulting cycles of length 4+2 also satisfy condition ②.

To prove condition ③ we establish by induction on i=1,,2d that for every direction j[n] every vertex x of C(xi) is connected in H to either the vertex or [n] along a path that avoids any j-edges. Specifically, x is connected to if jx and to [n] if jx.

To settle the induction basis i=1, recall that the flip sequence of C(x1) is σ(C(x1))=(1,2,,n,1,2,,n), so removing any two j-edges for some j[n] from C(x1) results in two antipodal paths of length n1, respectively containing vertex and vertex [n].

For the induction step ii+1, it suffices to show that every vertex of C(xi+1) is connected in H to some vertex of C(xi) along a path that has no j-edges. We distinguish two cases according to which edges were added between C(xi) and C(xi+1).

In the case when the four edges of E(xi,csi), csi{a,b}, were added between C(xi) and C(xi+1), observe that the two added a-edges are incident to antipodal vertices of C(xi+1), and the same is true for the two added b-edges. Hence removing any two j-edges, where j[n], from C(xi+1) results in two subpaths that are both connected to C(xi) along an edge of E(xi,csi) that is not a j-edge, even if j{a,b}.

Figure 10: Verification of condition ③ in the proof of Lemma 9.

Now we consider the case when the three edges of E(xi,a) were added between C(xi) and C(xi+1) (i.e., we have b=a+2). The third case when the edges of E(xi,a) were added is analogous. We will also assume w.l.o.g. that the first (a+2)-edge on C(xi+1) was removed; otherwise the situation is even simpler; see Figure 10. We denote the removed (a+2)-edge by {u,v}. If j{a,a+1,a+2}, then removing the j-edges from C(xi+1) results in three subpaths that are all connected to C(xi), each path along an edge of E(xi,a). If j=a+2, then removing also the second (a+2)-edge from C(xi+1) results in two subpaths of C(xi+1) that are both connected to C(xi), since the added edges of directions a and a+1 are incident to antipodal vertices of C(xi+1). For the last case j{a,a+1} recall that there is a path R between u and v along the face of H containing these two vertices and vertices of C(xi+j) for j2, and the path R does not contain edges of directions a or a+1. The path R and the two edges of E(xi,a) that are not of direction j connect all vertices of C(xi+1) to C(xi) along a path not containing any j-edges. This shows that the graph H indeed satisfies condition ③.

With Lemma 9 in hand, we are now in position to prove Theorem 1.

Proof of Theorem 1.

For k3 we define n2k, d2kk1 and ρ2k11=n/21.

If k=3, we have n=8, d=4 and ρ=3. We apply Lemma 7 for k^k1=2, n^2k^=4 to obtain a Hamiltonian path P in Q4 with ν3(P)=6 and λ3(P)=8. Therefore, Lemma 9 yields an 8-Venn diagram with exactly 22886282=40 crossings; see Figures 3 and 9.

If k4, we apply Corollary 8 for k^k1, n^2k^=2k1=n/2 and m^dn^=2k1k1 to obtain a Hamiltonian path P in Qn^+m^=Qd with

νρ(P) =νn^1(P)=(1782n^n^4)2m^=1782nn22n/2n/2and
λρ(P) =λn^1(P)=(2n^2582n^n^+4)2m^=2n2n2582nn2+2n/2n/2.

Therefore, Lemma 9 yields an n-Venn diagram with exactly

22nnνρ(P)2λρ(P)2=(1+338n22n/22n2n)2nn

many crossings.

Finally, note that the inequality 2nnLn=2n2n1 holds for all n2.

5 Proof of Theorem 2

We now show how to lift the construction of n-Venn diagrams for the case when n is a power of 2 to the general case, thus proving Theorem 2. The lifting is achieved via the following straightforward doubling construction.

We say that a face of the dual graph of an n-Venn diagram is colorful if it has length 2n and contains two antipodal vertices of Qn. In the primal Venn diagram, such a face corresponds to a crossing involving all n curves for which the cyclic ordering of curves around the crossing can be split into two halves such that every curve appears exactly once in each half. Consequently, there is a way to draw an additional curve through this crossing that crosses (not only intersects) each of the n existing curves.

Lemma 10.

If there is an n-Venn diagram D whose dual graph has a colorful face, then there is an (n+1)-Venn diagram whose dual graph has a colorful face and with twice as many crossings as D.

The proof of Lemma 10 can be found in the preprint [1]. With Lemma 10 in hand, we are now in position to prove Theorem 2.

Proof of Theorem 2.

The duals of the Venn diagrams from Theorem 1 all have a colorful face, namely the outer face C(x1), so applying Lemma 10 (m times) proves the theorem.

6 Remarks and open problems

We conclude with some remarks and challenging open problems.

  • Is there a minimum 8-Venn diagram, i.e., one with only 37 crossings? The best one we found has 40 crossings; see Figure 3.

  • Lemma 7 gives a Hamiltonian path P in Qn, n=2k, with

    νn1(P)+2λn1(P)=22n3382nn+4.

    Is there another construction that would decrease the constant 338? If so, then this would directly improve the same constant in Theorems 1 and 2. One can easily prove an upper bound of νn1(P)+2λn1(P)22n2nn.

  • A long-standing problem due to Slater [21] is whether there exists a Hamiltonian path P in Qn such that any two consecutive entries of the flip sequence differ by ±1. Put differently, if we write μ(P) for the number of such consecutive entries of σ(P), then the goal is to find a Hamiltonian path P with μ(P)=2n2. While such a path exists for n6, it does not exist for n=7 [22] and n=8 (computer experiments by Dimitrov, Gregor and Lužar; see [17, Problem 10]). We clearly have μ(P)λn(P)λn1(P), so Lemma 7 and Corollary 8 yield a Hamiltonian path P for which μ(P)=(1o(1))(2n2), which can be seen as an approximate solution to Slater’s problem (cf. [14]).

References

  • [1] Sofia Brenner, Petr Gregor, Torsten Mütze, and Francesco Verciani. On minimum Venn diagrams, 2025. arXiv:2511.09230.
  • [2] Sofia Brenner, Linda Kleist, Torsten Mütze, Christian Rieck, and Francesco Verciani. Disproving two conjectures on the Hamiltonicity of Venn diagrams, 2025. arXiv:2503.18554.
  • [3] Bette Bultena, Branko Grünbaum, and Frank Ruskey. Convex drawings of intersecting families of simple closed curves. In Canadian Conference on Computational Geometry (CCCG), 1999. URL: http://www.cccg.ca/proceedings/1999/c14.pdf.
  • [4] Bette Bultena and Frank Ruskey. Venn diagrams with few vertices. Electron. J. Combin., 5:Research Paper 44, 21 pp., 1998. doi:10.37236/1382.
  • [5] Kiran B. Chilakamarri, Peter Hamburger, and Raymond E. Pippert. Venn diagrams and planar graphs. Geom. Dedicata, 62(1):73–91, 1996. doi:10.1007/BF00240003.
  • [6] Kiran B. Chilakamarri, Peter Hamburger, and Raymond E. Pippert. Analysis of Venn diagrams using cycles in graphs. Geom. Dedicata, 82(1-3):193–223, 2000. doi:10.1023/A:1005288325189.
  • [7] Anthony W. F. Edwards. Venn diagrams for many sets. In Bulletin of the International Statistical Institute, 47th Session, Paris, Book 1, pages 311–312. IIS, 1989.
  • [8] Anthony W. F. Edwards. Venn diagrams for many sets. New Scientist, 121(1646):51–56, 1989.
  • [9] Paul Erdős and Richard K. Guy. Crossing number problems. Amer. Math. Monthly, 80:52–58, 1973. doi:10.2307/2319261.
  • [10] Jerrold R. Griggs, Charles E. Killian, and Carla D. Savage. Venn diagrams and symmetric chain decompositions in the boolean lattice. Electron. J. Comb., 11(1), 2004. doi:10.37236/1755.
  • [11] Branko Grünbaum. Venn diagrams. I. Geombinatorics, 1(4):5–12, 1992.
  • [12] Peter Hamburger and Raymond E. Pippert. Simple, reducible Venn diagrams on five curves and Hamiltonian cycles. Geom. Dedicata, 68(3):245–262, 1997. doi:10.1023/A:1004924423245.
  • [13] David W. Henderson. Classroom Notes: Venn Diagrams for More than Four Classes. Amer. Math. Monthly, 70(4):424–426, 1963. doi:10.2307/2311865.
  • [14] Gabriel S. Himelfarb and Moshe Schwartz. Improved constructions of skew-tolerant gray codes. IEEE Trans. Inform. Theory, 71(10):8017–8028, 2025. doi:10.1109/tit.2025.3592490.
  • [15] Charles E. Killian, Frank Ruskey, Carla D. Savage, and Mark Weston. Half-simple symmetric Venn diagrams. Electron. J. Comb., 11(1), 2004. doi:10.37236/1839.
  • [16] Khalegh Mamakani and Frank Ruskey. New roses: Simple symmetric Venn diagrams with 11 and 13 curves. Discret. Comput. Geom., 52(1):71–87, 2014. doi:10.1007/S00454-014-9605-6.
  • [17] Torsten Mütze. Combinatorial Gray codes—an updated survey. Electron. J. Combin., DS26(Dynamic Surveys):93 pp., 2023. doi:10.37236/11023.
  • [18] Mark Ramras. Symmetric vertex partitions of hypercubes by isometric trees. J. Combin. Theory Ser. B, 54(2):239–248, 1992. doi:10.1016/0095-8956(92)90055-3.
  • [19] Frank Ruskey and Mark Weston. A survey of Venn diagrams. Electron. J. Combin., 4(1):Dynamic Survey 5, 1997. doi:10.37236/26.
  • [20] Marcus Schaefer. The graph crossing number and its variants: a survey. Electron. J. Combin., DS21(Dynamic Surveys):90 pp., 2013. doi:10.37236/2713.
  • [21] Peter J. Slater. A problem concerning restricted Gray codes, open problem session. Congr. Numer., XXIII–XIV:918–919, 1979. Proceedings of the Tenth Southeastern Conference on Combinatorics, Graph Theory and Computing (Boca Raton, FL, 1979).
  • [22] Peter J. Slater. Research problems 109 and 110. Discrete Math., 76(3):293–294, 1989. doi:10.1016/0012-365X(89)90330-0.
  • [23] William T. Tutte. A theorem on planar graphs. Trans. Amer. Math. Soc., 82:99–116, 1956. doi:10.2307/1992980.
  • [24] John Venn. On the diagrammatic and mechanical representation of propositions and reasonings. Phil. Mag. S. 5., 9(59):1–18, 1880. doi:10.1080/14786448008626877.
  • [25] Hassler Whitney. A theorem on graphs. Ann. of Math. (2), 32(2):378–390, 1931. doi:10.2307/1968197.
  • [26] Peter Winkler. Venn diagrams: Some observations and an open problem. Congr. Numer., 45:267–274, 1984.
  • [27] Peter Winkler. Mathematical puzzles: A connoisseur’s collection. AK Peters Series, Taylor & Francis, 2004.
  • [28] Peter Winkler. Puzzled: Where sets meet (Venn diagrams). Commun. ACM, 55(2):128, 2012. doi:10.1145/2076450.2076475.