WorksMathematics
Alternating Hamilton Paths and Cycles in Poset Products
Abstract
We study alternating Hamilton paths and cycles in the comparability graphs of finite posets. We prove that if a finite poset with at least two elements admits an alternating Hamilton path, then admits an alternating Hamilton cycle for every , where is the Boolean lattice. As a corollary, we settle a conjecture of Katona [Discrete Appl. Math., 2013]. Furthermore, we characterize the divisor lattices admitting alternating Hamilton paths and cycles.
MSC 2020: Primary 06A07; Secondary 05C45, 05D05.
Keywords: Alternating Hamilton path; alternating Hamilton cycle; Boolean lattice; divisor lattice
Introduction
The Boolean lattice is the poset of all subsets of , ordered by inclusion. A Hamilton cycle is a cycle that visits every vertex exactly once. Hamilton cycles in the cover graph of correspond to cyclic binary Gray codes; see Savage [11] for a survey. Mütze [10] proved that for every , the subgraph of the cover graph of induced by the two middle levels admits a Hamilton cycle, confirming a conjecture of Havel [6] and Buck and Wiedemann [2]. Katona [7] investigated alternating Hamilton cycles in when studying snake-free families. In this paper, we study alternating Hamilton paths and cycles in poset products, in particular, products of a poset with a Boolean lattice or a chain.
Let be a finite poset and let denote its cardinality. The comparability graph of has vertex set , with two distinct vertices adjacent if and only if they are comparable in . For example, the comparability graph of a chain with elements is the complete graph . All paths and cycles considered below are taken in comparability graphs. An alternating Hamilton path (for short, AHP) in is an ordering of all elements of such that
By convention, a singleton admits an alternating Hamilton path. An alternating Hamilton cycle (for short, AHC) in with is a cyclic ordering of all the elements such that
Clearly, if admits an AHC, then it admits an AHP. Katona conjectured the following.
Email address: [email protected] (Yuxian Dong); [email protected] (Jianxi Mao)
Conjecture 1.1 ([7 Conjecture in Section 8]). For every , admits an AHC.
For finite posets and , their product is the set of pairs with and , ordered by if and only if in and in . Note that . We now present our first result on AHPs and AHCs in products with Boolean lattices.
Theorem 1.2. Let be a finite poset with .
(i) If admits an AHP, then admits an AHC for every .
(ii) If admits an AHC, then admits an AHP for every .
Since admits an AHP, taking and in Theorem 1.2 (i), we obtain that admits an AHC for every . This proves Conjecture 1.1.
Corollary 1.3. Conjecture 1.1 is true.
It is known [13 Section 3.3] that Boolean lattices arise as special cases of divisor lattices. For a positive integer , the divisor lattice is the poset of positive divisors of , ordered by divisibility. Every divisor lattice is isomorphic to a product of chains.
For , let denote the chain poset with elements , where is a singleton. Suppose that , where are distinct primes and are nonnegative integers. Then
In particular, when , we have . We refer the reader to [1, 13] for more details. We now establish the following result on AHPs and AHCs in products with chains.
Theorem 1.4. Let be a finite poset.
(i) If admits an AHP, then admits an AHP for every .
(ii) If admits an AHP, then admits an AHC for every odd .
(iii) If admits an AHC, then admits an AHC for every .
(iv) If admits an AHC, then admits an AHP for every .
We now present the following result on AHPs and AHCs in divisor lattices.
Theorem 1.5. For a positive integer , let be the divisor lattice. Then
(i) admits an AHP.
(ii) admits an AHC if and only if is even, and .
AHPs and AHCs are closely related to snake-free families. For finite posets and , a weak embedding of into is an injective map such that implies . We write when such a map exists. We say that a poset is -free if there is no weak embedding of into . For results on subposet-free problems in Boolean lattices, see [3, 5, 9, 14].
For , the -element snake is the poset on , whose only strict order relations are
We take to be a singleton. For results concerning snake-free families, see [3, 4, 5, 7, 8, 12].
Clearly, if admits an AHP and is self-dual (see § 2 for the definition), then for every . Katona [7 Section 8] suggested that whenever . Since admits an AHP by Theorem 1.5 and is self-dual, we have for every , confirming Katona’s statement.
The paper is organized as follows. In § 2, we give a constructive proof of Theorem 1.2. In § 3, we introduce a chain construction that preserves AHPs and AHCs and use it to prove Theorem 1.4. In § 4, we combine these results to prove Theorem 1.5, and determine when a weak embedding of a snake into a divisor lattice exists. Finally, in § 5, we construct snake-free families in divisor lattices and derive lower bounds for the maximum size of such families.
Products with Boolean lattices
In this section, we prove Theorem 1.2. We first recall some basic properties of AHPs and AHCs. Throughout the paper, all posets considered are finite and nonempty. Consecutive elements in an AHP or AHC are comparable, but need not be related by a cover relation.
We call a refinement of if they have the same underlying set and implies for all . The dual has the same underlying set as , with if and only if . We call self-dual if . The following results are immediate from the definitions.
Lemma 2.1. Let be a finite poset.
If admits an AHC, then it admits an AHP.
If admits an AHC, then is even and .
admits an AHP (resp., AHC) if and only if admits an AHP (resp., AHC).
If admits an AHP (resp., AHC), then so does every refinement of .
We now prove that if and admits an AHP, then and admit an AHC.
Lemma 2.2. Let be a finite poset with . If admits an AHP, then admits an AHC.
Proof. If , then is a two-element chain and , which admits the AHC
We now prove the case . First, we suppose that the AHP in is of the form
Step 1. Construct four disjoint alternating paths. Let be an alternating path of defined in (2). For each , let
Clearly, is an alternating path in from to . We denote by the path obtained by traversing in reverse order,
These four paths are disjoint and traverse . When , each consists of a single vertex.
Step 2. The case that is odd. Then (2) becomes
Thus, we construct two joining paths whose endpoints lie in and whose internal vertices lie in :
Similarly, we construct two joining paths whose endpoints lie in and whose internal vertices lie in :
The four paths visit each vertex and exactly once. See Figure 1.

Figure 1. The connections for odd .
Step 3. The case that is even. Then (2) becomes
There are two alternating paths (3) and (4) in , the same as those when is odd. For and , there are two alternating paths
The four paths visit each vertex and exactly once.
Step 4. This construction forms an AHC. The four paths visit the vertices for each . The paths in Step 2 or Step 3 visit the vertices and . Suppose that is odd. Then
forms an AHC in . Similarly, we can obtain an AHC in when is even. Suppose that the AHP in is of the form
Then the dual admits an AHP of the form (2). Thus admits an AHC. By Lemma 2.1 (iii),
admits an AHC. This completes the proof.
We next consider the case .
Lemma 2.3. Let be a finite poset with . If admits an AHP, then admits an AHC.
Proof. If , then is a two-element chain and . Since admits an AHP, admits an AHC by Lemma 2.2.
Suppose that . As in the proof of Lemma 2.2, we may assume that the AHP in is of the form
Step 1. Construct eight disjoint alternating paths. For each
let
These eight paths are disjoint and traverse .
Step 2. The case that is odd. We construct four joining paths whose endpoints lie in and whose internal vertices lie in :
Similarly, we construct four joining paths whose endpoints lie in and whose internal vertices lie in :
These eight joining paths visit every vertex and exactly once as an internal vertex.
Step 3. The case that is even. There are four alternating paths (6), (7), (8) and (9) in , the same as those when is odd. For and , there are four alternating paths
Step 4. This construction forms an AHC. The eight paths and the joining paths visit all vertices of . When is odd,
forms an AHC. Similarly, the connections in Step 3 give an AHC when is even.
Note that if a finite poset admits an AHP, then does not necessarily admit an AHC. We present the following result.
Lemma 2.4. Let be a finite poset. If admits an AHC, then admits an AHP.
Proof. By Lemma 2.1 (ii), is even. Suppose that the AHC in is of the form
Identify with the chain . For each , define the alternating path
These two paths and are disjoint and traverse . Since and , we have . Thus is the desired AHP.
Now we are ready to prove our first theorem.
Proof of Theorem 1.2. (i). We proceed by induction on . By Lemmas 2.2 and 2.3, we have shown that if admits an AHP, then admits an AHC for . Let and assume that the result holds for . Then admits an AHC. By Lemma 2.1 (i), admits an AHP. Applying Lemma 2.2 to , we obtain an AHC in
(ii). Suppose that admits an AHC. Then by Lemma 2.1 (i), admits an AHP. It is trivial that for , the product admits an AHP. By Lemma 2.4, the case holds, that is, admits an AHP. For , since admits an AHP, by (i), admits an AHC, and hence admits an AHP.
Remark 2.5. The restriction in Theorem 1.2(i) is sharp. For example, admits an AHP, but does not admit an AHC.
Corollary 2.6. For every , admits an AHP.
Proof. It is trivial that the singleton and the chain admit AHPs. Clearly, admits an AHP of the form . For , Corollary 1.3 and Lemma 2.1 (i) give an AHP in .
Products with chains
In this section, we prove Theorem 1.4. Recall that denotes the chain
Every chain admits an AHP. Indeed, the case is immediate. For , alternately taking the smallest and largest remaining elements, starting with the smallest, gives the AHP
For odd , this also yields an AHC in .
We first prove that if admits an AHP, then admits an AHC. Then we prove that if admits an AHP (resp. AHC), then so does . Finally, we prove Theorem 1.4 by induction.
Lemma 3.1. Let be a finite poset. If admits an AHP, then admits an AHC.
Proof. We may assume that , since admits an AHC. By Lemma 2.2, admits an AHC. Identify the elements , , , of with , respectively. Under this identification, is a refinement of . Since is a refinement of , Lemma 2.1 (iv) implies that admits an AHC.
Lemma 3.2. Let be a finite poset and let . If admits an AHP (resp. AHC), then admits an AHP (resp. AHC).
Proof. We first consider the AHP case. Let be an AHP in . If consists of a single vertex , then is the required AHP. We now assume that . First, we give an operation on .
For , replace every vertex in by .
For , replace in the following way:
If is an endpoint of , use the first replacement when is smaller than its unique neighbor, and use the second replacement when it is larger than its unique neighbor. Applying the operation to every vertex of yields a vertex sequence in .
We now show that is an AHP in . Let and be consecutive in . It suffices to show that this operation preserves the alternating order relation of and . Case 1: . We obtain and in . And if and only if . The alternating order relation is preserved.
Case 2: . If , then in , and the operation gives
Similarly, if , then , and the operation gives
The alternating order relation is preserved.
Case 3: or . Consider and , where . Then we have , which implies that . Then
Similarly, consider and , where . Then and
In both cases, the alternating order relation is preserved.
For each , the replacements use each chain coordinate exactly once. Thus visits every vertex of exactly once and is an AHP. For the AHC case, we operate on in an AHC of in the same way. Similarly, we can prove that admits an AHC. This completes the proof.
We are ready to prove Theorem 1.4.
Proof of Theorem 1.4. By Lemmas 3.1 and 3.2, if admits an AHP, then admits an AHC for every odd . This proves (ii).
Starting with , repeated applications of Lemma 3.2 give an AHP (resp., AHC) in for every even whenever admits an AHP (resp., AHC). Together with Lemma 2.1 (i), these observations prove (i) and (iii).
Suppose that admits an AHC. By Lemma 2.1 (i), admits an AHP. Applying part (i), we obtain that admits an AHP for every . Since , by Lemma 2.4, admits an AHP. This proves (iv).
Remark 3.3. The ranges in (i)–(iii) of Theorem 1.4 are sharp. For (i), the snake admits an AHP, but admits no AHP. For (ii), taking and gives , which admits no AHC. For every even , take . Then admits the AHP but has elements, an odd number. By Lemma 2.1 (ii), admits no AHC. Thus the range in part (ii) cannot be enlarged. For (iii), let have elements , with the only strict order relations given by for all . Then is an AHC in , but admits no AHC.
AHP and AHC in divisor lattices
In this section, we first prove Theorem 1.5. Then we study the weak embeddings of snakes into divisor lattices.
Lemma 4.1. For every and , admits an AHC.
Proof. First consider . Identify with the chain . The product admits the AHC
Since admits an AHP, Lemma 3.1 also gives an AHC in . Repeated application of Lemma 3.2 gives an AHC in for every .
For , since admits an AHP and , Theorem 1.2 (i) gives an AHC in .
Proof of Theorem 1.5. Write
(i). By Corollary 2.6, admits an AHP. Since , repeated application of Theorem 1.4 (i) gives an AHP in .
(ii). If admits an AHC, then Lemma 2.1 (ii) implies that is even and . Hence . Since admits no AHC, we also have .
Conversely, suppose that is even, , and . If , then
Since is even, some is odd, and hence . Write , where is a divisor lattice. By (i), admits an AHP. Thus Theorem 1.4 (ii) gives an AHC in .
Now suppose that . If , then . The exclusions and imply that . Hence Corollary 1.3 gives an AHC in .
If , then Lemma 4.1 gives an AHC in . Since for , repeated application of Theorem 1.4 (iii) gives an AHC in .
Katona [7 Section 8] studied the weak embeddings of snakes into Boolean lattices and suggested that whenever . We confirm this statement. More generally, we derive the following result on the weak embeddings of snakes into divisor lattices.
Corollary 4.2. Let be the divisor lattice of a positive integer . For every integer , the snake weakly embeds into if and only if .
Proof. If , then injectivity gives . Conversely, assume . By Theorem 1.5 (i), admits an AHP. Since is self-dual, we obtain a weak embedding of into . This completes the proof.
Remark 4.3. In particular, if and only if , for all and .
Applications to snake-free families
For a snake defined in (1), a subset of a poset is called -free if it admits no weak embedding of . Snake-free families are closely related to AHPs. For a finite poset , define
For , write . Let denote the maximum size of an antichain in a finite poset . We obtain the following result.
Proposition 5.1. For a divisor lattice and a finite poset , let be a nonempty antichain of . Then the family
is -free if and only if . Moreover, for ,
Proof. For each , the family is a copy of . Since is an antichain, elements from distinct copies are incomparable.
Consecutive elements of are comparable. Hence, the image of every weak embedding of into lies in a single copy . By Corollary 4.2, such an embedding exists if and only if . Thus is -free if and only if .
Counting the copies of gives . Taking gives the stated lower bound.
Corollary 5.2. Let be a positive integer, and let be coprime positive integers with . For every integer , we have
Proof. Let be positive integers satisfying , , and . By coprimality, we have . Moreover, is an induced subposet of .
Let be a maximum antichain of . By Proposition 5.1, is -free and has elements. This gives an -free subset of with elements.
For Boolean lattices, this recovers the construction of Katona [7 Proposition 8.2]. Fix and an -element set . Taking , , and to be a middle level of gives
By Proposition 5.1, is -free exactly when , which confirms the applicability condition discussed by Katona [7 Section 8]. Its size is
For , choosing
therefore gives
References
- [1]I. Anderson, Combinatorics of Finite Sets, Dover Publications, Mineola, NY, 2002.
- [2]M. Buck and D. Wiedemann, Gray codes with restricted density, Discrete Math. 48 (1984), 163–171.DOI
- [3]B. Bukh, Set families with a forbidden subposet, Electron. J. Combin. 16 (2009), no. 1, Research Paper 142, 11 pp.arxiv.org/abs/0803.3840
- [4]J. R. Griggs and G. O. H. Katona, No four subsets forming an N, J. Combin. Theory Ser. A 115 (2008), no. 4, 677–685.DOI
- [5]J. R. Griggs and L. Lu, On families of subsets with a forbidden subposet, Combin. Probab. Comput. 18 (2009), no. 5, 731–748.arxiv.org/abs/0807.3702
- [6]I. Havel, Semipaths in directed cubes, in: M. Fiedler (ed.), Graphs and Other Combinatorial Topics, Teubner-Texte zur Mathematik, vol. 59, Teubner, Leipzig, 1983, pp. 101–108.
- [7]G. O. H. Katona, Sperner type theorems with excluded subsets, Discrete Appl. Math. 161 (2013), no. 9, 1251–1258.
- [8]G. O. H. Katona and T. G. Tarján, Extremal problems with excluded subgraphs in the n-cube, in: M. Borowiecki, J. W. Kennedy, and M. M. Sysło (eds.), Graph Theory (Łagów, 1981), Lecture Notes in Math., vol. 1018, Springer, Berlin, 1983, pp. 84–93.
- [9]G. O. H. Katona and J. Xiao, Largest family without a pair of posets on consecutive levels of the Boolean lattice, Order 39 (2022), 15–27.arxiv.org/abs/2003.08238
- [10]T. Mü tze, Proof of the middle levels conjecture, Proc. Lond. Math. Soc. (3) 112 (2016), no. 4, 677–713.
- [11]C. D. Savage, A survey of combinatorial Gray codes, SIAM Rev. 39 (1997), 605–629.DOI
- [12]E. Sperner, Ein Satz über Untermengen einer endlichen Menge, Math. Z. 27 (1928), 544–548.DOI
- [13]R. P. Stanley, Enumerative Combinatorics, vol. 1, 2nd ed., Cambridge University Press, Cambridge, 2012.
- [14]Y. Zhan, M. Lu, and X. Zhao, The second-order term for the largest r-fork-free families, arXiv:2609.30336 (2026).arxiv.org/abs/2609.30336