Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Finite additive-spill repair certificates with actual leaf routes

Definition
Hirsch_additive_portal_repair

by jjosh · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

formalizationpolyhedra

A finite additive repair certificate assembles actual steps of a relation R. A leaf has excess e<=b and an actual route of cost<=C*e. A nonleaf records one initial R-edge or stationary step, followed by child repairs. Child dimensions strictly drop, each child excess is at most the parent e, and sibling excesses sum to at most e+b. Internal parents have positive dimension and e>b. The tags must be separately justified when used for polytope geometry.

Definition code
import Mathlib
open scoped BigOperators
namespace HirschRegionRoute
def Route {V : Type*} (R : V → V → Prop) (B : ℕ) (u v : V) : Prop :=
  ∃ w : ℕ → V, w 0 = u ∧ w B = v ∧
    ∀ j < B, w j = w (j + 1) ∨ R (w j) (w (j + 1))

end HirschRegionRoute
namespace HirschAdditiveAllowance
open HirschRegionRoute
variable {V : Type*}
inductive AdditiveRepair (R : V → V → Prop) (b C : ℕ) :
    V → V → ℕ → ℕ → ℕ → Prop
  | leaf (x y : V) (h e cost : ℕ) (he : e ≤ b)
      (hr : Route R cost x y) (hc : cost ≤ C*e) : AdditiveRepair R b C x y h e cost
  | node (h e n : ℕ) (u : V) (p : ℕ → V)
      (dims mass costs : Fin n → ℕ)
      (he : b < e) (hh : 0 < h) (hfirst : u=p 0 ∨ R u (p 0))
      (hdrop : ∀ i, dims i < h) (hmono : ∀ i, mass i ≤ e)
      (hsum : (∑ i, mass i) ≤ e+b)
      (children : ∀ i, AdditiveRepair R b C (p i.val) (p (i.val+1))
        (dims i) (mass i) (costs i)) :
      AdditiveRepair R b C u (p n) h e (1+∑ i, costs i)

end HirschAdditiveAllowance
Source
Explicit conditional recurrence and actual-route assembly; https://github.com/jjoshua2/prove2me-work/tree/b7a832e9ff98743d53c66d6e471fd0828891d22d

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me