Efficient computation: O(ND^5) per fixed-support marginal entry
OpenQAlgorithms.Papers.Independent.Intakethird100.P57.fixed_support_contractionFix a support bound . There are a constant and scalar programs, chosen before all numerical tensor, graph, rotation and operator data, with the following property. For all , every subset with , all admissible RAGE data with nonzero raw MPS, and every operator on , the program computes all intermediate transfer products, the cross-edge kernel, the positive normalization, every normalized marginal entry, and exactly, using
Work counts executed scalar reads, arithmetic, conjugation, and the specified phase evaluations; division by zero fails explicitly. No product-evaluator oracle is allowed. The full output still contains marginal entries. This is ideal scalar complexity, with the sum-of-Kronecker structure retained; it makes no finite-precision or polynomial-in- claim. It supplies local and arbitrarily separated two-site expectations.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P57
noncomputable section
open scoped ComplexConjugate Matrix
namespace QAlgorithms.Papers.Independent.Intakethird100.P57
attribute [local instance] Classical.propDecidable
/-- PDF pp.2–3: exact fixed-support computation in O(ND⁵) ideal scalar work, uniformly
in all tensor/graph/rotation/observable data. Entire marginals retain the 4^|S| output size.
No dense D²-by-D² multiplication is treated as an atomic instruction: the implementation
must retain the sum-of-Kronecker structure to meet this bound. Constants and programs precede
all numerical data. A supplied list of local terms is evaluated term by term and summed. -/
theorem fixed_support_contraction :
∀ s : ℕ, ∃ C : ℕ, 0 < C ∧
∃ programs : (N D : ℕ) → (S : Finset (Fin N)) → MarginalProgram N D S,
∀ (N D : ℕ) (S : Finset (Fin N)), 1 ≤ N → 1 ≤ D → S.card ≤ s →
let p := programs N D S
p.scalar.calls = 0 ∧ p.scalar.work 0 ≤ C * N * D ^ 5 ∧
(∀ (A : Tensors N D) (G : PhaseGraph N) (V : Fin N → Matrix.unitaryGroup Bool ℂ)
(O : Matrix (S → Bool) (S → Bool) ℂ), traceMPS A ≠ 0 → p.Correct A G V O) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P57
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number , including zero, there exist a positive natural number and a family assigning a program record to every pair of natural numbers and every subset , such that whenever , , and , the assigned scalar program has no external product-call instructions and its work is at most . Work assigns cost to each external product call and cost to every other instruction, so here it is the code length. The family and are chosen before the following data: arbitrary complex matrices , symmetric real weights with and , unitary complex matrices , and an arbitrary complex matrix indexed by Boolean assignments on . For every such choice for which the vector
is nonzero, the program has the following execution and output properties. Set , , and define
where combines assignments on and its complement. Define
with entrywise matrix conjugation, and let , including . There exists a final memory from successful execution of the program such that, writing for its code length,
The stage equations hold for every pair of assignments on , every , and every ; the cross and entry equations hold for every . Execution starts with all memory zero, writes instruction number 's result at address , and uses tensor entries, complex embeddings of weights, rotation entries, and observable entries as inputs. Its available scalar operations are complex constants, input reads, addition, multiplication, division that fails on a zero denominator, conjugation, and ; operand addresses are arbitrary natural numbers, with unwritten addresses still zero. The execution supplies the constant-zero function as the external product evaluator. In the formulas, inverse at zero is zero. The guarantee includes and ; the family is also defined when or , but no stated bounds or execution guarantees apply there.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.