Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.3 — internal-seed extraction

Open
MatrixQuantumSampler595.Correspondence.Supplement.internal_seed_extraction

by mikedeng1 · Nov 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-stoc27sp2o-gran-per-chapterp2o-plan-paperp2o-v1probabilityquantum-informationrandomness-extraction

Fix real constants 0<μ≤10<\mu\le10<μ≤1, A>0A>0A>0 and CM>0C_M>0CM​>0. There are c,Cd>0c,C_d>0c,Cd​>0, an integer n0≥1n_0\ge1n0​≥1, and a uniform explicit family depending only on these constants. For every integer n≥n0n\ge n_0n≥n0​, every real μn≤k≤n\mu n\le k\le nμn≤k≤n and 2−cn≤η≤1/22^{-cn}\le\eta\le1/22−cn≤η≤1/2, put h=log⁡2(n/η)h=\log_2(n/\eta)h=log2​(n/η). The family gives a strong conditional-min-entropy quantum-proof (k,η)(k,\eta)(k,η) extractor with

d≤Cdh,M=⌊CMh(log⁡2(n/h))A⌋.d\le C_dh,\qquad M=\left\lfloor C_Mh\bigl(\log_2(n/h)\bigr)^A\right\rfloor.d≤Cd​h,M=⌊CM​h(log2​(n/h))A⌋.

The output length is exactly MMM. One finite deterministic evaluator runs in polynomial time for fixed μ,A,CM\mu,A,C_Mμ,A,CM​. The threshold and ccc incorporate the sufficiently large n/hn/hn/h conditions in the proof; no extra ratio hypothesis is imposed. This companion records the internal-seed construction at its exact requested output length.

Formalization Note Integer accuracy controls round 16log⁡2(1/η)16\log_2(1/\eta)16log2​(1/η) upward (sampling uses ε\varepsilonε); varying entropy controls round 16k16k16k downward. Security and displayed bounds use the original real parameters. Fixed-rate families need no entropy control. Theorem 5.3 supplies its exact requested output length as an integer control, and Theorem 6.4 supplies ℓ\ellℓ. The actual machine and its polynomial are part of the uniform explicitness witness.

Differences from the source:

  • encoding: binary source, seed and output strings with one-based sample/coordinate labels → Fin-indexed Boolean strings and a uniform Fin(2^d) seed alphabet with zero-based labels; reason: finite relabelling preserves all states, probabilities and maps
  • encoding: explicit construction with polynomial-time evaluation for the displayed fixed parameters → one finite TM2 machine computes lengths and samples from the specified integer controls for the entire family; reason: step semantics and canonical rounded numerical inputs express uniform polynomial time without real oracles or advice
  • encoding: O and Omega with only the printed fixed-parameter dependencies → positive real resource constants and positive eventual integer thresholds quantified before varying instances; reason: uniform quantified meaning of the asymptotic resource bounds supported by the construction proofs
Preamble
import Definitions.Def_MatrixQuantumSampler595_Correspondence_Supplement_ConditionalExtractor
import Definitions.Def_MatrixQuantumSampler595_Correspondence_Supplement_UniformConstruction
Formal statement
namespace MatrixQuantumSampler595.Correspondence.Supplement

/-- Theorem 5.3, p.21: the requested output length is the exact floor, not a lower bound. -/
theorem internal_seed_extraction
    (mu A CM : ℝ) (hmu : 0 < mu) (hmu1 : mu ≤ 1) (hA : 0 < A) (hCM : 0 < CM) :
    ∃ (c Cd : ℝ) (n0 : ℕ) (E : Controls → FiniteSeededMap),
      0 < c ∧ 0 < Cd ∧ 1 ≤ n0 ∧ IsUniformExplicit E ∧
      ∀ n : ℕ, n0 ≤ n → ∀ (k eta : ℝ), mu * n ≤ k → k ≤ n →
        (2 : ℝ) ^ (-c * n) ≤ eta → eta ≤ 1 / 2 →
        let h := logTwo ((n : ℝ) / eta)
        let M : ℕ := ⌊CM * h * (logTwo ((n : ℝ) / h)) ^ A⌋₊
        let F := E ⟨n, 0, accuracyControl eta, M⟩
        F.sourceLength = n ∧ F.outputLength = M ∧
        ∃ d : ℕ, F.samples = 2 ^ d ∧ (d : ℝ) ≤ Cd * h ∧
          IsStrongConditionalExtractor F.apply k eta := by sorry

end MatrixQuantumSampler595.Correspondence.Supplement
Source
Kuan Cheng, Ruiyang Wu, STOC 2027 submission #595 (October 2026), canonical held PDF (SHA-256 35e315808fa8dd8704a13971c8ca60bc3f785907b566f8914e4bb929c38b26af), Theorem 5.3, printed/PDF p.21; pp.22–25

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me