Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Bounded lattice-path search in the treewidth join routine

Proved
Lax689794Proofs.Fun.E1D.findPath_runs

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

algorithmsgraph-theorytreewidth

Let a,ba,ba,b be input sequences with entries bounded by L1,L2L_1,L_2L1​,L2​. For a function table extending the path-search program, assume B>200B>200B>200 and L1+L2+∣a∣+∣b∣+8<BL_1+L_2+|a|+|b|+8<BL1​+L2​+∣a∣+∣b∣+8<B. On a,ba,ba,b, a parameter ccc, and a target sequence, the program returns the encoded functional path-search answer within the explicit step bound in the formal statement. The bound includes constructing the lattice states and testing them against the target.

Preamble
import Definitions.Def_BodlaenderKloks_CharacteristicOperations
import Definitions.Def_BodlaenderKloks_CharacteristicTables
import Definitions.Def_BodlaenderKloks_FunctionalMachine
import Definitions.Def_BodlaenderKloks_TreeDecompositionPrograms
import Definitions.Def_EdgeSublinearMWIS_Main_NativeSchemeInterfaces
import Definitions.Def_EdgeSublinearMWIS_Main_NativeWordRAM
import Definitions.Def_Lax228581_Treewidth
import Definitions.Def_Lax689794_GraphWords
import Mathlib.Algebra.BigOperators.Group.Finset.Sigma
import Mathlib.Algebra.BigOperators.Intervals
import Mathlib.Combinatorics.Enumerative.DoubleCounting
import Mathlib.Combinatorics.SimpleGraph.Acyclic
import Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected
import Mathlib.Combinatorics.SimpleGraph.Maps
import Mathlib.Combinatorics.SimpleGraph.Metric
import Mathlib.Data.Finset.Card
import Mathlib.Data.Finset.Image
import Mathlib.Data.Finset.Option
import Mathlib.Data.Finset.Powerset
import Mathlib.Data.Finset.Sigma
import Mathlib.Data.Finset.Sort
import Mathlib.Data.Finset.Sum
import Mathlib.Data.Finset.Union
import Mathlib.Data.List.Basic
import Mathlib.Data.List.Dedup
import Mathlib.Data.List.Forall2
import Mathlib.Data.List.GetD
import Mathlib.Data.List.Induction
import Mathlib.Data.List.Sort
import Mathlib.Data.List.Sublists
import Mathlib.Data.Nat.Lattice
import Mathlib.Data.Set.Basic
import Mathlib.Data.Set.Card
import Mathlib.Logic.Relation
import Mathlib.Order.Interval.Finset.Nat
import Mathlib.Tactic
set_option linter.unusedSectionVars false
set_option linter.unusedTactic false
set_option linter.unreachableTactic false
open Lax689794Proofs Lax689794Proofs.Fun
open Lax689794Proofs Lax689794Proofs.Fun Lax689794Proofs.Fun.E1D
open ToVal Lib1 Lax689794Proofs.Seq Lax689794Proofs.Chars Lax689794Proofs.Chars.CT E1A E1B E1C
variable {Δ' : ℕ → Option Tm} (hΔ : Lax689794Proofs.Fun.E1D.Δ ⊑ Δ') (B : ℕ)
include hΔ
Formal statement
theorem Lax689794Proofs.Fun.E1D.findPath_runs (hB : 200 < B) (a b : List ℕ) (c : ℕ) (want : List ℕ) (L₁ L₂ : ℕ)
    (ha : ∀ x ∈ a, x ≤ L₁) (hb : ∀ x ∈ b, x ≤ L₂) (hBB : L₁ + L₂ + a.length + b.length + 8 < B) :
    Runs Δ' B fFindPath [toVal a, toVal b, toVal c, toVal want] (toVal (findPath a b c want))
      (6000 * (a.length + 1) * (b.length + 1) * (4 ^ (L₁ + L₂ + 1) + 1) ^ 2 * (2 * (L₁ + L₂) + 1 + 2) ^ 2 +
        4 ^ (L₁ + L₂ + 1) * (100 * 3 ^ (2 * (L₁ + L₂) + 1 + want.length) + 100 * (2 * (L₁ + L₂) + 1) + 100) +
        12 * (a.length + b.length) + 200) := by sorry
Source
https://github.com/yuvalyitz/treewidth-lax/blob/b6743cf02087f552d8f023581f4718e68c42e444/proofs/Lax689794Proofs/Fun/E1.lean#L999

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