Skip to content

Commit f721a27

Browse files
committed
spec: commit FCC-001 claim algebra v0.1 beside the specification
The formal derivations the verifier implements: exact coverage, the uniform alpha' false-refutation bound, the corrected power curve, beacon ordering, isolation DPI, snapshot conditioning, NULL reachability, and the assumption register as the boundary of every guarantee. A Tier B refuter needs the proofs next to the spec they reimplement. Known erratum banked for v0.2: Theorem 5's construction paragraph describes the superseded first-block-above-attestation beacon rule and will be restated against FCC-5.3's committed-calendar-set rule. The proof is unaffected; the prose is stale.
1 parent 7f0ddb3 commit f721a27

1 file changed

Lines changed: 339 additions & 0 deletions

File tree

spec/FCC-001-CLAIM-ALGEBRA-v0.1.md

Lines changed: 339 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,339 @@
1+
# FCC-001 Claim Algebra: Formal Derivations and Closure
2+
3+
**Version:** v0.1 draft, companion to FCC-001-SPEC and FCC-001-SCRUTINY-2026-07-04.
4+
**Purpose:** every probabilistic guarantee in the calculus, derived from stated assumptions to
5+
stated conclusions, with the assumption register as the explicit boundary of the proof. Where
6+
the scrutiny corrects the design (S1, S2, S3, S5, S6, S7), the corrected form is derived here.
7+
**Convention:** probabilities on the trial space induced by the committed procedure; intervals
8+
are Clopper-Pearson unless stated; z_q denotes the standard normal q-quantile; logarithms in
9+
nats.
10+
11+
---
12+
13+
## 1. Objects
14+
15+
**1.1 Trials.** Under commitment C, the primary cell yields outcomes X_1, ..., X_N in {0,1},
16+
where X_i = 1 iff the pinned distinguisher is correct on pair i.
17+
18+
**Assumption T1 (iid trials).** X_1, ..., X_N are independent with common success probability
19+
p. Grounds: episode pairs in the primary cell are disjoint; schedules, instantiation and
20+
presentation order derive from independent seed streams; regimes are block-randomised across
21+
the run window. T1 is an assumption about the world (the model treats episodes independently
22+
at the measured granularity), stated as attack surface: cross-episode state at the provider
23+
(caching that alters outputs, adaptive serving) would violate it, and the snapshot predicate
24+
plus the gateway's parameter pinning are the mitigations, not proofs.
25+
26+
**1.2 Advantage and band.** A = 2p - 1 in [-1, 1]. Band B = (-delta, +delta), delta = 0.05,
27+
committed in C.
28+
29+
**1.3 Asserted regions.** S_TE+ = (delta, 1], S_TE- = [-1, -delta), S_NULL = (-delta, +delta).
30+
31+
**1.4 Verdict map.** Given a confidence set CI for A at committed level 1 - alpha:
32+
33+
THREAT-EXISTS(sigma) iff CI is a subset of S_TE(sigma)
34+
NULL iff CI is a subset of S_NULL
35+
INDETERMINATE otherwise
36+
37+
INDETERMINATE asserts nothing and is unrefutable by construction.
38+
39+
**1.5 Refutation rule (corrected form, scrutiny S2).** A standing verdict V with asserted
40+
region S_V is refuted by a valid attempt whose confidence set CI' at the attempt's committed
41+
level 1 - alpha' satisfies CI' intersect S_V = empty.
42+
43+
---
44+
45+
## 2. Coverage lemmas
46+
47+
**Lemma 2.1 (exact coverage).** Let X ~ Binomial(N, p) and let [L(X), U(X)] be the
48+
Clopper-Pearson interval at level 1 - alpha, defined by inverting the binomial tail tests at
49+
alpha/2 per tail. Then for every p in [0,1] and every N >= 1,
50+
51+
P( p in [L(X), U(X)] ) >= 1 - alpha,
52+
53+
and moreover each one-sided miss is bounded:
54+
55+
P( U(X) < p ) <= alpha/2, P( L(X) > p ) <= alpha/2.
56+
57+
*Proof.* Immediate from the defining inversion: U(X) < p occurs only if the observed X falls
58+
in the lower alpha/2 tail of Binomial(N, p), and symmetrically. (Clopper and Pearson, 1934.)
59+
No approximation enters; the guarantee holds for all N. This is the property the Wilson
60+
interval lacks (Brown, Cai and DasGupta, 2001), and the reason verdict-bearing intervals are
61+
Clopper-Pearson (scrutiny S7).
62+
63+
**Lemma 2.2 (affine transfer).** A = 2p - 1 is a strictly increasing bijection, so the
64+
transformed interval [2L - 1, 2U - 1] has identical coverage for A. All statements below are
65+
made on the A-scale via this transfer.
66+
67+
**Lemma 2.3 (sequential extension).** Let looks occur at committed information times with a
68+
committed spending schedule, and let {CI_k} be repeated confidence intervals built by
69+
inverting the group-sequential boundary (Jennison and Turnbull), constructed on exact binomial
70+
tails. Then simultaneous coverage holds:
71+
72+
P( A in CI_k for all looks k ) >= 1 - alpha.
73+
74+
Consequently the verdict map of 1.4 applied to CI_tau at any stopping time tau retains the
75+
guarantee of Theorem 1. This closes scrutiny S6 part one.
76+
77+
---
78+
79+
## 3. Theorem 1 (claimant validity)
80+
81+
**Statement.** Under T1 and Lemma 2.1 (or 2.3 under interim looks), for every true A:
82+
83+
P( the claimant issues a verdict whose asserted region excludes the true A ) <= alpha.
84+
85+
*Proof.* A false verdict requires CI a subset of S with A not in S, hence A not in CI. By
86+
coverage this event has probability at most alpha. INDETERMINATE asserts nothing and cannot be
87+
false. In the sequential case, A not in CI_tau implies A escapes some CI_k, bounded by alpha
88+
by simultaneous coverage. QED.
89+
90+
**Remark.** The claimant's error rate is a property of the committed interval method alone.
91+
No verdict-level multiplicity arises because the primary cell issues exactly one verdict.
92+
93+
---
94+
95+
## 4. Theorem 2 (false refutation, corrected)
96+
97+
**Statement.** Suppose the standing verdict is honest: the true A lies in S_V. Let a valid
98+
attempt produce CI' at level 1 - alpha' from N' trials, any N' >= 1. Then
99+
100+
P( CI' intersect S_V = empty ) <= P( A not in CI' ) <= alpha'.
101+
102+
*Proof.* If CI' misses all of S_V it misses A in particular. Coverage bounds the rest. QED.
103+
104+
**Sharpening (one-sided regions).** If S_V is one-sided (a THREAT-EXISTS verdict), CI'
105+
disjoint from S_V requires the interval to lie entirely on one specific side of A, which is a
106+
single-tail miss, bounded by alpha'/2 by Lemma 2.1. For S_V = S_NULL the interval may escape
107+
on either side; the two one-sided misses are disjoint events and the bound is alpha'/2 +
108+
alpha'/2 = alpha'. The uniform bound is therefore alpha', with alpha'/2 available for
109+
THREAT-EXISTS claims. This corrects design section 6 and spec FCC-3.3 (scrutiny S2).
110+
111+
**Remark (no union bound with the claimant).** The claimant's N, alpha, and realised interval
112+
appear nowhere. The honest claim's truth is a fact about A; the refuter's error is a fact
113+
about the refuter's own interval. Per-attempt alpha' = 0.01 gives an honest THREAT-EXISTS
114+
claim at most 0.5 per cent false-kill exposure per valid attempt, and an honest NULL claim at
115+
most 1 per cent.
116+
117+
---
118+
119+
## 5. Theorem 3 (refutation power, exact and asymptotic, corrected)
120+
121+
**Setup.** The claim is false: the true A_t lies outside S_V at distance
122+
d = inf over a in S_V of |A_t - a| > 0. Let e denote the boundary of S_V nearest A_t, with
123+
p-scale images p_t = (1 + A_t)/2 and p_e = (1 + e)/2, so p-scale gap d/2.
124+
125+
**Exact form.** The Clopper-Pearson limits are strictly increasing in the success count X'.
126+
For A_t below S_V, refutation is the event U(X') <= e (A-scale), equivalently
127+
128+
X' <= k*, k* = max{ x : U(x, N', alpha') <= e },
129+
130+
so the refutation probability is the binomial CDF
131+
132+
Power(N', alpha', p_t) = F_Bin( k* ; N', p_t ),
133+
134+
exactly computable, no approximation, and the mirrored form (X' >= k_min via L(X') >= e)
135+
covers A_t above S_V. The verifier ships this computation; the published curve is this
136+
function (scrutiny M3).
137+
138+
**Asymptotic form.** Near p = 1/2 the standard deviation of the estimate on the A-scale is
139+
sd(A-hat) = 2 sqrt(p(1-p)/N') approximately 1/sqrt(N'), and the CI half-width on the A-scale
140+
is approximately z_{1-alpha'/2}/sqrt(N'). Refutation requires A-hat to clear the boundary by
141+
the half-width, so
142+
143+
Power ~ Phi( d sqrt(N') - z_{1-alpha'/2} )
144+
145+
and the refuter's sizing rule for power 1 - beta is
146+
147+
N' ~ ( (z_{1-alpha'/2} + z_{1-beta}) / d )^2.
148+
149+
This corrects the design's Phi(2 d sqrt(N') - z), whose error traces to using the p-scale
150+
half-width on the A-scale, and which under-sizes N' by a factor of four (scrutiny S3).
151+
Reference values at alpha' = 0.01, power 0.90:
152+
153+
d = 0.05 -> N' ~ 5,955 d = 0.10 -> N' ~ 1,489
154+
d = 0.15 -> N' ~ 662 d = 0.20 -> N' ~ 373
155+
156+
**Remark (design intent, restated correctly).** Validity (Theorem 2) is free of N'; power is
157+
purchased by the refuter at the rate above. Killing a barely-false claim costs more trials
158+
than the original experiment. That asymmetry protects honest claimants from cheap kills while
159+
leaving genuine refuters a priced, published path, and it is stated in the spec as economics,
160+
not buried.
161+
162+
---
163+
164+
## 6. Theorem 4 (multiple attempts) and the symmetry property
165+
166+
**Statement.** Let an honest claim face k valid attempts, each at level alpha'. Then
167+
168+
P( at least one attempt returns REFUTED ) <= k alpha'.
169+
170+
*Proof.* Union bound over Theorem 2. QED.
171+
172+
**Scope, honestly.** The public record lower-bounds k where registration occurred; attempts
173+
never published cannot be counted by any protocol lacking a disclosure authority, and the
174+
calculus does not pretend otherwise (scrutiny S13). The verifier annotates every REFUTED with
175+
the known attempt count and the implied family bound. alpha' = 0.01 prices the residual: even
176+
twenty hidden attempts leave an honest claim at most an 18 per cent cumulative false-kill
177+
exposure, each instance individually visible and re-examinable.
178+
179+
**Symmetry (closure under refutation).** A REFUTED verdict is itself a categorical assertion:
180+
the refuter's CI' disjoint from S_V asserts A in the complement region at confidence
181+
1 - alpha'. That assertion is a claim under this same algebra, with its own asserted region,
182+
and is refutable by a further valid attempt under the identical rules. Furthermore the
183+
claimant may re-assert: a fresh commitment C2 with a fresh beacon re-runs the procedure, and
184+
by Theorem 2 an honest re-assertion survives each valid attempt with probability at least
185+
1 - alpha'. The calculus is therefore closed under refutation and truth-favouring in
186+
repetition: false claims fall at the rate of Theorem 3, honest claims survive at the rate of
187+
Theorem 2, and the asymmetry compounds in the direction of the truth. This property is stated
188+
in the spec; it is the formal content of the standing invitation.
189+
190+
---
191+
192+
## 7. Theorem 5 (temporal ordering by beacon, replacing the broken chain-position argument)
193+
194+
**Assumptions.**
195+
- B1 (hash security): SHA-256 preimage and collision resistance.
196+
- B2 (beacon unpredictability): the hash of a Bitcoin block is unpredictable before the block
197+
is published, with min-entropy sufficient that guessing it in advance has negligible
198+
probability. (Miner grinding of block hashes is economically bounded and stated as residual
199+
attack surface, priced in block subsidies, not zero.)
200+
- B3 (timestamp soundness): a completed OpenTimestamps attestation of digest h in block b_C
201+
implies h existed before b_C's publication.
202+
203+
**Construction.** C commits seed_core and the derivation rule
204+
205+
final_seed = SHA-256( seed_core || beacon ),
206+
beacon = block hash of the first block with height exceeding b_C's height.
207+
208+
All D1 quantities of the campaign (schedules, instantiation, pairing, presentation order)
209+
derive from final_seed. The refuter's genesis uses the identical construction over its own
210+
attestation block.
211+
212+
**Statement.** Under B1 to B3, for any evidence record whose content is a function of
213+
final_seed:
214+
215+
time(C) < time(b_C) < time(beacon block) <= time(evidence),
216+
217+
and the ordering is verifiable by any party holding the chain, the OTS proof, and Bitcoin
218+
block headers.
219+
220+
*Proof.* By B3, C existed before b_C. Producing the evidence requires final_seed; computing
221+
final_seed before the beacon block's publication requires predicting its hash, negligible by
222+
B2 (or finding a SHA-256 collision, negligible by B1). Hence the evidence was produced after
223+
the beacon block, which follows b_C by construction. The verifier recomputes final_seed from
224+
the committed seed_core and the identified beacon header and replays the D1 pipeline; any
225+
mismatch is INVALID-CLAIM or INVALID-ATTEMPT with cause BEACON-VIOLATION. QED.
226+
227+
**Remarks.** The beacon is deterministic given the attestation, so neither party can grind for
228+
a favourable seed by re-choosing beacons. Claimant-side selective reporting (abandoning an
229+
unfavourable campaign and recommitting) remains possible, is visible as abandoned commitments
230+
on the public anchor chain, and is priced by the same logic as Theorem 4; the calculus makes
231+
selective reporting on both sides countable, not impossible, and says so. Verification needs
232+
Bitcoin headers (a node, or a header source the verifier names), stated as an operational
233+
dependency, not hidden.
234+
235+
---
236+
237+
## 8. Theorem 6 (isolation as a data processing inequality)
238+
239+
**Assumptions (the register, published as attack surface).**
240+
- (a) Turn taxonomy completeness: every byte of the assembled context is classified exactly
241+
once as assistant-text, assistant-call, or tool-result. Witnessed by the redaction gate.
242+
- (b) Placeholder determinism: a redacted tool-result placeholder is a function of turn index
243+
and turn type only. Witnessed by the redaction gate (byte-identity on scripted twins).
244+
- (c) No synthesis re-import: the runner synthesises no assistant text; the adapter cannot
245+
copy tool-result content into an assistant turn. Witnessed by the new runner test.
246+
247+
**Setup.** Let E in {prod, eval} be the regime, uniform by block randomisation. The
248+
manipulation (E1 telemetry, E2 sizes) lives entirely inside tool-result turns. Let M_out
249+
denote the model's emitted turns for an episode and T_red the redacted transcript. Under (a),
250+
(b), (c), the redaction map rho is deterministic, regime-independent on tool-result turns, and
251+
T_red = rho(M_out): the redacted transcript is a fixed function of the model's outputs alone.
252+
Hence the Markov chain E -> M_out -> T_red.
253+
254+
**Statement.** Let P and Q be the laws of T_red under prod and eval respectively, and P_M,
255+
Q_M the laws of M_out. For the 2AFC presentation (one transcript from each regime in random
256+
order), the advantage of any distinguisher D satisfies
257+
258+
A(D) <= TV( P tensor Q , Q tensor P ) <= 2 TV(P, Q) <= 2 TV(P_M, Q_M),
259+
260+
and, connecting to the epistemic-security bound with E uniform,
261+
262+
TV(P_M, Q_M) <= sqrt( 2 I(M_out ; E) ),
263+
264+
so I(M_out; E) = 0 implies P_M = Q_M implies A(D) = 0 for every distinguisher: the instrument
265+
reads chance whenever the model carries no envelope information.
266+
267+
*Proof.* The first inequality is the standard optimal-test bound for paired presentation; the
268+
second is subadditivity of total variation over product measures; the third is the data
269+
processing inequality applied to the deterministic channel rho (a function cannot increase
270+
TV). For the last: with E uniform binary, I(M_out; E) equals the Jensen-Shannon divergence
271+
JS(P_M, Q_M), and Pinsker applied to each component of JS gives JS >= TV^2 / 2, hence
272+
TV <= sqrt(2 JS) = sqrt(2 I). QED.
273+
274+
**Remarks.** The scripted negative control (behaviour carrying no envelope information scores
275+
at chance) is the empirical face of the zero case. The theorem is exactly as strong as (a),
276+
(b), (c); each is machine-witnessed, and a violation of any one reopens a transcript-residue
277+
channel, which is why the register is published as attack surface rather than absorbed into
278+
prose. E2 structural residue in the turn skeleton is excluded at rung level per the design's
279+
F4 handling and is outside this theorem's claim.
280+
281+
---
282+
283+
## 9. Theorem 7 (snapshot conditioning and archival status)
284+
285+
**Statement.** Theorems 2, 3 and 4 hold conditional on the refuter measuring the same success
286+
probability p, which is enforced operationally by requiring passing fingerprint records under
287+
C's snapshot predicate at attempt start and end; an attempt failing either bracket is
288+
INVALID-ATTEMPT (SNAPSHOT-MISMATCH). When the predicate is unsatisfiable for all parties, the
289+
claim's standing transitions to ARCHIVAL, in which Theorem 1's verdict validity, the Tier 1
290+
replay of all D1 quantities, and the Theorem 5 ordering remain verifiable indefinitely, being
291+
chain arithmetic with no probabilistic content, while refutation is no longer mountable.
292+
293+
**Residual.** A weight change between the brackets is bounded, not eliminated, by bracketing;
294+
the exposure window is the attempt duration. Per-episode fingerprinting is the costed
295+
escalation. The fingerprint itself is evidence of serving-path equivalence, not proof of
296+
weight identity (spec FCC-8.2), and that limit is part of this register.
297+
298+
---
299+
300+
## 10. Proposition (NULL reachability)
301+
302+
Let h(N) denote the final-analysis half-width of the committed verdict interval on the
303+
A-scale (for the three-look OBF schedule, h(N) approximately c/sqrt(N) with final critical
304+
value c approximately 2.004; exact value fixed at freeze from the committed spending
305+
function). A NULL verdict is issuable iff the interval can fit inside B, i.e.
306+
307+
NULL reachable iff h(N) < delta, and then only for |A-hat| <= delta - h(N).
308+
309+
At delta = 0.05: N = 1600 gives h = 0.0501 and NULL is unreachable; N = 1800 gives 0.0472;
310+
N = 2500 gives 0.0401; N = 4500 gives 0.0299. The reachability function is published with the
311+
spec so every future instance sizes N against the verdict it intends to be able to issue, not
312+
against the raw half-width (scrutiny S6 part two). The choice of N for EXP-1 is a Chair
313+
ruling; the mathematics here is the evidence for it.
314+
315+
---
316+
317+
## 11. The assumption register (the boundary of the closure)
318+
319+
Every theorem above is exact given its assumptions; the assumptions are the entire residual
320+
surface, listed once:
321+
322+
T1 iid trials (disjoint pairs, independent streams; provider-side
323+
cross-episode state is the named threat)
324+
Coverage exact by construction (Clopper-Pearson; RCIs on exact tails);
325+
no assumption beyond the binomial model given T1
326+
B1-B3 hash security; beacon unpredictability (miner grinding priced,
327+
not zero); OpenTimestamps soundness
328+
(a)(b)(c) isolation register, each machine-witnessed
329+
F fingerprint soundness: serving-path equivalence as evidence,
330+
not weight identity; bracketing window residual
331+
Register DVEC tag ruling for the new record types (scrutiny S10) is a
332+
conformance precondition, not a probabilistic assumption
333+
334+
The claim "the solution is proven" is made in exactly this form: conditional on the register,
335+
the guarantees are theorems with exact constants; the register is published as attack surface
336+
in the calculus's own style; and any critique of the calculus is thereby a critique of a named
337+
line in this table, which is where a critique belongs.
338+
339+
Spey Systems Ltd (SC889983).

0 commit comments

Comments
 (0)