Polynomial-time replacement design builder (Lemma 4.7) #
Executable neutral-singleton scope augmentation (withNeutralScopesList) and deterministic
polynomial-time Lemma 4.7 replacement-design construction (buildReplacementDesignData) from
§4.6 (Lemma 4.7, pp. 33–34) and §§5.3, 5.5 (pp. 37–38) of
OpenAI, The Exponential Time Hypothesis is False. Plain @[fun_prop]
Turing.MultiTapeTM.ComputableInPolyTime certificates cover the tape-encoded routines
(withNeutralScopesList, scopeIncidencesList, normalizeVarSchedules,
normalizeScopeSchedules, incidenceLabelsList, buildReplacementDesignData,
ReplacementDesignData projections, and ReplacementDesignData.lookupReplacementRow, with
encUnary on (n_free, D_cap, Q, A₀, R), r in encUnary for buildReplacementDesignData
and in binary encNat for normalizeVarSchedules, normalizeScopeSchedules and
incidenceLabelsList, and binary/list encodings on scopes, schedules, the lookup indices
(f, v), and ReplacementDesignData), while listScopeFamily, withNeutralScopesIndexEquiv,
finToScopeIncidence, scopeIncidenceEquivFin, varAssignOfList, factorAssignOfList,
BalancedSchedule, placeFinOfBalanced, constructedReplacementDesign, and
ReplacementDesignData.Refines serve as unencoded semantic specification bridges. All
executable routines are total: scopes ignore variable indices ≥ n_free; schedule words
truncate/pad with 0 to length Q modulo max r 1 with missing rows and empty in-range
scopes normalized to List.replicate Q 0; auxiliary tables cap at min D_cap (r ^ (2 * Q))
(copyCount = 0 when r = 0 and Q > 0); and for data produced by the builder,
lookupReplacementRow returns [] when (f, v) is absent.
Main definitions #
Cslib.LinearAlgebra.withNeutralScopesList,Cslib.LinearAlgebra.listScopeFamily,Cslib.LinearAlgebra.withNeutralScopesIndexEquiv,Cslib.LinearAlgebra.scopeIncidencesList,Cslib.LinearAlgebra.scopeIncidenceEquivFin,Cslib.LinearAlgebra.BalancedSchedule.Cslib.LinearAlgebra.ReplacementDesignData,Cslib.LinearAlgebra.encReplacementDesignData,Cslib.LinearAlgebra.buildReplacementDesignData,Cslib.LinearAlgebra.ReplacementDesignData.lookupReplacementRow,Cslib.LinearAlgebra.constructedReplacementDesign,Cslib.LinearAlgebra.ReplacementDesignData.Refines.Cslib.LinearAlgebra.encVarSets: the encoding of lists of variable sets, such as scopes, with binary entries. Schedule words useCslib.LinearAlgebra.encSchedulesfromCopyPlacement.
Main results #
Cslib.LinearAlgebra.listScopeFamily_withNeutralScopesList,Cslib.LinearAlgebra.varIncidence_listScopeFamily_withNeutralScopesList,Cslib.LinearAlgebra.totalIncidence_listScopeFamily_withNeutralScopesList,Cslib.LinearAlgebra.computableInPolyTime_withNeutralScopesList.Cslib.LinearAlgebra.balancedSchedule_iff_exec,Cslib.LinearAlgebra.exists_balancedSchedule_of_scopes,Cslib.LinearAlgebra.computableInPolyTime_buildReplacementDesignData,Cslib.LinearAlgebra.computableInPolyTime_lookupReplacementRow,Cslib.LinearAlgebra.buildReplacementDesignData_spec,Cslib.LinearAlgebra.exists_replacementDesign_of_buildReplacementDesignData,Cslib.LinearAlgebra.exists_replacementDesign_withNeutralScopesList.
References #
- OpenAI, The Exponential Time Hypothesis is False, §4.6 and §§5.3, 5.5.
1. Executable neutral-singleton scope augmentation (withNeutralScopesList) #
Every semantic scope listScopeFamily n_free scopes f has size at most scopes[f].length.
Exact agreement between withNeutralScopesList and Cslib.BitString.withNeutralScope.
Variable incidence increases by 1 at every free variable under withNeutralScopesList.
Total incidence increases by n_free under withNeutralScopesList.
2. Canonical scope incidences and Lemma 4.5 schedule balance #
Map an index in Fin (scopeIncidencesList n_free scopes).length to ScopeIncidence.
Canonical bijection ScopeIncidence (listScopeFamily n_free scopes) ≃ Fin M.
incidenceLabelsList equals List.ofFn of encodeAuxLabel ∘ u ∘ finToScopeIncidence.
Pure executable list characterization of BalancedSchedule, enabling decide verification.
Lemma 4.5 schedule existence on executable scope lists: under Lemma 4.7's size hypotheses,
there exist executable schedule lists (schedVar, schedScope) satisfying BalancedSchedule.
3. Bundled Lemma 4.7 design data and executable constructor #
Bundled executable Lemma 4.7 replacement-design arrays ([OAI26k], Lemma 4.7).
Step-and-group variable partitions
V_0, …, V_{r - 1}fort < Q.Normalized factor group schedules
σ_f ∈ {0, …, r - 1}^Qforf < scopes.length.Canonical ordered list of factor–variable incidences
(f, v).- copyCount : ℕ
Copy count
h = 2 * incidences.length / r ^ (2 * Q). Injective incidence copy placements
(c_e, u_e)fore < incidences.length.Pulled-back
(copyCount * c_B) × n_freeinteger measurement matrixĈ = C̃ ι.Step-and-group restricted integer measurement matrices
C_{t,g} = Ĉ|_{S_{t,g}}.- denom : ℤ
Cleared common denominator
d_den = (R - 1)! * Q!as an integer. Per-incidence
n_free × Rcleared replacement-row coefficient tablesd_den · P⃗_e(T).
Instances For
Underlying nested product representation of ReplacementDesignData for tape encoding.
Canonical equivalence between ReplacementDesignData and ReplacementDesignTuple.
Lists of variable sets with indices in binary, such as factor scopes or the groups of a
partition: the concatenation of the framed sets, each set the concatenation of its framed variable
indices, each encoded by encNat. This is the layout encList (encList encNat) of
encSchedules and Cslib.Complexity.encSparseEquation; the name records the role.
Standard multi-tape Turing machine encoding of ReplacementDesignTuple.
Standard multi-tape Turing machine encoding of ReplacementDesignData.
Look up the n_free × R cleared replacement-row coefficient table for (f, v).
4. Plain polynomial-time certificates (ComputableInPolyTime) #
Compositional plain polynomial-time certificate for withNeutralScopesList.
withNeutralScopesList is computable in polynomial time with n_free in encUnary.
Lemma 4.7 polynomial-time certificate (buildReplacementDesignData):
buildReplacementDesignData is computable in polynomial time from unary parameters
(n_free, D_cap, Q, r, A₀, R) and list-encoded (scopes, schedVar, schedScope).
Compositional plain polynomial-time certificate for lookupReplacementRow.
5. Semantic bridge from buildReplacementDesignData to ReplacementDesign #
Concrete Fin M-indexed placement Fin M → Fin h × AuxLabel Q r from BalancedSchedule.
Concrete ReplacementDesign induced by BalancedSchedule (Lemma 4.7, pp. 33–34):
constructs ReplacementDesign (listScopeFamily n_free scopes) Q r A₀ R τ from balanced schedules
(schedVar, schedScope) and Lemma 4.7's numerical and binomial-tail hypotheses.
Refinement predicate relating data : ReplacementDesignData to
D : ReplacementDesign (listScopeFamily n_free scopes) Q r A₀ R τ. It asserts that the copy count
is D.h and the denominator is commonDenom Q R; that each variable group list is duplicate-free,
has length at most 2 * n_free / r, and contains an index below n_free exactly when it lies in
varGroup D.varAssign t g; that the factor group entries are those of D.factorAssign; that each
incidence's looked-up replacement table is the one at its canonical index, has n_free rows of
length R, and has the coefficients of varReplacementRowScaledInt; that the rows of
data.measurementMatrix have the same ℚ-kernel as varMeasurementMatrix; and that a vector
supported on a group and annihilated by the rows of its group matrix C_{t,g} is annihilated by
the off-group replacement forms at nodePoint t. It bounds neither the number nor the ℓ₁-norms
of the rows of data.measurementMatrix and data.groupMeasurementMatrices (the bounds
ReplacementDesign.total_measurement_rows_le and ReplacementDesign.sum_abs_measurement_row_le
are about D), and does not constrain data.placements.
Main Lemma 4.7 semantic specification (buildReplacementDesignData_spec):
under Lemma 4.7's cap, interval, binomial-tail, and BalancedSchedule hypotheses,
buildReplacementDesignData refines constructedReplacementDesign.
Bundled existential packaging of buildReplacementDesignData_spec.
Neutral-padded Lemma 4.7 specialization (exists_replacementDesign_withNeutralScopesList):
when each free variable belongs to at most b₀ scopes of scopes and (schedVar, schedScope)
satisfies BalancedSchedule on withNeutralScopesList scopes n_free, buildReplacementDesignData
refines a concrete ReplacementDesign on the augmented scope family with occurrence bound
b = b₀ + 1.