Documentation

FormalConjectures.Wikipedia.SnakeInTheBox

Snake in the box #

References:

A graph on the power set of Fin n, where two sets are adjacent if they differ by a single element.

Equations
Instances For

    A subgraph G' is a 'snake' of length k in graph G if it is an induced path of length k.

    Equations
    Instances For
      noncomputable def SnakeInBox.LongestSnakeInGraph {V : Type u} [DecidableEq V] (G : SimpleGraph V) :

      The length of the longest induced path (or 'snake') in a graph G.

      Equations
      Instances For
        noncomputable def SnakeInBox.LongestSnakeInTheBox (n : ) :

        The length of the longest snake for the Hypercube n graph.

        Equations
        Instances For

          The longest snake in the $0$-dimensional cube, i.e. the cube consisting of one point, is zero, since there only is one induced path and it is of length zero.

          The maximum length for the snake-in-the-box problem is known for dimensions zero through eight; it is $0, 1, 2, 4, 7, 13, 26, 50, 98$.

          For dimension $9$, the length of the longest snake in the box is not known. This is currently the smallest dimension where this question is open.

          The best length found so far for dimension nine is 190.

          theorem SnakeInBox.snake_upper_bound (n : ) :
          (LongestSnakeInTheBox n) 1 + 2 ^ (n - 1) * (6 * n) / (6 * n + 1 / (6 * 6) * n)

          An upper bound of the maximal length of the longest snake in a box is given by $$ 1 + 2^{n-1}\frac{6n}{6n + \frac{1}{6\sqrt{6}}n^{\frac 1 2} - 7}. $$