interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / calibration / docs / UNCERTAINTY_PROTOCOL.md

111 lines · 6273 bytes Raw Blame History Rendered
1# Uncertainty protocol (Turing-profile-v1.0, EXP-001)
2
3Everything here is integer arithmetic with a specified random number generator, so a second implementation
4written from this page reproduces every interval exactly (profile `independent_verification_requirements`).
5
6## 1. Unit of resampling: the crumb
7
8Every model's context resets at a crumb start (MODEL_DESCRIPTION_ENCODING.md section 3), so the ideal code length of a
9file is exactly the sum of the ideal code lengths of its crumbs. The scorer checks this: sum over crumbs of
10L(D_c|M) must equal L(D|M) of the whole file, in micro-bits (ub, 1 bit = 1,000,000 ub). A mismatch is found after scoring started, so it is a terminal S4 FAIL
11(refusal code CRUMB_SUM, FAILURE_REPORTING.md section 2), never a void.
12Events inside a crumb are never resampled separately. A crumb with zero events is not in the pool.
13
14## 2. Statistic
15
16For group g (g = 1 primary, g = 2 replication), candidate M, baseline B2:
17
18```
19d_c = L(D_c|B2) - L(D_c|M) (int64 ub, per crumb, ideal code lengths)
20T(M) = sum_c d_c - (L(M) - L(B2)) * 1000000 (int64 ub)
21```
22
23L(M) and L(B2) are the fixed model code lengths in bits (candidate_manifest.json). They are not resampled.
24Positive T means M compresses the group's sealed data better than B2 after paying for its own description.
25
26## 3. Pool order
27
28The pool of group g is the list of all nonempty crumbs of the group's 3 sealed control files, ordered first by the
29file index j = 0, 1, 2 of the dataset manifest (the seed-commitment order, which is the seed derivation index;
30not numeric seed order; DATA_FORMAT.md section 3), then by crumb ordinal inside the file. The pool
31has C crumbs. The index i of a crumb in this list is what the resampler draws.
32
33## 4. Random numbers
34
35splitmix64 with state s (uint64, wrapping arithmetic):
36
37```
38s = s + 0x9E3779B97F4A7C15
39z = s
40z = (z ^ (z >> 30)) * 0xBF58476D1CE4E5B9
41z = (z ^ (z >> 27)) * 0x94D049BB133111EB
42return z ^ (z >> 31)
43```
44
45Initial state for group g: s = 0x4558503030315543 + g (profile `bootstrap_seed_base`).
46
47Index draw in [0, C), rejection method (no modulo bias):
48
49```
50lim = 2^64 - 1 - (2^64 mod C) computed as UINT64_MAX - ((UINT64_MAX % C) + 1) % C
51repeat r = splitmix64() until r <= lim
52index = r mod C
53```
54
55## 5. Resampling
56
57For b = 0 .. B-1 with B = 10000 (profile `bootstrap_resamples`): draw C indices in order, and
58T_b(M) = sum of d_i over the drawn indices - (L(M) - L(B2)) * 1000000.
59
60**Common random numbers:** one index sequence per group (B x C draws, consumed in order b = 0, 1, ..., each b
61drawing C indices) is generated once and reused for every candidate. Differences between candidates in one group
62are therefore paired.
63
64## 6. Interval
65
66Sort the B values T_0..T_{B-1} ascending as int64. With lo = floor(B x 25 / 1000) = 250 and hi = B - 1 - lo = 9749
67(0-based), the 95% percentile interval is [T_(250), T_(9749)]. The point estimate is T on the unresampled pool.
68Reported bits values are ub / 1,000,000, printed with 6 decimals; the decision always uses the int64 ub values.
69How the interval decides S6, S7 and S9 (PASS, FAIL or INCONCLUSIVE) is fixed in FAILURE_REPORTING.md section 2 and
70prereg section 5a. Also reported, not used in any decision: the number of the B replicates with T_b > 0 for T_ideal
71against B2 (uncertainty.json `bootstrap_replicates_T_ideal_vs_B2_gt0`, out of 10000), the protocol's "probability
72that delta T > 0 under the bootstrap distribution".
73
74## 7. Coded intervals
75
76For each reference coder (lane B, CODER_SPEC.md) the coded code length of a group under M is the exact size of the
77coded output in bits, all headers counted: coded_bits(M) = 8 x the sum of the byte sizes of the group's three
78whole-file coded files (three 56-byte headers). Per-crumb coded files are not used here. The coder overhead of M is
79
80```
81o(M) = coded_bits(M) * 1000000 - sum_c L(D_c|M) (ub; whole group, deterministic)
82```
83
84The coded statistic is T_coded(M) = T(M) - (o(M) - o(B2)), and its interval is the ideal interval shifted by the
85same amount: [T_(250) - (o(M) - o(B2)), T_(9749) - (o(M) - o(B2))]. Coded streams are not resampled, because the
86overhead is a whole-stream quantity that does not split into crumbs. The coder envelope (profile
87`coder_envelope`, CODER_SPEC.md section 9) is two-sided and applies per coder to every file and every crumb:
88|overhead_ub - 448,000,000| <= 64,000,000 + 1,000 x N. A unit outside it fails criterion S4.
89
90## 8. Assumptions
91
92- **A1 (fixed models):** every candidate was frozen before any sealed seed existed; L(M) is a constant, not a
93 random variable. Checked by freeze commit ancestry and the overlap audit.
94- **A2 (crumb independence):** crumbs are exchangeable within a group, across and within seeds. This ignores
95 correlation between crumbs of the same seed (same world). It is the main reason the interval may be too narrow.
96- **A3 (spread check):** on dev seeds 1-7 the single-seed crumb bootstrap standard deviation of the per-event gain
97 of M_candidate over B2 was 0.00155 bits/event, against a leave-one-seed-out standard deviation of
98 0.00316 bits/event (ratio 0.49). A2 is therefore optimistic by about x2.04 in spread. The power simulation
99 (calibration/scripts/power_simulation.c) repeats the design with the spread inflated x2.04 and still reaches
100 power 1.000 at n = 3 seeds per group for the declared minimum effect. The report states the inflated interval
101 next to the protocol interval as a sensitivity result; the verdict uses the protocol interval. The inflated
102 interval is computed per side, in integer ub, for T_ideal against B2 of every candidate in each group
103 (uncertainty.json key `T_ideal_vs_B2_inflated_x2.04`, written as [point, lo2, hi2]): with d_lo = point - lo and
104 d_hi = hi - point, lo2 = point - (204 x d_lo + 50) / 100 and hi2 = point + (204 x d_hi + 50) / 100, where / is
105 int64 division truncating toward zero. For d >= 0 this is 2.04 x d rounded half up; the two sides are inflated
106 separately, so an asymmetric percentile interval stays asymmetric.
107
108## 9. What is not resampled
109
110Model code lengths, coder overheads, the choice of seeds, the sealed generation itself. The replication group
111(g = 2) is the check on between-world variation that the bootstrap does not capture.