GithubHelp home page GithubHelp logo

busy-beavers's Introduction

busy-beavers

An incomplete, in-progress personal project, aiming to prove that BB(5) = 47176870. To do that we need to enumerate all distinct 5 state turing machines and then prove they halt (easy) or don't halt. Obviously, there is no solution in general to the halting problem, so the program uses heuristic techniques that are effective on machines which have sufficiently simple behavior.

Build and run

Get stack, and build with:

stack build

Select a tactic set from [backward, all, basic, constructive, noncon] (see Main.hs) and run

stack exec busy-beavers-exe tactic input_file output_file

input_file and output_file are text files, lists of turing machines one per line, eg see size4_unfinished_18sep.txt.

Features

  • Enumeration of machines using tree normal form
  • Run length encoding of tapes
  • Detection of cycling machines and Lin recurrence / translated cycling
  • Macro machines with fixed-width symbol size
  • Heuristic detection of additive (x -> x+3) and affine (x -> 3x+4) machine behavior
  • Symbolic best first direct proofs and inductive proofs

In-progress and Upcoming Features

  • Better output of proofs to disk and summary statistics about enumerated machines
  • Abstract interpretation of turing machines in multiple ways
  • Performance improvments
  • Additional property tests to ensure correctness

Fair warning that on some commits the tests don't pass, since I will generally write a unit test when I find a bug and sometimes only later fix a bug. In other words, "master" is my personal "develop" branch.

busy-beavers's People

Stargazers

compwron avatar

Watchers

Justin Blanchard avatar Seraphina Nix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.