weak_deg_is_legal
def
For a simple graph G on vertex type V, a finite set of vertices S : Finset V, an integer-valued bound function f : V → ℤ, and an operation op : WeakDegOp V: Del(v) is legal if v ∈ S and 0 ≤ f(v); DelSave(v, w) is legal if v ∈ S, w ∈ S, G.Adj v w, 0 ≤ f(v), and f(w) < f(v).
Statement
def weak_deg_is_legal {V : Type*} (G : SimpleGraph V) (S : Finset V) (f : V → ℤ) : WeakDegOp V → Prop
- Defined in
- arXiv:2611.25850: Section 1
- Verified
- 21 Nov 2026
- Axioms
- none listed
- Built on 1
- WeakDegOpAn operation in a weak degeneracy sequence, either deleting a vertex v (Del) or deleting v while saving a neighbor w (DelSave).
- Used by 1
- WeakDegExecutionInductive execution predicate WeakDegExecution G S f ops avails asserting that the sequence of operations ops : List (WeakDegOp V)…
Read back from the Lean
Given a type V, a simple graph G on V, a finite set of vertices S : Finset V, and a function f : V → ℤ, weak_deg_is_legal G S f defines a predicate on WeakDegOp V by case analysis:
1. An operation WeakDegOp.del v is legal if v ∈ S and 0 ≤ f v.
2. An operation WeakDegOp.delSave v w is legal if v ∈ S, w ∈ S, v and w are adjacent in G, 0 ≤ f v, and f w < f v.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Legality condition for a weak degeneracy operation on a finite vertex set S. -/ def weak_deg_is_legal {V : Type*} (G : SimpleGraph V) (S : Finset V) (f : V → ℤ) : WeakDegOp V → Prop | .del v => v ∈ S ∧ 0 ≤ f v | .delSave v w => v ∈ S ∧ w ∈ S ∧ G.Adj v w ∧ 0 ≤ f v ∧ f w < f v