Documentation

CslibFrontier.Computability.LogSpaceDerandomization.PairwiseIndependentHash.HierarchyChannels

Affine channels for every stage of the hierarchy #

The stage bound Matrix.sub_hierarchyReward_le of the correction-and-copy hierarchy needs retention channels at every rate qโปยน ^ l, q = 2 ^ H, with constants that do not depend on the stage. This file supplies them with the affine channels over prime fields (Cslib.Probability.retentionChannels_affineRetains), following the OpenAI preprint (2026-09-23), Sections 2โ€“3 [OAI26e]: stage l hashes numerical identifiers into a prime field ๐”ฝ_(P_l) with P_l โ‰ฅ 2 ^ l larger than every identifier, and retains at side L_l = โŒˆP_l 2^(-l)โŒ‰, so at rate (2^(-l)) ^ H = qโปยน ^ l. The constants are those of the affine channels, c_ฯ€ = 1, C_ฯ€ = C_pair = 2 ^ H and C_var = 4, at every stage (Cslib.Probability.retentionChannels_stageChannel).

With these channels the stage bound holds without any channel hypothesis (Matrix.sub_hierarchyReward_le_affine). For radix identifiers, stage l is Fin (n (m + 1) ^ l), where the copy y of the parent x is the number y + (m + 1) x (Matrix.radixCopyEquiv) [OpenAI2026LogSpace, Section 4.5: appending a radix-Dโ‚€ digit]. This gives a fully concrete instance of the hierarchy and its bound (Matrix.sub_hierarchyReward_le_radix). This instantiates the reduced algebraic-stage bound; the preprint's full threshold ladder and later-estimation root/complement regularity for Q and the cutoffs remain separate requirements. The modulus is the least prime at least max (2 ^ l) (M l), obtained by computable natural-number search. Bertrand's postulate gives P_l โ‰ค 2 * max (2 ^ l) (M l), hence explicit logarithm and binary-length bounds. The side is computed by natural ceiling division and proved equal to the real-ceiling formula above. These arithmetic definitions and value bounds do not certify a machine-space implementation.

Main definitions #

Main results #

References #

The least prime modulus of stage l: at least 2 ^ l and the identifier bound M l. The definition is computable natural-number search; no machine-space bound is asserted.

theorem Cslib.Probability.le_stageModulus (M : โ„• โ†’ โ„•) (l : โ„•) :
max (2 ^ l) (M l) โ‰ค stageModulus M l

The modulus meets both the stage-rate and identifier bounds.

theorem Cslib.Probability.stageModulus_le_of_prime (M : โ„• โ†’ โ„•) (l : โ„•) {p : โ„•} (hp : Nat.Prime p) (hbound : max (2 ^ l) (M l) โ‰ค p) :

No larger prime is selected when a smaller prime already meets both bounds.

Bertrand's postulate bounds the least admissible prime by twice the lower bound.

The base-two logarithm costs at most one above the larger input logarithm.

The binary length is at most one more than the larger input length.

The stage modulus is prime, so its finite-field and seed instances are available to importers.

@[reducible, inline]

The retention-box side, computed by natural ceiling division P_l โŒˆ/โŒ‰ 2^l.

Natural ceiling division gives exactly the original real-ceiling retention-box side.

@[reducible, inline]

The seeds of the affine channel of stage l: affine maps ๐”ฝ_(P_l) โ†’ ๐”ฝ_(P_l) ^ H.

@[reducible, inline]
abbrev Cslib.Probability.stageChannel (H : โ„•) (M : โ„• โ†’ โ„•) {V : โ„• โ†’ Type u_1} (ident : (l : โ„•) โ†’ V l โ†’ โ„•) (l : โ„•) (s : stageSeed H M l) (v : V l) :

The affine channel of stage l: the seed s retains a vertex v when it retains its identifier ident l v, read in ๐”ฝ_(P_l).

theorem Cslib.Probability.retentionChannels_stageChannel {H : โ„•} {M : โ„• โ†’ โ„•} {V : โ„• โ†’ Type u_1} {ident : (l : โ„•) โ†’ V l โ†’ โ„•} (hident : โˆ€ (l : โ„•), Function.Injective (ident l)) (hM : โˆ€ (l : โ„•) (v : V l), ident l v < M l) (l : โ„•) :
RetentionChannels (stageChannel H M ident l) (stageChannel H M ident l) ((2 ^ H)โปยน ^ l) ((โ†‘(stageSide M l) / โ†‘(stageModulus M l)) ^ H) 1 (2 ^ H) (2 ^ H) 4

The stage channels satisfy the interface with uniform constants. If the identifiers of stage l are injective and below M l, the affine channel of stage l satisfies RetentionChannels at rate (2 ^ H)โปยน ^ l with c_ฯ€ = 1, C_ฯ€ = C_pair = 2 ^ H and C_var = 4.

theorem Matrix.sub_hierarchyReward_le_affine {c : โ„•} (P : HierarchyParams (2 ^ (c + 1)) 1 (2 ^ (c + 1)) (2 ^ (c + 1)) 4) {V : โ„• โ†’ Type u_1} [(l : โ„•) โ†’ Fintype (V l)] [(l : โ„•) โ†’ LinearOrder (V l)] {e : (l : โ„•) โ†’ V (l + 1) โ‰ƒ Lex (V l ร— Fin (P.m + 1))} (he : โˆ€ (l : โ„•) (a b : V (l + 1)), (e l) a < (e l) b โ†’ a < b) {ident : (l : โ„•) โ†’ V l โ†’ โ„•} (hident : โˆ€ (l : โ„•), Function.Injective (ident l)) {M : โ„• โ†’ โ„•} (hM : โˆ€ (l : โ„•) (v : V l), ident l v < M l) {S : Matrix (V 0) (V 0) โ„} (hS : S.IsStrictUpperTriangular) (hS0 : โˆ€ (x y : V 0), 0 โ‰ค S x y) (hS1 : S.mulVec 1 โ‰ค 1) {p eโ‚€ : V 0 โ†’ โ„} (hp : (1 - S).mulVec p = eโ‚€) (hp0 : 0 โ‰ค p) (hp1 : p โ‰ค 1) (x : V 0) (l : โ„•) :

The stage bound with affine channels [OpenAI2026LogSpace, Proposition 4.7]. Run the hierarchy with the affine stage channels on identifiers ident l that are injective and below M l, and with parameters for q = 2 ^ (c + 1) and the affine constants. Then for every strictly upper triangular, nonnegative, substochastic S and (1 - S) p = eโ‚€ with 0 โ‰ค p โ‰ค 1, 0 โ‰ค p x - W_l (xฬ„_l) โ‰ค |V 0| (2 ^ c)โปยน ^ l, with no remaining channel hypothesis.

theorem Matrix.sub_hierarchyReward_le_radix {c n : โ„•} (P : HierarchyParams (2 ^ (c + 1)) 1 (2 ^ (c + 1)) (2 ^ (c + 1)) 4) {S : Matrix (Fin (n * (P.m + 1) ^ 0)) (Fin (n * (P.m + 1) ^ 0)) โ„} (hS : S.IsStrictUpperTriangular) (hS0 : โˆ€ (x y : Fin (n * (P.m + 1) ^ 0)), 0 โ‰ค S x y) (hS1 : S.mulVec 1 โ‰ค 1) {p eโ‚€ : Fin (n * (P.m + 1) ^ 0) โ†’ โ„} (hp : (1 - S).mulVec p = eโ‚€) (hp0 : 0 โ‰ค p) (hp1 : p โ‰ค 1) (x : Fin (n * (P.m + 1) ^ 0)) (l : โ„•) :
let X := Cslib.Probability.stageChannel (c + 1) (fun (l : โ„•) => n * (P.m + 1) ^ l) fun (x : โ„•) (v : Fin (n * (P.m + 1) ^ x)) => โ†‘v; 0 โ‰ค p x - (rewardTransport (hierarchyProj P (radixCopyEquiv n P.m) X X S) (hierarchyCorrection P (radixCopyEquiv n P.m) X X S) l).mulVec eโ‚€ (primaryCopy P (radixCopyEquiv n P.m) x l) โˆง p x - (rewardTransport (hierarchyProj P (radixCopyEquiv n P.m) X X S) (hierarchyCorrection P (radixCopyEquiv n P.m) X X S) l).mulVec eโ‚€ (primaryCopy P (radixCopyEquiv n P.m) x l) โ‰ค โ†‘n * (2 ^ c)โปยน ^ l

The stage bound on radix identifiers: a fully concrete hierarchy. Stage l is Fin (n (m + 1) ^ l) with radix identifiers, the channels are the affine stage channels on the identifiers themselves, and the bound 0 โ‰ค p x - W_l (xฬ„_l) โ‰ค n (2 ^ c)โปยน ^ l holds for every strictly upper triangular, nonnegative, substochastic S on Fin (n (m + 1) ^ 0).