Under construction. A new version of this site is being built. Everything here still works: records still verify and contributions are still accepted.

open-liber-primus · analyses

Analyses

Arguments that close whole branches at once. Every number is recomputed from pinned data and records: bin/olp analysis.

What closes a branch

  1. A key search closes one recipe on one section: every key was run, none gave English, and English of that length would have been found at least 95% of the time. Otherwise it is “too short to tell”.
  2. A class test closes the typical members of a kind of cipher: the real section lies beyond 99% of 199 simulated members, and the kind is left standing on a solved section that uses it.
  3. A bound closes every member of a family at once: an inequality that holds for all of them, proved, with its assumptions stated, and the text violates it.

Never: a report, a claim without a record, a search that was too short to tell.

No key independent of the plaintext made these pages

Claim. If each rune is encrypted as c = s(p + k) (mod 29), with a key that does not depend on the plaintext and s any fixed letter swap (or none), then neighbouring runes are equal at least as often as an average of the plaintext's rarest steps.

Why. ci = ci−1 exactly when pi − pi−1 = −(ki − ki−1). Because the key ignores the plaintext, the chance of that is Σd P(plain step = d) · P(key step = −d): an average of the plaintext's step frequencies. So it is at least the rarest step, and at least the average of the two rarest if the key takes no single step more than half the time. A key that does is close to repeating every 29 runes, which the period measurement rules out.

Numbers. This book's own English (the solved pages, 2,976 pairs): two rarest steps average 1.50%; we use 0.94% to allow for the small sample, and drop pairs touching an F rune in case F is copied unencrypted.

regionrunesequal neighboursleast any such key giveschance
sections 7–1512,956861134e-03closed
section 7729463e-01not alone
section 81,1456101e-01not alone
section 91,7299157e-02not alone
section 111,89410166e-02not alone
section 121,0211198e-01not alone
section 131,52413135e-01not alone
section 141,58912143e-01not alone
section 153,31621298e-02not alone
section 15151641e+00control (solved, independent key): stays open ✓
section 5319931e+00control (solved, independent key): stays open ✓
section 1685211e+00control (solved, independent key): stays open ✓

Tried to break it. The solved pages' English, encrypted with random independent keys: one-time pad, lowest 2.59%; repeating key, 1-60 runes, lowest 2.05%; constant step (the worst case), lowest 1.31%. The worst case sits exactly at the rarest step, as the proof says; nothing goes below it.

What it closes (sections 7–15 together, chance 4e-03): every repeating key of any length, running keys from any text, number streams, random generators, even a one-time pad, with or without a final letter swap. Each section alone is too short for this cautious version. With the much larger pinned English sample (Walden, Meditations) the chance is 2e-21.

No key independent of the plaintext: sections 7–15 have 86 repeats, at least 113 would be neededPooled chance under the bound: 4e-03. Solved controls (independent keys) sit well above their floors.012345repeated neighbours (% of pairs)sectionchancesections 7–15: 86 repeated neighbours in 12,955 pairs (0.66%); least an independent key gives: 0.87%all, pooled0.004ruled outsection 7: 4 repeated neighbours in 728 pairs (0.55%); least an independent key gives: 0.85%70.26section 8: 6 repeated neighbours in 1,144 pairs (0.52%); least an independent key gives: 0.90%80.11section 9: 9 repeated neighbours in 1,728 pairs (0.52%); least an independent key gives: 0.87%90.068section 11: 10 repeated neighbours in 1,893 pairs (0.53%); least an independent key gives: 0.87%110.062section 12: 11 repeated neighbours in 1,020 pairs (1.08%); least an independent key gives: 0.87%120.81section 13: 13 repeated neighbours in 1,523 pairs (0.85%); least an independent key gives: 0.87%130.54section 14: 12 repeated neighbours in 1,588 pairs (0.76%); least an independent key gives: 0.89%140.33section 15: 21 repeated neighbours in 3,315 pairs (0.63%); least an independent key gives: 0.87%150.083section 1: 16 repeated neighbours in 514 pairs (3.11%); least an independent key gives: 0.86%11above ✓section 5: 9 repeated neighbours in 318 pairs (2.83%); least an independent key gives: 0.91%to 5.2951above ✓section 16: 2 repeated neighbours in 84 pairs (2.38%); least an independent key gives: 0.83%to 8.27160.97above ✓random runesunsolved, 95% intervalsolved, 95% intervalleast any independent key givessolved sections
Figure 1. Share of neighbouring pairs that are the same rune, with 95% Wilson intervals. Red bars: the least any key that ignores the plaintext could produce on that text (cautious bound from this book's own English; see the proof on Analyses). Chance: how likely so few repeats would be if such a key had made the text. One section alone is too short to decide (grey); all unsolved sections together sit clearly below the floor (left). The solved sections, encrypted with such keys, sit above theirs.

Assumes one additive layer and plaintext written like the solved pages.

No chain cipher with a key that ignores the plaintext

Claim. A chain cipher ci = ci−1 + pi + ki, with a key that does not depend on the plaintext (repeating or not), cannot repeat a rune as rarely as these pages and also leave the text this even once the chain is undone.

Why. Undoing the chain leaves di = pi + ki, and the cipher repeats a rune exactly when di = 0, with chance Σx P(x) Q(−x), Q the key's letter frequencies. Making that rare forces the key onto the negatives of rare plaintext runes, which makes d uneven. The least unevenness possible under the repeat limit is a convex problem (minimise the IoC of P∗Q), solved numerically.

Numbers. At the pages' own 0.66% repeats, the differenced text would need an IoC of at least 1.0357; the pages give 1.0244, and random text with the same repeats varies by 0.0013. A cipher could aim for a little more repeats to be less uneven, so the test takes its best point on the curve: the chance of seeing so few repeats and so even a text is at most 8e-06 (at 0.94% repeats; 2e-07 with pinned English).

Tried to break it. Chain ciphers keyed at the optimum, on the solved pages' English: 0.64% repeats and a differenced IoC of 1.0355, on the curve as the argument says. Controls: true chain ciphers on English stay open (random key: chance 0.19, key at the optimum: chance 0.44).

No chain cipher with a key that ignores the plaintextAny such cipher lies on or above the curve; the pages lie below it (chance at most 8e-06, at the cipher's best point)1.001.011.021.031.04IoC after undoing the chainshare of neighbours that repeat (%)possible for a chain cipherthe unsolved pages: 0.66% repeats, IoC 1.0244 (95%: ±0.14 points, ±0.0026)the unsolved pagesattack: chain ciphers keyed at the optimum, on Englishthe cipher's best point: 0.94% repeats0.400.600.801.001.201.401.601.802.00the unsolved pages, 95% both waysleast any chain key allowsattack: best chain ciphers on English
Figure 2. A chain cipher c_i = c_(i-1) + p_i + k_i repeats a rune exactly when p_i + k_i = 0. Few repeats force the key onto a few letters, and then plaintext plus key (what undoing the chain leaves) is uneven. Orange: the least unevenness possible at each repeat rate, for this book's English (the cautious model); shaded: where chain ciphers can be. The pages sit below it. Open circle: the cipher's best point, combining both uncertainties. Diamond: chain ciphers built at the optimum, on English, land on the curve. Sections 7–15 together.

Sections 7–15 together; per section, measurement tasks check the differenced text alone. Assumes a key independent of the plaintext; a chain whose key reacts to the text is open.

What is still open

Check one specific attack against everything tried: bin/olp tried (see tried.txt).

Curiosity above all. Nobody here is paid, ranked or promised anything. The Liber Primus is worked on because it is interesting: a careful dead end, an odd statistic, a better tool, a good question, all count. Bring your curiosity; the checker keeps us honest.