Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Total native LP-solver execution on arbitrary word input

Proved
Lax109476Proofs.RamSolverTotalExecution.solve_spec_native

by Shuze Chen · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

algorithmscomputational-complexitygraph-theory

Let xxx be any finite natural-word list, including malformed encodings, and let LLL be its binary size. Assume w≥W(L)w\ge W(L)w≥W(L) and the complete initialized frontend and solver workspace. The fixed command has at most T(L)T(L)T(L) instructions and returns its full outcome: invalid input has validity flag zero and unchanged output, while valid decoded input receives a valid encoded certificate. Thus

Spec2w(Inputx,solve,Resultx,T(L)).\mathrm{Spec}_{2^w}(\mathrm{Input}_x,\mathrm{solve},\mathrm{Result}_x,T(L)).Spec2w​(Inputx​,solve,Resultx​,T(L)).

This is a reusable source interface for composing the complete finite-program implementation.

Preamble
import Definitions.Def_EdgeSublinearMWIS_Main_NativeDetailedInterfaces
namespace Lax109476Proofs.RamSolverTotalExecution
end Lax109476Proofs.RamSolverTotalExecution
Formal statement
theorem Lax109476Proofs.RamSolverTotalExecution.solve_spec_native : ∀ (xs : List Nat) (w : Nat),
  @LE.le Nat instLENat (Lax109476Proofs.RamUniformSolverBounds.wordWidth (Lax759944.BinaryWordEncoding.bitSize xs)) w →
    Lax808846Proofs.Reasoning.Spec
      (@HPow.hPow Nat Nat Nat (@instHPow Nat Nat (@NPow.toPow Nat (@Monoid.toNPow Nat Nat.instMonoid)))
        (@OfNat.ofNat Nat (nat_lit 2) (instOfNatNat (nat_lit 2))) w)
      (Lax109476Proofs.RamSolverTotalExecution.Input
        (@HPow.hPow Nat Nat Nat (@instHPow Nat Nat (@NPow.toPow Nat (@Monoid.toNPow Nat Nat.instMonoid)))
          (@OfNat.ofNat Nat (nat_lit 2) (instOfNatNat (nat_lit 2))) w)
        xs)
      Lax109476Proofs.RamExactSolverProgram.solve (Lax109476Proofs.RamSolverTotalExecution.Result xs)
      (Lax109476Proofs.RamUniformSolverBounds.instructionBound (Lax759944.BinaryWordEncoding.bitSize xs)) := by sorry
Source
https://github.com/EdouardBonnet/lax-109476/blob/0a042604c7ae1ef4cd9a4c7d82eb902f313d4864/proofs/Lax109476Proofs/RamSolverTotalExecution.lean, theorem solve_spec (lines 25–65)

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