File:OT spaceship map.png: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
A map of the outer-totalistic rulespace (spanning all <tt>512<sup>2</sup></tt> rules). Birth conditions are in a Gray code rightwards (with b0 having the highest precedence, occupying the right half, b1 the central half, b2 the central halves of each half, etc.) in the x axis, survival ones are in one downwards in the y axis (with s0 having the highest precedence in the left half and s8 in the right half). Each one is coloured in accordance with the existence of spaceships. (For s8 rules, onl...
 
DroneBetter uploaded a new version of File:OT spaceship map.png
(No difference)

Revision as of 12:13, 13 August 2023

Summary

A map of the outer-totalistic rulespace (spanning all 5122 rules). Birth conditions are in a Gray code rightwards (with b0 having the highest precedence, occupying the right half, b1 the central half, b2 the central halves of each half, etc.) in the x axis, survival ones are in one downwards in the y axis (with s0 having the highest precedence in the left half and s8 in the right half). Each one is coloured in accordance with the existence of spaceships. (For s8 rules, only the empty space of off cells is considered a valid background agar, except for the bottom-right quadrant, which has b0 so considers only the all-on agar, and as such duplicates the part of the left half without S8, so may be excluded in a future version.) Green ones have explicit examples known in the extension of David Eppstein's glider database, while the existence of spaceships in red ones is (by some line of reasoning) disproven. (Note that though each disproof is rigorous, not all have been made, the 642 square above the right half of is suspected impossible but seems hard to prove as such.)

Generated by means of the following program (though not in minimal form, false and unproven conjectures are included but precluded by False ands)

import os,sys
from functools import reduce
from itertools import product,chain,starmap
ORsum=lambda l: reduce(int.__or__,l,0)
tarmap=lambda f,*l:tuple(starmap(f,*l))
tilter=lambda f,i: tuple(filter(f,i))

def niceA030101(d,n):
    b=d-1#d.bit_length()-1
    l=b.bit_length()
    o=c=(1<<(1<<l))-1
    for i in range(l):
        s=1<<l+~i #s=1<<i
        o^=o<<s #o=c//((1<<(s<<1))-1)*((1<<s)-1)
        n=(n&o)<<s|n>>s&o
    return(n>>1+(~d^~0<<d.bit_length()) if d&d-1 else n)

from PIL import Image
mask=~(~0<<9)
rules=[False]*(1<<18)
with open(os.path.join(sys.path[0],'R1-C2-NM-gliders.db.txt'),newline='') as db: #https://github.com/jedlimlx/HROT-Glider-DB/blob/master/R1-C2-NM-gliders.db.txt
    for s in db:
        for _ in range(2):
            s=s[s.index(':')+1:]
        minr=s[:(c:=s.index(':'))]
        s=s[c+1:]
        maxr=s[:s.index(':')]
        minr,maxr=map(lambda r: (lambda b,s: b|s<<9)(*map(lambda t: ORsum(map(lambda i: (str(i) in t)<<i,range(9))),r.split('/'))),(minr,maxr))
        diff=minr^maxr
        indexes=tilter(lambda i: diff>>i&1,range(18))
        for rule in map(ORsum,product(*map(lambda i: (0,1<<i),indexes))):
            rules[rule|minr]=True
spaceship=lambda b,s: rules[b|s<<9]
img=Image.frombytes('RGB',2*(1<<9,),bytes(chain.from_iterable(tarmap(lambda b,s: (lambda b,s: (0,0xff,0) if spaceship(b,s) else ((0xff,0,0) if not(~b&0b1110 or s&0b11100000) or not(~b&0b111110000 or s&0b11111) or not(~b&0b011110000 or s&0b11110) or False and ~s&1 and b&1<<8 and not(~b>>6&0b10|~b>>4&0b100|~b>>2&0b1000|s&0b1110) or not((b^0b0010)&0b1110 or (s^0b1100000)&0b11100000) or False and not(b&0b110 or (s^0b1000000)&0b11000000) or ~b&1<<1 and s&1<<7 or b&1<<1 and ~b&1<<2 and not ~s&0b11<<6 else 3*(0x33,)) if b&1 else (0xff,0,0) if not b&0b1110 or not ~s&0b1111 or b&0b10 or not(~b&0b1100) and s&1 or not (s^0b11110)&0b11111 else 3*(0,))(*((niceA030101(9,mask^s),niceA030101(9,mask^b)) if b&1 and s&1<<8 else (b,s))),chain(product(map(lambda n: niceA030101(9,n^n>>1),range(1<<8)),map(lambda n: niceA030101(9,n^n>>1),range(1<<9))),product(map(lambda n: niceA030101(9,n^n>>1),range(1<<8,1<<9)),map(lambda n: n^n>>1,range(1<<9)))))))).transpose(5)
img.show()

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:01, 27 October 2023Thumbnail for version as of 12:01, 27 October 2023512 × 512 (18 KB)DroneBetter (talk | contribs)some more explicit examples of spaceships from [https://conwaylife.com/forums/viewtopic.php?f=11&t=1074&p=146424#p146424 LaundryPizza03's database] (now 45623 have spaceships, 170721 are disproven, and 45800 unknown)
03:20, 14 August 2023Thumbnail for version as of 03:20, 14 August 2023512 × 512 (18 KB)DroneBetter (talk | contribs)15 more red pixels in self-inverse rules (in the mainly-empty region of B23) disproven by the fact that their black/white reversals are disproven also
12:58, 13 August 2023Thumbnail for version as of 12:58, 13 August 2023512 × 512 (18 KB)DroneBetter (talk | contribs)144 more green pixels due to spaceships in strobing rules working also in their black/white reversals
12:13, 13 August 2023Thumbnail for version as of 12:13, 13 August 2023512 × 512 (18 KB)DroneBetter (talk | contribs)More disproofs over the strobing rules from [https://conwaylife.com/forums/viewtopic.php?f=11&t=1074&p=93966 this post] by LaundryPizza03, rearranged bottom-right quadrant by inverting x axis's precedence
16:25, 12 August 2023Thumbnail for version as of 16:25, 12 August 2023512 × 512 (16 KB)DroneBetter (talk | contribs)A map of the outer-totalistic rulespace (spanning all <tt>512<sup>2</sup></tt> rules). Birth conditions are in a Gray code rightwards (with b0 having the highest precedence, occupying the right half, b1 the central half, b2 the central halves of each half, etc.) in the x axis, survival ones are in one downwards in the y axis (with s0 having the highest precedence in the left half and s8 in the right half). Each one is coloured in accordance with the existence of spaceships. (For s8 rules, onl...

The following 2 pages use this file: