“F16.4: small shifts at the known places, per crib run and per carved line, maximised over the plain and KRYPTOS tables and both forms, a statistic fixed before looking; K4 against 10,000 shuffles”
F16.4 (issue #123). 0029 tested Bean's closeness by the largest shift over all 24 known places, which one far letter spoils; the step-back review saw that under the plain table EASTNORTHEAST forces BLZCDCYYGCKAZ, 10 of 13 shifts within 3. Here the statistic counts shifts within 3 in groups (each crib run, each word, each carved line's share of the known places, all 24, the 20 official), scores each count by its binomial tail at 7/26, and takes the best over groups, tables and forms; the same maximum on 10,000 shuffles of K4 gives the p.
Under the plain VigenereVigenere The three rules of arithmetic a table can use: add the key letter to the message letter, subtract the message letter from the key letter, or subtract the key letter from the message letter. table, most of EASTNORTHEAST's letters sit only one to three places from the carved lettersthe carved letters The 97 letters cut into the copper at the CIA, shown at the top of every experiment page. above them. That could mean a key of small numbers, or one that changes line by line on the copper. We fix one measure of 'how many small shifts in a group' before looking, take its best value on K4, and see how often scrambled copiesa shuffled control The same experiment run on the carved letters shuffled into a random order. of K4 do as well.
Words in the margin are defined on the glossary page.
1.1
The method at work
The carved letters go in at the top; the reading comes out at the bottom.
the statistic
For each group of known places (the two runs, the four words, the carved lines, all 24, the 20 official), table and form: how many shifts are 3 steps or fewer, scored by how rare that count is by chance. The best score is kept.
K4
The best is places 22-34 on the plain table: 10 of 13 shifts within 3 (key BLZCDCYYGCKAZ). BERLINCLOCK shows nothing (2 of 11).
against shuffles
64 of 10,000 shuffles reach K4's score by some group, table and form: p 0.0065, under the line of 0.01 set before the run.
caution
The cut-off of 3 steps was chosen after the review had seen K4's shifts, so this p is too small by that choice. Replicated with every cut-off 1-6 in 0287 before anything is built on it.
2
Experiment lineage
What this experiment was built on, from the lineage page: 3 experiments before it, back to the root of its line. Its number is in bold.
keptreverted, in its family's colour×error or timeoutreverted under today's rulesbuilt on a parent in the same familybuilt on a parent in another family
3
Best candidate against the known letters
This experiment produced no candidate: the search ruled everything out before a full text was built. Its product is the bounded negative under Result and bounds below.
4
Walkthrough, by hand
Redo the method on a few letters with pencil and paper.
Under each known letter of EASTNORTHEAST write the carved letter above it.
Count how many alphabet steps separate them (E to F is 1, A to L is 11, S to R is -1).
Mark the steps of size 3 or less: 10 of the 13.
Ask how likely 10 or more of 13 is when each has a 7 in 26 chance: about 1 in 5,000.
Do the same for every group, table and form, keep the best, and compare with scrambled copies of K4 treated the same way.
the worksheet: the first steps by hand, on squared paper
5
Worked example, generated
The same steps run by the code on the real letters.
plain table, Vigenere: shift = carved - known, as -13..12
place known carved shift small
22 E F 1 yes
23 A L 11
24 S R -1 yes
25 T V 2 yes
26 N Q 3 yes
27 O Q 2 yes
28 R P -2 yes
29 T R -2 yes
30 H N 6
31 E G 2 yes
32 A K 10
33 S S 0 yes
34 T S -1 yes
10 of 13 small; P(>= 10 of 13 at 7/26) = 2.47e-04
6
Hypothesis, for a cryptanalyst
Family, key space, the constraint under test, and the clues it reads.
Bean's closeness (04-structure.md, 'The minor differences'; Materna; bean-2018-kryptos-thoughts.txt): the carved letter sits near the known letter on the standard alphabet, read by Bean as a cipher alphabet near the standard one (Gromark-like). A Gronsfeld key of small digits, or a key that changes by carved line (C27(b), the 31-letter lines of the BERLIN chart; Sanborn's 'positioning'), would leave runs of small shifts. Definition, fixed before any count: forced key k = A_c(c) - A_p(p) (Vigenere) or A_c(c) + A_p(p) (Beaufort), mod 26 as -13..12, tables (A_p, A_c) in {standard, KRYPTOS}^2; a shift is small when |k| <= 3 (chance 7/26). Groups: 22-34, 64-74, each word (EAST, NORTHEAST, BERLIN, CLOCK), carved lines 2 (22-34), 3 (64-66) and 4 (67-74), all 24, the 20 official. Score per group: -log10 P(Binomial(n, 7/26) >= count). T = max over 8 table-form pairs x 10 groups. p = share of 10,000 shuffles with T at or above K4's. Flag at p < 0.01: then rows for line-keyed schemes.
7
Prediction
Written before the run; the result decides it.
K4's T comes from 22-34 under the plain table (10 of 13 small); the shuffles reach it often enough that p is above 0.01 (the closeness is one of many patterns a 97-letter text can show somewhere). No candidates.
8
Method
For each of the 8 table-form pairs, the forced key at the 24 known places, as -13..12.
Count |k| <= 3 in each of the 10 groups; score by the binomial tail at 7/26.
T = the best score.
The same on 10,000 shuffles of K4 (seed 16400).
p = (1 + shuffles at or above) / 10,001.
Report the best group, table and form for K4, and the per-group p's as diagnostics only.
Plants: four messages with small shifts (whole text, one carved line) and one without, each against 2,000 shuffles of its own.
9
Result and bounds
The harness's record: candidates, gates, loss, and the negative result this experiment leaves behind.
0candidates returned
0passed every gate
0/24known letters, best
–lowest loss
nonechampion before
K4 T 3.607 from ('std', 'std', 'vig', 'run 22-34', 10, 13); 64 of 10000 shuffles at or above, p 0.0065 (flag below 0.01: True); plants as expected 5/5
What was searched, as the harness recorded it.
item
F16.4
statistic
T = max over (plain table, cipher table) in {std, KRYPTOS}^2, form in {Vigenere, Beaufort}, group in 10 groups of -log10 P(Binomial(n, 7/26) >= count of |k| <= 3)