Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Native exact LP execution for a canonical rational program

Open
Lax109476Proofs.RamSolverCanonicalExecution.solve_spec

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

algorithmscomputational-complexitygraph-theory

Let PPP be a rational LP and LLL the size of its canonical encoding. With w≥W(L)w\ge W(L)w≥W(L) and the published initialized source and workspace predicates, the actual solver command produces its complete certificate result within T(L)T(L)T(L) instructions:

Spec2w(InputP,solve,CertificateResultP,T(L)).\mathrm{Spec}_{2^w}(\mathrm{Input}_P,\mathrm{solve},\mathrm{CertificateResult}_P,T(L)).Spec2w​(InputP​,solve,CertificateResultP​,T(L)).

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

Retired because the namespace-wrapped declaration compiled during publication but the proof-comparison parser rejects that header (expected token / unknown full theorem identifier). The mathematically identical, fully qualified declaration is Lax109476Proofs.RamSolverCanonicalExecution.solve_spec_native.

Preamble
import Definitions.Def_EdgeSublinearMWIS_Main_NativeDetailedInterfaces
Formal statement
namespace Lax109476Proofs.RamSolverCanonicalExecution
theorem solve_spec : ∀ (m n w : Nat) (P : Lax109476.LinearProgram.Program Rat m n),
  Nat.le
      (Lax109476Proofs.RamUniformSolverBounds.wordWidth
        (Lax759944.BinaryWordEncoding.bitSize (@Lax109476.RationalEncoding.encodeProgram m n P)))
      w →
    Lax808846Proofs.Reasoning.Spec
      (@HPow.hPow Nat Nat Nat (@instHPow Nat Nat (@NPow.toPow Nat (@Monoid.toNPow Nat Nat.instMonoid)))
        ((2:Nat)) w)
      (@Lax109476Proofs.RamSolverCanonicalExecution.Input m n
        (@HPow.hPow Nat Nat Nat (@instHPow Nat Nat (@NPow.toPow Nat (@Monoid.toNPow Nat Nat.instMonoid)))
          ((2:Nat)) w)
        P)
      Lax109476Proofs.RamExactSolverProgram.solve (@Lax109476Proofs.RamSolverFinish.Result m n P)
      (Lax109476Proofs.RamUniformSolverBounds.instructionBound
        (Lax759944.BinaryWordEncoding.bitSize (@Lax109476.RationalEncoding.encodeProgram m n P))) := by sorry
end Lax109476Proofs.RamSolverCanonicalExecution
Source
https://github.com/EdouardBonnet/lax-109476/blob/0a042604c7ae1ef4cd9a4c7d82eb902f313d4864/proofs/Lax109476Proofs/RamSolverCanonicalExecution.lean, theorem solve_spec (lines 22–55)

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