AFTD Auto-Formalizing Theoretical Domains

digraph_k_inducible_three_cycle

theoremverified

The directed 3-cycle 0 → 1 → 2 → 0 on Fin 3 is 3-inducible (the Condorcet cycle of three voters).

Statement

theorem digraph_k_inducible_three_cycle :
    digraph_k_inducible 3 (⟨fun a b => b = a + 1⟩ : Digraph (Fin 3))
Source
Sanity lemma for digraph_k_inducible (OP-2174, arXiv:2611.27965): the Condorcet profile induces the 3-cycle
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • digraph_k_inducibleA digraph D on vertex type V is k-inducible (k a natural number) if it is the pairwise majority relation of a profile of k voters with…

The proof, explained

To show that the directed 3-cycle on Fin 3 is 3-inducible, the proof exhibits the classical Condorcet voting profile of three cyclic preferences: (0, 1, 2), (1, 2, 0), and (2, 0, 1). Injectivity of each voter's ranking is verified computationally. Lean's `decide` tactic then exhaustively evaluates all nine pairs of vertices to confirm that a directed edge u → v exists if and only if a strict majority of voters rank u before v.

  1. Provide the Condorcet profile of three rankings and verify their injectivity, reducing the goal to the majority preference condition. automation

    By definition, a directed graph is 3-inducible if there exist three injective rankings $r_0, r_1, r_2 : \text{Fin } 3 \to \mathbb{N}$ such that edges correspond to strict majority preference ($3 < 2 \cdot \text{card}$). We provide the three cyclic permutations $r_0 = (0, 1, 2)$, $r_1 = (1, 2, 0)$, and $r_2 = (2, 0, 1)$. The `decide` tactic verifies by finite evaluation that each of the three rankings is injective.

    line 3

      refine ⟨![![0, 1, 2], ![1, 2, 0], ![2, 0, 1]], by decide, ?_⟩
  2. Verify that the majority preference relation coincides with the edges of the directed 3-cycle for all pairs of vertices. automation

    It remains to check that for all $u, v \in \text{Fin } 3$, the edge condition $v = u + 1$ holds if and only if a strict majority of voters (at least 2 of the 3) satisfy $r_i(u) < r_i(v)$. Because $\text{Fin } 3 \times \text{Fin } 3$ contains only 9 pairs, the `decide` tactic evaluates both sides and verifies the equivalence by finite computation.

    line 4

      decide

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

theorem digraph_k_inducible_three_cycle :    digraph_k_inducible 3 (⟨fun a b => b = a + 1⟩ : Digraph (Fin 3)) := by  refine ⟨![![0, 1, 2], ![1, 2, 0], ![2, 0, 1]], by decide, ?_⟩  decide
See it in the graphDiscuss this resultChallenge it