AFTD Auto-Formalizing Theoretical Domains

simple_graph_is_flexible

def

A finite simple graph G is (k, ε)-flexible if for every k-list assignment L and every request function r on a nonempty subset V_hat of vertices, there exists a proper L-coloring of G satisfying at least ε * |V_hat| requests.

Statement

open Classical Finset in
def simple_graph_is_flexible {V : Type*} [Fintype V] (G : SimpleGraph V) (k : ℕ) (ε : ℝ) : Prop
Defined in
arXiv:2611.34348:171
Verified
26 Nov 2026
Axioms
none listed

Read back from the Lean

For a finite vertex type V, a simple graph G on V, a natural number k, and a real number ε, simple_graph_is_flexible G k ε asserts that: For every type C equipped with decidable equality, for every list assignment L : V → Finset C such that |L(v)| = k for all v ∈ V, for every nonempty finite subset V_hat ⊆ V, and for every request function r : V → C such that r(v) ∈ L(v) for all v ∈ V_hat, there exists a function (coloring) f : V → C such that: 1. f is a proper coloring of G: for all u, v ∈ V, if G.Adj u v then f(u) ≠ f(v), 2. f respects the list assignment L: for all v ∈ V, f(v) ∈ L(v), and 3. f satisfies the request on at least an ε-fraction of V_hat: ε * |V_hat| ≤ |{v ∈ V_hat | f(v) = r(v)}| (with both cardinalities cast to ℝ).

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

open Classical Finset in
/-- A finite graph is (k, ε)-flexible if every list assignment of size k with requests on a nonempty subset admits a proper coloring satisfying at least an ε-fraction of the requests. -/
def simple_graph_is_flexible {V : Type*} [Fintype V] (G : SimpleGraph V) (k : ℕ) (ε : ℝ) : Prop :=
  ∀ (C : Type*) [DecidableEq C] (L : V → Finset C) (hL : ∀ v, (L v).card = k)
    (V_hat : Finset V) (hV : V_hat.Nonempty) (r : V → C) (hr : ∀ v ∈ V_hat, r v ∈ L v),
    ∃ f : V → C, (∀ u v, G.Adj u v → f u ≠ f v) ∧ (∀ v, f v ∈ L v) ∧
      ε * (V_hat.card : ℝ) ≤ ((V_hat.filter (fun v => f v = r v)).card : ℝ)
See it in the graphDiscuss this resultChallenge it