Atelier des rouesLab FR
Objects/Documentation

contre_exemple.py

Independent check of the isolated vertex on thirteen symbols. I apply every word of length one or two and find a factor shared with 13! at each distinct destination.

Download ↓
"""Standalone certificate: no dependencies beyond Python standard library."""
from math import gcd,factorial
from collections import Counter

def rank(a):
    n=len(a);b=list(range(1,n+1));r=0
    for i,x in enumerate(a):
        k=n-i;d=b.index(x,i)-i;r=r*k+d
        w=b[i:];b[i:]=w[d:]+w[:d]
    return r

def flip(a,k):return a[:-k]+a[-k:][::-1]

a=(1,5,11,3,9,2,7,10,6,8,12,4,13);N=factorial(13);r=rank(a)
assert r==139161073 and gcd(r,N)==1
neighbors=set();divisors=Counter()

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.