-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99ec17a
commit 8044eb9
Showing
4 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Tromp's version, will reduce to [0] iff Goldbach conjecture is false | ||
:import std/Combinator . | ||
|
||
zero [[1]] | ||
|
||
one [[0]] | ||
|
||
sieve y [[[0 one (2 sn1 f)]]] | ||
f y [sn2 0] | ||
sn2 [[0 (0 4 1)] [[[[0 2 (1 3)]]]]] | ||
sn1 [[0 (0 3 1)] [[[[0 2 (1 3)]]]]] | ||
|
||
zeroS [[[[0 zero (1 3)]]]] | ||
|
||
primes sieve zeroS | ||
|
||
check y [[[[[primes 0 (1 (4 0))] testp1]]]] | ||
testp1 [0 0 2 [0 4] 0] | ||
|
||
main primes (check [[[[0]]]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
:import std/Logic . | ||
|
||
# hypothetical halting decider (shall not loop) | ||
# assuming (Program Arg) reduces to boolean | ||
halting [[halts (1 0)]] ⧗ Program → Arg → Boolean | ||
halts [0 true false] | ||
|
||
# basically y combinator | ||
# paradox! | ||
e halting [¬(halting 0 0)] [¬(halting 0 0)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
# "bruijn huge.bruijn" | ||
# some of the fastest growing functions per blc length | ||
|
||
# 55 bits inflating to 65536 bits, John Tromp | ||
huge-55 [[0 0 0 0 [[0 [[0]] 1]]] (+2u) | ||
|
||
# 64 bits inflating to ??? bits, John Tromp | ||
huge-64 [0 0 h 0 0 0] (+2u) | ||
h [[[0 2 1 0]]] | ||
|
||
# 79 bits inflating to ??? bits, John Tromp and Bertram Felgenhauer | ||
huge-79 [0 0 e 0] (+2u) | ||
e [0 g [[0]] d0 0] | ||
g [[1 (d 0) (0 [0])]] | ||
d [[[2 [2 0 1]]]] | ||
d0 [[1 0 0]] | ||
|
||
main [[0 0 0 0 [[0 [[0]] 1]]] [[1 (1 0)]]] | ||
main huge-64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters