# Two-order union: frozen Z32 phrase-family control **Observed S = 0.** Neither specified reading order admits an exact fit in the retained vocabulary. Under the specified permutation null, **71/20,000 = 0.00355 (0.355%)** of draws admit at least one fit. The requested upper-tail Monte Carlo value is **(1 + 20,000)/20,001 = 1**, since every null S is at least the observed zero. This does not identify a cipher solution. ## Inputs and ordered-slot convention All inputs come from the task brief; all numerical results below are computed here. No external historical or factual source is used or independently verified. Join the case-sensitive rows `C9J|#Ok[AMf8?ORTG` and `X6FDVj%HCELzPW9` without a separator. They have lengths 17 and 15. Number the resulting original slots 1–32. For an order `o`, read-position i receives the glyph at original slot `o[i]`; this is a gather operation, not the inverse permutation. - Order 1: 1 through 32 ascending. - Order 2: `1 18 5 22 9 26 13 30 17 4 21 8 25 12 29 16 3 20 7 24 11 28 15 32 2 19 6 23 10 27 14 31`. The only repeated glyphs are C, 9 and O, each occurring twice. In order 1 their read-position pairs are respectively (1,26), (2,32), (6,14); in order 2 they are (1,6), (24,25), (27,31). A text must have equal letters in each pair. Different glyphs may map to the same letter: no injectivity constraint is added. ## Vocabulary and observed results Expand all 7 × 12 × 10 parameter/template combinations with the brief's singular/plural rules, remove spaces, retain length 32, then deduplicate by text. There are **10 distinct retained texts**. SHA-256 of their ASCII encodings in sorted order, joined with LF and **no final LF**: ```text f64b62d0764290fe042b908e34ed11d48f9bdd8274c2426d59d4510442f7b8b3 ``` The sorted vocabulary is: ```text ELEVENINCHESALONGTHETHREERADIANS FIVERADIANSANDONEINCHALONGTHERAY FOURRADIANSANDONEINCHALONGTHERAY ONERADIANANDSIXINCHESALONGTHERAY ONERADIANANDTENINCHESALONGTHERAY ONERADIANANDTWOINCHESALONGTHERAY THREERADIANSANDELEVENINCHESALONG THREERADIANSANDTWELVEINCHESALONG TWELVEINCHESALONGTHETHREERADIANS ZERORADIANSANDONEINCHALONGTHERAY ``` | Observed quantity | Count | |---|---:| | Fits in order 1 | 0 | | Fits in order 2 | 0 | | Texts fitting both orders (overlap) | 0 | | Distinct texts fitting either order, S | 0 | ## Permutation results and uncertainty Each draw shuffles a fresh copy of the joined original glyphs using one advancing Python `random.Random(32002)` generator. Both orders are applied to that same shuffled array; the whole vocabulary is tested each time, and union membership counts each text once. There are 20,000 draws. | Null S | Draws | Relative frequency | |---|---:|---:| | 0 | 19,929 | 0.99645 | | 1 | 51 | 0.00255 | | 2 | 8 | 0.00040 | | 3 | 12 | 0.00060 | | Any other value | 0 | 0 | For the estimated probability of S > 0, the binomial Monte Carlo standard error is `sqrt(p_hat*(1-p_hat)/20000)` = **0.00042056**, or **0.04206 percentage points**. A 95% Wilson interval is **[0.00281564, 0.00447503]**, equivalently **[0.28156%, 0.44750%]**. This interval describes simulation uncertainty under the chosen null, not uncertainty about the intended message. The requested upper-tail value is exactly 1 for observed S = 0; that boundary result has no simulation uncertainty because S cannot be negative. ## Reproducible pseudocode (executable Python 3) ```python import random, hashlib from collections import Counter original = list('C9J|#Ok[AMf8?ORTG' + 'X6FDVj%HCELzPW9') orders = [list(range(32)), [k-1 for k in ( 1,18,5,22,9,26,13,30,17,4,21,8,25,12,29,16, 3,20,7,24,11,28,15,32,2,19,6,23,10,27,14,31)]] words = 'ZERO ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT NINE TEN ELEVEN TWELVE'.split() templates = [ '{A} {D}', '{D} {A}', '{A} AND {D}', '{D} AND {A}', '{D} ALONG {A}', '{D} ALONG THE {A}', '{A} AND {D} ALONG', '{A} AND {D} ALONG THE RAY', '{A} FROM MAGNETIC NORTH AND {D}', '{D} AT {A} FROM MAGNETIC NORTH'] V = set() for a in range(7): for d in range(1, 13): A = words[a] + (' RADIAN' if a == 1 else ' RADIANS') D = words[d] + (' INCH' if d == 1 else ' INCHES') for template in templates: text = template.format(A=A, D=D).replace(' ', '') if len(text) == 32: V.add(text) print(len(V), hashlib.sha256( '\n'.join(sorted(V)).encode('ascii')).hexdigest()) def fitting(glyphs, order): first, pairs = {}, [] for i, slot in enumerate(order): glyph = glyphs[slot] if glyph in first: pairs.append((first[glyph], i)) else: first[glyph] = i return {t for t in V if all(t[i] == t[j] for i, j in pairs)} def evaluate(glyphs): f1, f2 = [fitting(glyphs, order) for order in orders] return len(f1), len(f2), len(f1 & f2), len(f1 | f2) observed = evaluate(original) rng, histogram = random.Random(32002), Counter() for draw in range(20000): shuffled = original.copy() rng.shuffle(shuffled) histogram[evaluate(shuffled)[3]] += 1 positive = sum(n for s, n in histogram.items() if s > 0) tail = sum(n for s, n in histogram.items() if s >= observed[3]) print(observed, sorted(histogram.items())) print(positive / 20000, (1 + tail) / 20001) ``` A separate implementation checked each candidate with a glyph-to-letter dictionary and regenerated the vocabulary by direct concatenation. It reproduced the vocabulary hash, observed counts and full seeded null histogram. ## Interpretation and limits Uniformly permuting the 32 slots preserves the complete glyph multiset, including the three doubled glyphs and all singletons, while randomizing where repeated-glyph equality constraints fall. Shuffling labeled slots induces the appropriate uniform arrangement distribution even though some glyphs are identical. This controls for accidental compatibility between the vocabulary's repeated letters and randomly positioned cipher repeats. Applying both orders to each same draw retains their dependence and accounts for the union over these two fixed orders and all ten retained texts. It does not model meaningful geography, grammar beyond this family, a cipher mechanism, or the probability that a phrase was intended. The bounds and wording define a test vocabulary. If templates, bounds or orders were selected after inspecting Z32 or trying other families, this calculation does not account for that earlier search. Its small nonzero-fit frequency is conditional on the frozen choices, and here the observed ciphertext has no fit at all. It provides neither a decryption nor evidence that this family solves Z32.