Antihydra

From BusyBeaverWiki
Revision as of 22:40, 3 March 2025 by MrSolis (talk | contribs)
Jump to navigation Jump to search
Unsolved problem:
Does Antihydra run forever?

1RB1RA_0LC1LE_1LD1LC_1LA0LB_1LF1RE_---0RA (bbch)

Artistic depiction of Antihydra by Jadeix

Antihydra is the first BB(6) Cryptid to be identified. It operates by repeatedly applying the Hydra function , starting with . Determining whether this Turing machine halts requires solving a Collatz-like mathematical problem. Specifically, one must establish a significant result regarding the frequency of odd versus even numbers generated throughout the sequence. While probabilistic arguments based on random walks suggest Antihydra probviously runs indefinitely, proving this remains challenging. The difficulty stems from both the lack of an exploitable pattern in the sequence’s parities and the inherent complexity of Collatz-like problems.

Description

The transition table of Antihydra.

Antihydra basically repeatedly modifies the integer ordered pair starting at , which is represented on the tape as consecutive s and consecutive s, separated by a single . It does this by "borrowing" a from the right side and, through a series of back-and-forth head movements, "moves" this toward the one separating and , two units at a time. As this happens, the head visits new cells on the right, which has the effect of there being about times as many s on the tape when the distance has been closed. After that, and are updated. If the previous value of was even, then becomes . Otherwise, becomes or Antihydra halts if was 0.

To resolve the halting problem for Antihydra, one must determine if, given the function , the sequence of iterates could ever produce a cumulative quantity of odd numbers that is more than twice that of the even numbers.

Attributions

Antihydra and its pseudo-random behaviour were reported on Discord by mxdys on 28 June 2024, and Racheline discovered the high-level rules soon after, where it was found to be closely related to Hydra.

Analysis

Let . Then,[1]

Proof

Consider the partial configuration . The configuration after two steps is . We note the following shift rule:

As a result, we get after steps. Advancing two steps produces . A second shift rule is useful here:
This allows us to reach in steps. Moving five more steps gets us to , which is the same configuration as . Accounting for the head movement creates the condition that . In summary:
With we have . As a result, we can apply this rule times (assuming ), which creates two possible scenarios:

  1. If , then in steps we arrive at . The matching complete configuration is . After steps this becomes , which then leads to in steps. After five more steps, we reach , from which another shift rule must be applied:
    Doing so allows us to get the configuration in steps. In six steps we have , so we use the shift rule again, ending at , equal to , steps later. This gives a total of steps.
  2. If , then in steps we arrive at . The matching complete configuration is . After steps this becomes . If then we have reached the undefined F0 transition with a total of steps. Otherwise, continuing for six steps gives us . We conclude with the configuration , equal to , in steps. This gives a total of steps.

The information above can be summarized as

Substituting for the first case and for the other two yields the final result.

Trajectory

11 steps are required to enter the configuration before the rules are repeatedly applied. So far, Antihydra has been simulated to rule steps, at which point . Here are the first few:

A heuristic nonhalting argument

A binary representation of the first 1000 steps of the evolution of the exponentially increasing variable of the Antihydra iteration (a = a + a//2). The colored background indicates whether the value is even or odd with blue and red, respectively.

The trajectory of values can be approximated by a random walk in which the walker can only move in step sizes +2 or -1 with equal probability, starting at position 0. If is the probability that the walker will reach position -1 from position , then it can be seen that . Solutions to this recurrence relation come in the form , which after applying the appropriate boundary conditions reduces to . This means that if walker were to get to position 1073720884 then the probability of it ever reaching position -1 is . This combined with the fact that the expected position of the walker after steps is strongly suggests Antihydra will not halt.

To view an animation of the blank tape becoming in 419 steps, click here.

References

  1. S. Ligocki, "BB(6) is Hard (Antihydra)" (2024). Accessed 22 July 2024.