AFTD Auto-Formalizing Theoretical Domains

is_graph_bisection

def

A vertex subset S in a finite type V is a bisection if the sizes of S and its complement Sᶜ differ by at most one: |card(S) - card(Sᶜ)| ≤ 1.

Statement

def is_graph_bisection {V : Type*} [Fintype V] [DecidableEq V] (S : Finset V) : Prop
Defined in
arXiv:2611.22760, Section 1
Verified
18 Nov 2026
Axioms
none listed
Used by 3

Read back from the Lean

For a finite type V with decidable equality and a subset S : Finset V, is_graph_bisection S asserts that the absolute difference between the cardinality of S and the cardinality of its complement Sᶜ (evaluated as integers) is at most 1.

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

/-- A subset S of vertices in a finite type V is a bisection if |card(S) - card(Sᶜ)| ≤ 1. -/
def is_graph_bisection {V : Type*} [Fintype V] [DecidableEq V] (S : Finset V) : Prop := |(S.card : ℤ) - (Sᶜ.card : ℤ)| ≤ 1
See it in the graphDiscuss this resultChallenge it