Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Budget-pruned edge orientation enumeration is exhaustive

Proved
ThreeBoundQ2.orientations_complete

by yousofy · Oct 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

boolean-functionsformal-proofsensitivity-separation-213303

Let EEE be a finite list of vertex pairs, let ddd be a Boolean list with ∣d∣=∣E∣|d|=|E|∣d∣=∣E∣, and let b(v)b(v)b(v) be a natural-number outdegree budget. Interpret a false bit as the first-to-second orientation and a true bit as the reverse. If the resulting outgoing count satisfies

outCount⁡(E,d,v)≤b(v)for every v,\operatorname{outCount}(E,d,v)\le b(v)\qquad\text{for every }v,outCount(E,d,v)≤b(v)for every v,

then ddd occurs in the recursive budget-pruned enumeration orientations⁡(b,E)\operatorname{orientations}(b,E)orientations(b,E). Thus the executable search omits no orientation satisfying its stated budgets.

Preamble
import Definitions.Def_SensitivityCampaign
import Definitions.Def_SensitivitySeparation
import Lean.Elab.Tactic.Omega
import Mathlib.Data.Finset.Sort
import Mathlib.Data.List.FinRange
import Mathlib.Data.List.Sort
import Definitions.Def_Sensitivity213303_Q2Enumeration


set_option autoImplicit false
set_option maxHeartbeats 3000000
namespace ThreeBoundQ2
end ThreeBoundQ2
open ThreeBoundQ2
variable {V : Type} [DecidableEq V]
Formal statement
theorem ThreeBoundQ2.orientations_complete (es : List (V × V)) (ds : List Bool) (b : V → ℕ)
    (hlen : ds.length = es.length) (hb : ∀ v, outCount es ds v ≤ b v) :
    ds ∈ orientations b es := by sorry
Source
Original Lean formalization for the Prove2Me sensitivity campaign, Q2Enumeration, lines 88–135; source SHA256 ae08990184d0a579a04d40716428c43f0aac40ead1b50813515c656180ffe56c.

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