(* Title: Termination of the hydra battle Author: Jasmin Blanchette <jasmin.blanchette at inria.fr>, 2017 Maintainer: Jasmin Blanchette <jasmin.blanchette at inria.fr> *) section ‹Termination of the Hydra Battle› theory Hydra_Battle imports Syntactic_Ordinal begin hide_const (open) Nil Cons text ‹ The ‹h› function and its auxiliaries ‹f› and ‹d› represent the hydra battle. The ‹encode› function converts a hydra (represented as a Lisp-like tree) to a syntactic ordinal. The definitions follow Dershowitz and Moser. ›