# Z32 inventory under the unchanged Z340 key All ten candidates fail the inventory test. The reconciled crosswalk fixes 27 of 32 slots. Every candidate lacks the required one `B` and two `P`s, among other deficits. Transposition preserves these counts, so no ordering can repair the deficits. ## Sources and reconciliation - Both supplied JSON reports matched their pinned SHA-256 hashes. The slot table compares the reports by position using their ciphertext IDs. The Figures column gives the plaintext row of the refined key for a witnessed match. The Aligned column gives the explorer image basename and the reported letter, with the first one-based witness cell in the aligned strings. A dash means the report or reconciliation left the slot free. - The Z32 manuscript witness is the bottom two lines (17 + 15 glyphs) in the June 26, 1970 letter scan. The Z340 witnesses are Figure 6 (printed ciphertext), Figure 43 (zero-based plaintext index in each printed cell), Figure 44 (refined key, grouped by plaintext letter), and Section 5 (published plaintext) in HTML v1. The figures report worked from the HTML images. It lists the parallel PDF but did not inspect it separately, and it did not independently compare the initial key in Figure 39. The refined key is the reference here. [Letter scan](https://zodiackillerciphers.com/wiki/images/3/31/9a_-_San_Francisco_Chronicle_Map_Code_letter_June_26_1970_Color_High_Res.jpg), [Scan file record](https://zodiackillerciphers.com/wiki/index.php?title=File:9a_-_San_Francisco_Chronicle_Map_Code_letter_June_26_1970_Color_High_Res.jpg), [Figure 6](https://arxiv.org/html/2403.17350v1#S1.F6), [Figure 43](https://arxiv.org/html/2403.17350v1#S5.F43), [Figure 44](https://arxiv.org/html/2403.17350v1#S5.F44), [Section 5](https://arxiv.org/html/2403.17350v1#S5). - The aligned report used `zodiac.js` at commit `270316a6267124aa8b2c48bc17eea46f7a4b92bf`, lines 277–296. I parsed the pinned literals as data. Zero-based `ciphers[3]` has the same multiset as printed `ciphers[2]`. Pairing `ciphers[3]` and `ciphers[5]` yields 340 pairs and 63 consistent glyph types. The fixed-spelling `ciphers[6]` differs from `ciphers[5]` at 35 cells and is unsuitable for alignment. The Z32 string in `ciphers[8]` and the two lines of the combined-fonts Z32 block match the supplied IDs. The explorer `getName()` maps IDs to the image basenames in the table. The aligned report inspected Z32 in the scan and compared it to explorer glyph images. It did not inspect printed Z340, so a shared alias alone cannot settle a conflict with the printed form. [Pinned explorer source](https://raw.githubusercontent.com/doranchak/zodiac-cipher-explorer/270316a6267124aa8b2c48bc17eea46f7a4b92bf/zodiac.js), [Combined fonts](https://zodiackillerciphers.com/combined-fonts/ciphers.html). | Slot | ID | Z32 shape (figures report) | Figures letter | Aligned alias → letter (first aligned cell) | Retained | |---:|:---:|---|:---:|---|:---:| | 1 | `C` | C (Roman-like C, opening right) | Y | `c` → Y (6) | Y | | 2 | `9` | open (unfilled) triangle Δ, no inner dot | N | `n9` → N (26) | N | | 3 | `J` | J | S | `j` → S (62) | S | | 4 | `\|` | single vertical stroke I | E | `bar` → — (5) | E | | 5 | `#` | filled square ■ | T | `sq` → T (29) | T | | 6 | `O` | plain open circle O (no dot, no cross, no shading) | A | `o` → A (38) | A | | 7 | `k` | reversed (mirrored) K ꓘ, vertical stroke on right | I | `bk` → I (15) | I | | 8 | `[` | inverted T with a small hook/curl at the top of the stem (like a 180°-rotated hooked T) | — | `t2` → — | — | | 9 | `A` | A | D | `a` → D (135) | D | | 10 | `M` | M | O | `m` → O (3) | O | | 11 | `f` | reversed F ꟻ (arms point left) | B | `bf` → B (71) | B | | 12 | `8` | filled (solid) triangle ▲ | P | `n8` → P (4) | P | | 13 | `?` | horseshoe / Omega Ω | — | `omega` → — | — | | 14 | `O` | plain open circle O | A | `o` → A (38) | A | | 15 | `R` | R | O | `r` → O (19) | O | | 16 | `T` | T | R | `t` → R (118) | R | | 17 | `G` | G-like glyph with inner bar (could be read as 6) | — | `g` → T (39) | — | | 18 | `X` | X | R | `x` → R (142) | R | | 19 | `6` | dotted circle ⊙ (circle with central dot) | D | `n6` → D (144) | D | | 20 | `F` | normal F (arms point right) | F | `f` → F (23) | F | | 21 | `D` | D | N | `d` → N (51) | N | | 22 | `V` | V | O | `v` → O (7) | O | | 23 | `j` | hooked T (t-shape, stem curling at the foot) | P | `bj` → P (80) | P | | 24 | `%` | filled square with a white (unfilled) triangular corner, half-shaded square | — | `sqr` → T (47) | — | | 25 | `H` | H | I | `h` → I (1) | I | | 26 | `C` | C | Y | `c` → Y (6) | Y | | 27 | `E` | E | R | `e` → R (10) | R | | 28 | `L` | L | G | `l` → G (17) | G | | 29 | `z` | crossed circle: circle with + crosshair whose arms extend beyond the rim (Zodiac-sign-like), centre not solidly filled | — | `zodiac` → A (25) | — | | 30 | `P` | P with open bowl | I | `p` → I (32) | I | | 31 | `W` | W | W | `w` → W (48) | W | | 32 | `9` | open triangle Δ | N | `n9` → N (26) | N | ### Disagreements and unresolved types - **4, vertical stroke.** The aligned report saw possible end strokes in Z32 and left the match to the explorer's plain bar unresolved. The letter scan shows a short upright stroke, like the Z340 stroke at Figure 6 r5c9 and in Figure 44 row E. The printed witness and the control support retaining **E**. The aligned alias also takes E at all ten occurrences, including control cell 5. - **8, inverted hooked stem, and 13, omega.** The former resembles row L's inverted T or row P's hooked glyph turned around. Neither preserves both the hook and the orientation. The omega has no counterpart identified in the refined key. Both aliases are absent from the aligned Z340 ciphertext. Both stay free. - **17, G-like glyph.** Explorer `G` aligns consistently to T, but Figure 44 row T begins with a 6-like form. The scan reads like a G with a bar, and the reports do not establish identity with that printed Z340 form. The Z32 dotted circle at 19 is a separate, secure match. Slot 17 stays free. - **23, hooked form.** One report calls it a hooked T and the other a reversed J with a top bar. Both witness the same P mapping. Figure 44 row P's second form can be located at Figure 6 r5c7, and the aligned `j` takes P at cells 80 and 140. Its stem and hook distinguish it from the inverted form at 8. - **24, partly shaded square.** The aligned `%` takes T, but the visual report found that the scan does not securely distinguish the shading from the A-row half-shaded square. In Figure 44 the A and T squares have different light corners. Partial fill identifies the family without resolving the orientation here. Slot 24 stays free. - **29, crosshair.** The aligned `z` takes A and captures the extended arms, but the visual report describes an open interior on the Z32 crosshair where Figure 44 row A shows a solid center. The scan's heavy ink makes fill harder to compare than the outline. The shape evidence does not settle the fill match, so slot 29 stays free. The slot decisions use both reports, the letter scan, and the printed and refined-key figures. The alternate readings above explain why the free types were left unconstrained over A–Z. [Letter scan](https://zodiackillerciphers.com/wiki/images/3/31/9a_-_San_Francisco_Chronicle_Map_Code_letter_June_26_1970_Color_High_Res.jpg), [Printed Z340](https://arxiv.org/html/2403.17350v1#S1.F6), [Refined key](https://arxiv.org/html/2403.17350v1#S5.F44), [Pinned alignment data](https://raw.githubusercontent.com/doranchak/zodiac-cipher-explorer/270316a6267124aa8b2c48bc17eea46f7a4b92bf/zodiac.js). ## Verified control I followed Figure 43 indices 0–17 in the first block and checked the corresponding locations in Figure 6, then read the Fig. 44 plaintext rows. The printed glyphs, expressed in the explorer IDs, also agree with the first 18 untransposed explorer cells. Figure 6 r6c12 is described as a scribble in the figures report. The explorer renders it as `k`, and both routes give I there. [Printed Z340](https://arxiv.org/html/2403.17350v1#S1.F6), [Transposition](https://arxiv.org/html/2403.17350v1#S5.F43), [Refined key](https://arxiv.org/html/2403.17350v1#S5.F44), [Explorer alignment](https://raw.githubusercontent.com/doranchak/zodiac-cipher-explorer/270316a6267124aa8b2c48bc17eea46f7a4b92bf/zodiac.js). ```text Cells r1c1 r2c3 r3c5 r4c7 r5c9 r6c11 r7c13 r8c15 r9c17 r1c2 r2c4 r3c6 r4c8 r5c10 r6c12 r7c14 r8c16 r9c1 Glyphs H+M8|CV@KEB+*5k.Ld Letters IHOPEYOUAREHAVINGL ``` The control agrees 18/18 with the opening of the published Section 1 plaintext, “I HOPE YOU ARE HAVING L…” after stripping spaces. This checks the glyph-to-letter direction. The aligned report's longer 91-cell control preserves manuscript slips such as `FAN` and `BRINGO`. The short image-based control ends before either slip. [Section 5](https://arxiv.org/html/2403.17350v1#S5). ## Printed order and inventory ```text C9J|#Ok[AMf8?ORTG YNSETAI_DOBP_AOR_ X6FDVj%HCELzPW9 RDFNOP_IYRG_IWN ``` - Known (27 slots) — `A:2 B:1 D:2 E:1 F:1 G:1 I:3 N:3 O:3 P:2 R:3 S:1 T:1 W:1 Y:2`. - Free (5 slots) — `[:1 ?:1 G:1 %:1 z:1`, in first-occurrence order. - Doubled types — `C` at 1 and 26 contributes two Ys, `9` at 2 and 32 contributes two Ns, and `O` at 6 and 14 contributes two As. The other 26 types occur once. The two Ps come from distinct types, `8` and `j`. ## Candidate results The ten texts each have 32 uppercase ASCII letters. Their sorted ASCII strings joined with LF, with no final LF, have SHA-256 `f64b62d0764290fe042b908e34ed11d48f9bdd8274c2426d59d4510442f7b8b3`. Each listed number is the magnitude of a negative residual after subtracting the known counts. A candidate that passes subtraction must still allocate every free glyph type as one group to a single letter, with all residual counts exhausted. Distinct glyph types may use the same letter. The code searches those assignments by backtracking. | Candidate | Missing known-letter copies | Verdict | |---|---|---| | `ELEVENINCHESALONGTHETHREERADIANS` | B 1, D 1, F 1, I 1, O 2, P 2, R 1, W 1, Y 2 | Infeasible | | `FIVERADIANSANDONEINCHALONGTHERAY` | B 1, O 1, P 2, R 1, W 1, Y 1 | Infeasible | | `FOURRADIANSANDONEINCHALONGTHERAY` | B 1, I 1, P 2, W 1, Y 1 | Infeasible | | `ONERADIANANDSIXINCHESALONGTHERAY` | B 1, F 1, O 1, P 2, R 1, W 1, Y 1 | Infeasible | | `ONERADIANANDTENINCHESALONGTHERAY` | B 1, F 1, I 1, O 1, P 2, R 1, W 1, Y 1 | Infeasible | | `ONERADIANANDTWOINCHESALONGTHERAY` | B 1, F 1, I 1, P 2, R 1, Y 1 | Infeasible | | `THREERADIANSANDELEVENINCHESALONG` | B 1, F 1, I 1, O 2, P 2, R 1, W 1, Y 2 | Infeasible | | `THREERADIANSANDTWELVEINCHESALONG` | B 1, F 1, I 1, O 2, P 2, R 1, Y 2 | Infeasible | | `TWELVEINCHESALONGTHETHREERADIANS` | B 1, D 1, F 1, I 1, O 2, P 2, R 1, Y 2 | Infeasible | | `ZERORADIANSANDONEINCHALONGTHERAY` | B 1, F 1, I 1, P 2, W 1, Y 1 | Infeasible | There are no survivors and hence no free-type assignments to report. All ten fail before backtracking. This excludes exactly the tested vocabulary under the retained unchanged-key mappings and arbitrary transposition, even with the unresolved types free. Other wording and cipher systems were outside this test. An inventory match would be only a necessary condition under arbitrary transposition. ## Runnable Python 3 Save the block as a Python file and run it with Python 3. It embeds the inputs and requires only the standard library. ```python from collections import Counter from hashlib import sha256 from string import ascii_uppercase # Z340 data from the pinned explorer ciphers[2], [3], and [5]. printed_z340 = 'HER>pl^VPk|1LTG2dNp+B(#O%DWY.<*Kf)By:cM+UZGW()L#zHJSpp7^l8*V3pO++RK2_9M+ztjd|5FP+&4k/p8R^FlO-*dCkF>2D(#5+Kq%;2UcXGV.zL|(G2Jfj#O+_NYz+@L9dVUZ5-+|c.3zBK(Op^.fMqG2RcT+L16C<+FlWB|)L++)WCzWcPOSHT/()p|FkdW<7tB_YOB*-Cc>MDHNpkSzZO8A|K;+' aligned_z340 = 'H+M8|CV@KEB+*5k.LdR(UVFFz9<>#Z3P>L(MpOGp+2|G+l%WO&D#2b^D(+4(5J+VW)+kp+fZPYLR/8KjRk.#K_Rq#2|M)+l5||.VqL+Ut*5cUGR)VE5FVZ2cW+|TB45|TC^D4ct-c+zJYM(+y.LW+B.;+B31cOp+8lXz6Ppb&RG+BCOTBzF1KcHD8OZzSkpNA|K;+' aligned_plaintext = 'IHOPEYOUAREHAVINGLOTSOFFANINTRYINGTOCATCHMETHATWASNTMEONTHETVSHOWWHICHBRINGOUPAPOINTABOUTMEIAMNOTAFRAIDOFTHEGASCHAMBERBECAASEITWILLSENDMETOPARADLCEALLTHESOOHERBECAUSEENOWHAVEENOUGHSLAVESTOWORVFORMEWHEREEVERYONEELSEHASNOTHINGWHENTHEYREACHPARADICESOTHEYAREAFRAIDOFDEATHIAMNOTAFRAIDBECAUSEIVNOWTHATMYNEWLIFEISLIFEWILLBEANEASYONEINPARADICEDEATH' # First 18 Fig. 43 indices, as one-based (row, column) pairs in Fig. 6. control_cells = ( (1, 1), (2, 3), (3, 5), (4, 7), (5, 9), (6, 11), (7, 13), (8, 15), (9, 17), (1, 2), (2, 4), (3, 6), (4, 8), (5, 10), (6, 12), (7, 14), (8, 16), (9, 1), ) assert len(printed_z340) == len(aligned_z340) == len(aligned_plaintext) == 340 assert Counter(printed_z340) == Counter(aligned_z340) z340_key = dict(zip(aligned_z340, aligned_plaintext)) assert len(z340_key) == 63 assert all(z340_key[g] == letter for g, letter in zip(aligned_z340, aligned_plaintext)) control_cipher = "".join(printed_z340[(r - 1) * 17 + c - 1] for r, c in control_cells) assert control_cipher == aligned_z340[:18] == 'H+M8|CV@KEB+*5k.Ld' assert "".join(z340_key[g] for g in control_cipher) == "IHOPEYOUAREHAVINGL" ciphertext = "C9J|#Ok[AMf8?ORTGX6FDVj%HCELzPW9" partial = "YNSETAI_DOBP_AOR_RDFNOP_IYRG_IWN" candidates = """ELEVENINCHESALONGTHETHREERADIANS FIVERADIANSANDONEINCHALONGTHERAY FOURRADIANSANDONEINCHALONGTHERAY ONERADIANANDSIXINCHESALONGTHERAY ONERADIANANDTENINCHESALONGTHERAY ONERADIANANDTWOINCHESALONGTHERAY THREERADIANSANDELEVENINCHESALONG THREERADIANSANDTWELVEINCHESALONG TWELVEINCHESALONGTHETHREERADIANS ZERORADIANSANDONEINCHALONGTHERAY""".splitlines() assert len(ciphertext) == len(partial) == 32 assert len(candidates) == len(set(candidates)) == 10 assert all(len(s) == 32 and set(s) <= set(ascii_uppercase) for s in candidates) digest = sha256("\n".join(sorted(candidates)).encode("ascii")).hexdigest() assert digest == "f64b62d0764290fe042b908e34ed11d48f9bdd8274c2426d59d4510442f7b8b3" by_type = {} for glyph, letter in zip(ciphertext, partial): assert by_type.setdefault(glyph, letter) == letter assert all(letter == "_" or z340_key[glyph] == letter for glyph, letter in by_type.items()) known = Counter(letter for letter in partial if letter != "_") multiplicities = Counter(ciphertext) free = sorted( ((glyph, multiplicities[glyph]) for glyph in by_type if by_type[glyph] == "_"), key=lambda item: (-item[1], item[0]), ) assert sum(known.values()) + sum(size for _, size in free) == 32 def allocate(types, residual): """Return one complete assignment, or None when allocation is impossible.""" if not types: return {} if all(count == 0 for count in residual.values()) else None glyph, size = types[0] for letter in sorted(residual): if residual[letter] >= size: remaining = residual.copy() remaining[letter] -= size tail = allocate(types[1:], remaining) if tail is not None: return {glyph: letter, **tail} return None assert allocate([("g", 2)], Counter(A=1, B=1)) is None assert allocate([("g", 2), ("h", 1)], Counter(A=2, B=1)) == {"g": "A", "h": "B"} print("SHA-256", digest) print("Printed order", partial[:17], partial[17:]) print("Known", dict(sorted(known.items())), "Free", dict(free)) if not known: print("Inconclusive: no unchanged-key evidence recovered.") for candidate in candidates: residual = Counter(candidate) residual.subtract(known) # Retain zero and negative entries. deficits = {letter: -n for letter, n in sorted(residual.items()) if n < 0} if deficits: print(candidate, "infeasible (deficit)", deficits) continue assignment = allocate(free, residual) if assignment is None: print(candidate, "infeasible (allocation)") continue full_key = {**by_type, **assignment} assert Counter(full_key[glyph] for glyph in ciphertext) == Counter(candidate) verdict = "feasible" if known else "allocation feasible only (inconclusive)" print(candidate, verdict, assignment) ```