Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

On Weighted Sums of Numbers of Convex Polygons in Point Sets

On Weighted Sums of Numbers of Convex Polygons in Point Sets Let S be a set of n points in general position in the plane, and let X (S) be the k, number of convex k-gons with vertices in S that have exactly  points of S in their interior. We prove several equalities for the numbers X (S). This problem is related k, to the Erdos–Szek ˝ eres theorem. Some of the obtained equations also extend known equations for the numbers of empty convex polygons to polygons with interior points. Analogous results for higher dimension are shown as well. Keywords Erdos–Szek ˝ eres type problems · Empty convex polygons · Planar point sets Mathematics Subject Classification 52C10 · 52C35 Editor in Charge: Kenneth Clarkson Clemens Huemer clemens.huemer@upc.edu Deborah Oliveros doliveros@im.unam.mx Pablo Pérez-Lantero pablo.perez.l@usach.cl Ferran Torra ferran.torra@estudiant.upc.edu Birgit Vogtenhuber bvogt@ist.tugraz.at Departament de Matemàtiques, Universitat Politècnica de Catalunya, Barcelona, Spain Instituto de Matemáticas Unidad Juriquilla, Universidad Nacional Autónoma de México, Juriquilla, Mexico Facultad de Ciencia, Departamento de Matemática y Ciencia de la Computación, Universidad de Santiago de Chile (USACH), Santiago, Chile Institute of Software Technology, Graz University of Technology, Graz, Austria 123 Discrete & Computational Geometry (2022) 68:448–476 449 1 Introduction Let S be a set of n points in the Euclidean plane in general position, that is, no three points of S are collinear. We denote by h the number of extreme points of S, that is, the points of S that lie on the boundary of the convex hull of S.A k-gon (of S)isa simple polygon that is spanned by exactly k points of S.A k-gon is called empty,if it does not contain any points of S in its interior. The vertex set of an empty convex k-gon is sometimes also called a free set [10]. We denote by X (S) the number of empty convex k-gons in S, and more general, we denote by X (S) the number of k, convex k-gons in S that have exactly  points of S in their interior. Further, a convex k-gon with  interior points constitutes a subset of k +  points of S whose convex hull does not contain any other points of S. Such sets are sometimes also called islands [6]. Figure 1 shows a set S of ten points and its values X (S). Here we are interested k, in relations among the values X (S) and invariants among all point sets of given k, cardinality. Invariants for the values X (S) are well known. The equation k+1 (−1) X (S) = − n +1(1) k≥3 was proved by Edelman and Jamison in [9], actually in terms of the number F of free sets of cardinality k in a convex geometry [9, Theorem 4.5], stating (−1) F = 0. Note that in our notation we omit the term for the empty set X := 1, and X (S) = n 0 1 and X (S) = , the number of points and edges spanned by S, respectively. In [9], (1) is also attributed to Lawrence. Moreover, it also holds in higher dimension. The equation k+1 (−1) kX (S) = 2 − h, (2) k≥3 which only depends on n and on h, was first proved by Ahrens, Gordon, and McMahon [1]. Its higher dimensional version was proved by Edelman and Reiner [10] and by Klain [20]. Pinchasi, Radoici ˇ c, ´ and Sharir [25] provided elementary geometric proofs for (1) and (2), by using a continous motion argument of points. They further proved other equalities and inequalities involving the values X (S) and extensions k  0 1 2 34567 390 2550 0 0 0 0 4 105 50 15 5 0 0 0 0 5 765015100100 630 2555 0 0 0 0 75 5 0 0 0 0 0 0 Fig. 1 Aset S of n = 10 points, with h = 5 of them on the boundary of the convex hull, and the numbers of convex k-gons with  interior points, X (S) k, 123 450 Discrete & Computational Geometry (2022) 68:448–476 to higher dimension. As one main result, they showed that for planar point sets and r ≥ 2, it holds that k k − r − 1 k+1 (−1) X (S) =−T (S), (3) k r r r − 1 k≥2r where T (S) denotes the number of r-tuples of vertex-disjoint edges (e ,..., e ) r 1 r spanned by S that lie in convex position, and are such that the region τ(e ,..., e ), 1 r formed by the intersection of the r half-planes that are bounded by the lines supporting (e ,..., e ) and contain the other edges, has no point of S in its interior [25]. For the 1 r point set S of Fig. 1 we have T (S) = 30, T (S) = 25, and T (S) = 0for r ≥ 4. 2 3 r In [25], the alternating sums of (1), (2), and (3) have been joined by the notion of the r-th alternating moment M (S) of { X (S)} as r k k≥3 k+1 (−1) X (S) for r = 0, ⎪ k k≥3 M (S) := k k − r − 1 k+1 (−1) X (S) for r ≥ 1. r r − 1 k≥3 In this work, we take a similar approach as done in the work of Pinchasi, Radoici ˇ c, ´ and Sharir [25] and extend above-mentioned results to X (S), that is, to convex k, k-gons having a fixed number  of points of S in their interior. We denote by k+1 A (S) := (−1) X (S) k, k≥3 the alternating sum of { X (S)} . In Sect. 2, we mostly concentrate on the case of k, k≥3 polygons with one interior point, i.e.,  = 1, where we prove that k+1 A (S) = (−1) X (S) = n − h 1 k,1 k≥3 for any set S of n points with h of them on the boundary of the convex hull. Further, equations for alternating sums of convex polygons with one given interior point p ∈ S (denoted A (S)) and for alternating sums of convex polygons with one interior point and which contain a given edge e spanned by two points of S on the boundary (denoted k+1 A (S; e)) are obtained. We also derive inequalities for (−1) X (S) for any 1 k,1 k=3 given value t ≥ 3, based on analogous inequalities for X from [25]. In Sect. 3,we consider different weight functions f (k,) and general weighted sums over X (S) k, of the form F (S) = f (k,) X (S). k, k≥3 ≥0 Note that (3) and its proof require that k ≥ 2r. 123 Discrete & Computational Geometry (2022) 68:448–476 451 We show that for any function f (k,) with the property that f (k,) = f (k + 1, − 1) + f (k, − 1), (4) the value of the according sum F (S) is invariant over all sets S of n points. We present several functions f (k,) with this property. Among these functions, we find that for any point set S of n points in general position and for any x ∈ R, it holds that n n−k k  n 2 x (1 + x ) X = (1 + x ) − 1 − x · n − x . k, k=3 =0 Note that (1) is the special case x =−1; for this case and  = 0, set the indeterminate form (1+ x ) := 1. We further show that the maximum number of linearly independent equations F (S) = f (k,) X , where each f (k,) satisfies (4), in j j k, j k≥3 ≥0 terms of the variables X ,is n − 2. In Sect. 4, we relate the results of Sect. 3 to the k, k+1 moments from [25]. We denote by m (k) the multiplicative factor of (−1) X (S) r k in M (S), that is, 1for r = 0, k k − r − 1 m (k) := for r ≥ 1 and k ≥ 2r , r r − 1 0 otherwise. We show the following relations, which only depend on the number n of points. For any point set S with cardinality n and integer 0 ≤ r ≤ 2 it holds that − n +1for r = 0, ⎪ 2 k−+1 F (S) := (−1) m (k − ) X (S) = 2 − n for r = 1, r r − k, ⎪ 2 k≥3 =0 ⎪ − + n for r = 2. Finally, in Sect. 5 we discuss the generalization of the obtained results to higher dimensions. Several more results, in particular on identities involving X for special k, point configurations, can be found in the thesis [29]. An important argument that will be used in the proofs of this work is the continuous motion argument of points. Of course, this argument is not new for the analysis of configurations in combinatorial geometry (see for example [3, 4, 25, 30]). The goal is to prove a property for all point sets in general position in the plane. To this end, the property is first shown to hold for some particular point set (usually a set of points in convex position). Then, one can move the points from the point set, such that only one point is moved at each instant of time, until any particular point configuration is reached. It remains to show that the property holds throughout. The changes on the combinatorial structure of the point set only appear when during a point move, one 123 452 Discrete & Computational Geometry (2022) 68:448–476 point becomes collinear with two other points. It hence is sufficient to check that the property is maintained if one point crosses the edge spanned by two other points of the set. An analogous proof strategy can be applied in R for d > 2. 1.1 Related Work The problem studied in this work is related to one of the most famous problems in combinatorial geometry, namely the one of showing that every set of sufficiently many points in the plane in general position determines a convex k-gon. The problem of determining the smallest integer f (k) such that every set of f (k) points contains a convex k-gon was the original inspiration of Esther Klein and has become well- known as the Erdos–Szek ˝ eres problem. The fact that this number f (k) exists for every k and therefore, for given k, X (S) ≥ 1 when S has sufficiently many points, k, ≥0 was first established in a seminal paper of Erdos ˝ and Szekeres [13] who proved the following bounds on f (k) [13, 14]: 2k − 4 k−2 2 + 1 ≤ f (k) ≤ + 1. k − 2 Subsequently, many improvements have been presented on the upper bound; see [22] for a survey on this problem. Very recently, the problem has been almost settled by k+o(k) a work of Suk [28], who showed that f (k) = 2 . Another recent related work concerning the existence of convex k-gons in point sets is [8]. In a slight variation of the original problem, Erdos ˝ suggested to find the minimum number of points g(k) in the plane in general position containing k points which form an empty convex k-gon. It is easy to show that for empty triangles and empty convex quadrilaterals this number is 3 and 5, respectively. Harborth [18] showed in 1978 that g(5) = 10. Thus X (S) ≥ 1for k = 3, 4, 5 when S has at least g(k) points. However, in 1983 k,0 Horton [19] constructed an infinite set of points with no empty convex heptagon, implying that g(k) is infinite for any k ≥ 7. Much later, Overmars [24] found a set with 29 points without an empty convex hexagon via computer search, a few years after which Gerken [17] and Nicolas [23] proved that g(6) is finite. A weaker restriction of the convex polygon problem has been considered by Bialo- stocki, Dierker, and Voxman [7]. They conjectured that for any two integers k ≥ 3 and ≥ 1, there exists a function C (k,) such that every set with at least C (k,) points contains a convex k-gon whose number of interior points is divisible by .Theyalso showed that their conjecture is true if k ≡ 2(mod )or k ≥  + 3. In parallel to questions concerning the existence of certain configurations in every large enough set of points in general position, also their number has been subject of research. For example, Fabila-Monroy and Huemer [15] considered the number of k-islands in point sets. They showed that for any fixed k, their number is in Ω(n ) for any n-point set in general position and in O(n ) for some such sets. The question of determining the number of convex k-gons contained in any n-point set in general position was raised in the 1970s by Erdos ˝ and Guy [12]. The trivial solution for the case k = 3is . However, already for convex tetragons this question 123 Discrete & Computational Geometry (2022) 68:448–476 453 turns out to be highly non-trivial, as it is related to the search for the minimum number of crossings in a straight-line drawing of the complete graph with n vertices; see again [12]. Erdos ˝ also posed the respective question for the number h (n) of empty convex k-gons [11]. Horton’s construction implies h (n) = 0 for every n and every k ≥ 7, so it remains to consider the cases k = 3,..., 6. For the functions h (n) and h (n), 3 4 asymptotically tight estimates are known. The currently best known bounds are n + 2/3 2 2 2 3/4 Ω(n log n) ≤ h (n) ≤ 1.6196 n + o(n ) and n /2 + Ω(n log n) ≤ h (n) ≤ 3 4 2 2 1.9397 n +o(n ), where the lower bounds can be found in [2] and the upper bounds are due to Bárány and Valtr [5]. For h (n) and h (n), no matching bounds are known. The 5 6 2 2 2 2 best known upper bounds h (n) ≤ 1.0207 n + o(n ) and h (n) ≤ 0.2006 n + o(n ) 5 6 can also be found in [5]. The best known lower bound h (n) ≥ n/229 − 4 is due to Valtr [31]. It is widely conjectured that h (n) grows quadratically in n. However, despite many efforts in the last 30 years, only very recently a superlinear bound of 4/5 h (n) = Ω(n log n) has been shown [2]. A result of independent interest is by Pinchasi, Radoici ˇ c, ´ and Sharir [25], who showed h (n) ≥ h (n) − n /2 − O(n) and 4 3 2 2 h (n) ≥ h (n) − n − O(n). Later, García [16] showed that h (n) ≥ h (n) − (n − 5 3 5 3 5n + h + 4). By this, any improvement of the constant 1 for the dominating factor n of the lower bound of h (n) would imply a quadratic lower bound for h (n). 3 5 2 Alternating Sums In this section, we concentrate on alternating sums of numbers of polygons with one interior point and possibly with some elements fixed. To this end, we introduce some more notation. Let p, q, and r be three points of a set S of n points in general position in the plane. We denote by Δ pqr the triangle with vertices p, q, and r, and by a directed edge e = pq the segment that connects p and q and is oriented from p to q.Wedonot always specify if an edge is directed or undirected when it is clear from the context. We sometimes also write polygon instead of convex polygon since all considered polygons are convex. We say that a polygon lies to left side of a directed edge e if it contained in the left closed half-plane that is bounded by the line through e. For a fixed point p ∈ S, we denote by X (S) the number of convex k-gons spanned by S that contain k,1 p p k+1 exactly p in their interior, and by A (S) := (−1) X (S) the corresponding k≥3 1 k,1 alternating sum. Further, for a directed edge e, we denote by X (S; e) the number k, of convex k-gons with  interior points that have e as a boundary edge and lie on the k+1 left side of e; and by A (S; e) := (−1) X (S; e) the according alternating k, k≥3 sum. Likewise X (S; p) is the number of convex k-gons with  interior points that k, have p on their boundary. If more elements (points and/or edges) are required to be on the boundary of the polygons, then all those are listed after the semicolon in this notation. Further, if an element is required to not be on the boundary of the polygons, then it is listed with a minus. For example, X (S; e, p , − p ) denotes the number k, 1 2 of convex k-gons with  interior points that are on the left of e, and have e and p on their boundary but not p . 123 454 Discrete & Computational Geometry (2022) 68:448–476 In [25], the authors show as a side result (in the proof of Theorem 2.2) that the alternating sum of convex k-gons incident to (the left side of) a directed edge e = pq is 1 if there is at least one point of S\{ p, q} in the left side of e, and 0 otherwise. As we will repeatedly use this result, we explicitly state it as a lemma here. We remark that in [25], A (S) and A (S; e) are denoted as M (S) and M (e), respectively. 0 0 0 0 Lemma 2.1 [25] For any set S of n points in general position in the plane and any directed edge e = pq spanned by two points of S, it holds that 1 if e has at least one point of S\{ p, q} to its left, A (S; e) = 0 otherwise. Lemma 2.2 For any set S of n points in general position in the plane and any point p ∈ S it holds that 0 if p is an extreme point of S, A (S) = 1 otherwise. Proof Obviously, if p is an extreme point of S, then it cannot be in the interior of any polygon spanned by points of S and hence A (S) = 0. So assume that p is not an extreme point of S. Note that every polygon in S that contains exactly p in its interior is an empty polygon in S\{ p}. If p lies close enough to a convex hull edge e of S (an edge on the boundary of the convex hull of S), then p is contained in exactly all polygons that are incident to e and empty in S\{ p}. Hence, A (S) = A (S\{ p}; e) = 1byLemma 2.1. Otherwise, if p is located arbitrarily, consider a continuous path from p to a position close enough to a convex hull edge of S, and move p along this path. This path can be chosen such that it avoids all crossings in the line arrangement spanned by S\{ p} and lies inside the convex hull of S. During this movement, A (S) can only change when p crosses an edge qr spanned by two points of S. Further, changes can only occur from changing amounts of convex k-gons that have qr as an edge. More exactly, when p is moved over qr, from its left to its right side, then the alternating sum of polygons that p “stops being inside” is A (S\{ p}; qr ) = 1, and the alternating sum of polygons that p “starts being inside” is A (S\{ p}; rq) = 1 (note that qr is not a convex hull edge of S). Hence, the value A (S) is the same for all possible positions of p on the path, including the final position for which we already showed A (S) = 1. Theorem 2.3 Given a set S of n points in general position in the plane, h of them extreme, it holds that A (S) = n − h. Proof Any convex k-gon counted in A (S) contains exactly one point in its interior. Hence, we can count the convex k-gons by their interior points and obtain that A (S) = A (S) = n − h. p∈S 1 In the previous result we used A (S; e) to obtain bounds on A (S) and determine A (S). A possible approach for determining A (S) could be via A (S; e).Inthe 1 2 1 following, we show why such an approach cannot work. 123 Discrete & Computational Geometry (2022) 68:448–476 455 p-wedge q-wedge r-wedge q e Fig. 2 Illustration of wedges for a point p andanedge e Recall that, given a set S of n points in general position in the plane, a point p ∈ S, and a directed edge e = qr of S\{ p}, we denote by A (S; e) the alternating sum of polygons that contain exactly p in their interior, have e as a boundary edge, and lie to the left of e. Further, consider the supporting lines  and  of pq and pr, respectively, q r and the four wedges bounded by these lines; see Fig. 2. One of the wedges contains the triangle Δ pqr. One contains p and q but not r; we call it the q-wedge (of p and e). The second one contains p and r but not q; we call it the r -wedge (of p and e). And the last one contains p but not q and r; we call it the p-wedge (of p and e). Lemma 2.4 Given a set S of n points in general position in the plane, a point p ∈ S, and a directed edge e = qr of S\{ p}, it holds that A (S; e) ∈{−1, 0, 1}. Moreover, A (S; e) = 1 if and only if all points of S\{ p, q, r } lie in the interior of the p-wedge of e. Proof The idea for obtaining A (S; e) is to start with A (S\{ p}; e) = 1 and subtract from it the alternating sum of all convex polygons that stay empty when adding p again to S. In the following, we denote the latter with A (S; e, − p).Sowehave A (S; e) = A (S\{ p}; e) − A (S; e, − p). 0 0 As we are only counting polygons on the left side of e, we assume without loss of generality that e is a convex hull edge of S, and S lies to the left of e. Obviously, if p is an extreme point of S, then it cannot be in the interior of any polygon spanned by points of S, and hence A (S; e) = 0. Likewise, if the triangle Δ pqr contains any points of S in its interior, A (S; e) = 0. So assume that p is not an extreme point of S and that Δ pqr is interior-empty. Note that any convex polygon that has e as an edge and a vertex in the p-wedge contains p in its interior. Hence, any polygon counted in A (S; e, − p) has all its vertices (except q and r) in the interior of the q-wedge and the r-wedge. If both, the 123 456 Discrete & Computational Geometry (2022) 68:448–476 r i,q i,r Fig. 3 Angularly sorted points p ,..., p in the interior of the q-wedge (of p and e); the half-plane H 1 i (sketched shaded) and the lines  and  (drawn dashed) for a point p i ,r i ,q i q-wedge and the r-wedge are empty of points (i.e., p lies close enough to e) then A (S; e, − p) = 0 and p is contained in exactly all polygons that are incident to e and empty in S\{ p}. Hence, A (S; e) = A (S\{ p}; e) = 1 by Lemma 2.1. So assume that at least one of the q-wedge and the r-wedge, without loss of generality the r-wedge, contains at least one point of S in its interior. We first count all polygons for A (S; e, − p) that have all vertices except q and r in the interior of the r-wedge. The alternating sum of those polygons is A (S ∩ H ; e, − p) = A (S\{ p}∩ H ; e), where H is the closed half-plane bounded by q 0 q q q that contains e. By Lemma 2.1, A (S ∩ H ; e, − p) = 1. 0 q For counting the polygons in A (S; e, − p) that have at least one vertex in the q-wedge, we consider the points in the interior of the q-wedge in counterclockwise order around p (such that q is “after” the last point) and denote them by p ,..., p . 1 m Then for every i ∈{1,..., m}, consider the line  through p and p and the closed i i half-plane H bounded by  that contains qr.Let S = S ∩ H ; see Fig. 3. i i i i Claim. The alternating sum A (S ; e, p , − p) of empty polygons lying in H that 0 i i i contain the triangle Δ p qr and do not have p as a vertex is 1 if S ={ p, q, r , p }, i i i and 0 otherwise. We first complete the proof under the assumption that the claim holds and then prove the claim. Note that every counted polygon that has a vertex in the q-wedge, has a unique first such vertex in the cyclic order around p for which we can count it. Hence, the total alternating sum over those polygons is the sum of i ∈{1,..., m} of the alternating sums A (S ; e, p , − p) with p being the first used point in the q-wedge. 0 i i i Further, note that for any i < m it holds that p ∈ S and hence S ={ p, q, r , p }. m i i i Thus, the alternating sum of those empty polygons with at least one vertex in the q-wedge is A (S ; e, p , − p) = A (S ; e, p , − p) ∈{0, 1}. 0 i i 0 m m i =1 Altogether, A (S; e, − p) = A (S ∩ H ; e, − p) + A (S ; e, p , − p) ∈{1, 2}. 0 0 q 0 m m Combining this with A (S\{ p}; e) = 1, we obtain that A (S; e) = A (S\{ p}; e) 0 0 123 Discrete & Computational Geometry (2022) 68:448–476 457 − A (S; e, − p) ∈{0, −1} if at least one of the q-wedge and the r-wedge contains points of S. The lemma thus follows. Proof of the claim. If S ={ p, q, r , p }, then the only such empty polygon in H is i i i the triangle Δ p qr, and hence the alternating sum A (S ; e, p , − p) is equal to 1. If i 0 i i S ={ p, q, r , p }, then consider the triangle Δ p qr and its bounding lines  and i i i i ,q spanned by p and q or r, respectively; see again Fig. 3. Those lines split H into i ,r i i three wedges; the q-wedge (of p and e) bounded by the lines  and  , the wedge i i i ,q bounded by  and  , and the r-wedge (of p and e) bounded by  and  .We i ,q i ,r i i ,r i distinguish three cases. Case 1. The triangle Δ p qr contains a point of S in its interior. Then no polygon i i containing Δ p qr can be empty. Hence, the sum A (S ; e, p , − p) is 0. i 0 i i Case 2. All points of S \{ p , p, q, r } lie in one of the other two wedges, without i i loss of generality the q-wedge (of p and e). Then each counted convex k-gon in A (S ; e, p , − p) with k ≥ 4 vertices corresponds to a unique convex (k − 1)-gon 0 i i incident to qp and not having r as a vertex. The alternating sum of those is 1 by Lemma 2.1. Inverting all signs and adding 1 for the triangle Δ p qr, we obtain a total of −1 + 1 = 0. Case 3. Both the q-wedge and the r-wedge (of p and e) contain points of S \{ p , p, q, r } in the interior (and the triangle Δ p qr is empty). We have three i i i different types of polygons that we have to count: (i) the triangle Δ p qr, (ii) the polygons having additional vertices in only one wedge, and (iii) the polygons having additional vertices in both wedges. For the latter, note that the union of the vertex sets of two empty polygons, one con- tained in each wedge, and containing the edge qp , respectively p r, gives a polygon i i that is counted in A (S ; e, p , − p). 0 i i Let S and S be the points of S \{ p} in the interior of the q-wedge and the i ,q i ,r i r-wedge (of p and e), respectively. Note that A (S ; qp ) = A (S ; p r ) = 1. i 0 i ,q i 0 i ,r i Let L = X (S ; qp ) k,0 i ,q i k≥3 k odd be the number of such convex k-gons with odd k.As A (S ; qp ) = 1, the respective 0 i ,q i number of even polygons is L − A (S ; qp ) = L − 1. Similarly, let 0 i ,q i R = X (S ; p r ) k,0 i ,r i k≥3 k odd be the number of such convex k-gons in the other wedge with odd k. Then the number of even convex k-gons in that wedge is R − 1. 123 458 Discrete & Computational Geometry (2022) 68:448–476 For polygons of type (iii), note that combining two polygons with the same parity in the number of vertices, we obtain a polygon with an odd number of vertices, while combining two polygons with different parities we obtain a polygon with an even number of vertices. Hence, the alternating sum for polygons of type (iii) is (LR + (L −1)( R −1))−(L( R −1)+(L −1) R) = (2LR − L − R +1)−(2LR − L − R) = 1. For polygons of type (ii), each polygon with an even number of vertices gives a polygon with an odd number of vertices when combined with the triangle Δ p qr, and vice versa. Hence, the alternating sum for polygons of type (ii) is ((L − 1) + ( R − 1)) − ( R + L) =−2. Finally, for type (i) we only have the triangle Δ p qr, which contributes +1tothe alternating sum. Hence altogether we obtain an alternating sum of +1 − 2 + 1 = 0 also for the third case, which completes the proof of the claim. Note that A (S; e), the alternating sum of convex polygons having e as an edge and exactly one interior point, highly depends on the position of the points of S and cannot be expressed by the number of extreme and non-extreme points of S. On the other hand, A (S; e) = A (S; e) and hence we can use Lemma 2.4 to derive bounds p∈S for A (S; e), analogous to Lemma 2.1 for A (S; e). 1 0 Theorem 2.5 For any set S of n points in general position in the plane, h of them on the boundary of the convex hull, and any edge e = qr of S it holds that max {h, 4}− n ≤ A (S; e) ≤ 1. Proof For the upper bound, consider an arbitrary point p ∈ S\{q, r }, and the q-wedge and the r-wedge of p and qr. Then for A (S; e) = 1, it is necessary that none of those wedges contains points of S in the interior by Lemma 2.4. As this can happen for at most one point of S and as otherwise A (S; e) ≤ 0, the upper bound follows. For the lower bound, note first that for any extreme point p of S we have A (S; e)=0. Hence, A (S; e) ≥ (−1) · (n − h), which for h ≥ 4 is the claimed lower bound. p∈S 1 Further, if e is not a convex hull edge of S, then the points on the non-considered side of e (there is at least one) can be ignored, again implying the claimed bound. So assume that h = 3 and e is a convex hull edge. Let p be a non-extreme point of S that has maximum distance to e. Then, the only convex polygon spanned by S and having e as an edge and that contains p in its interior, is a triangle, since S has h = 3 p p extreme points. This implies that A (S; e) ∈{0, 1} and hence A (S; e) ≥ 1 p∈S 1 (−1) · (n − 4) = 4 − n = max {4, h}− n. We remark that both bounds are tight in the sense that there exist arbitrarily large point sets and edges obtaining them; cf. Fig. 4. For the lower bound, which appears for h = 4, a quadrilateral with a concave chain of n − 4 edges added close enough to one edge, and e being the edge opposite to the chain gives an example of A (S; e) = 4 − n. Actually, that example also contains edges f with A (S; f ) = 1. Moreover, the example can be modified to have a larger convex hull by placing a convex chain of h − 4 points above e (and reducing the number of points inside the quadrilateral to obtain the same total number of points). In the resulting point set, A (S; e) = h − n. A different example for the upper bound is when the considered edge g has a point p sufficiently close to it. This guarantees that any non-empty polygon with g as edge contains p, and hence A (S; g) = A (S\{ p}; g) = 1. 1 0 123 Discrete & Computational Geometry (2022) 68:448–476 459 Fig. 4 Examples reaching the lower and upper bounds of Theorem 2.5: A (S; e) = 4 − n and A (S; f ) = 1 1 1 (left, black points), A (S; e) = h − n (left, black and h − 4 gray points), and A (S; g) = 1 (right) 1 1 2.1 Inequalities Pinchasi, Radoici ˇ c, ´ and Sharir [25] derived several inequalities that involve the param- eters X . In this section, we show analogous inequalities for the parameters X . k,0 k,1 We will need the following lemma proved in [25]. Lemma 2.6 [25] For any set S of n points in general position and a directed edge e spanned by two points of S, if there is at least one point of S to the left of e, then it holds that – for each t ≥ 3 odd, X (S; e) − X (S; e) + X (S; e) − ... + X (S; e) ≥ 1, 3,0 4,0 5,0 t ,0 – for each t ≥ 4 even, X (S; e) − X (S; e) + X (S; e) − ... − X (S; e) ≤ 1, 3,0 4,0 5,0 t ,0 with equality holding, in either case, if and only if X (S; e) = 0. t +1,0 Lemma 2.7 For any set S of n points in general position and a point p ∈ Sin the interior of the convex hull of S, it holds that – for each t ≥ 3 odd, p p p X (S) − X (S) + ... + X (S) ≥ 1, 3,1 4,1 t ,1 – for each t ≥ 4 even, p p p X (S) − X (S) + ... − X (S) ≤ 1, 3,1 4,1 t ,1 with equality holding, in either case, if and only if X (S) = 0. t +1,1 p p Proof First of all, note that if X (S) = 0, then also X (S) = 0 for every j > 1. t +1,1 t + j ,1 Hence, in this case p p p p t +1 X (S) − X (S) + ... + (−1) X (S) = A (S) = 1 3,1 4,1 t ,1 1 123 460 Discrete & Computational Geometry (2022) 68:448–476 by Lemma 2.2 and equality holds. Let us then consider that p is close enough to a convex hull edge e of S. Recall that every polygon in S that contains exactly p in its interior is an empty polygon in S\{ p}. Then p is contained in exactly all polygons that are incident to e and empty in S\{ p}. We therefore get p p p t +1 X (S) − X (S) + ... + (−1) X (S) 3,1 4,1 t ,1 t +1 = X (S\{ p}; e) − X (S\{ p}; e) + ... + (−1) X (S\{ p}; e), 3,0 4,0 t ,0 and the result of Lemma 2.6 applies. If p is located at an arbitrary position in the interior of the convex hull of S, we consider a continuous motion of p which is sufficiently generic, to move p to a position close to a convex hull edge e of S. Proceeding exactly in the same manner as in the proof of Lemma 2.2, we see that p p p t +1 the value of X (S) − X (S) + ... + (−1) X (S) does not change during this 3,1 4,1 t ,1 movement. Theorem 2.8 For any set S of n points in general position in the plane, h of them on the boundary of the convex hull, we have – for each t ≥ 3 odd, X (S) − X (S) + X (S) − ... + X (S) ≥ n − h, 3,1 4,1 5,1 t ,1 – for each t ≥ 4 even, X (S) − X (S) + X (S) − ... − X (S) ≤ n − h, 3,1 4,1 5,1 t ,1 with equality holding, in either case, if and only if X (S) = 0. t +1,1 Proof Observe that, if X (S) = 0 then also X (S) = 0 for every j > 1, and t +1,1 t + j ,1 in this case t +1 X (S) − X (S) + X (S) − ... + (−1) X (S) = A (S) = n − h 3,1 4,1 5,1 t ,1 1 k+1 by Theorem 2.3. Any convex k-gon counted in (−1) X (S) contains exactly k,1 k=3 one point in its interior. Then, X (S) = X (S). We get that k,1 p∈S k,1 t +1 X (S) − X (S) + X (S) − ... + (−1) X (S) 3,1 4,1 5,1 t ,1 p p p p t +1 = X (S) − X (S) + X (S) − ... + (−1) X (S) . 3,1 4,1 5,1 t ,1 p∈S p p p Let t be odd. By Lemma 2.7, X (S) − X (S) + ... + X (S) ≥ 1if p is an interior 3,1 4,1 t ,1 point of S. Therefore, X (S) − X (S) + X (S) − ... + X (S) 3,1 4,1 5,1 t ,1 p p p = X (S) − X (S) + ... + X (S) ≥ n − h. 3,1 4,1 t ,1 p∈S 123 Discrete & Computational Geometry (2022) 68:448–476 461 p p p p If equality holds, then X (S) − X (S) + X (S) − ... + X (S) = 1if p is an 3,1 4,1 5,1 t ,1 interior point of S and, by Lemma 2.7, X (S) = 0 for these points. Therefore, t +1,1 X (S) = 0 for all the points and, in consequence, X (S) = 0. t +1,1 t +1,1 If t is even, the proof is analogous with the unique difference that the inequality is p p p p t +1 X (S) − X (S) + X (S) −... + (−1) X (S) ≤ 1if p is an interior point of S. 3,1 4,1 5,1 t ,1 Therefore, the proof proceeds in the same manner but the direction of the inequalities is reversed. From Theorem 2.8 with t = 4 we obtain the following corollary. Corollary 2.9 X ≥ X − n + h. 4,1 3,1 3 Weighted Sums In this section, we consider sums of the form F (S) = f (k,) X (S). k, k≥3 ≥0 The following theorem is the main tool used throughout this section and the next one. Theorem 3.1 For any function f (k,) that fulfills the equation f (k,) = f (k + 1, − 1) + f (k, − 1), (5) the sum F (S) := f (k,) X (S) is invariant over all sets S of n points k, k≥3 ≥0 in general position, that is, F (S) only depends on the cardinality of S. Proof Consider a point set S in general position. We claim that any continuous motion of the points of S which is sufficiently generic does not change the value of F (S). Consider that p, q, r ∈ S become collinear, with r lying between p and q; thus the only convex polygons spanned by S that may change are those that have pq as an edge and r in its interior or those that have p, q, and r as vertices. Let Q be a convex k-gon with  interior points that contains pq as an edge and r in its interior. If r moves outside of Q, then Q has  − 1 points in its interior and the (k + 1)- gon Q obtained by replacing the edge pq of Q by the polygonal path pr q, starts being convex with  − 1 points in its interior. Hence, in this movement we can assign each polygon counted in X (which disappears) to one polygon counted in X and to k, k,−1 one counted in X (which appears). Since f (k,) = f (k+1,−1)+ f (k,−1), k+1,−1 the movement of the point does not change the value of F (S). Symmetrically, if r moves inside Q (with  points in its interior), then Q has  + 1 points in its interior and the (k + 1)-gon Q , with also  points in its interior, stops being convex. Again, this does not change the value of F (S). Observation 3.2 Let f (k,) and f (k,) be two functions that fulfill (5). Then every 1 2 linear combination of f (k,) and f (k,) fulfills (5) as well. 1 2 Using Theorem 3.1, we first derive several relations for the sum over all convex polygons, weighted by their number of interior points. Each of this relations is proved by showing that the function f (k,) satisfies (5) and by evaluating F (S) for a set of n points in convex position. Note that for point sets in convex position X = 0for k, ≥ 1. 123 462 Discrete & Computational Geometry (2022) 68:448–476 Corollary 3.3 For any set S of n ≥ 3 points in general position, it holds that n n−3 n n 2 X (S) = 2 − − − 1. k, 2 2 k=3 =0 −1 −1 Proof Let f (k,) = 2 . Then 2 = 2 + 2 = f (k + 1, − 1) + f (k, − 1). For a set S of n points in convex position we get n n n n n n n n 0 n n 2 X = = 2 − − − = 2 − − − 1. k,0 k 2 1 0 2 2 k=3 k=3 Corollary 3.4 For any set S of n points in general position, and every integer 3 ≤ m ≤ n it holds that m n−k X (S) = . k, m − k m k=3 =m−k Proof Let f (k,) = and note that m is fixed. Then m−k − 1  − 1 f (k,) = = + = f (k + 1, − 1) + f (k, − 1). m − k m − k − 1 m − k For a set S of n points in convex position we get 0 n X (S) = X (S) = . k,0 m,0 m − k m k=3 Let {Fib(n)} be the sequence of Fibonacci numbers, satisfying the recurrence n∈Z relation Fib(n) = Fib(n − 1) + Fib(n − 2) with Fib(0) = 0 and Fib(1) = 1. Corollary 3.5 For any set S of n ≥ 3 points in general position it holds that n n−3 Fib(k + 2) X (S) = Fib(2n) − n − . k, k=3 =0 Proof The function f (k,) = Fib(k + 2) satisfies (5) by definition of the Fibonacci numbers. Consider then a set S of n points in convex position and use the following identity (see [26]): Fib(k) = Fib(2n). k=0 123 Discrete & Computational Geometry (2022) 68:448–476 463 Then n n n n Fib(k + 0) X (S) = Fib(k) = Fib(2n) − n − . k,0 k 2 k=3 k=3 Corollary 3.6 For any set S of n ≥ 3 points in general position it holds that n n−3 k+ (−1) Fib(k − ) X (S) =− Fib(n) + n − . k, k=3 =0 k+ Proof The function f (k,) = (−1) Fib(k − ) satisfies (5) by definition of the Fibonacci numbers. Consider then a set S of n points in convex position and use the following identity (see [26]): (−1) Fib(k) =− Fib(n). k=0 Then n n n n k+0 k (−1) Fib(k − 0) X (S) = (−1) Fib(k) =− Fib(n) + n − . k,0 k 2 k=3 k=3 Corollary 3.7 Any set S of n ≥ 3 points in general position satisfies the following equations: n n−3 (2k + )π n nπ 2 cos X (S) = + n − 2 + 2 cos , (6) k, 3 2 3 k=3 =0 n n−3 2 (2k + )π n 2 nπ √ sin X (S) = − n + √ sin . (7) k, 3 2 3 3 3 k=3 =0 Proof Equations (6) and (7) are obtained using Chebyshev polynomials, see e.g. [21]. The Chebyshev polynomials of the first kind, T (x ) := cos mθ with x = cos θ, satisfy the recurrence relation T (x ) = 2xT (x ) − T (x ).For x = 1/2, this gives the m m−1 m−2 relation (m − 1)π mπ (m − 2)π cos = cos + cos . 3 3 3 Now set m = 2k +  + 1 and observe that the function f (k,) := 2 cos ((2k +)π/3) satisfies (5). Consider then a set S of n points in convex position. We use a binomial 123 464 Discrete & Computational Geometry (2022) 68:448–476 identity, which can be found in [27, equation (1.26)], n ny y cos ky = 2 cos · cos . k 2 2 k=0 With y = 2π/3 and hence cos( y/2) = 1/2 we obtain (6): n n 2 n 2kπ n 2kπ f (k, 0) X (S) = 2 cos − 2 cos 1 k,0 k 3 k 3 k=3 k=0 k=0 nπ n = 2 cos + + n − 2. 3 2 To prove (7), consider the Chebyshev polynomial of the second kind, sin (m + 1)θ U (x ) := , sin θ with x = cos θ. U (x ) satisfies U (x ) = 2xU (x ) − U (x ).For x = 1/2, this m m m−1 m−2 gives the relation mπ (m + 1)π (m − 1)π sin = sin + sin . 3 3 3 Now set m =2k+ and observe that the function f (k,) := (2/ 3) sin((2k + )π /3) satisfies (5). Consider then a set S of n points in convex position. We use a binomial identity, which can be found in [27, equation (1.27)], n ny y sin ky = 2 sin · cos . k 2 2 k=0 This identity with y = 2π/3 completes the proof of (7): n n 2 2 n 2kπ 2 n 2kπ f (k, 0) X (S) = √ sin − √ sin 2 k,0 k 3 k 3 3 3 k=3 k=0 k=0 2 nπ n = √ sin + − n. 3 2 Next we show that the functions f (k,) can be expressed as a linear combination of the functions f (k + i , 0),for i = 0,...,. Theorem 3.8 The general solution of the recurrence relation f (k,) = f (k +1,−1) + f (k, − 1) is given by the equation f (k,) = f (k + i , 0). (8) i =0 123 Discrete & Computational Geometry (2022) 68:448–476 465 Proof We prove the statement by induction on . It is straightforward to verify the base case  = 1. For the inductive step, let λ ≥ 0 be given and suppose (8) holds for = λ. Then f (k,λ + 1) = f (k + 1,λ) + f (k,λ) λ λ λ λ = f (k + 1 + i , 0) + f (k + i , 0) i i i =0 i =0 λ+1 λ λ λ = f (k + i , 0) + f (k + i , 0) i − 1 i i =1 i =0 λ λ = f (k, 0) + f (k + λ + 1, 0) + + f (k + i , 0) i i − 1 i =1 λ+1 λ + 1 = f (k + i , 0). i =0 Note that there may be many functions f (k,) that fulfill (5), thus many different sums F (S) that only depend on n. An interesting point of view is to analyze how many of them are independent. Proposition 3.9 The maximum number of linearly independent equations F (S) = f (k,) X , where each f (k,) satisfies (8), in terms of the variables j k, j k≥3 ≥0 X is n − 2. k, n n−k Proof Let F (S) = f (k,) X ,for 1 ≤ j ≤ n − 1, be sums that only j j k, k=3 =0 depend on n, where f (k,) satisfies (8) for all j. Let us consider the matrix ⎛ ⎞ f (3, 0) f (3, 1) ··· f (k,) ··· f (n − 1, 1) f (n, 0) 1 1 1 1 1 ⎜ ⎟ f (3, 0) f (3, 1) ··· f (k,) ··· f (n − 1, 1) f (n, 0) ⎜ ⎟ 2 2 2 2 2 ⎜ ⎟ ⎜ ⎟ . . . . . . . ⎜ . . . . . . . ⎟ . . . . . . . ⎜ ⎟ M = ⎜ ⎟ , ⎜ ⎟ f (3, 0) f (3, 1) ··· f (k,) ··· f (n − 1, 1) f (n, 0) j j j j j ⎜ ⎟ ⎜ ⎟ . . . . . . . ⎜ ⎟ . . . . . . . ⎝ . . . . . . . ⎠ f (3, 0) f (3, 1) ··· f (k,) ··· f (n − 1, 1) f (n, 0) n−1 n−1 n−1 n−1 n−1 whose entries are the f (k,) for 3 ≤ k ≤ n,0 ≤  ≤ n − k, and 1 ≤ j ≤ n − 1. The function f occupies the entries of row number j of M.Let C [h] be column number h of M. The first column C [1] contains the functions f (k,) for values k = 3 and  = 0, then the following columns are for the values k = 3 and  ≥ 1in ascending order, then there are columns containing the functions with values k = 4 and ≥ 0 in ascending order, and so on. This order implies that, for given values k and , k−1 matrix entries f (k,) are in column C [h] of M, where h = (n −i +1)++1. It i =3 123 466 Discrete & Computational Geometry (2022) 68:448–476 is sufficient to show that the matrix M has rank n − 2. Since each f (k,) satisfies (8), we can express matrix M as follows: ⎛   ⎞ f (3, 0) ··· f (k + i , 0) ··· f (n, 0) 1 1 1 i =0 ⎜  ⎟ ⎜ ⎟ f (3, 0) ··· f (k + i , 0) ··· f (n, 0) 2 2 2 i =0 ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ ⎜ ⎟ M = . ⎜ ⎟ ⎜ f (3, 0) ··· f (k + i , 0) ··· f (n, 0) ⎟ j j j i =0 ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ ⎟ . . . . . . . . . . ⎝ ⎠ f (3, 0) ··· f (k + i , 0) ··· f (n, 0) n−1 n−1 n−1 i =0 i We observe that the columns corresponding to the functions with > 0 depend on the n −2 columns with  = 0. With adequate operations these columns can be transformed to columns of zeros. That is, if we change each column C [h] corresponding to the functions with > 0 in the following manner: k−1 C (n − s + 1) +  + 1 s=3 k−1  k+i −1 −→ C (n − s + 1) +  + 1 − C (n − s + 1) + 1 , s=3 i =0 s=3 we obtain the matrix ⎛ ⎞ f (3, 0) 0 ··· f (k, 0) ··· 0 f (n, 0) 1 1 1 ⎜ ⎟ f (3, 0) 0 ··· f (k, 0) ··· 0 f (n, 0) ⎜ ⎟ 2 2 2 ⎜ ⎟ ⎜ ⎟ . . . . . . . ⎜ . . . . . . . ⎟ . . . . . . . ⎜ ⎟ ⎜ ⎟ . ⎜ ⎟ f (3, 0) 0 ··· f (k, 0) ··· 0 f (n, 0) j j j ⎜ ⎟ ⎜ ⎟ . . . . . . . ⎜ ⎟ . . . . . . . . . . . . . . ⎝ ⎠ f (3, 0) 0 ··· f (k, 0) ··· 0 f (n, 0) n−1 n−1 n−1 Thus, there are only n − 2 non-zero columns corresponding to the functions f (k, 0), implying that the maximum possible rank of M is n − 2. Using the general solution of Theorem 3.8, we derive further relations for sums over all convex polygons. Corollary 3.10 For any point set S of n ≥ 3 points in general position and for any x ∈ R, it holds that n n−k k  n 2 P (S) := x (1 + x ) X = (1 + x ) − 1 − x · n − x . (9) x k, k=3 =0 123 Discrete & Computational Geometry (2022) 68:448–476 467 k+i Proof Define f (k + i , 0) = x , then k i k f (k,) = f (k + i , 0) = x x = x (1 + x ) . i i i =0 i =0 The result then follows by considering a set of n points in convex position and we have n n k n 2 x = (1 + x ) − 1 − nx − x . k 2 k=3 Observation 3.11 Corollary 3.3 is the particular case x = 1 of Corollary 3.10. As shown in Proposition 3.9, the maximum number of possible linearly independent equations is n −2. From Corollary 3.10, we can obtain multiple equations of this form. Therefore, we evaluate the independence of these equations. Proposition 3.12 For any point set S of n ≥ 3 points in general position, let x ∈ R , j =0 with 1 ≤ j ≤ n − 2, be distinct values, and consider the n − 2 equations P (S) = n n−k x (1 + x ) X . Then these equations are linearly independent. j k, k=3 =0 j Proof Using the argument of the proof of Proposition 3.9, it is sufficient to analyze the columns corresponding to the variables X . Thus, we consider the matrix k,0 ⎛ ⎞ 3 4 k n x x ··· x ··· x 1 1 1 1 ⎜ ⎟ 3 4 k n ⎜ ⎟ x x ··· x ··· x 2 2 2 2 ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ ⎜ ⎟ ⎜ ⎟ 3 4 k n x x ··· x ··· x ⎜ ⎟ j j j j ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ . . . . . ⎝ ⎠ 3 4 k n x x ··· x ··· x n−2 n−2 n−2 n−2 Now, we can divide each row j by x and we obtain ⎛ ⎞ k−3 n−3 1 x ··· x ··· x 1 1 ⎜ ⎟ k−3 n−3 ⎜ ⎟ 1 x ··· x ··· x 2 2 ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ ⎜ ⎟ ⎜ k−3 n−3⎟ 1 x ··· x ··· x ⎜ j ⎟ j j ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ . . . . . ⎝ ⎠ k−3 n−3 1 x ··· x ··· x n−2 n−2 n−2 123 468 Discrete & Computational Geometry (2022) 68:448–476 This matrix is an (n − 2) × (n − 2) Vandermonde matrix and all x are distinct. Therefore the rank of the matrix is n − 2, implying that the n − 2 equations are linearly independent. The following result is an immediate consequence of Proposition 3.9, Corol- lary 3.10, and Proposition 3.12. Corollary 3.13 Let S be a set of n points in general position. Any sum of the form f (k,) X , where the function f (k,) fulfills (5), can be expressed by k, k≥3 ≥0 n − 2 terms of the form (9) with distinct values x ∈ R. 4 Moment Sums Recall that Theorem 2.3 states that for any set S of n points in general position, the alternating sum of the numbers of polygons with one interior point is A (S) = n − h. Combining this with the first moment of the numbers of empty polygons M (S) = n n 2 − h from [25], we observe that the difference M (S) − A (S) = 2 − n is 1 1 2 2 again a function that only depends on the cardinality n of S and hence is independent of the combinatorics of the underlying point set S. In this section, we show that the latter observation can actually be extended to moment sums for convex polygons with at most two interior points. Theorem 4.1 For any set S of n points in general position and for integers 0 ≤ r ≤ 2, it holds that − n + 1 for r = 0, ⎪ 2 k−+1 F (S) := (−1) m (k − ) X (S) = 2 −nfor r = 1, r r − k, ⎪ 2 k≥3 =0 − +nfor r = 2. Proof For the case r = 0, k−+1 F (S) = (−1) m (k − ) X (S) 0 0− k, k≥3 =0 k+1 = (−1) X (S) = − n + 1 k≥3 by (1), proved by Edelman and Jamison in [9]; see also [25]. For the case r = 1, k−+1 F (S) = (−1) m (k − ) X (S) 1 1− k, k≥3 =0 123 Discrete & Computational Geometry (2022) 68:448–476 469 k+1 k = (−1) kX (S) + (−1) X (S). k k,1 k≥3 k≥3 The first sum in this expression is given by (2), which was proved by Ahrens, Gordon, and McMahon [1], seealso[25], and is equal to 2 − h; and the second sum is, by n n Theorem 2.3, equal to −(n − h). Then, 2 − h − (n − h) = 2 − n. 2 2 For the case r = 2, we have k−+1 F (S) = (−1) m (k − ) X (S) 2 2− k, k≥3 =0 k(k − 3) k+1 k k+1 = (−1) X + (−1) (k − 1) X + (−1) X . k,0 k,1 k,2 k≥3 Let k−+1 (−1) m (k − ) for 0 ≤  ≤ 2, 2− f (k,) := 0for2 <. Using f (k,), we can express the sum as F (S) = f (k,) X (S). 2 k, k≥3 ≥0 We first show that F (S) only depends on the cardinality n of S by proving that the function f (k,) fulfills (5) from Theorem 3.1, namely, for all > 0, it holds that f (k + 1, − 1) + f (k, − 1) = f (k,).For > 3, (5) is trivially true as all terms in the equation are equal to zero. For  = 3, we have f (k,) = 0 and f (k + 1, − 1) + f (k, − 1) (k+1)−(−1)+1 = (−1) m ((k + 1) − ( − 1)) 2−(−1) k−(−1)+1 + (−1) m (k − ( − 1)) 2−(−1) k−+3 k−+2 = (−1) m (k −  + 2) + (−1) m (k −  + 1) = 0. 0 0 For 0 < ≤ 2, (5)for f (k,) can be stated in terms of the function m (k), which gives m (k −  + 2) − m (k −  + 1) = m (k − ). (10) 2−+1 2−+1 2− We consider the cases  = 2,  = 1, and  = 0 separately. –Let  = 2. The truth of (10) follows directly from m (k) = k for k ≥ 2 and m (k) = 1. –Let  = 1. If k = 3, then m (k) = 0 and m (k +1) = m (k −1) = 2; the statement 2 2 1 holds. If k ≥ 4, then m (k + 1) − m (k) = (k + 1)(k − 2)/2 − k(k − 3)/2 = 2 2 k − 1 = m (k − 1); the statement holds. –Let  = 0. If k = 3 then m (k + 2) = m (k + 1) = m (k) = 0; the statement 3 3 2 holds. If k = 4, then m (k +1) = 0 and m (k +2) = m (k −1) = 2; the statement 3 3 2 k−2 k−3 holds. If k ≥ 5, then m (k + 2) − m (k + 1) = (k + 2) /3 − (k + 1) /3 = 3 3 2 2 k(k − 3)/2 = m (k); the statement holds. 123 470 Discrete & Computational Geometry (2022) 68:448–476 This finishes the proof that F (S) only depends on the cardinality |S|= n. So what remains to show is that F (S) =− + n. To this end, let S be set of n points in convex position. Then, X (S) = and X (S) = 0for > 0. We get k,0 k, 2 n k(k − 3) n k−+1 k+1 F (S) = (−1) m (k − ) X (S) = (−1) . 2 2− k, 2 k k≥3 =0 k=3 n k n n k 2 n Since (−1) k = 0 and (−1) k = 0, see [26], we have k=0 k=0 k k k(k − 3) n n k+1 F (S) = 0 − (−1) =− + n. 2 k 2 k=0 5 Higher Dimensions In this section, we consider the generalization of the previous results to d-dimensional Euclidean space R ,for d ≥ 3. To this end, let S be a set of n ≥ d + 1 points in R in general position, that is, no hyperplane contains more than d points of S.We again denote by h the number of extreme points of S, that is, the points of S that lie on the boundary of the convex hull of S. For each k ≥ d + 1, let X (S) be the number of empty convex k-vertex polytopes spanned by S, and let X (S) be the number of k, convex k-vertex polytopes of S that have exactly  points of S in their interior. In [25], the authors extend their results on alternating moments of point sets in the Euclidean plane to point sets S in R . They show that k+d+1 d−k M (S) := (−1) X (S) = (−1) , 0 k k≥d+1 k=0 k+d+1 d−k M (S) := (−1) kX (S) = (−1) k + i , 1 k k≥d+1 k=0 where M (S) is again called the r-th alternating moment of { X (S)} and i = r k k≥d+1 n − h is the number of interior points of S. The proofs of [25] make use of a continous motion argument of points in R . The same argument is applied in the following, so we refer the reader also to [25]. 5.1 Alternating Sums For an oriented facet f ,let X (S; f ) be the number of empty convex k-vertex poly- topes that have f as a boundary facet and lie on the positive side of f . In the proof of Theorem 4.2 in [25], the authors generalize Lemma 2.2 to R . The following lemma is implicit in [25]. 123 Discrete & Computational Geometry (2022) 68:448–476 471 Lemma 5.1 [25] For any set S of n ≥ d + 1 points in general position in R and any oriented facet f spanned by d points of S, it holds that ⎪ 1 if f has at least one point k+d+1 A (S; f ) := (−1) X (S; f ) = of S on the positive side, 0 k k≥d+1 0 otherwise. In accordance to the planar case, we denote by A (S) the alternating sum of convex polytopes that contain exactly p in their interior. Using Lemma 5.1, Lemma 2.2 can be generalized to the following. Lemma 5.2 For any set S of n ≥ d + 1 points in general position in R and any point p ∈ S it holds that 0 if p is an extreme point of S, A (S) = 1 otherwise. Proof If p is an extreme point of S, then it cannot be in the interior of any convex polytope spanned by points of S and hence A (S) = 0. So assume that p is not an extreme point of S.If p lies close enough to a convex hull facet f of S, then p is contained in exactly all polytopes that are incident to f and empty in S\{ p}. Hence, A (S) = A (S\{ p}; f ) = 1byLemma 5.1.Otherwise,if p is located arbitrarily, consider a continuous path from p to a position close enough to a convex hull facet of S and move p along this path. The path can be chosen such that it avoids all lower dimensional elements in the hyperplane arrangement spanned by S\{ p} and lies inside the convex hull of S. During this movement, A (S) can only change when p crosses a facet f spanned by d points of S. Further, changes can only occur from changing amounts of polytopes that have f as a facet. Similar to X (S; f ),let X (S; f ) be k k the number of empty convex k-vertex polytopes that have f as a boundary facet and lie on the negative side of f . When p is moved through f (from its positive to its negative side), then the alternating sum of polytopes that p “stops being inside” is A (S\{ p}; f ) = 1, and the alternating sum of polytopes that p “starts being inside” is A (S\{ p}; f ) = 1 (note that f is not a convex hull facet of S). Hence, the value A (S) is the same for all possible positions of p on the path, including the final position for which we already showed A (S) = 1. Likewise, Theorem 2.3 generalizes to R , with an analogous proof as in Sect. 2. Theorem 5.3 Given a set S of n ≥ d + 1 points in general position in R , h of them extreme, it holds that A (S) = n − h. However, the proofs of the results for A (S; e) and A (S; e) do not carry over, as the cyclic ordering of the remaining points around p in the proof of Lemma 2.4 does not have a direct higher dimensional counterpart. 123 472 Discrete & Computational Geometry (2022) 68:448–476 5.2 Weighted Sums We next consider higher dimensional versions of the results from Sect. 3.Inthe following, we denote by X (S; f ) the number of convex k-vertex polytopes with k, interior points, with vertices and interior points a subset of S, that have f as a boundary facet and lie to the positive side of f . We denote by X (S; p) the number of convex k, k-vertex polytopes with  interior points that have p on their boundary. The notation is again generalized to more required boundary elements by listing them all after S. For example, X (S; f , p , p , p ) denotes the number of convex k-vertex polytopes k, 1 2 3 with  interior points that have f , p , p , and p on their boundary. 1 2 3 SimilarlytoLemma 2.2, Theorem 3.1 can directly be generalized to higher dimen- sions. Theorem 5.4 For any function f (k,) that fulfills the equation f (k,) = f (k + 1, − 1) + f (k, − 1), (11) the sum F (S) = f (k,) X (S) is invariant over all sets S of n ≥ d + 1 k, ≥0 k≥0 points in general position in R , that is, F (S) only depends on the cardinality of S and the dimension d . Proof Consider a point set S in general position, an arbitrary point p ∈ S, and the numbers X (S) of polytopes in S that contain p in the interior. When continuously k, moving the points of S, the values X (S) change exactly when a point p crosses a k, facet f spanned by points of S, from the positive to the negative side, or vice versa. Consider such a change and denote the resulting point set by S . Assume without loss of generality that p is to the positive side of f in S and to the negative side of f in S . Note that in S, all polytopes with f on their boundary and lying on the positive side of f have p in their interior (except for the empty simplex containing p and f , which exists before and after the change). Further, for every  ≥ 1 and every polytope (with facets { f , f ,..., f }) counted in X (S; f ), we have exactly one polytope that is 1 r k, counted in X (S ; f ) (informally, the same polytope, just without p in its interior), k,−1 and one polytope counted in X (S ; f ,..., f , p) (informally, the same polytope, k,−1 1 r just with p added on the boundary outside f ). Symmetrically, for every polytope in S that has f on its boundary and p in the interior, there are two polytopes in S with one point less in the interior and zero and one point more, respectively, on the boundary. As f (k,) = f (k + 1, − 1) + f (k, − 1), this implies that no such point move changes the sum F (S). The proofs of the following formulae all go along the same lines as their planar counterparts and are omitted. Corollary 5.5 For any set S of n ≥ d + 1 points in general position in R , it holds that n n−d−1 d 2 X (S) = 2 − . k, k=d+1 k=0 =0 123 Discrete & Computational Geometry (2022) 68:448–476 473 Corollary 5.6 For any set S of n ≥ d + 1 points in general position in R and every integer d + 1 ≤ m ≤ n it holds that m n−k X (S) = . k, m − k m k=d+1 =m−k Corollary 5.7 For any set S of n ≥ d + 1 points in general position in R , it holds that n n−d−1 d Fib(k + 2) X (S) = Fib(2n) − Fib(k). k, k=d+1 =0 k=0 Corollary 5.8 For any set S of n ≥ d + 1 points in general position in R , it holds that n n−d−1 d k+ k+1 (−1) Fib(k − ) X (S) =− Fib(n) + (−1) Fib(k). k, k=d+1 =0 k=0 Corollary 5.9 For any set S of n ≥ d + 1 points in general position in R , it holds that n n−d−1 d (2k + ) π nπ n 2kπ 2 cos X (S) = 2 cos − 2 cos and k, 3 3 k 3 k=d+1 k=0 =0 n n−d−1 d 2 (2k + ) π 2 nπ 2 n 2kπ √ sin X (S) = √ sin − √ sin . k, 3 3 k 3 3 3 3 k=d+1 =0 k=0 Corollary 5.10 For any set S of n ≥ d + 1 points in general position in R and for any x ∈ R, it holds that n n−k d k  n k x (1 + x ) X = (1 + x ) − x . (12) k, k=d+1 =0 k=0 From (12) the following can be deduced, analogous to Proposition 3.9 and Corol- lary 3.13. Proposition 5.11 For any set S of n points in general position in R , the maximum number of linearly independent equations F (S) = f (k,) X , where j j k, k≥3 ≥0 each f (k,) satisfies (11), in terms of the variables X is n − d. j k, Corollary 5.12 Let S beasetofn ≥ d + 1 points in general position in R .Any sum f (k,) X , where the function f (k,) fulfills (11), can be expressed in k, k≥3 ≥0 terms of n − d equations of the form (12) with distinct values x ∈ R. 123 474 Discrete & Computational Geometry (2022) 68:448–476 5.3 Moment Sums Recall that Theorem 5.3 states that for any set S of n points in general position in R , the alternating sum of the numbers of convex polytopes with one interior point is A (S) = n − h. Combining this with the first moment of the numbers of empty d d−k n convex polytopes M (S) = (−1) k + i from [25], we observe that also k=0 d n d d−k in R , the difference M (S) − A (S) = (−1) k is a function that only 1 1 k=0 depends on the cardinality n of S and hence is independent of the combinatorics of the underlying point set S.For r = 2 and any point set S in general position in R let k k − r − 1 k(k − 3) k+1 k+1 M (S) := (−1) X (S) = (−1) X (S) 2 k k r r − 1 2 k≥d+1 k≥d+1 be the second alternating moment of { X (S)} . Then, Theorem 4.1 can be gen- k k≥d+1 eralized to R in the following way. Theorem 5.13 For any set S of n ≥ d + 1 points in general position in R and for integers 0 ≤ r ≤ 2 it holds that k−+1+d F (S) := (−1) m (k − ) X (S) r r − k, k≥d+1 =0 d−k ⎪ (−1) for r = 0, ⎪ k=0 d−k = (−1) k for r = 1, ⎪ k ⎪ k=0 k(k − 3) n ⎪ d+k (−1) for r = 2. 2 k k=0 The proof of this theorem is identical to the proof of Theorem 4.1, except that the summation starts with k = d + 1 instead of k = 3. Acknowledgements Research of C.H. was partially supported by project MTM2015-63791-R (MINECO/ FEDER), PID-2019-104129GB-I00/MCIN/AEI/10.13039/501100011033, and by project Gen. Cat. DGR 2017SGR1336. D.O. was partially supported by project PAPIIT IG100721 and CONACyT 282280. P. P-L. was partially supported by project DICYT 041933PL Vicerrectoría de Investigación, Desarrollo e Inno- vación USACH (Chile), and Programa Regional STICAMSUD 19-STIC-02. Research of B.V. was partially supported by the Austrian Science Fund (FWF) within the collaborative DACH project Arrangements and Drawings as FWF Project I 3340-N35. We thank an anonymous referee for helpful comments. This project has been supported by the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No 734922. Funding Open access funding provided by the Graz University of Technology. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give 123 Discrete & Computational Geometry (2022) 68:448–476 475 appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. References 1. Ahrens, C., Gordon, G., McMahon, E.W.: Convexity and the beta invariant. Discrete Comput. Geom. 22(3), 411–424 (1999) 2. Aichholzer, O., Balko, M., Hackl, Th., Kyncl, ˇ J., Parada, I., Scheucher, M., Valtr, P., Vogtenhuber, B.: A superlinear lower bound on the number of 5-holes. J. Comb. Theory Ser. A 173, # 105236 (2020) 3. Aichholzer, O., García, J., Orden, D., Ramos, P.: New lower bounds for the number of (≤ k)-edges and the rectilinear crossing number of K . Discrete Comput. Geom. 38(1), 1–14 (2007) 4. Andrzejak, A., Aronov, B., Har-Peled, S., Seidel, R., Welzl, E.: Results on k-sets and j-facets via continuous motion. In: 14th Annual Symposium on Computational Geometry (Minneapolis 1998), pp. 192–199. ACM, New York (1998) 5. Bárány, I., Valtr, P.: Planar point sets with a small number of empty convex polygons. Stud. Sci. Math. Hung. 41(2), 243–266 (2004) 6. Bautista-Santiago, C., Díaz-Báñez, J.M., Lara, D., Pérez-Lantero, P., Urrutia, J., Ventura, I.: Computing optimal islands. Oper. Res. Lett. 39(4), 246–251 (2011) 7. Bialostocki, A., Dierker, P., Voxman, B.: Some notes on the Erdos–Szek ˝ eres theorem. Discrete Math. 91(3), 231–238 (1991) 8. Duque, F., Fabila-Monroy, R., Hidalgo-Toscano, C.: Point sets with small integer coordinates and no large convex polygons. Discrete Comput. Geom. 59(2), 461–476 (2018) 9. Edelman, P.H., Jamison, R.E.: The theory of convex geometries. Geom. Ded. 19(3), 247–270 (1985) 10. Edelman, P.H., Reiner, V.: Counting the interior points of a point configuration. Discrete Comput. Geom. 23(1), 1–13 (2000) 11. Erdos, ˝ P.: Some old and new problems in combinatorial geometry. In: Convexity and Graph Theory (Jerusalem 1981). North-Holland Mathematical Studies, vol. 87. Annals of Discrete Mathematics, vol. 20, pp. 129–136. North-Holland, Amsterdam (1984) 12. Erdos, ˝ P., Guy, R.K.: Crossing number problems. Am. Math. Monthly 80, 52–58 (1973) 13. Erdös, P., Szekeres, G.: A combinatorial problem in geometry. Compos. Math. 2, 463–470 (1935) 14. Erdos, ˝ P., Szekeres, G.: On some extremum problems in elementary geometry. Ann. Univ. Sci. Budapest. Eötvös Sect. Math. 3-4, 53–62 (1960/1961) 15. Fabila-Monroy, R., Huemer, C.: Covering islands in plane point sets. In: Computational Geometry (Alcalá de Henares 2011). Lecture Notes in Computer Science, vol. 7579, pp. 220–225. Springer, Cham (2011) 16. García, A.: A note on the number of empty triangles. In: Computational Geometry (Alcalá de Henares 2011). Lecture Notes in Computer Science, vol. 7579, pp. 249–257. Springer, Cham (2011) 17. Gerken, T.: Empty convex hexagons in planar point sets. Discrete Comput. Geom. 39(1–3), 239–272 (2008) 18. Harborth, H.: Konvexe Fünfecke in ebenen Punktmengen. Elem. Math. 33(5), 116–118 (1978) 19. Horton, J.D.: Sets with no empty convex 7-gons. Can. Math. Bull. 26(4), 482–484 (1983) 20. Klain, D.A.: An Euler relation for valuations on polytopes. Adv. Math. 147(1), 1–34 (1999) 21. Mason, J.C., Handscomb, D.C.: Chebyshev Polynomials. Chapman & Hall/CRC, Boca Raton (2003) 22. Morris, W., Soltan, V.: The Erdos–Szek ˝ eres problem on points in convex position—a survey. Bull. Am. Math. Soc. 37(4), 437–458 (2000) 23. Nicolás, C.M.: The empty hexagon theorem. Discrete Comput. Geom. 38(2), 389–397 (2007) 24. Overmars, M.: Finding sets of points without empty convex 6-gons. Discrete Comput. Geom. 29(1), 153–158 (2003) 25. Pinchasi, R., Radoici ˇ c, ´ R., Sharir, M.: On empty convex polygons in a planar point set. J. Comb. Theory Ser. A 113(3), 385–419 (2006) 26. Spivey, M.Z.: Combinatorial sums and finite differences. Discrete Math. 307(24), 3130–3146 (2007) 123 476 Discrete & Computational Geometry (2022) 68:448–476 27. Sprugnoli, R.: Riordan array proofs of identities in Gould’s book (2006). http://www.dsi.unifi.it/resp/ GouldBK.pdf 28. Suk, A.: On the Erdos–Szek ˝ eres convex polygon problem. J. Am. Math. Soc. 30(4), 1047–1053 (2017) 29. Torra Clotet, F.: Combinatorial Properties of Convex Polygons in Point Sets Title. MSc thesis, Univer- sitat Politècnica de Catalunya (2019). https://upcommons.upc.edu/handle/2117/166052 30. Tverberg, H.: A generalization of Radon’s theorem. J. Lond. Math. Soc. 41, 123–128 (1966) 31. Valtr, P.: On empty pentagons and hexagons in planar point sets. In: 18th Computing: Australasian Theory Symposium (Melbourne 2012), pp. 47–48. Australian Computer Society, Darlinghurst (2012) Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png Discrete & Computational Geometry Springer Journals

On Weighted Sums of Numbers of Convex Polygons in Point Sets

Loading next page...
 
/lp/springer-journals/on-weighted-sums-of-numbers-of-convex-polygons-in-point-sets-PitkwfFZcC

References (34)

Publisher
Springer Journals
Copyright
Copyright © The Author(s) 2022
ISSN
0179-5376
eISSN
1432-0444
DOI
10.1007/s00454-022-00395-8
Publisher site
See Article on Publisher Site

Abstract

Let S be a set of n points in general position in the plane, and let X (S) be the k, number of convex k-gons with vertices in S that have exactly  points of S in their interior. We prove several equalities for the numbers X (S). This problem is related k, to the Erdos–Szek ˝ eres theorem. Some of the obtained equations also extend known equations for the numbers of empty convex polygons to polygons with interior points. Analogous results for higher dimension are shown as well. Keywords Erdos–Szek ˝ eres type problems · Empty convex polygons · Planar point sets Mathematics Subject Classification 52C10 · 52C35 Editor in Charge: Kenneth Clarkson Clemens Huemer clemens.huemer@upc.edu Deborah Oliveros doliveros@im.unam.mx Pablo Pérez-Lantero pablo.perez.l@usach.cl Ferran Torra ferran.torra@estudiant.upc.edu Birgit Vogtenhuber bvogt@ist.tugraz.at Departament de Matemàtiques, Universitat Politècnica de Catalunya, Barcelona, Spain Instituto de Matemáticas Unidad Juriquilla, Universidad Nacional Autónoma de México, Juriquilla, Mexico Facultad de Ciencia, Departamento de Matemática y Ciencia de la Computación, Universidad de Santiago de Chile (USACH), Santiago, Chile Institute of Software Technology, Graz University of Technology, Graz, Austria 123 Discrete & Computational Geometry (2022) 68:448–476 449 1 Introduction Let S be a set of n points in the Euclidean plane in general position, that is, no three points of S are collinear. We denote by h the number of extreme points of S, that is, the points of S that lie on the boundary of the convex hull of S.A k-gon (of S)isa simple polygon that is spanned by exactly k points of S.A k-gon is called empty,if it does not contain any points of S in its interior. The vertex set of an empty convex k-gon is sometimes also called a free set [10]. We denote by X (S) the number of empty convex k-gons in S, and more general, we denote by X (S) the number of k, convex k-gons in S that have exactly  points of S in their interior. Further, a convex k-gon with  interior points constitutes a subset of k +  points of S whose convex hull does not contain any other points of S. Such sets are sometimes also called islands [6]. Figure 1 shows a set S of ten points and its values X (S). Here we are interested k, in relations among the values X (S) and invariants among all point sets of given k, cardinality. Invariants for the values X (S) are well known. The equation k+1 (−1) X (S) = − n +1(1) k≥3 was proved by Edelman and Jamison in [9], actually in terms of the number F of free sets of cardinality k in a convex geometry [9, Theorem 4.5], stating (−1) F = 0. Note that in our notation we omit the term for the empty set X := 1, and X (S) = n 0 1 and X (S) = , the number of points and edges spanned by S, respectively. In [9], (1) is also attributed to Lawrence. Moreover, it also holds in higher dimension. The equation k+1 (−1) kX (S) = 2 − h, (2) k≥3 which only depends on n and on h, was first proved by Ahrens, Gordon, and McMahon [1]. Its higher dimensional version was proved by Edelman and Reiner [10] and by Klain [20]. Pinchasi, Radoici ˇ c, ´ and Sharir [25] provided elementary geometric proofs for (1) and (2), by using a continous motion argument of points. They further proved other equalities and inequalities involving the values X (S) and extensions k  0 1 2 34567 390 2550 0 0 0 0 4 105 50 15 5 0 0 0 0 5 765015100100 630 2555 0 0 0 0 75 5 0 0 0 0 0 0 Fig. 1 Aset S of n = 10 points, with h = 5 of them on the boundary of the convex hull, and the numbers of convex k-gons with  interior points, X (S) k, 123 450 Discrete & Computational Geometry (2022) 68:448–476 to higher dimension. As one main result, they showed that for planar point sets and r ≥ 2, it holds that k k − r − 1 k+1 (−1) X (S) =−T (S), (3) k r r r − 1 k≥2r where T (S) denotes the number of r-tuples of vertex-disjoint edges (e ,..., e ) r 1 r spanned by S that lie in convex position, and are such that the region τ(e ,..., e ), 1 r formed by the intersection of the r half-planes that are bounded by the lines supporting (e ,..., e ) and contain the other edges, has no point of S in its interior [25]. For the 1 r point set S of Fig. 1 we have T (S) = 30, T (S) = 25, and T (S) = 0for r ≥ 4. 2 3 r In [25], the alternating sums of (1), (2), and (3) have been joined by the notion of the r-th alternating moment M (S) of { X (S)} as r k k≥3 k+1 (−1) X (S) for r = 0, ⎪ k k≥3 M (S) := k k − r − 1 k+1 (−1) X (S) for r ≥ 1. r r − 1 k≥3 In this work, we take a similar approach as done in the work of Pinchasi, Radoici ˇ c, ´ and Sharir [25] and extend above-mentioned results to X (S), that is, to convex k, k-gons having a fixed number  of points of S in their interior. We denote by k+1 A (S) := (−1) X (S) k, k≥3 the alternating sum of { X (S)} . In Sect. 2, we mostly concentrate on the case of k, k≥3 polygons with one interior point, i.e.,  = 1, where we prove that k+1 A (S) = (−1) X (S) = n − h 1 k,1 k≥3 for any set S of n points with h of them on the boundary of the convex hull. Further, equations for alternating sums of convex polygons with one given interior point p ∈ S (denoted A (S)) and for alternating sums of convex polygons with one interior point and which contain a given edge e spanned by two points of S on the boundary (denoted k+1 A (S; e)) are obtained. We also derive inequalities for (−1) X (S) for any 1 k,1 k=3 given value t ≥ 3, based on analogous inequalities for X from [25]. In Sect. 3,we consider different weight functions f (k,) and general weighted sums over X (S) k, of the form F (S) = f (k,) X (S). k, k≥3 ≥0 Note that (3) and its proof require that k ≥ 2r. 123 Discrete & Computational Geometry (2022) 68:448–476 451 We show that for any function f (k,) with the property that f (k,) = f (k + 1, − 1) + f (k, − 1), (4) the value of the according sum F (S) is invariant over all sets S of n points. We present several functions f (k,) with this property. Among these functions, we find that for any point set S of n points in general position and for any x ∈ R, it holds that n n−k k  n 2 x (1 + x ) X = (1 + x ) − 1 − x · n − x . k, k=3 =0 Note that (1) is the special case x =−1; for this case and  = 0, set the indeterminate form (1+ x ) := 1. We further show that the maximum number of linearly independent equations F (S) = f (k,) X , where each f (k,) satisfies (4), in j j k, j k≥3 ≥0 terms of the variables X ,is n − 2. In Sect. 4, we relate the results of Sect. 3 to the k, k+1 moments from [25]. We denote by m (k) the multiplicative factor of (−1) X (S) r k in M (S), that is, 1for r = 0, k k − r − 1 m (k) := for r ≥ 1 and k ≥ 2r , r r − 1 0 otherwise. We show the following relations, which only depend on the number n of points. For any point set S with cardinality n and integer 0 ≤ r ≤ 2 it holds that − n +1for r = 0, ⎪ 2 k−+1 F (S) := (−1) m (k − ) X (S) = 2 − n for r = 1, r r − k, ⎪ 2 k≥3 =0 ⎪ − + n for r = 2. Finally, in Sect. 5 we discuss the generalization of the obtained results to higher dimensions. Several more results, in particular on identities involving X for special k, point configurations, can be found in the thesis [29]. An important argument that will be used in the proofs of this work is the continuous motion argument of points. Of course, this argument is not new for the analysis of configurations in combinatorial geometry (see for example [3, 4, 25, 30]). The goal is to prove a property for all point sets in general position in the plane. To this end, the property is first shown to hold for some particular point set (usually a set of points in convex position). Then, one can move the points from the point set, such that only one point is moved at each instant of time, until any particular point configuration is reached. It remains to show that the property holds throughout. The changes on the combinatorial structure of the point set only appear when during a point move, one 123 452 Discrete & Computational Geometry (2022) 68:448–476 point becomes collinear with two other points. It hence is sufficient to check that the property is maintained if one point crosses the edge spanned by two other points of the set. An analogous proof strategy can be applied in R for d > 2. 1.1 Related Work The problem studied in this work is related to one of the most famous problems in combinatorial geometry, namely the one of showing that every set of sufficiently many points in the plane in general position determines a convex k-gon. The problem of determining the smallest integer f (k) such that every set of f (k) points contains a convex k-gon was the original inspiration of Esther Klein and has become well- known as the Erdos–Szek ˝ eres problem. The fact that this number f (k) exists for every k and therefore, for given k, X (S) ≥ 1 when S has sufficiently many points, k, ≥0 was first established in a seminal paper of Erdos ˝ and Szekeres [13] who proved the following bounds on f (k) [13, 14]: 2k − 4 k−2 2 + 1 ≤ f (k) ≤ + 1. k − 2 Subsequently, many improvements have been presented on the upper bound; see [22] for a survey on this problem. Very recently, the problem has been almost settled by k+o(k) a work of Suk [28], who showed that f (k) = 2 . Another recent related work concerning the existence of convex k-gons in point sets is [8]. In a slight variation of the original problem, Erdos ˝ suggested to find the minimum number of points g(k) in the plane in general position containing k points which form an empty convex k-gon. It is easy to show that for empty triangles and empty convex quadrilaterals this number is 3 and 5, respectively. Harborth [18] showed in 1978 that g(5) = 10. Thus X (S) ≥ 1for k = 3, 4, 5 when S has at least g(k) points. However, in 1983 k,0 Horton [19] constructed an infinite set of points with no empty convex heptagon, implying that g(k) is infinite for any k ≥ 7. Much later, Overmars [24] found a set with 29 points without an empty convex hexagon via computer search, a few years after which Gerken [17] and Nicolas [23] proved that g(6) is finite. A weaker restriction of the convex polygon problem has been considered by Bialo- stocki, Dierker, and Voxman [7]. They conjectured that for any two integers k ≥ 3 and ≥ 1, there exists a function C (k,) such that every set with at least C (k,) points contains a convex k-gon whose number of interior points is divisible by .Theyalso showed that their conjecture is true if k ≡ 2(mod )or k ≥  + 3. In parallel to questions concerning the existence of certain configurations in every large enough set of points in general position, also their number has been subject of research. For example, Fabila-Monroy and Huemer [15] considered the number of k-islands in point sets. They showed that for any fixed k, their number is in Ω(n ) for any n-point set in general position and in O(n ) for some such sets. The question of determining the number of convex k-gons contained in any n-point set in general position was raised in the 1970s by Erdos ˝ and Guy [12]. The trivial solution for the case k = 3is . However, already for convex tetragons this question 123 Discrete & Computational Geometry (2022) 68:448–476 453 turns out to be highly non-trivial, as it is related to the search for the minimum number of crossings in a straight-line drawing of the complete graph with n vertices; see again [12]. Erdos ˝ also posed the respective question for the number h (n) of empty convex k-gons [11]. Horton’s construction implies h (n) = 0 for every n and every k ≥ 7, so it remains to consider the cases k = 3,..., 6. For the functions h (n) and h (n), 3 4 asymptotically tight estimates are known. The currently best known bounds are n + 2/3 2 2 2 3/4 Ω(n log n) ≤ h (n) ≤ 1.6196 n + o(n ) and n /2 + Ω(n log n) ≤ h (n) ≤ 3 4 2 2 1.9397 n +o(n ), where the lower bounds can be found in [2] and the upper bounds are due to Bárány and Valtr [5]. For h (n) and h (n), no matching bounds are known. The 5 6 2 2 2 2 best known upper bounds h (n) ≤ 1.0207 n + o(n ) and h (n) ≤ 0.2006 n + o(n ) 5 6 can also be found in [5]. The best known lower bound h (n) ≥ n/229 − 4 is due to Valtr [31]. It is widely conjectured that h (n) grows quadratically in n. However, despite many efforts in the last 30 years, only very recently a superlinear bound of 4/5 h (n) = Ω(n log n) has been shown [2]. A result of independent interest is by Pinchasi, Radoici ˇ c, ´ and Sharir [25], who showed h (n) ≥ h (n) − n /2 − O(n) and 4 3 2 2 h (n) ≥ h (n) − n − O(n). Later, García [16] showed that h (n) ≥ h (n) − (n − 5 3 5 3 5n + h + 4). By this, any improvement of the constant 1 for the dominating factor n of the lower bound of h (n) would imply a quadratic lower bound for h (n). 3 5 2 Alternating Sums In this section, we concentrate on alternating sums of numbers of polygons with one interior point and possibly with some elements fixed. To this end, we introduce some more notation. Let p, q, and r be three points of a set S of n points in general position in the plane. We denote by Δ pqr the triangle with vertices p, q, and r, and by a directed edge e = pq the segment that connects p and q and is oriented from p to q.Wedonot always specify if an edge is directed or undirected when it is clear from the context. We sometimes also write polygon instead of convex polygon since all considered polygons are convex. We say that a polygon lies to left side of a directed edge e if it contained in the left closed half-plane that is bounded by the line through e. For a fixed point p ∈ S, we denote by X (S) the number of convex k-gons spanned by S that contain k,1 p p k+1 exactly p in their interior, and by A (S) := (−1) X (S) the corresponding k≥3 1 k,1 alternating sum. Further, for a directed edge e, we denote by X (S; e) the number k, of convex k-gons with  interior points that have e as a boundary edge and lie on the k+1 left side of e; and by A (S; e) := (−1) X (S; e) the according alternating k, k≥3 sum. Likewise X (S; p) is the number of convex k-gons with  interior points that k, have p on their boundary. If more elements (points and/or edges) are required to be on the boundary of the polygons, then all those are listed after the semicolon in this notation. Further, if an element is required to not be on the boundary of the polygons, then it is listed with a minus. For example, X (S; e, p , − p ) denotes the number k, 1 2 of convex k-gons with  interior points that are on the left of e, and have e and p on their boundary but not p . 123 454 Discrete & Computational Geometry (2022) 68:448–476 In [25], the authors show as a side result (in the proof of Theorem 2.2) that the alternating sum of convex k-gons incident to (the left side of) a directed edge e = pq is 1 if there is at least one point of S\{ p, q} in the left side of e, and 0 otherwise. As we will repeatedly use this result, we explicitly state it as a lemma here. We remark that in [25], A (S) and A (S; e) are denoted as M (S) and M (e), respectively. 0 0 0 0 Lemma 2.1 [25] For any set S of n points in general position in the plane and any directed edge e = pq spanned by two points of S, it holds that 1 if e has at least one point of S\{ p, q} to its left, A (S; e) = 0 otherwise. Lemma 2.2 For any set S of n points in general position in the plane and any point p ∈ S it holds that 0 if p is an extreme point of S, A (S) = 1 otherwise. Proof Obviously, if p is an extreme point of S, then it cannot be in the interior of any polygon spanned by points of S and hence A (S) = 0. So assume that p is not an extreme point of S. Note that every polygon in S that contains exactly p in its interior is an empty polygon in S\{ p}. If p lies close enough to a convex hull edge e of S (an edge on the boundary of the convex hull of S), then p is contained in exactly all polygons that are incident to e and empty in S\{ p}. Hence, A (S) = A (S\{ p}; e) = 1byLemma 2.1. Otherwise, if p is located arbitrarily, consider a continuous path from p to a position close enough to a convex hull edge of S, and move p along this path. This path can be chosen such that it avoids all crossings in the line arrangement spanned by S\{ p} and lies inside the convex hull of S. During this movement, A (S) can only change when p crosses an edge qr spanned by two points of S. Further, changes can only occur from changing amounts of convex k-gons that have qr as an edge. More exactly, when p is moved over qr, from its left to its right side, then the alternating sum of polygons that p “stops being inside” is A (S\{ p}; qr ) = 1, and the alternating sum of polygons that p “starts being inside” is A (S\{ p}; rq) = 1 (note that qr is not a convex hull edge of S). Hence, the value A (S) is the same for all possible positions of p on the path, including the final position for which we already showed A (S) = 1. Theorem 2.3 Given a set S of n points in general position in the plane, h of them extreme, it holds that A (S) = n − h. Proof Any convex k-gon counted in A (S) contains exactly one point in its interior. Hence, we can count the convex k-gons by their interior points and obtain that A (S) = A (S) = n − h. p∈S 1 In the previous result we used A (S; e) to obtain bounds on A (S) and determine A (S). A possible approach for determining A (S) could be via A (S; e).Inthe 1 2 1 following, we show why such an approach cannot work. 123 Discrete & Computational Geometry (2022) 68:448–476 455 p-wedge q-wedge r-wedge q e Fig. 2 Illustration of wedges for a point p andanedge e Recall that, given a set S of n points in general position in the plane, a point p ∈ S, and a directed edge e = qr of S\{ p}, we denote by A (S; e) the alternating sum of polygons that contain exactly p in their interior, have e as a boundary edge, and lie to the left of e. Further, consider the supporting lines  and  of pq and pr, respectively, q r and the four wedges bounded by these lines; see Fig. 2. One of the wedges contains the triangle Δ pqr. One contains p and q but not r; we call it the q-wedge (of p and e). The second one contains p and r but not q; we call it the r -wedge (of p and e). And the last one contains p but not q and r; we call it the p-wedge (of p and e). Lemma 2.4 Given a set S of n points in general position in the plane, a point p ∈ S, and a directed edge e = qr of S\{ p}, it holds that A (S; e) ∈{−1, 0, 1}. Moreover, A (S; e) = 1 if and only if all points of S\{ p, q, r } lie in the interior of the p-wedge of e. Proof The idea for obtaining A (S; e) is to start with A (S\{ p}; e) = 1 and subtract from it the alternating sum of all convex polygons that stay empty when adding p again to S. In the following, we denote the latter with A (S; e, − p).Sowehave A (S; e) = A (S\{ p}; e) − A (S; e, − p). 0 0 As we are only counting polygons on the left side of e, we assume without loss of generality that e is a convex hull edge of S, and S lies to the left of e. Obviously, if p is an extreme point of S, then it cannot be in the interior of any polygon spanned by points of S, and hence A (S; e) = 0. Likewise, if the triangle Δ pqr contains any points of S in its interior, A (S; e) = 0. So assume that p is not an extreme point of S and that Δ pqr is interior-empty. Note that any convex polygon that has e as an edge and a vertex in the p-wedge contains p in its interior. Hence, any polygon counted in A (S; e, − p) has all its vertices (except q and r) in the interior of the q-wedge and the r-wedge. If both, the 123 456 Discrete & Computational Geometry (2022) 68:448–476 r i,q i,r Fig. 3 Angularly sorted points p ,..., p in the interior of the q-wedge (of p and e); the half-plane H 1 i (sketched shaded) and the lines  and  (drawn dashed) for a point p i ,r i ,q i q-wedge and the r-wedge are empty of points (i.e., p lies close enough to e) then A (S; e, − p) = 0 and p is contained in exactly all polygons that are incident to e and empty in S\{ p}. Hence, A (S; e) = A (S\{ p}; e) = 1 by Lemma 2.1. So assume that at least one of the q-wedge and the r-wedge, without loss of generality the r-wedge, contains at least one point of S in its interior. We first count all polygons for A (S; e, − p) that have all vertices except q and r in the interior of the r-wedge. The alternating sum of those polygons is A (S ∩ H ; e, − p) = A (S\{ p}∩ H ; e), where H is the closed half-plane bounded by q 0 q q q that contains e. By Lemma 2.1, A (S ∩ H ; e, − p) = 1. 0 q For counting the polygons in A (S; e, − p) that have at least one vertex in the q-wedge, we consider the points in the interior of the q-wedge in counterclockwise order around p (such that q is “after” the last point) and denote them by p ,..., p . 1 m Then for every i ∈{1,..., m}, consider the line  through p and p and the closed i i half-plane H bounded by  that contains qr.Let S = S ∩ H ; see Fig. 3. i i i i Claim. The alternating sum A (S ; e, p , − p) of empty polygons lying in H that 0 i i i contain the triangle Δ p qr and do not have p as a vertex is 1 if S ={ p, q, r , p }, i i i and 0 otherwise. We first complete the proof under the assumption that the claim holds and then prove the claim. Note that every counted polygon that has a vertex in the q-wedge, has a unique first such vertex in the cyclic order around p for which we can count it. Hence, the total alternating sum over those polygons is the sum of i ∈{1,..., m} of the alternating sums A (S ; e, p , − p) with p being the first used point in the q-wedge. 0 i i i Further, note that for any i < m it holds that p ∈ S and hence S ={ p, q, r , p }. m i i i Thus, the alternating sum of those empty polygons with at least one vertex in the q-wedge is A (S ; e, p , − p) = A (S ; e, p , − p) ∈{0, 1}. 0 i i 0 m m i =1 Altogether, A (S; e, − p) = A (S ∩ H ; e, − p) + A (S ; e, p , − p) ∈{1, 2}. 0 0 q 0 m m Combining this with A (S\{ p}; e) = 1, we obtain that A (S; e) = A (S\{ p}; e) 0 0 123 Discrete & Computational Geometry (2022) 68:448–476 457 − A (S; e, − p) ∈{0, −1} if at least one of the q-wedge and the r-wedge contains points of S. The lemma thus follows. Proof of the claim. If S ={ p, q, r , p }, then the only such empty polygon in H is i i i the triangle Δ p qr, and hence the alternating sum A (S ; e, p , − p) is equal to 1. If i 0 i i S ={ p, q, r , p }, then consider the triangle Δ p qr and its bounding lines  and i i i i ,q spanned by p and q or r, respectively; see again Fig. 3. Those lines split H into i ,r i i three wedges; the q-wedge (of p and e) bounded by the lines  and  , the wedge i i i ,q bounded by  and  , and the r-wedge (of p and e) bounded by  and  .We i ,q i ,r i i ,r i distinguish three cases. Case 1. The triangle Δ p qr contains a point of S in its interior. Then no polygon i i containing Δ p qr can be empty. Hence, the sum A (S ; e, p , − p) is 0. i 0 i i Case 2. All points of S \{ p , p, q, r } lie in one of the other two wedges, without i i loss of generality the q-wedge (of p and e). Then each counted convex k-gon in A (S ; e, p , − p) with k ≥ 4 vertices corresponds to a unique convex (k − 1)-gon 0 i i incident to qp and not having r as a vertex. The alternating sum of those is 1 by Lemma 2.1. Inverting all signs and adding 1 for the triangle Δ p qr, we obtain a total of −1 + 1 = 0. Case 3. Both the q-wedge and the r-wedge (of p and e) contain points of S \{ p , p, q, r } in the interior (and the triangle Δ p qr is empty). We have three i i i different types of polygons that we have to count: (i) the triangle Δ p qr, (ii) the polygons having additional vertices in only one wedge, and (iii) the polygons having additional vertices in both wedges. For the latter, note that the union of the vertex sets of two empty polygons, one con- tained in each wedge, and containing the edge qp , respectively p r, gives a polygon i i that is counted in A (S ; e, p , − p). 0 i i Let S and S be the points of S \{ p} in the interior of the q-wedge and the i ,q i ,r i r-wedge (of p and e), respectively. Note that A (S ; qp ) = A (S ; p r ) = 1. i 0 i ,q i 0 i ,r i Let L = X (S ; qp ) k,0 i ,q i k≥3 k odd be the number of such convex k-gons with odd k.As A (S ; qp ) = 1, the respective 0 i ,q i number of even polygons is L − A (S ; qp ) = L − 1. Similarly, let 0 i ,q i R = X (S ; p r ) k,0 i ,r i k≥3 k odd be the number of such convex k-gons in the other wedge with odd k. Then the number of even convex k-gons in that wedge is R − 1. 123 458 Discrete & Computational Geometry (2022) 68:448–476 For polygons of type (iii), note that combining two polygons with the same parity in the number of vertices, we obtain a polygon with an odd number of vertices, while combining two polygons with different parities we obtain a polygon with an even number of vertices. Hence, the alternating sum for polygons of type (iii) is (LR + (L −1)( R −1))−(L( R −1)+(L −1) R) = (2LR − L − R +1)−(2LR − L − R) = 1. For polygons of type (ii), each polygon with an even number of vertices gives a polygon with an odd number of vertices when combined with the triangle Δ p qr, and vice versa. Hence, the alternating sum for polygons of type (ii) is ((L − 1) + ( R − 1)) − ( R + L) =−2. Finally, for type (i) we only have the triangle Δ p qr, which contributes +1tothe alternating sum. Hence altogether we obtain an alternating sum of +1 − 2 + 1 = 0 also for the third case, which completes the proof of the claim. Note that A (S; e), the alternating sum of convex polygons having e as an edge and exactly one interior point, highly depends on the position of the points of S and cannot be expressed by the number of extreme and non-extreme points of S. On the other hand, A (S; e) = A (S; e) and hence we can use Lemma 2.4 to derive bounds p∈S for A (S; e), analogous to Lemma 2.1 for A (S; e). 1 0 Theorem 2.5 For any set S of n points in general position in the plane, h of them on the boundary of the convex hull, and any edge e = qr of S it holds that max {h, 4}− n ≤ A (S; e) ≤ 1. Proof For the upper bound, consider an arbitrary point p ∈ S\{q, r }, and the q-wedge and the r-wedge of p and qr. Then for A (S; e) = 1, it is necessary that none of those wedges contains points of S in the interior by Lemma 2.4. As this can happen for at most one point of S and as otherwise A (S; e) ≤ 0, the upper bound follows. For the lower bound, note first that for any extreme point p of S we have A (S; e)=0. Hence, A (S; e) ≥ (−1) · (n − h), which for h ≥ 4 is the claimed lower bound. p∈S 1 Further, if e is not a convex hull edge of S, then the points on the non-considered side of e (there is at least one) can be ignored, again implying the claimed bound. So assume that h = 3 and e is a convex hull edge. Let p be a non-extreme point of S that has maximum distance to e. Then, the only convex polygon spanned by S and having e as an edge and that contains p in its interior, is a triangle, since S has h = 3 p p extreme points. This implies that A (S; e) ∈{0, 1} and hence A (S; e) ≥ 1 p∈S 1 (−1) · (n − 4) = 4 − n = max {4, h}− n. We remark that both bounds are tight in the sense that there exist arbitrarily large point sets and edges obtaining them; cf. Fig. 4. For the lower bound, which appears for h = 4, a quadrilateral with a concave chain of n − 4 edges added close enough to one edge, and e being the edge opposite to the chain gives an example of A (S; e) = 4 − n. Actually, that example also contains edges f with A (S; f ) = 1. Moreover, the example can be modified to have a larger convex hull by placing a convex chain of h − 4 points above e (and reducing the number of points inside the quadrilateral to obtain the same total number of points). In the resulting point set, A (S; e) = h − n. A different example for the upper bound is when the considered edge g has a point p sufficiently close to it. This guarantees that any non-empty polygon with g as edge contains p, and hence A (S; g) = A (S\{ p}; g) = 1. 1 0 123 Discrete & Computational Geometry (2022) 68:448–476 459 Fig. 4 Examples reaching the lower and upper bounds of Theorem 2.5: A (S; e) = 4 − n and A (S; f ) = 1 1 1 (left, black points), A (S; e) = h − n (left, black and h − 4 gray points), and A (S; g) = 1 (right) 1 1 2.1 Inequalities Pinchasi, Radoici ˇ c, ´ and Sharir [25] derived several inequalities that involve the param- eters X . In this section, we show analogous inequalities for the parameters X . k,0 k,1 We will need the following lemma proved in [25]. Lemma 2.6 [25] For any set S of n points in general position and a directed edge e spanned by two points of S, if there is at least one point of S to the left of e, then it holds that – for each t ≥ 3 odd, X (S; e) − X (S; e) + X (S; e) − ... + X (S; e) ≥ 1, 3,0 4,0 5,0 t ,0 – for each t ≥ 4 even, X (S; e) − X (S; e) + X (S; e) − ... − X (S; e) ≤ 1, 3,0 4,0 5,0 t ,0 with equality holding, in either case, if and only if X (S; e) = 0. t +1,0 Lemma 2.7 For any set S of n points in general position and a point p ∈ Sin the interior of the convex hull of S, it holds that – for each t ≥ 3 odd, p p p X (S) − X (S) + ... + X (S) ≥ 1, 3,1 4,1 t ,1 – for each t ≥ 4 even, p p p X (S) − X (S) + ... − X (S) ≤ 1, 3,1 4,1 t ,1 with equality holding, in either case, if and only if X (S) = 0. t +1,1 p p Proof First of all, note that if X (S) = 0, then also X (S) = 0 for every j > 1. t +1,1 t + j ,1 Hence, in this case p p p p t +1 X (S) − X (S) + ... + (−1) X (S) = A (S) = 1 3,1 4,1 t ,1 1 123 460 Discrete & Computational Geometry (2022) 68:448–476 by Lemma 2.2 and equality holds. Let us then consider that p is close enough to a convex hull edge e of S. Recall that every polygon in S that contains exactly p in its interior is an empty polygon in S\{ p}. Then p is contained in exactly all polygons that are incident to e and empty in S\{ p}. We therefore get p p p t +1 X (S) − X (S) + ... + (−1) X (S) 3,1 4,1 t ,1 t +1 = X (S\{ p}; e) − X (S\{ p}; e) + ... + (−1) X (S\{ p}; e), 3,0 4,0 t ,0 and the result of Lemma 2.6 applies. If p is located at an arbitrary position in the interior of the convex hull of S, we consider a continuous motion of p which is sufficiently generic, to move p to a position close to a convex hull edge e of S. Proceeding exactly in the same manner as in the proof of Lemma 2.2, we see that p p p t +1 the value of X (S) − X (S) + ... + (−1) X (S) does not change during this 3,1 4,1 t ,1 movement. Theorem 2.8 For any set S of n points in general position in the plane, h of them on the boundary of the convex hull, we have – for each t ≥ 3 odd, X (S) − X (S) + X (S) − ... + X (S) ≥ n − h, 3,1 4,1 5,1 t ,1 – for each t ≥ 4 even, X (S) − X (S) + X (S) − ... − X (S) ≤ n − h, 3,1 4,1 5,1 t ,1 with equality holding, in either case, if and only if X (S) = 0. t +1,1 Proof Observe that, if X (S) = 0 then also X (S) = 0 for every j > 1, and t +1,1 t + j ,1 in this case t +1 X (S) − X (S) + X (S) − ... + (−1) X (S) = A (S) = n − h 3,1 4,1 5,1 t ,1 1 k+1 by Theorem 2.3. Any convex k-gon counted in (−1) X (S) contains exactly k,1 k=3 one point in its interior. Then, X (S) = X (S). We get that k,1 p∈S k,1 t +1 X (S) − X (S) + X (S) − ... + (−1) X (S) 3,1 4,1 5,1 t ,1 p p p p t +1 = X (S) − X (S) + X (S) − ... + (−1) X (S) . 3,1 4,1 5,1 t ,1 p∈S p p p Let t be odd. By Lemma 2.7, X (S) − X (S) + ... + X (S) ≥ 1if p is an interior 3,1 4,1 t ,1 point of S. Therefore, X (S) − X (S) + X (S) − ... + X (S) 3,1 4,1 5,1 t ,1 p p p = X (S) − X (S) + ... + X (S) ≥ n − h. 3,1 4,1 t ,1 p∈S 123 Discrete & Computational Geometry (2022) 68:448–476 461 p p p p If equality holds, then X (S) − X (S) + X (S) − ... + X (S) = 1if p is an 3,1 4,1 5,1 t ,1 interior point of S and, by Lemma 2.7, X (S) = 0 for these points. Therefore, t +1,1 X (S) = 0 for all the points and, in consequence, X (S) = 0. t +1,1 t +1,1 If t is even, the proof is analogous with the unique difference that the inequality is p p p p t +1 X (S) − X (S) + X (S) −... + (−1) X (S) ≤ 1if p is an interior point of S. 3,1 4,1 5,1 t ,1 Therefore, the proof proceeds in the same manner but the direction of the inequalities is reversed. From Theorem 2.8 with t = 4 we obtain the following corollary. Corollary 2.9 X ≥ X − n + h. 4,1 3,1 3 Weighted Sums In this section, we consider sums of the form F (S) = f (k,) X (S). k, k≥3 ≥0 The following theorem is the main tool used throughout this section and the next one. Theorem 3.1 For any function f (k,) that fulfills the equation f (k,) = f (k + 1, − 1) + f (k, − 1), (5) the sum F (S) := f (k,) X (S) is invariant over all sets S of n points k, k≥3 ≥0 in general position, that is, F (S) only depends on the cardinality of S. Proof Consider a point set S in general position. We claim that any continuous motion of the points of S which is sufficiently generic does not change the value of F (S). Consider that p, q, r ∈ S become collinear, with r lying between p and q; thus the only convex polygons spanned by S that may change are those that have pq as an edge and r in its interior or those that have p, q, and r as vertices. Let Q be a convex k-gon with  interior points that contains pq as an edge and r in its interior. If r moves outside of Q, then Q has  − 1 points in its interior and the (k + 1)- gon Q obtained by replacing the edge pq of Q by the polygonal path pr q, starts being convex with  − 1 points in its interior. Hence, in this movement we can assign each polygon counted in X (which disappears) to one polygon counted in X and to k, k,−1 one counted in X (which appears). Since f (k,) = f (k+1,−1)+ f (k,−1), k+1,−1 the movement of the point does not change the value of F (S). Symmetrically, if r moves inside Q (with  points in its interior), then Q has  + 1 points in its interior and the (k + 1)-gon Q , with also  points in its interior, stops being convex. Again, this does not change the value of F (S). Observation 3.2 Let f (k,) and f (k,) be two functions that fulfill (5). Then every 1 2 linear combination of f (k,) and f (k,) fulfills (5) as well. 1 2 Using Theorem 3.1, we first derive several relations for the sum over all convex polygons, weighted by their number of interior points. Each of this relations is proved by showing that the function f (k,) satisfies (5) and by evaluating F (S) for a set of n points in convex position. Note that for point sets in convex position X = 0for k, ≥ 1. 123 462 Discrete & Computational Geometry (2022) 68:448–476 Corollary 3.3 For any set S of n ≥ 3 points in general position, it holds that n n−3 n n 2 X (S) = 2 − − − 1. k, 2 2 k=3 =0 −1 −1 Proof Let f (k,) = 2 . Then 2 = 2 + 2 = f (k + 1, − 1) + f (k, − 1). For a set S of n points in convex position we get n n n n n n n n 0 n n 2 X = = 2 − − − = 2 − − − 1. k,0 k 2 1 0 2 2 k=3 k=3 Corollary 3.4 For any set S of n points in general position, and every integer 3 ≤ m ≤ n it holds that m n−k X (S) = . k, m − k m k=3 =m−k Proof Let f (k,) = and note that m is fixed. Then m−k − 1  − 1 f (k,) = = + = f (k + 1, − 1) + f (k, − 1). m − k m − k − 1 m − k For a set S of n points in convex position we get 0 n X (S) = X (S) = . k,0 m,0 m − k m k=3 Let {Fib(n)} be the sequence of Fibonacci numbers, satisfying the recurrence n∈Z relation Fib(n) = Fib(n − 1) + Fib(n − 2) with Fib(0) = 0 and Fib(1) = 1. Corollary 3.5 For any set S of n ≥ 3 points in general position it holds that n n−3 Fib(k + 2) X (S) = Fib(2n) − n − . k, k=3 =0 Proof The function f (k,) = Fib(k + 2) satisfies (5) by definition of the Fibonacci numbers. Consider then a set S of n points in convex position and use the following identity (see [26]): Fib(k) = Fib(2n). k=0 123 Discrete & Computational Geometry (2022) 68:448–476 463 Then n n n n Fib(k + 0) X (S) = Fib(k) = Fib(2n) − n − . k,0 k 2 k=3 k=3 Corollary 3.6 For any set S of n ≥ 3 points in general position it holds that n n−3 k+ (−1) Fib(k − ) X (S) =− Fib(n) + n − . k, k=3 =0 k+ Proof The function f (k,) = (−1) Fib(k − ) satisfies (5) by definition of the Fibonacci numbers. Consider then a set S of n points in convex position and use the following identity (see [26]): (−1) Fib(k) =− Fib(n). k=0 Then n n n n k+0 k (−1) Fib(k − 0) X (S) = (−1) Fib(k) =− Fib(n) + n − . k,0 k 2 k=3 k=3 Corollary 3.7 Any set S of n ≥ 3 points in general position satisfies the following equations: n n−3 (2k + )π n nπ 2 cos X (S) = + n − 2 + 2 cos , (6) k, 3 2 3 k=3 =0 n n−3 2 (2k + )π n 2 nπ √ sin X (S) = − n + √ sin . (7) k, 3 2 3 3 3 k=3 =0 Proof Equations (6) and (7) are obtained using Chebyshev polynomials, see e.g. [21]. The Chebyshev polynomials of the first kind, T (x ) := cos mθ with x = cos θ, satisfy the recurrence relation T (x ) = 2xT (x ) − T (x ).For x = 1/2, this gives the m m−1 m−2 relation (m − 1)π mπ (m − 2)π cos = cos + cos . 3 3 3 Now set m = 2k +  + 1 and observe that the function f (k,) := 2 cos ((2k +)π/3) satisfies (5). Consider then a set S of n points in convex position. We use a binomial 123 464 Discrete & Computational Geometry (2022) 68:448–476 identity, which can be found in [27, equation (1.26)], n ny y cos ky = 2 cos · cos . k 2 2 k=0 With y = 2π/3 and hence cos( y/2) = 1/2 we obtain (6): n n 2 n 2kπ n 2kπ f (k, 0) X (S) = 2 cos − 2 cos 1 k,0 k 3 k 3 k=3 k=0 k=0 nπ n = 2 cos + + n − 2. 3 2 To prove (7), consider the Chebyshev polynomial of the second kind, sin (m + 1)θ U (x ) := , sin θ with x = cos θ. U (x ) satisfies U (x ) = 2xU (x ) − U (x ).For x = 1/2, this m m m−1 m−2 gives the relation mπ (m + 1)π (m − 1)π sin = sin + sin . 3 3 3 Now set m =2k+ and observe that the function f (k,) := (2/ 3) sin((2k + )π /3) satisfies (5). Consider then a set S of n points in convex position. We use a binomial identity, which can be found in [27, equation (1.27)], n ny y sin ky = 2 sin · cos . k 2 2 k=0 This identity with y = 2π/3 completes the proof of (7): n n 2 2 n 2kπ 2 n 2kπ f (k, 0) X (S) = √ sin − √ sin 2 k,0 k 3 k 3 3 3 k=3 k=0 k=0 2 nπ n = √ sin + − n. 3 2 Next we show that the functions f (k,) can be expressed as a linear combination of the functions f (k + i , 0),for i = 0,...,. Theorem 3.8 The general solution of the recurrence relation f (k,) = f (k +1,−1) + f (k, − 1) is given by the equation f (k,) = f (k + i , 0). (8) i =0 123 Discrete & Computational Geometry (2022) 68:448–476 465 Proof We prove the statement by induction on . It is straightforward to verify the base case  = 1. For the inductive step, let λ ≥ 0 be given and suppose (8) holds for = λ. Then f (k,λ + 1) = f (k + 1,λ) + f (k,λ) λ λ λ λ = f (k + 1 + i , 0) + f (k + i , 0) i i i =0 i =0 λ+1 λ λ λ = f (k + i , 0) + f (k + i , 0) i − 1 i i =1 i =0 λ λ = f (k, 0) + f (k + λ + 1, 0) + + f (k + i , 0) i i − 1 i =1 λ+1 λ + 1 = f (k + i , 0). i =0 Note that there may be many functions f (k,) that fulfill (5), thus many different sums F (S) that only depend on n. An interesting point of view is to analyze how many of them are independent. Proposition 3.9 The maximum number of linearly independent equations F (S) = f (k,) X , where each f (k,) satisfies (8), in terms of the variables j k, j k≥3 ≥0 X is n − 2. k, n n−k Proof Let F (S) = f (k,) X ,for 1 ≤ j ≤ n − 1, be sums that only j j k, k=3 =0 depend on n, where f (k,) satisfies (8) for all j. Let us consider the matrix ⎛ ⎞ f (3, 0) f (3, 1) ··· f (k,) ··· f (n − 1, 1) f (n, 0) 1 1 1 1 1 ⎜ ⎟ f (3, 0) f (3, 1) ··· f (k,) ··· f (n − 1, 1) f (n, 0) ⎜ ⎟ 2 2 2 2 2 ⎜ ⎟ ⎜ ⎟ . . . . . . . ⎜ . . . . . . . ⎟ . . . . . . . ⎜ ⎟ M = ⎜ ⎟ , ⎜ ⎟ f (3, 0) f (3, 1) ··· f (k,) ··· f (n − 1, 1) f (n, 0) j j j j j ⎜ ⎟ ⎜ ⎟ . . . . . . . ⎜ ⎟ . . . . . . . ⎝ . . . . . . . ⎠ f (3, 0) f (3, 1) ··· f (k,) ··· f (n − 1, 1) f (n, 0) n−1 n−1 n−1 n−1 n−1 whose entries are the f (k,) for 3 ≤ k ≤ n,0 ≤  ≤ n − k, and 1 ≤ j ≤ n − 1. The function f occupies the entries of row number j of M.Let C [h] be column number h of M. The first column C [1] contains the functions f (k,) for values k = 3 and  = 0, then the following columns are for the values k = 3 and  ≥ 1in ascending order, then there are columns containing the functions with values k = 4 and ≥ 0 in ascending order, and so on. This order implies that, for given values k and , k−1 matrix entries f (k,) are in column C [h] of M, where h = (n −i +1)++1. It i =3 123 466 Discrete & Computational Geometry (2022) 68:448–476 is sufficient to show that the matrix M has rank n − 2. Since each f (k,) satisfies (8), we can express matrix M as follows: ⎛   ⎞ f (3, 0) ··· f (k + i , 0) ··· f (n, 0) 1 1 1 i =0 ⎜  ⎟ ⎜ ⎟ f (3, 0) ··· f (k + i , 0) ··· f (n, 0) 2 2 2 i =0 ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ ⎜ ⎟ M = . ⎜ ⎟ ⎜ f (3, 0) ··· f (k + i , 0) ··· f (n, 0) ⎟ j j j i =0 ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ ⎟ . . . . . . . . . . ⎝ ⎠ f (3, 0) ··· f (k + i , 0) ··· f (n, 0) n−1 n−1 n−1 i =0 i We observe that the columns corresponding to the functions with > 0 depend on the n −2 columns with  = 0. With adequate operations these columns can be transformed to columns of zeros. That is, if we change each column C [h] corresponding to the functions with > 0 in the following manner: k−1 C (n − s + 1) +  + 1 s=3 k−1  k+i −1 −→ C (n − s + 1) +  + 1 − C (n − s + 1) + 1 , s=3 i =0 s=3 we obtain the matrix ⎛ ⎞ f (3, 0) 0 ··· f (k, 0) ··· 0 f (n, 0) 1 1 1 ⎜ ⎟ f (3, 0) 0 ··· f (k, 0) ··· 0 f (n, 0) ⎜ ⎟ 2 2 2 ⎜ ⎟ ⎜ ⎟ . . . . . . . ⎜ . . . . . . . ⎟ . . . . . . . ⎜ ⎟ ⎜ ⎟ . ⎜ ⎟ f (3, 0) 0 ··· f (k, 0) ··· 0 f (n, 0) j j j ⎜ ⎟ ⎜ ⎟ . . . . . . . ⎜ ⎟ . . . . . . . . . . . . . . ⎝ ⎠ f (3, 0) 0 ··· f (k, 0) ··· 0 f (n, 0) n−1 n−1 n−1 Thus, there are only n − 2 non-zero columns corresponding to the functions f (k, 0), implying that the maximum possible rank of M is n − 2. Using the general solution of Theorem 3.8, we derive further relations for sums over all convex polygons. Corollary 3.10 For any point set S of n ≥ 3 points in general position and for any x ∈ R, it holds that n n−k k  n 2 P (S) := x (1 + x ) X = (1 + x ) − 1 − x · n − x . (9) x k, k=3 =0 123 Discrete & Computational Geometry (2022) 68:448–476 467 k+i Proof Define f (k + i , 0) = x , then k i k f (k,) = f (k + i , 0) = x x = x (1 + x ) . i i i =0 i =0 The result then follows by considering a set of n points in convex position and we have n n k n 2 x = (1 + x ) − 1 − nx − x . k 2 k=3 Observation 3.11 Corollary 3.3 is the particular case x = 1 of Corollary 3.10. As shown in Proposition 3.9, the maximum number of possible linearly independent equations is n −2. From Corollary 3.10, we can obtain multiple equations of this form. Therefore, we evaluate the independence of these equations. Proposition 3.12 For any point set S of n ≥ 3 points in general position, let x ∈ R , j =0 with 1 ≤ j ≤ n − 2, be distinct values, and consider the n − 2 equations P (S) = n n−k x (1 + x ) X . Then these equations are linearly independent. j k, k=3 =0 j Proof Using the argument of the proof of Proposition 3.9, it is sufficient to analyze the columns corresponding to the variables X . Thus, we consider the matrix k,0 ⎛ ⎞ 3 4 k n x x ··· x ··· x 1 1 1 1 ⎜ ⎟ 3 4 k n ⎜ ⎟ x x ··· x ··· x 2 2 2 2 ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ ⎜ ⎟ ⎜ ⎟ 3 4 k n x x ··· x ··· x ⎜ ⎟ j j j j ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ . . . . . ⎝ ⎠ 3 4 k n x x ··· x ··· x n−2 n−2 n−2 n−2 Now, we can divide each row j by x and we obtain ⎛ ⎞ k−3 n−3 1 x ··· x ··· x 1 1 ⎜ ⎟ k−3 n−3 ⎜ ⎟ 1 x ··· x ··· x 2 2 ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ ⎜ ⎟ ⎜ k−3 n−3⎟ 1 x ··· x ··· x ⎜ j ⎟ j j ⎜ ⎟ ⎜ ⎟ . . . . . ⎜ . . . . . ⎟ . . . . . ⎝ ⎠ k−3 n−3 1 x ··· x ··· x n−2 n−2 n−2 123 468 Discrete & Computational Geometry (2022) 68:448–476 This matrix is an (n − 2) × (n − 2) Vandermonde matrix and all x are distinct. Therefore the rank of the matrix is n − 2, implying that the n − 2 equations are linearly independent. The following result is an immediate consequence of Proposition 3.9, Corol- lary 3.10, and Proposition 3.12. Corollary 3.13 Let S be a set of n points in general position. Any sum of the form f (k,) X , where the function f (k,) fulfills (5), can be expressed by k, k≥3 ≥0 n − 2 terms of the form (9) with distinct values x ∈ R. 4 Moment Sums Recall that Theorem 2.3 states that for any set S of n points in general position, the alternating sum of the numbers of polygons with one interior point is A (S) = n − h. Combining this with the first moment of the numbers of empty polygons M (S) = n n 2 − h from [25], we observe that the difference M (S) − A (S) = 2 − n is 1 1 2 2 again a function that only depends on the cardinality n of S and hence is independent of the combinatorics of the underlying point set S. In this section, we show that the latter observation can actually be extended to moment sums for convex polygons with at most two interior points. Theorem 4.1 For any set S of n points in general position and for integers 0 ≤ r ≤ 2, it holds that − n + 1 for r = 0, ⎪ 2 k−+1 F (S) := (−1) m (k − ) X (S) = 2 −nfor r = 1, r r − k, ⎪ 2 k≥3 =0 − +nfor r = 2. Proof For the case r = 0, k−+1 F (S) = (−1) m (k − ) X (S) 0 0− k, k≥3 =0 k+1 = (−1) X (S) = − n + 1 k≥3 by (1), proved by Edelman and Jamison in [9]; see also [25]. For the case r = 1, k−+1 F (S) = (−1) m (k − ) X (S) 1 1− k, k≥3 =0 123 Discrete & Computational Geometry (2022) 68:448–476 469 k+1 k = (−1) kX (S) + (−1) X (S). k k,1 k≥3 k≥3 The first sum in this expression is given by (2), which was proved by Ahrens, Gordon, and McMahon [1], seealso[25], and is equal to 2 − h; and the second sum is, by n n Theorem 2.3, equal to −(n − h). Then, 2 − h − (n − h) = 2 − n. 2 2 For the case r = 2, we have k−+1 F (S) = (−1) m (k − ) X (S) 2 2− k, k≥3 =0 k(k − 3) k+1 k k+1 = (−1) X + (−1) (k − 1) X + (−1) X . k,0 k,1 k,2 k≥3 Let k−+1 (−1) m (k − ) for 0 ≤  ≤ 2, 2− f (k,) := 0for2 <. Using f (k,), we can express the sum as F (S) = f (k,) X (S). 2 k, k≥3 ≥0 We first show that F (S) only depends on the cardinality n of S by proving that the function f (k,) fulfills (5) from Theorem 3.1, namely, for all > 0, it holds that f (k + 1, − 1) + f (k, − 1) = f (k,).For > 3, (5) is trivially true as all terms in the equation are equal to zero. For  = 3, we have f (k,) = 0 and f (k + 1, − 1) + f (k, − 1) (k+1)−(−1)+1 = (−1) m ((k + 1) − ( − 1)) 2−(−1) k−(−1)+1 + (−1) m (k − ( − 1)) 2−(−1) k−+3 k−+2 = (−1) m (k −  + 2) + (−1) m (k −  + 1) = 0. 0 0 For 0 < ≤ 2, (5)for f (k,) can be stated in terms of the function m (k), which gives m (k −  + 2) − m (k −  + 1) = m (k − ). (10) 2−+1 2−+1 2− We consider the cases  = 2,  = 1, and  = 0 separately. –Let  = 2. The truth of (10) follows directly from m (k) = k for k ≥ 2 and m (k) = 1. –Let  = 1. If k = 3, then m (k) = 0 and m (k +1) = m (k −1) = 2; the statement 2 2 1 holds. If k ≥ 4, then m (k + 1) − m (k) = (k + 1)(k − 2)/2 − k(k − 3)/2 = 2 2 k − 1 = m (k − 1); the statement holds. –Let  = 0. If k = 3 then m (k + 2) = m (k + 1) = m (k) = 0; the statement 3 3 2 holds. If k = 4, then m (k +1) = 0 and m (k +2) = m (k −1) = 2; the statement 3 3 2 k−2 k−3 holds. If k ≥ 5, then m (k + 2) − m (k + 1) = (k + 2) /3 − (k + 1) /3 = 3 3 2 2 k(k − 3)/2 = m (k); the statement holds. 123 470 Discrete & Computational Geometry (2022) 68:448–476 This finishes the proof that F (S) only depends on the cardinality |S|= n. So what remains to show is that F (S) =− + n. To this end, let S be set of n points in convex position. Then, X (S) = and X (S) = 0for > 0. We get k,0 k, 2 n k(k − 3) n k−+1 k+1 F (S) = (−1) m (k − ) X (S) = (−1) . 2 2− k, 2 k k≥3 =0 k=3 n k n n k 2 n Since (−1) k = 0 and (−1) k = 0, see [26], we have k=0 k=0 k k k(k − 3) n n k+1 F (S) = 0 − (−1) =− + n. 2 k 2 k=0 5 Higher Dimensions In this section, we consider the generalization of the previous results to d-dimensional Euclidean space R ,for d ≥ 3. To this end, let S be a set of n ≥ d + 1 points in R in general position, that is, no hyperplane contains more than d points of S.We again denote by h the number of extreme points of S, that is, the points of S that lie on the boundary of the convex hull of S. For each k ≥ d + 1, let X (S) be the number of empty convex k-vertex polytopes spanned by S, and let X (S) be the number of k, convex k-vertex polytopes of S that have exactly  points of S in their interior. In [25], the authors extend their results on alternating moments of point sets in the Euclidean plane to point sets S in R . They show that k+d+1 d−k M (S) := (−1) X (S) = (−1) , 0 k k≥d+1 k=0 k+d+1 d−k M (S) := (−1) kX (S) = (−1) k + i , 1 k k≥d+1 k=0 where M (S) is again called the r-th alternating moment of { X (S)} and i = r k k≥d+1 n − h is the number of interior points of S. The proofs of [25] make use of a continous motion argument of points in R . The same argument is applied in the following, so we refer the reader also to [25]. 5.1 Alternating Sums For an oriented facet f ,let X (S; f ) be the number of empty convex k-vertex poly- topes that have f as a boundary facet and lie on the positive side of f . In the proof of Theorem 4.2 in [25], the authors generalize Lemma 2.2 to R . The following lemma is implicit in [25]. 123 Discrete & Computational Geometry (2022) 68:448–476 471 Lemma 5.1 [25] For any set S of n ≥ d + 1 points in general position in R and any oriented facet f spanned by d points of S, it holds that ⎪ 1 if f has at least one point k+d+1 A (S; f ) := (−1) X (S; f ) = of S on the positive side, 0 k k≥d+1 0 otherwise. In accordance to the planar case, we denote by A (S) the alternating sum of convex polytopes that contain exactly p in their interior. Using Lemma 5.1, Lemma 2.2 can be generalized to the following. Lemma 5.2 For any set S of n ≥ d + 1 points in general position in R and any point p ∈ S it holds that 0 if p is an extreme point of S, A (S) = 1 otherwise. Proof If p is an extreme point of S, then it cannot be in the interior of any convex polytope spanned by points of S and hence A (S) = 0. So assume that p is not an extreme point of S.If p lies close enough to a convex hull facet f of S, then p is contained in exactly all polytopes that are incident to f and empty in S\{ p}. Hence, A (S) = A (S\{ p}; f ) = 1byLemma 5.1.Otherwise,if p is located arbitrarily, consider a continuous path from p to a position close enough to a convex hull facet of S and move p along this path. The path can be chosen such that it avoids all lower dimensional elements in the hyperplane arrangement spanned by S\{ p} and lies inside the convex hull of S. During this movement, A (S) can only change when p crosses a facet f spanned by d points of S. Further, changes can only occur from changing amounts of polytopes that have f as a facet. Similar to X (S; f ),let X (S; f ) be k k the number of empty convex k-vertex polytopes that have f as a boundary facet and lie on the negative side of f . When p is moved through f (from its positive to its negative side), then the alternating sum of polytopes that p “stops being inside” is A (S\{ p}; f ) = 1, and the alternating sum of polytopes that p “starts being inside” is A (S\{ p}; f ) = 1 (note that f is not a convex hull facet of S). Hence, the value A (S) is the same for all possible positions of p on the path, including the final position for which we already showed A (S) = 1. Likewise, Theorem 2.3 generalizes to R , with an analogous proof as in Sect. 2. Theorem 5.3 Given a set S of n ≥ d + 1 points in general position in R , h of them extreme, it holds that A (S) = n − h. However, the proofs of the results for A (S; e) and A (S; e) do not carry over, as the cyclic ordering of the remaining points around p in the proof of Lemma 2.4 does not have a direct higher dimensional counterpart. 123 472 Discrete & Computational Geometry (2022) 68:448–476 5.2 Weighted Sums We next consider higher dimensional versions of the results from Sect. 3.Inthe following, we denote by X (S; f ) the number of convex k-vertex polytopes with k, interior points, with vertices and interior points a subset of S, that have f as a boundary facet and lie to the positive side of f . We denote by X (S; p) the number of convex k, k-vertex polytopes with  interior points that have p on their boundary. The notation is again generalized to more required boundary elements by listing them all after S. For example, X (S; f , p , p , p ) denotes the number of convex k-vertex polytopes k, 1 2 3 with  interior points that have f , p , p , and p on their boundary. 1 2 3 SimilarlytoLemma 2.2, Theorem 3.1 can directly be generalized to higher dimen- sions. Theorem 5.4 For any function f (k,) that fulfills the equation f (k,) = f (k + 1, − 1) + f (k, − 1), (11) the sum F (S) = f (k,) X (S) is invariant over all sets S of n ≥ d + 1 k, ≥0 k≥0 points in general position in R , that is, F (S) only depends on the cardinality of S and the dimension d . Proof Consider a point set S in general position, an arbitrary point p ∈ S, and the numbers X (S) of polytopes in S that contain p in the interior. When continuously k, moving the points of S, the values X (S) change exactly when a point p crosses a k, facet f spanned by points of S, from the positive to the negative side, or vice versa. Consider such a change and denote the resulting point set by S . Assume without loss of generality that p is to the positive side of f in S and to the negative side of f in S . Note that in S, all polytopes with f on their boundary and lying on the positive side of f have p in their interior (except for the empty simplex containing p and f , which exists before and after the change). Further, for every  ≥ 1 and every polytope (with facets { f , f ,..., f }) counted in X (S; f ), we have exactly one polytope that is 1 r k, counted in X (S ; f ) (informally, the same polytope, just without p in its interior), k,−1 and one polytope counted in X (S ; f ,..., f , p) (informally, the same polytope, k,−1 1 r just with p added on the boundary outside f ). Symmetrically, for every polytope in S that has f on its boundary and p in the interior, there are two polytopes in S with one point less in the interior and zero and one point more, respectively, on the boundary. As f (k,) = f (k + 1, − 1) + f (k, − 1), this implies that no such point move changes the sum F (S). The proofs of the following formulae all go along the same lines as their planar counterparts and are omitted. Corollary 5.5 For any set S of n ≥ d + 1 points in general position in R , it holds that n n−d−1 d 2 X (S) = 2 − . k, k=d+1 k=0 =0 123 Discrete & Computational Geometry (2022) 68:448–476 473 Corollary 5.6 For any set S of n ≥ d + 1 points in general position in R and every integer d + 1 ≤ m ≤ n it holds that m n−k X (S) = . k, m − k m k=d+1 =m−k Corollary 5.7 For any set S of n ≥ d + 1 points in general position in R , it holds that n n−d−1 d Fib(k + 2) X (S) = Fib(2n) − Fib(k). k, k=d+1 =0 k=0 Corollary 5.8 For any set S of n ≥ d + 1 points in general position in R , it holds that n n−d−1 d k+ k+1 (−1) Fib(k − ) X (S) =− Fib(n) + (−1) Fib(k). k, k=d+1 =0 k=0 Corollary 5.9 For any set S of n ≥ d + 1 points in general position in R , it holds that n n−d−1 d (2k + ) π nπ n 2kπ 2 cos X (S) = 2 cos − 2 cos and k, 3 3 k 3 k=d+1 k=0 =0 n n−d−1 d 2 (2k + ) π 2 nπ 2 n 2kπ √ sin X (S) = √ sin − √ sin . k, 3 3 k 3 3 3 3 k=d+1 =0 k=0 Corollary 5.10 For any set S of n ≥ d + 1 points in general position in R and for any x ∈ R, it holds that n n−k d k  n k x (1 + x ) X = (1 + x ) − x . (12) k, k=d+1 =0 k=0 From (12) the following can be deduced, analogous to Proposition 3.9 and Corol- lary 3.13. Proposition 5.11 For any set S of n points in general position in R , the maximum number of linearly independent equations F (S) = f (k,) X , where j j k, k≥3 ≥0 each f (k,) satisfies (11), in terms of the variables X is n − d. j k, Corollary 5.12 Let S beasetofn ≥ d + 1 points in general position in R .Any sum f (k,) X , where the function f (k,) fulfills (11), can be expressed in k, k≥3 ≥0 terms of n − d equations of the form (12) with distinct values x ∈ R. 123 474 Discrete & Computational Geometry (2022) 68:448–476 5.3 Moment Sums Recall that Theorem 5.3 states that for any set S of n points in general position in R , the alternating sum of the numbers of convex polytopes with one interior point is A (S) = n − h. Combining this with the first moment of the numbers of empty d d−k n convex polytopes M (S) = (−1) k + i from [25], we observe that also k=0 d n d d−k in R , the difference M (S) − A (S) = (−1) k is a function that only 1 1 k=0 depends on the cardinality n of S and hence is independent of the combinatorics of the underlying point set S.For r = 2 and any point set S in general position in R let k k − r − 1 k(k − 3) k+1 k+1 M (S) := (−1) X (S) = (−1) X (S) 2 k k r r − 1 2 k≥d+1 k≥d+1 be the second alternating moment of { X (S)} . Then, Theorem 4.1 can be gen- k k≥d+1 eralized to R in the following way. Theorem 5.13 For any set S of n ≥ d + 1 points in general position in R and for integers 0 ≤ r ≤ 2 it holds that k−+1+d F (S) := (−1) m (k − ) X (S) r r − k, k≥d+1 =0 d−k ⎪ (−1) for r = 0, ⎪ k=0 d−k = (−1) k for r = 1, ⎪ k ⎪ k=0 k(k − 3) n ⎪ d+k (−1) for r = 2. 2 k k=0 The proof of this theorem is identical to the proof of Theorem 4.1, except that the summation starts with k = d + 1 instead of k = 3. Acknowledgements Research of C.H. was partially supported by project MTM2015-63791-R (MINECO/ FEDER), PID-2019-104129GB-I00/MCIN/AEI/10.13039/501100011033, and by project Gen. Cat. DGR 2017SGR1336. D.O. was partially supported by project PAPIIT IG100721 and CONACyT 282280. P. P-L. was partially supported by project DICYT 041933PL Vicerrectoría de Investigación, Desarrollo e Inno- vación USACH (Chile), and Programa Regional STICAMSUD 19-STIC-02. Research of B.V. was partially supported by the Austrian Science Fund (FWF) within the collaborative DACH project Arrangements and Drawings as FWF Project I 3340-N35. We thank an anonymous referee for helpful comments. This project has been supported by the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No 734922. Funding Open access funding provided by the Graz University of Technology. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give 123 Discrete & Computational Geometry (2022) 68:448–476 475 appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. References 1. Ahrens, C., Gordon, G., McMahon, E.W.: Convexity and the beta invariant. Discrete Comput. Geom. 22(3), 411–424 (1999) 2. Aichholzer, O., Balko, M., Hackl, Th., Kyncl, ˇ J., Parada, I., Scheucher, M., Valtr, P., Vogtenhuber, B.: A superlinear lower bound on the number of 5-holes. J. Comb. Theory Ser. A 173, # 105236 (2020) 3. Aichholzer, O., García, J., Orden, D., Ramos, P.: New lower bounds for the number of (≤ k)-edges and the rectilinear crossing number of K . Discrete Comput. Geom. 38(1), 1–14 (2007) 4. Andrzejak, A., Aronov, B., Har-Peled, S., Seidel, R., Welzl, E.: Results on k-sets and j-facets via continuous motion. In: 14th Annual Symposium on Computational Geometry (Minneapolis 1998), pp. 192–199. ACM, New York (1998) 5. Bárány, I., Valtr, P.: Planar point sets with a small number of empty convex polygons. Stud. Sci. Math. Hung. 41(2), 243–266 (2004) 6. Bautista-Santiago, C., Díaz-Báñez, J.M., Lara, D., Pérez-Lantero, P., Urrutia, J., Ventura, I.: Computing optimal islands. Oper. Res. Lett. 39(4), 246–251 (2011) 7. Bialostocki, A., Dierker, P., Voxman, B.: Some notes on the Erdos–Szek ˝ eres theorem. Discrete Math. 91(3), 231–238 (1991) 8. Duque, F., Fabila-Monroy, R., Hidalgo-Toscano, C.: Point sets with small integer coordinates and no large convex polygons. Discrete Comput. Geom. 59(2), 461–476 (2018) 9. Edelman, P.H., Jamison, R.E.: The theory of convex geometries. Geom. Ded. 19(3), 247–270 (1985) 10. Edelman, P.H., Reiner, V.: Counting the interior points of a point configuration. Discrete Comput. Geom. 23(1), 1–13 (2000) 11. Erdos, ˝ P.: Some old and new problems in combinatorial geometry. In: Convexity and Graph Theory (Jerusalem 1981). North-Holland Mathematical Studies, vol. 87. Annals of Discrete Mathematics, vol. 20, pp. 129–136. North-Holland, Amsterdam (1984) 12. Erdos, ˝ P., Guy, R.K.: Crossing number problems. Am. Math. Monthly 80, 52–58 (1973) 13. Erdös, P., Szekeres, G.: A combinatorial problem in geometry. Compos. Math. 2, 463–470 (1935) 14. Erdos, ˝ P., Szekeres, G.: On some extremum problems in elementary geometry. Ann. Univ. Sci. Budapest. Eötvös Sect. Math. 3-4, 53–62 (1960/1961) 15. Fabila-Monroy, R., Huemer, C.: Covering islands in plane point sets. In: Computational Geometry (Alcalá de Henares 2011). Lecture Notes in Computer Science, vol. 7579, pp. 220–225. Springer, Cham (2011) 16. García, A.: A note on the number of empty triangles. In: Computational Geometry (Alcalá de Henares 2011). Lecture Notes in Computer Science, vol. 7579, pp. 249–257. Springer, Cham (2011) 17. Gerken, T.: Empty convex hexagons in planar point sets. Discrete Comput. Geom. 39(1–3), 239–272 (2008) 18. Harborth, H.: Konvexe Fünfecke in ebenen Punktmengen. Elem. Math. 33(5), 116–118 (1978) 19. Horton, J.D.: Sets with no empty convex 7-gons. Can. Math. Bull. 26(4), 482–484 (1983) 20. Klain, D.A.: An Euler relation for valuations on polytopes. Adv. Math. 147(1), 1–34 (1999) 21. Mason, J.C., Handscomb, D.C.: Chebyshev Polynomials. Chapman & Hall/CRC, Boca Raton (2003) 22. Morris, W., Soltan, V.: The Erdos–Szek ˝ eres problem on points in convex position—a survey. Bull. Am. Math. Soc. 37(4), 437–458 (2000) 23. Nicolás, C.M.: The empty hexagon theorem. Discrete Comput. Geom. 38(2), 389–397 (2007) 24. Overmars, M.: Finding sets of points without empty convex 6-gons. Discrete Comput. Geom. 29(1), 153–158 (2003) 25. Pinchasi, R., Radoici ˇ c, ´ R., Sharir, M.: On empty convex polygons in a planar point set. J. Comb. Theory Ser. A 113(3), 385–419 (2006) 26. Spivey, M.Z.: Combinatorial sums and finite differences. Discrete Math. 307(24), 3130–3146 (2007) 123 476 Discrete & Computational Geometry (2022) 68:448–476 27. Sprugnoli, R.: Riordan array proofs of identities in Gould’s book (2006). http://www.dsi.unifi.it/resp/ GouldBK.pdf 28. Suk, A.: On the Erdos–Szek ˝ eres convex polygon problem. J. Am. Math. Soc. 30(4), 1047–1053 (2017) 29. Torra Clotet, F.: Combinatorial Properties of Convex Polygons in Point Sets Title. MSc thesis, Univer- sitat Politècnica de Catalunya (2019). https://upcommons.upc.edu/handle/2117/166052 30. Tverberg, H.: A generalization of Radon’s theorem. J. Lond. Math. Soc. 41, 123–128 (1966) 31. Valtr, P.: On empty pentagons and hexagons in planar point sets. In: 18th Computing: Australasian Theory Symposium (Melbourne 2012), pp. 47–48. Australian Computer Society, Darlinghurst (2012) Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Journal

Discrete & Computational GeometrySpringer Journals

Published: Sep 1, 2022

Keywords: Erdős–Szekeres type problems; Empty convex polygons; Planar point sets; 52C10; 52C35

There are no references for this article.