Skip to content

letouzey/hofstadter_g

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Investigation of Hofstadter's G function, tree, and mirror

A Coq development by Pierre Letouzey, started in summer 2015. It now extends to a whole family of functions generalizing G, and it also considers related infinite morphic words extending the Fibonacci word.

Documentation:

A first technical report is on HAL: http://hal.inria.fr/hal-01195587

A general poster presenting this work: poster/poster.pdf

Several talks (in French): talk1 talk2 talk3

Usage

  • Use make to compile the Coq files.
  • Use make gallinahtml to generate the short html documentation.
  • Use cd reports/g && pdflatex report to generate the pdf of the technical report.

Some recent files depend on Coq >= 8.16 and external libraries Coquelicot >= 3.3.0 and QuantumLib. I advise to fetch them via opam :

opam install coq
opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-coquelicot coq-quantumlib

Summary of files:

  1. Auxiliary
  • More*.v : additions to the various libraries used.
  • Approx.v: lightweight interval arithmetic for bounding reals by Q
  • DeltaList.v: lists of natural numbers with constrained differences
  1. Old files specialized to function G
  • Fib.v: Fibonacci sequence and decomposition
  • FunG.v: Hofstadter's G function and tree
  • FunG_prog.v: Alternative definition of Hofstadter's G function
  • FlipG.v: Hofstadter's flipped G tree
  • Phi.v: Hofstadter G function and the golden ratio
  1. New, generalized versions of G with more nested recursive calls
  • GenFib.v: Fibonacci-like sequences A k and decomposition
  • GenG.v: Hofstadter's G-like functions f k
  • GenFlip.v: Mirror of the G-like trees
  • GenAdd.v: Study of the quasi-additivity of G-like functions
  • Shift.v: quasi-reciprocal of the G-like functions
  1. Some infinite morphic words related to functions f k
  • Words.v: morphic words kseq k, first properties, link with f k.
  • WordGrowth.v: compare some letter frequencies, f k <= f (k+1)
  • WordSuffix.v: enumerate and count the kword suffixes
  • WordFactor.v: factors of kseq k (i.e. finite sub-words)
  • Special.v: unique left special factor for kseq k, complexity
  1. Hoftadter G-like functions and real numbers
  • ThePoly.v: start studying polynomial X^(k+1)-X^k-1
  • Mu.v: real roots of this polynomial
  • Freq.v: frequencies of letters in kseq k, limit of (f k n)/n.
  • LimCase2.v: Hofstadter H (i.e. k=2) at dist <1 of n*τ_2
  • LimCase3.v: f 3 at dist <2 of n*τ_3

References:

License

The documents in all subdirectories (especially reports/ talk/ talk2/ talk3/ poster/) are released under the CC-BY 4.0 license, see http://creativecommons.org/licenses/by/4.0/.

The Coq files of this development are released in the Public Domain, see the LICENSE file in the current directory.

About

Coq proofs about Hofstadter's function G

Resources

License

Stars

Watchers

Forks

Packages

No packages published