Proof. Suppose M is matching in the hypercube with M matchings that do not cover every two vertices at a distance of three. Choose a direction , and split into subcubes and such that is as small as possible. For such that , divide into subcubes and their respective matchings where , in these subcubes. Assume by symmetry . When , we denote and , and also denote when , then . Note that every vertex has a distinct adjacent vertex, , within , where . The following four main cases assist M into the Hamiltonian cycle:
Case 1. .
Because
, assume
, it indicates that
is not a perfect matching. Assume the size of
satisfies
. Consequently, Theorem 2 extends
to a Hamiltonian cycle
in
. For a vertex
on
, there is a neighboring vertex
on
such that
and
. Given that
such that
is matching in
. According to Lemma 11, there exists a Hamiltonian path
in
passing through
. Thus,
constructs a Hamiltonian cycle in
containing
M, as depicted in
Figure 3a.
Case 2. .
We assume that
. Because
is matching in
, by Theorem 2, we can extend
to a Hamiltonian cycle
. Let
be a neighbor of
in
such that
, there exists
in
. Consequently,
and
, implying that
is matching in
. By applying Lemma 11, there exists a Hamiltonian path
containing
in
. Therefore,
constitutes a Hamiltonian cycle containing
M within hypercube
, as illustrated in
Figure 3b.
Case 3. .
Since , where and belong to for . If are adjacent on a cycle such that , then the proof is similar to that of Case 2. Therefore, for further analysis, assume that are non-adjacent and , which means , two vertices with the same color match. Given that , it follows that . Thus, we conclude that , because .
Select a position
to minimize
, such that
. Without loss of generality, we choose
. Split
into their subcubes
and
at
for
. Therefore,
. Now, define
for every
, as shown in
Figure 4. In
, every vertex
is uniquely connected to a neighboring vertex
in
. Similarly, in
, every vertex
is uniquely connected to a neighboring vertex
in
.
By symmetry, we may assume that . Moreover, it is clear that , since the total number of edges satisfies . Assuming vertex , without loss of generality, consider , thus . We then consider two distinct subcases.
Subcase 3.1. and .
Subcase 3.1.1. .
According to Theorem 2, a Hamiltonian cycle
exists in
passing through
. There exists a vertex
adjacent to
on
that belongs to
, and
is a neighbor of
on
in
. Given
, we have
. Since
and
is matching in
, by Lemma 4, there exists a Hamiltonian path
in
containing
. Similarly, there exists a Hamiltonian path
in
containing
. Consequently, combining
constructs a Hamiltonian cycle in
containing
M, as shown in
Figure 5a.
Subcase 3.1.2. .
Let , where for . Given that and , without loss of generality, assume .
First, we establish the existence of a Hamiltonian cycle extending , such that on has two consecutive vertices that both belong to . If such that . If , then by Theorem 2, there exists a Hamiltonian cycle , similar to Subcase 3.1.1. Suppose where given that such that . Because has four neighbors in , we select , a neighbor of , such that . Consequently, it follows that for every .
In the situation described above, there are matchings and in and , respectively. According to Lemma 4, there exist Hamiltonian paths and that are in and passing through and , respectively. We assume that . Since , this implies . Thus, both neighboring vertices of on belong to , and there is a Hamiltonian cycle in containing .
Choose a neighbor
of
on
such that
, and a neighbor
of
on
such that
. By Lemma 4 there exists a Hamiltonian path
in
passing through
. Since
is a matching in
. We choose a neighbor
of
on
such that
, since
. The vertices
,
,
, and
are all distinct vertices in
, such that
,
, and
. Since
is a matching in
, and
, by Lemma 10, there is a spanning 2-path
in
passing through
. Consequently,
constructs a Hamiltonian cycle in
passing through
M, as shown in
Figure 5b.
Subcase 3.2. and .
According to Theorem 2, a Hamiltonian cycle exists in passing through . Let be a neighbor of on such that , and let be a neighbor of on such that . Thus, and . Moreover, we have , and . These properties also apply to the corresponding vertices . By symmetry, we may assume , and using Lemma 10, there exists a spanning 2-path in that passes through . We now consider two subcases.
Subcase 3.2.1. .
Consider vertex
on the vertices of path
or
, where
. Let
be in the vertices of path
and have a neighbor on
. We select a neighbor
of
for every
such that
. Because
is a matching in
, by Lemma 4, there exists a Hamiltonian path
in
containing
. Then,
is a Hamiltonian cycle in
passing through
M, as shown in
Figure 6.
Subcase 3.2.2. .
Let
, where
. Given that the vertex
is either on
or
, we may assume
and has a neighbor on
. Select a neighbor
of
, for every
and holds that
. Because
is a matching in
, by Lemma 4, there is a Hamiltonian path
in
containing
. Thus,
constructs a Hamiltonian cycle in
containing
M. (The presentation of subcase 3.2.1 and subcase 3.2.2 is similar to that depicted in
Figure 6).
Case 4. .
Let , where . Given that for , divide at position and assume that , and it follows that . Thus, , since . Hence, we distinguish this case in two ways. If two vertices from are in one partite set while the remaining vertex is in the other partite set such that . If all three vertices are in the same partite set then, .
Subcase 4.1. If two vertices are in one partite set.
Because . Splitting into 4-cube and at position k such that and . Without loss of generality, let . Since , by symmetry, we may suppose . Given that , similarly, assume . Let for every .
Subcase 4.1.1. .
Given that
and
is a matching in
, by Lemma 11, there exists a Hamiltonian path
in
containing
. Since
has only one adjacent vertex in
, we choose a neighbor
of
on
such that
. Given that
and
, note that
is a matching in
; while
is matching in
, by Lemma 4, there exists a Hamiltonian paths
in
and
in
, containing
and
, respectively. Consequently,
constitutes a Hamiltonian cycle in
that contains
M, illustrated in
Figure 7a.
Subcase 3.1.2. and .
Let and , where and . If and , without loss of generality, we may assume and . Consequently, .
We claim that contains a Hamiltonian cycle containing , with both neighbors of on also belonging to . Given that , it follows that . Consequently, for every . Let , where . Therefore, for every .
If , then denote , where . We choose a neighbor of in such that , since has four neighbors in . Thus, for every , .
For the above two cases, since is matching in , by Lemma 4, the Hamiltonian paths in passing through and for each . Let . In the first case, since , we deduce that . In the second case, because , we find ; consequently, . Since is an edge in , by Theorem 2, construct a Hamiltonian cycle in that includes and , ensuring that the two neighbors of on are both vertices in .
Because
is an edge in
, a Hamiltonian cycle
passes through this edge. Select a neighbor
of
on
such that
. Given that
is a matching in
, according to Lemma 4, there exists a Hamiltonian path
in
containing
. Since
, we select a neighbor
of
on
such that
. Now,
,
,
,
are pairwise distinct vertices in
, such that
and
with
. Since
is a matching in
and
, by Lemma 10, there exists a spanning 2-path
in
containing
. Hence,
constitutes a Hamiltonian cycle in
containing
M. (Note that the structure is analogous to subcase 3.1 in Subcase 3.1.2; readers can refer to the diagram (b) in
Figure 5 by replacing
by
for more detail.)
Now, if and , without loss of generality, we may assume and . Consequently, .
We know that vertices
, since
. Consequently,
. According to Lemma 11, there exists a Hamiltonian path
in
containing
, since
is a matching in
. We choose a neighbor
of
on
such that
since
has just one neighbor in
. By Lemma 4, there exists a Hamiltonian path
in
containing
, as
is a matching in
. Since
, we choose a neighbor
of
on
such that
. Now,
,
,
,
are pairwise distinct vertices in
, with
,
, and
. Given that
is a matching in
and
, by Lemma 10, there exists a spanning 2-path
in
containing
. Hence,
constitutes a Hamiltonian cycle in
containing
M, shown in
Figure 7b.
Subcase 4.2. If .
The vertices are all in the same partite set. The 5-cube can be divided into two 4-cubes, and , at position k where and . Without loss of generality, suppose that , and given that , by symmetry, we may consider that . Considering , by symmetry, we may assume . Define for each .
Subcase 4.2.1. , since .
Let
be the unique vertex in
, such that
. It follows that
. Given that
is a matching in
by Lemma 11, there is a Hamiltonian path
in
passing through
. We choose a neighbor
of
on
such that
, as
has only one neighbor in
. Since
, it follows that
. Suppose
is matching in
, satisfying
such that
. By Lemma 6, there exists a spanning 2-path
in
that containing
. We choose a neighbor
of
on
such that
and
, since
has only one neighbor in
. By Lemma 4, there exists a Hamiltonian path
in
containing
, since
is a matching in
. Thus,
is a Hamiltonian cycle in
passing through
M, as depicted in
Figure 8a.
Subcase 4.2.2. and .
Let and , where and . If and , without loss of generality, we may assume and . Consequently, . We claim that can be extended to a Hamiltonian cycle in . Since , we deduce that . This implies for every . Therefore, for each .
, as stated in subcase 4.1. Let , where . Since has four neighbors in . Therefore, we may choose a neighbor of in such that and for every .
By Lemma 4, there exist the Hamiltonian paths in passing through for every for these two cases, since is a matching in . Hence, . In the first case, since , we get . In the second case, because , it follows that , and hence, . Therefore, is a Hamiltonian cycle in passing through such that both neighbors of on are in .
Let
be neighbor of
such that vertices
on
, and choose a neighbor
of
on
such that
. Suppose vertices
and
are in the graph
, where
. Suppose
is matching in
, satisfying
; by Lemma 6, there is a spanning 2-path
in
passing through
. Assume
is a vertex on
such that
. Let vertices
and
be in the subgraph
, where
. Now,
,
,
,
are pairwise distinct vertices in
, with
,
, and
. Since
is a matching in
, and we have
, by Lemma 10, there exists a spanning 2-path
in
passing through
. Hence,
is a Hamiltonian cycle containing
M in
, as shown in
Figure 8b.
Now, if and , without loss of generality that we may assume and . Consequently, .
Because
such that
, according to Lemma 11, there exists a Hamiltonian path
in
containing
, since
is a matching in
. Let
be a neighbor of
such that vertices
on
, and choose a neighbor
of
on
. Suppose vertices
and
are in the graph
, where
. Suppose
is matching in
, satisfying
, then by Lemma 6, there exists a spanning 2-path
in
passing through
. Suppose
is a vertex on
such that
. Let vertices
and
be in the subgraph
, where
. Now,
,
,
,
are pairwise distinct vertices in
, such that
,
and
. Because
is a matching in
and we have
, according to Lemma 10, there exists a spanning 2-path
in
containing
. Hence,
is a Hamiltonian cycle in
containing
M, as shown in
Figure 9. □