AFTD Auto-Formalizing Theoretical Domains

is_graph_bisection_singleton_bool

theoremverified

In the two-element type Bool, the singleton subset {true} is a bisection.

Statement

theorem is_graph_bisection_singleton_bool : is_graph_bisection ({true} : Finset Bool)
Source
folklore
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • is_graph_bisectionA 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.

Read back from the Lean

The singleton set {true} in Bool satisfies is_graph_bisection. That is, the absolute value of the difference between the cardinality of {true} and the cardinality of its complement in Bool (both viewed 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.

The proof, explained

A subset of a finite type is a bisection if the cardinality of the subset and the cardinality of its complement differ by at most 1. For the singleton {true} in the two-element type Bool, both the subset and its complement {false} have cardinality 1. The proof unfolds the definition of a bisection, rewrites the complement's cardinality, and lets the simplifier evaluate the arithmetic.

  1. {true} is a bisection of the type Bool. automation

    Unfolding the definition of a bisection (`is_graph_bisection`) states that the size of {true} and its complement must differ by at most 1. Rewriting with `Finset.card_compl` expresses the complement's cardinality as the total number of elements in Bool (which is 2) minus the size of {true} (which is 1). The simplifier evaluates these cardinalities and verifies that |1 - 1| = 0 ≤ 1.

    line 3

    uses is_graph_bisection, Finset.card_compl

      simp [is_graph_bisection, Finset.card_compl]
is_graph_bisection
A subset S of a finite type V is a graph bisection if the absolute difference between the cardinality of S and the cardinality of its complement is at most 1: ||S| - |Sᶜ|| ≤ 1.
Finset.card_compl
The cardinality of the complement of a finite subset s is the cardinality of the ambient finite type minus the cardinality of s: card (sᶜ) = card α - card s.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- The singleton {true} in Bool is a bisection. -/theorem is_graph_bisection_singleton_bool : is_graph_bisection ({true} : Finset Bool) := by  simp [is_graph_bisection, Finset.card_compl]
See it in the graphDiscuss this resultChallenge it