Hydra game

Last updated

In mathematics, specifically in graph theory and number theory, a hydra game is a single-player iterative mathematical game played on a mathematical tree called a hydra where, usually, the goal is to cut off the hydra's "heads" while the hydra simultaneously expands itself. Hydra games can be used to generate large numbers or infinite ordinals or prove the strength of certain mathematical theories. [1]

Contents

Unlike their combinatorial counterparts like TREE and SCG, no search is required to compute these fast-growing function values – one must simply keep applying the transformation rule to the tree until the game says to stop.

Introduction

A simple hydra game can be defined as follows:

Even though the hydra may grow by an unbounded number of leaves at each turn, the game will eventually end in finitely many steps: if is the greatest distance between the root and the leaf, and the number of leaves at this distance, induction on can be used to demonstrate that the player will always kill the hydra. If , removing the leaves can never cause the hydra to grow, so the player wins after turns. For general , we consider two kinds of moves: those that involve a leaf at a distance less than from the root, and those that involve a leaf at a distance of exactly . Since moves of the first kind are also identical to moves in a game with depth , the induction hypothesis tells us that after finitely many such moves, the player will have no choice but to choose a leaf at depth . No move introduces new nodes at this depth, so this entire process can only repeat up to times, after which there are no more leaves at depth and the game now has depth (at most) . Invoking the induction hypothesis again, we find that the player must eventually win overall.

While this shows that the player will win eventually, it can take a very long time. As an example, consider the following algorithm. Pick the rightmost leaf (ie the newest leaf which will be on the level closest to the root) and set the first time, the second time, and so on, always increasing by one. If a hydra has a single -length branch, then for , the hydra is killed in a single step, while it is killed in three steps if . There are 11 steps required for . There are 1114111 steps required for . [2] has been calculated exactly. [3] Let and to be nested n times. Then .

All steps of the simple hydra game with y = 3 SimpleHydraGameY3.svg
All steps of the simple hydra game with y = 3

General Solution

The general solution to the hydra game is as follows [4] :

Let denote the number of steps required to decrement a head of depth n when the heads closer to the roots are all singular (no further "right" branches).

Then and .

The answer to is:

The growth rate is likely much greater than in the fast-growing hierarchy.

Kirby–Paris and Buchholz hydras

The Kirby–Paris hydra is defined by altering the fourth rule of the hydra defined above.

4KP: Assume is the parent of if . Attach copies of the subtree with root to to the right of all other nodes connected to . Return to stage 2. [5]

Instead of adding only new leaves, this rule adds duplicates of an entire subtree. Keeping everything else the same, this time requires turn, requires steps, requires steps and requires more steps than Graham's number. This functions growth rate is massive, equal to in the fast-growing hierarchy.

This is not the most powerful hydra. The Buchholz hydra is a more potent hydra. [6] It entails a labelled tree. The root has a unique label (call it ), and each other node has a label that is either a non-negative integer or . [7]

  1. A hydra is a labelled tree with finite roots. The root should be labelled . Label all nodes adjacent to the root (important to ensure that it always ends) and every other node with a non-negative integer or .
  2. Choose a leaf node and a natural number at each stage.
  3. Remove the leaf . Let be 's parent. Nothing else happens if . Return to stage 2.
  4. If the label of is , Assume is the parent of . Attach copies of the subtree with root to to the right of all other nodes connected to . Return to stage 2.
  5. If x's label is , replace it with . Return to stage 2.
  6. If the label of is a positive integer . go down the tree looking for a node with a label . Such a node exists because all nodes adjacent to the root are labelled . Take a copy of the subtree with root . Replace with this subtree. However, relabel (the root of the copy of the subtree) with . Call the equivalent of in the copied subtree (so is to as is to ), and relabel it 0. Go back to stage 2. [8]

Surprisingly, even though the hydra can grow enormously taller, this sequence always ends. [9]

More about KP hydras

For Kirby–Paris hydras, the rules are simple: start with a hydra, which is an unordered unlabelled rooted tree . At each stage, the player chooses a leaf node to chop and a non-negative integer . If  is a child of the root , it is removed from the tree and nothing else happens that turn. Otherwise, let  be 's parent, and  be 's parent. Remove from the tree, then add  copies of the modified  as children to . The game ends when the hydra is reduced to a single node.

To obtain a fast-growing function, we can fix , say,  at the first step, then , , and so on, and decide on a simple rule for where to cut, say, always choosing the rightmost leaf. Then,  is the number of steps needed for the game to end starting with a path of length , that is, a linear stack of  nodes. eventually dominates all recursive functions which are provably total in Peano arithmetic, and is itself provably total in . [10]

This could alternatively expressed using strings of brackets:

For example, with , . Next is a list of values of :

More about Buchholz hydras

The Buchholz hydra game is a hydra game in mathematical logic, a single player game based on the idea of chopping pieces off a mathematical tree. The hydra game can be used to generate a rapidly growing function , which eventually dominates all provably total recursive functions. It is an extension of Kirby-Paris hydras. What we use to obtain a fast-growing function is the same as Kirby-Paris hydras, but because Buchholz hydras grow not only in width but also in height, has a much greater growth rate of :

This system can also be used to create an ordinal notation for infinite ordinals, e.g. .

See also

Related Research Articles

<span class="mw-page-title-main">AVL tree</span> Self-balancing binary search tree

In computer science, an AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore this property. Lookup, insertion, and deletion all take O(log n) time in both the average and worst cases, where is the number of nodes in the tree prior to the operation. Insertions and deletions may require the tree to be rebalanced by one or more tree rotations.

<span class="mw-page-title-main">Binary search tree</span> Rooted binary tree data structure

In computer science, a binary search tree (BST), also called an ordered or sorted binary tree, is a rooted binary tree data structure with the key of each internal node being greater than all the keys in the respective node's left subtree and less than the ones in its right subtree. The time complexity of operations on the binary search tree is linear with respect to the height of the tree.

<span class="mw-page-title-main">Binary tree</span> Limited form of tree data structure

In computer science, a binary tree is a tree data structure in which each node has at most two children, referred to as the left child and the right child. That is, it is a k-ary tree with k = 2. A recursive definition using set theory is that a binary tree is a tuple (L, S, R), where L and R are binary trees or the empty set and S is a singleton set containing the root.

<span class="mw-page-title-main">Random variable</span> Variable representing a random phenomenon

A random variable is a mathematical formalization of a quantity or object which depends on random events. The term 'random variable' in its mathematical definition refers to neither randomness nor variability but instead is a mathematical function in which

<span class="mw-page-title-main">Harmonic function</span> Functions in mathematics

In mathematics, mathematical physics and the theory of stochastic processes, a harmonic function is a twice continuously differentiable function where U is an open subset of that satisfies Laplace's equation, that is,

In mathematical analysis, the Lagrange inversion theorem, also known as the Lagrange–Bürmann formula, gives the Taylor series expansion of the inverse function of an analytic function. Lagrange inversion is a special case of the inverse function theorem.

<span class="mw-page-title-main">Kőnig's lemma</span> Mathematical result on infinite trees

Kőnig's lemma or Kőnig's infinity lemma is a theorem in graph theory due to the Hungarian mathematician Dénes Kőnig who published it in 1927. It gives a sufficient condition for an infinite graph to have an infinitely long path. The computability aspects of this theorem have been thoroughly investigated by researchers in mathematical logic, especially in computability theory. This theorem also has important roles in constructive mathematics and proof theory.

<span class="mw-page-title-main">Tree (set theory)</span>

In set theory, a tree is a partially ordered set (T, <) such that for each tT, the set {sT : s < t} is well-ordered by the relation <. Frequently trees are assumed to have only one root (i.e. minimal element), as the typical questions investigated in this field are easily reduced to questions about single-rooted trees.

In computer science, corecursion is a type of operation that is dual to recursion. Whereas recursion works analytically, starting on data further from a base case and breaking it down into smaller data and repeating until one reaches a base case, corecursion works synthetically, starting from a base case and building it up, iteratively producing data further removed from a base case. Put simply, corecursive algorithms use the data that they themselves produce, bit by bit, as they become available, and needed, to produce further bits of data. A similar but distinct concept is generative recursion, which may lack a definite "direction" inherent in corecursion and recursion.

In computer science, a scapegoat tree is a self-balancing binary search tree, invented by Arne Andersson in 1989 and again by Igal Galperin and Ronald L. Rivest in 1993. It provides worst-case lookup time and amortized insertion and deletion time.

In set theory, the Baire space is the set of all infinite sequences of natural numbers with a certain topology. This space is commonly used in descriptive set theory, to the extent that its elements are often called "reals". It is denoted by NN, or ωω, or by the symbol or sometimes by ωω.

In mathematics, a π-system on a set is a collection of certain subsets of such that

The Pólya enumeration theorem, also known as the Redfield–Pólya theorem and Pólya counting, is a theorem in combinatorics that both follows from and ultimately generalizes Burnside's lemma on the number of orbits of a group action on a set. The theorem was first published by J. Howard Redfield in 1927. In 1937 it was independently rediscovered by George Pólya, who then greatly popularized the result by applying it to many counting problems, in particular to the enumeration of chemical compounds.

In mathematics – specifically, in the theory of stochastic processes – Doob's martingale convergence theorems are a collection of results on the limits of supermartingales, named after the American mathematician Joseph L. Doob. Informally, the martingale convergence theorem typically refers to the result that any supermartingale satisfying a certain boundedness condition must converge. One may think of supermartingales as the random variable analogues of non-increasing sequences; from this perspective, the martingale convergence theorem is a random variable analogue of the monotone convergence theorem, which states that any bounded monotone sequence converges. There are symmetric results for submartingales, which are analogous to non-decreasing sequences.

In computer science, the range query problem consists of efficiently answering several queries regarding a given interval of elements within an array. For example, a common task, known as range minimum query, is finding the smallest value inside a given range within a list of numbers.

In computer science, an optimal binary search tree (Optimal BST), sometimes called a weight-balanced binary tree, is a binary search tree which provides the smallest possible search time (or expected search time) for a given sequence of accesses (or access probabilities). Optimal BSTs are generally divided into two types: static and dynamic.

In computer science, frequent subtree mining is the problem of finding all patterns in a given database whose support is over a given threshold. It is a more general form of the maximum agreement subtree problem.

In mathematics, the exponential response formula (ERF), also known as exponential response and complex replacement, is a method used to find a particular solution of a non-homogeneous linear ordinary differential equation of any order. The exponential response formula is applicable to non-homogeneous linear ordinary differential equations with constant coefficients if the function is polynomial, sinusoidal, exponential or the combination of the three. The general solution of a non-homogeneous linear ordinary differential equation is a superposition of the general solution of the associated homogeneous ODE and a particular solution to the non-homogeneous ODE. Alternative methods for solving ordinary differential equations of higher order are method of undetermined coefficients and method of variation of parameters.

In computer science, the list-labeling problem involves maintaining a totally ordered set S supporting the following operations:

In mathematics, especially mathematical logic, graph theory and number theory, the Buchholz hydra game is a type of hydra game, which is a single-player game based on the idea of chopping pieces off a mathematical tree. The hydra game can be used to generate a rapidly growing function, , which eventually dominates all recursive functions that are provably total in "", and the termination of all hydra games is not provably total in .

References

  1. Kirby, Laurie; Paris, Jeff. "Accessible independence results for Peano arithmetic" (PDF). Department of applied logic. Retrieved 2021-09-04.
  2. https://www.reddit.com/r/BradyHaran/comments/1c6z1t4/the_hydra_game_numberphile/
  3. https://cal.vin/p/hydra5
  4. https://li.cal.vin/p/the-hydra-game-solved
  5. "Hydras". agnijomaths.com. Retrieved 2021-09-05.
  6. Hamano, Masahiro; Okada, Mitsuhiro (1995). "A Relationship among Gentzen's Proof-Reduction, Kirby-Paris) Hydra Game, and Buchholz's Hydra Game (Preliminary Report)*" (PDF). Research Institute for Mathematical Sciences, Kyoto University. Retrieved 2021-09-04.
  7. Ketonen, Jussi; Solovay, Robert (1981). "Rapidly Growing Ramsey Functions". Annals of Mathematics. 113 (2): 267–314. doi:10.2307/2006985. ISSN   0003-486X. JSTOR   2006985.
  8. Buchholz, Wilfried (1984-11-27). "An independence result for Π11 - CA + BI" (PDF). Ludwig-Maximilians-University of Munich. Retrieved 2021-09-04.
  9. Hamano, Masahiro; Okada, Mitsuhiro (1998-03-01). "A direct independence proof of Buchholz's Hydra Game on finite labeled trees". Archive for Mathematical Logic. 37 (2): 67–89. doi:10.1007/s001530050084. ISSN   1432-0665. S2CID   40113368.
  10. Carlucci, Lorenzo (2003-05-07). "A new proof-theoretic proof of the independence of Kirby–Paris' Hydra Theorem". Theoretical Computer Science. 300 (1–3): 365–378. doi:10.1016/S0304-3975(02)00332-8. ISSN   0304-3975.

Creative Commons by small.svg  This article incorporates text by Komi Amiko available under the CC BY 4.0 license.