861

LESSWRONG
LW

860
Frontpage

19

[ Question ]

What tools exist to compute all possible programs?

by Alexei
9th Sep 2019
1 min read
A
2
3

19

Frontpage

19

What tools exist to compute all possible programs?
5dyokomizo
5gilch
5scottviteri
New Answer
New Comment

2 Answers sorted by
top scoring

dyokomizo

Sep 09, 2019

50

miniKanren is a logic/relational language. It's been used to solve questions related to programs. For example, once you give miniKanren a description of the untyped λ-calculus extended with integers you can ask it "give me programs that result in 2" and it'll enumerate programs from the constant "2" to "1 + 1" to more complicated versions using λ-expressions. It can even find quines (if the described language supports it).

http://minikanren.org/

Add Comment

gilch

Sep 09, 2019

50

See https://en.m.wikipedia.org/wiki/Iota_and_Jot This is a way to enumerate all possible programs as binary numbers.

Add Comment
1 comment, sorted by
top scoring
Click to highlight new comments since: Today at 7:06 PM
[-]scottviteri16h50

This repo enumerates and runs programs in the iota combinator language. I wrote it many years ago, maybe it still works

https://github.com/scottviteri/ExploringTheSpaceOfShortPrograms

Reply
Moderation Log
More from Alexei
View more
Curated and popular this week
A
2
1

Are there tools / programs out there that try to compute and run all possible programs for some simple, custom language? Like something you might do if you were to naively run AIXI.