Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lifting a valid-target RAM routine to every encoded graph input

Proved
DirectedHamiltonicity.Main.InputRAM.bounded_of_valid_body

by Soh Kumabe · Nov 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

directed-hamiltonicityexact-exponential-algorithmslog-cost-ram

Suppose a structured RAM routine realizes the parity estimator on each valid target, with fixed word-width and per-trial work polynomials. On an input graph let n,m,Wn,m,Wn,m,W be the numbers of vertices, arcs and the stated upper weight bound, and let MMM be its computed trial budget. There are fixed A,k∈NA,k\in\mathbb NA,k∈N such that the compiled program on every signed target and every finite coin tape outputs the corresponding estimator bit at logarithmic cost at most

(M+1)A(n+m+W+1)k.(M+1)A(n+m+W+1)^k.(M+1)A(n+m+W+1)k.

The program includes the input reader, target test, graph preprocessing and final halt.

Preamble
import Definitions.Def_DirectedHamiltonicity_ParityRAMInterfaces

open DirectedHamiltonicity DirectedHamiltonicity.Main DirectedHamiltonicity.Main.InputRAM
open TargetedSamplers TargetedSamplers.Structured Multidigraph Classical
Formal statement
theorem DirectedHamiltonicity.Main.InputRAM.bounded_of_valid_body (body : Cmd) (required work : Polynomial ℕ) (run : ValidBodyRuns body required work) :
    ∃ A k : ℕ, BoundedInputRuns (onValid (.seq preprocess body)).program A k := by sorry
Source
Auxiliary result for the log-cost RAM formalization of Proposition 4 in T. Koana and S. Kumabe, Breaking the 2^n barrier for directed hamiltonicity, STOC 2027 submission 811, PDF pp. 5 and 8–11. https://prove2.me/theorems/aa04b14a-8225-48c8-904c-8725ebdcac66

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