Aziel Eliab · GodLock.AZ · decryption_complete is false. Cap-7 is not an ICANN name. Paid satellite stays HELD. These pages show the archive file. They do not say the manuscript is decrypted.

Voynich Master Archive - Volume 03 - Pages 2001-3000

Chinese classical control text, plus later workspace supplement files in the same PDF

PDF page 649 of 1000. Catalog page range 2001-3000.

First Previous Next Last Plain text of this page PDF at this page

Extracted text

Voynich Complete Reproducibility Compendium - 2026-08-28 Page 2648
        if i % 2 != parity or len(ln) < 3:
            continue
        cs = [classmap[u] for u in ln if u in classmap]
        if len(cs) >= 3:
            seqs.append(np.array(cs, dtype=np.int32))
    flat = np.concatenate(seqs)
    offs, i0 = 0, []
    for s in seqs:
        i0.extend(range(offs, offs + len(s) - 2))
        offs += len(s)
    i0 = np.array(i0, dtype=np.int64)
    return flat, (i0, i0 + 1, i0 + 2)
def attack(flat_tr, tri_tr, m, lm: TrigramLM, restarts=8, seed=0):
    """Coordinate-ascent search for a NEAR-BIJECTIVE classes->letters mapping
    (each letter used at most ceil(m/A) times), with reassignment and swap
    moves.  The bijection constraint prevents the degenerate collapse onto a
    few high-frequency letters that a free many-to-one mapping invites.
    Returns best mapping and its train bits/symbol."""
    rng = np.random.default_rng(seed)
    A = len(lm.alpha)
    cap = max(1, math.ceil(m / A))
    d0, d1, d2 = tri_tr
    n = len(d0)
    cfreq = np.bincount(flat_tr, minlength=m)
    def score(M):
        dec = M[flat_tr]
        return lm.logp[dec[d0], dec[d1], dec[d2]].sum() / n
    order_l = np.argsort(-lm.unigram)
    best_M, best_s = None, -1e18
    for r in range(restarts):
        M = np.zeros(m, dtype=np.int32)
        ranks = np.argsort(-cfreq) if r == 0 else rng.permutation(m)
        for rank, c in enumerate(ranks):
            M[c] = order_l[rank % A]
        usage = np.bincount(M, minlength=A)
        s = score(M)
        improved = True
        while improved:
            improved = False
            for c in np.argsort(-cfreq):
                cur = int(M[c])
                best_v, best_move = s, None
                for l in range(A):
                    if l == cur or usage[l] >= cap:
                        continue
                    M[c] = l
                    v = score(M)
                    if v > best_v:
                        best_v, best_move = v, ("re", l)
                M[c] = cur
                for c2 in range(m):
                    l2 = int(M[c2])
                    if c2 == c or l2 == cur:
                        continue
                    M[c], M[c2] = l2, cur
                    v = score(M)
                    M[c], M[c2] = cur, l2
                    if v > best_v:
                        best_v, best_move = v, ("sw", c2)
                if best_move is not None:
                    if best_move[0] == "re":
                        l = best_move[1]
                        usage[cur] -= 1
                        usage[l] += 1
                        M[c] = l
                    else:
                        c2 = best_move[1]
                        M[c], M[c2] = M[c2], int(M[c])
                    s = best_v
                    improved = True
        if s > best_s:
            best_s, best_M = s, M.copy()
    return best_M, best_s
def heldout_bits(flat_te, tri_te, M, lm: TrigramLM) -> float:
    dec = M[flat_te]
    d0, d1, d2 = tri_te
    return float(lm.logp[dec[d0], dec[d1], dec[d2]].mean())
def scrambled(ustream, classmap, seed=0):
    rng = random.Random(seed)
    out = []
    for ln in ustream:
        ln2 = list(ln)
        rng.shuffle(ln2)
        out.append(ln2)
    return out
def match_index(ustream, classmap, m, lm, anchor, restarts=8, seed=0):