Polynomial-time variable copy placement and replacement-row pullback #
Given a bounded-occurrence incidence family with auxiliary block-label indices u_e < D and
variable indices v_e < n, Section 4.5 (p. 32) and Lemma 4.7 (pp. 33–34) of
OpenAI, The Exponential Time Hypothesis is False assign each incidence a copy
index c_e < h so that all pairs (c_e, u_e) are distinct, partition the variables into schedule
groups S_{t,g} at step t, and pull back the {0, 1, -1} block measurement rows and
cleared-denominator block replacement rows along ι : K^n → K^{h × D}. Parameterized over any
blockMeas : List (List ℤ) and blockRepl : List (List (List ℤ)), this module proves all
combinatorial, linear-algebraic, and ℓ₁-norm invariants and bridges to
Complexity.Foundations.LinearAlgebra.VariableCopyPlacement. Generic copyEmbedExec over
arbitrary K and x : ℕ → K serves as an unencoded semantic helper for the linear-map pullback
and refinement bridges (with no tape encoding or complexity certificate), while plain
Turing.MultiTapeTM.ComputableInPolyTime certificates cover the seven concrete integer/list
routines (fiberRanks, flatPlacement, varGroupList, pullbackMeasurementRow,
pullbackMeasurementMatrix, restrictGroupColumns, and pullbackReplacementRow).
Main definitions #
Cslib.LinearAlgebra.CopyPlacement.fiberRanks,Cslib.LinearAlgebra.CopyPlacement.flatPlacement,Cslib.LinearAlgebra.CopyPlacement.varGroupList,Cslib.LinearAlgebra.CopyPlacement.copyEmbedExec,Cslib.LinearAlgebra.CopyPlacement.pullbackMeasurementRow,Cslib.LinearAlgebra.CopyPlacement.pullbackMeasurementMatrix,Cslib.LinearAlgebra.CopyPlacement.restrictGroupColumns,Cslib.LinearAlgebra.CopyPlacement.pullbackReplacementRow.
Main results #
Cslib.LinearAlgebra.CopyPlacement.nodup_zip_fiberRanks,Cslib.LinearAlgebra.CopyPlacement.lt_of_mem_fiberRanks,Cslib.LinearAlgebra.CopyPlacement.biUnion_toFinset_varGroupList,Cslib.LinearAlgebra.CopyPlacement.isTableShape_pullbackReplacementRow,Cslib.LinearAlgebra.CopyPlacement.zipWith_mul_sum_pullbackMeasurementRow,Cslib.LinearAlgebra.CopyPlacement.sum_evalCoeffList_pullbackReplacementRow,Cslib.LinearAlgebra.CopyPlacement.getD_zero_pullbackReplacementRow,Cslib.LinearAlgebra.CopyPlacement.abs_zipWith_mul_sum_pullbackMeasurementRow_le,Cslib.LinearAlgebra.CopyPlacement.jetL1Norm_pullbackReplacementRow_le,Cslib.LinearAlgebra.CopyPlacement.sum_evalCoeffList_pullbackReplacementRow_eq_zero_of_kernel,Cslib.LinearAlgebra.CopyPlacement.getElem_fiberRanks_eq_fiberRank,Cslib.LinearAlgebra.CopyPlacement.getD_pullbackMeasurementRow_ofFn_eq_varMeasurementMatrix.
References #
Deterministic copy-index assignment (fiberRanks and flatPlacement) #
Assign each incidence e < labels.length the number of earlier incidences < e carrying the
same auxiliary block label labels[e], deterministically realizing e ↦ (c_e, u_e) from
Section 4.5 (p. 32) and Lemma 4.7 of [OAI26c].
Instances For
Flat slot index c_e * D + u_e pairing each copy index from fiberRanks labels with its
auxiliary block-label index < D.
Instances For
fiberRanks preserves the number of incidences.
Entry e of fiberRanks labels counts occurrences of labels[e] in labels.take e.
Defaulted lookup of fiberRanks labels at a valid incidence index e.
Entry e of fiberRanks labels agrees with Cslib.LinearAlgebra.fiberRank on
Fin labels.length.
Unconditional injectivity of (fiberRanks labels).zip labels. Distinct incidence
positions always receive distinct (copyIdx, blockLabel) pairs.
Copy-multiplicity bound. If every block label occurs at most h times in labels, then
every copy index produced by fiberRanks labels is strictly less than h.
flatPlacement preserves the number of incidences.
When all labels in labels lie below D, flatPlacement D labels is duplicate-free.
When all labels lie below D and each occurs at most h times, flat slots lie below
h * D.
Executable variable-group partition (varGroupList) #
varGroupList is strictly increasing.
varGroupList contains no duplicate variable indices.
Distinct groups g₁ ≠ g₂ at step t yield disjoint variable sets.
When every variable's schedule value at step t lies in 0, …, r - 1, the groups
varGroupList varSchedules t g for g < r partition Finset.range varSchedules.length.
varGroupList agrees with Cslib.LinearAlgebra.varGroup whenever varSchedules encodes
a : Fin n → Fin Q → Fin r.
Executable copy-embedding and pullback of measurement and replacement rows #
Executable copy-embedding coordinate (ι x)_{copyIdx, y} from Section 4.5 (p. 32) of
[OAI26c], pairing placements with incVars via List.zip (truncating to
min placements.length incVars.length) and summing x v over records ((c_e, u_e), v_e) with
c_e = copyIdx and u_e = y.
Instances For
Pull back a single auxiliary measurement row auxRow : List ℤ in copy copyIdx to a length-n
integer row over the original variables ((π_{copyIdx} ι)^⊤ auxRow), pairing placements with
incVars via List.zip and defaulting out-of-range block indices u_e ≥ auxRow.length to 0.
Instances For
Pull back a block measurement matrix blockMeas : List (List ℤ) across h copies to form the
(h * blockMeas.length) × n integer matrix Ĉ = C̃ ι of equation (4.15) in [OAI26c].
Instances For
Restrict each row of an integer matrix mat to the columns indexed by groupVars, forming the
submatrix C_{t,g} = Ĉ|_{S_{t,g}} of equation (4.15) in [OAI26c]; out-of-range column
indices v ≥ row.length default to 0.
Instances For
Pull back the cleared-denominator replacement row of incidence e ((c_e, u_e) in
placements) from a D × D × R integer polynomial table blockRepl to an n × R table via
Cslib.tabulateTable computing d_den • P⃗_{f,v}(T) = d_den • P⃗_{u_{f,v}}(T) π_{c(f,v)} ι
(equation (4.14), p. 32 and Lemmas 4.6–4.7, pp. 33–34 of [OAI26c]). Pairs placements
with incVars via List.zip, defaulting missing e, u_e, or (y, k) lookups to (0, 0),
[], and 0 (Cslib.rowEntry).
Instances For
Dimensions, IsTableShape certificates, slices, and sum-over-zip helpers #
Every row of pullbackMeasurementMatrix has length n.
pullbackMeasurementMatrix has rectangular table shape (h * blockMeas.length) × n.
restrictGroupColumns preserves the number of rows.
Every row of restrictGroupColumns groupVars mat has length groupVars.length.
restrictGroupColumns groupVars mat has rectangular table shape
mat.length × groupVars.length.
Every polynomial entry in pullbackReplacementRow has length R.
pullbackReplacementRow has rectangular table shape n × R.
Extracting degree-k coefficients (k < R) across pullbackReplacementRow coincides with
pullbackMeasurementRow applied to the degree-k coefficient slice of blockRepl[u_e].
When placements.Nodup, the copy-embedding at an occupied slot placements[e] equals
x (incVars[e]), matching the piecewise definition on p. 32 of [OAI26c].
At any unoccupied slot (copyIdx, y) ∉ placements, copyEmbedExec vanishes.
Exact linear-map pullback semantics #
Linear-map pullback semantics over any commutative ring. When all incidence variables lie
below n (∀ v ∈ incVars, v < n) and all placed block labels lie below D
(∀ p ∈ placements, p.2 < D), evaluating pullbackMeasurementRow against x : ℕ → K on
0, …, n - 1 equals evaluating auxRow against copyEmbedExec placements incVars x copyIdx on
0, …, D - 1.
Integer dot-product pullback semantics. When ∀ v ∈ incVars, v < n and
∀ p ∈ placements, p.2 < D, for any x : ℕ → ℤ, the dot product of pullbackMeasurementRow with
(List.range n).map x equals the dot product of auxRow with
(List.range D).map (copyEmbedExec placements incVars x copyIdx).
Replacement-row polynomial pullback semantics. When ∀ v ∈ incVars, v < n,
∀ p ∈ placements, p.2 < D, and every polynomial coefficient list in row u_e of blockRepl has
length ≤ R, evaluating pullbackReplacementRow at t via Polynomial.evalCoeffList against
x : ℕ → K equals evaluating row u_e of blockRepl at t against
copyEmbedExec placements incVars x c_e.
Exact T = 0 variable-restoration theorem #
Constant-term (T = 0) variable restoration. When 0 < R, placements.Nodup,
e < min placements.length incVars.length, and row u_e of blockRepl has constant coefficient
(Cslib.rowEntry _ p.2 0) equal to d_den • δ_{u_e, p.2} at every placed label p ∈ placements,
the constant coefficient Cslib.rowEntry (pullbackReplacementRow ...) v 0 at variable v < n
equals d_den • δ_{v, incVars[e]}.
When 0 < R, placements.Nodup, e < min placements.length incVars.length,
∀ v ∈ incVars, v < n, and hzero holds on placements, evaluating pullbackReplacementRow at
T = 0 restores (d_den : K) * x (incVars.getD e 0).
Row ℓ₁-norm preservation and Boolean evaluation bounds #
Row ℓ₁-norm preservation (§4.5, eq. (4.15) and Lemma 4.6). When placements.Nodup
and every placed block label lies below D, pulling back auxRow does not increase its ℓ₁-norm:
∑_{v < n} |row[v]| ≤ ∑_{y < D} |auxRow[y]|.
Executable Int.natAbs-sum form of sum_abs_pullbackMeasurementRow_le when placements.Nodup
and ∀ p ∈ placements, p.2 < auxRow.length.
When placements.Nodup, ∀ p ∈ placements, p.2 < D, and every entry of auxRow lies in
[-1, 1] (in particular {0, 1, -1}), the ℓ₁-norm of pullbackMeasurementRow is at most
D.
Boolean evaluation bound in [-D, D] (equation (4.15) of [OAI26c]). When
placements.Nodup, ∀ p ∈ placements, p.2 < D, ∀ z ∈ auxRow, |z| ≤ 1, and ∀ v < n, |x v| ≤ 1
(in particular any Boolean vector x ∈ {0, 1}^n), the inner product of pullbackMeasurementRow
with x lies in [-D, D].
Column restriction to a duplicate-free subset groupVars does not increase row ℓ₁-norm.
Total polynomial ℓ₁ preservation for pullbackReplacementRow (Lemma 4.6 of
[OAI26c]). When placements.Nodup and ∀ p ∈ placements, p.2 < D, the sum across all
variables v < n and degrees k < R of |Cslib.rowEntry (pullbackReplacementRow ...) v k| is at
most the corresponding sum across y < D of row u_e in blockRepl.
Cslib.jetL1Norm preservation for pullbackReplacementRow. When placements.Nodup, the
executable ℓ₁ table norm Cslib.jetL1Norm of pullbackReplacementRow is at most that of row
u_e in blockRepl.
Group-separation kernel transfer #
When groupVars.Nodup, ∀ v ∈ groupVars, v < row.length, and x vanishes below row.length
outside groupVars, evaluating the restricted row against x on groupVars agrees with
evaluating row against x on 0, …, row.length - 1.
Kernel transfer from restrictGroupColumns to blockMeas (C^B (π_c ι ξ̃) = 0, p. 32 of
[OAI26c]). When groupVars.Nodup, ∀ v ∈ groupVars, v < n, ∀ v ∈ incVars, v < n,
∀ p ∈ placements, p.2 < D, x vanishes below n outside groupVars, and its restriction lies
in the kernel of restrictGroupColumns groupVars (pullbackMeasurementMatrix ...), every
copyIdx < h and auxRow ∈ blockMeas annihilates copyEmbedExec placements incVars x copyIdx.
Support separation under copy embedding. When ∀ v ∈ incVars, v < varSchedules.length, x
vanishes below varSchedules.length outside varGroupList varSchedules t g, and every incidence
e < min placements.length incVars.length placed at (copyIdx, y) has step-t schedule value
labelGroup ≠ g, copyEmbedExec placements incVars x copyIdx y = 0.
End-to-end replacement-row kernel-orthogonality transfer (Section 4.5, p. 32 and Lemma 4.7,
p. 34 of [OAI26c]). Under groupVars.Nodup, ∀ v ∈ groupVars, v < n,
∀ v ∈ incVars, v < n, ∀ p ∈ placements, p.2 < D, (placements.getD e (0, 0)).1 < h, and row
u_e polynomial lengths ≤ R, if x : ℕ → K is supported on groupVars, lies in the restricted
kernel of pullbackMeasurementMatrix, has copyEmbedExec ... c_e vanishing on badY below D,
and row u_e annihilates at t every blockMeas-kernel vector avoiding badY, then evaluating
pullbackReplacementRow at t against x yields 0.
Specification bridges to Foundations.LinearAlgebra.VariableCopyPlacement #
copyEmbedExec agrees with Cslib.LinearAlgebra.copyProj ∘ Cslib.LinearAlgebra.copyEmbed
under any injective integer encoding code of AuxLabel Q r.
Entry v of pullbackMeasurementRow agrees with
Cslib.LinearAlgebra.varMeasurementMatrix Q r A₀ R ℤ place varOf (c, β) v whenever auxRow
encodes row β of Cslib.LinearAlgebra.measurementMatrix along code.
When Cslib.rowEntry (blockRepl.getD (code (place e).2) []) (code y) k agrees with the
degree-k coefficient of Cslib.LinearAlgebra.auxReplacementRowScaledInt for all y and k < R,
entry v of pullbackReplacementRow equals Polynomial.coeffsBelow _ R of
Cslib.LinearAlgebra.varReplacementRowScaledInt.
When 0 < R and Cslib.rowEntry (blockRepl.getD (code (place e).2) []) (code y) k agrees with
the degree-k coefficient of Cslib.LinearAlgebra.auxReplacementRowScaledInt for all y and
k < R, Polynomial.ofCoeffList of entry v of pullbackReplacementRow equals
Cslib.LinearAlgebra.varReplacementRowScaledInt Q r A₀ R place varOf e v.
Plain polynomial-time certificates (ComputableInPolyTime) #
Compositional plain polynomial-time certificate for fiberRanks.
fiberRanks is computable in polynomial time on framed lists of binary naturals.
Compositional plain polynomial-time certificate for flatPlacement.
flatPlacement is computable in polynomial time from (D, labels).
Compositional plain polynomial-time certificate for varGroupList.
varGroupList is computable in polynomial time on (varSchedules, (t, g)).
Compositional plain polynomial-time certificate for pullbackMeasurementRow (n in unary).
pullbackMeasurementRow is computable in polynomial time with n in encUnary.
Compositional plain polynomial-time certificate for pullbackMeasurementMatrix ((n, h) in
unary).
pullbackMeasurementMatrix is computable in polynomial time with (n, h) in encUnary.
Compositional plain polynomial-time certificate for restrictGroupColumns.
restrictGroupColumns is computable in polynomial time.
Compositional plain polynomial-time certificate for pullbackReplacementRow ((n, R) in
unary).
pullbackReplacementRow is computable in polynomial time with (n, R) in encUnary.