Budget-pruned edge orientation enumeration is exhaustive
ProvedThreeBoundQ2.orientations_completeboolean-functionsformal-proofsensitivity-separation-213303
Let be a finite list of vertex pairs, let be a Boolean list with , and let 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
then occurs in the recursive budget-pruned enumeration . 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 sorrySource
Original Lean formalization for the Prove2Me sensitivity campaign, Q2Enumeration, lines 88–135; source SHA256 ae08990184d0a579a04d40716428c43f0aac40ead1b50813515c656180ffe56c.