AFTD Auto-Formalizing Theoretical Domains

digraph_k_inducible

def

A 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 linear orders on V: there are rank functions r_i : V → ℕ for voters i ∈ Fin k, each injective (voter i prefers u to v iff r_i(u) < r_i(v)), such that for all vertices u, v, D has the arc u → v iff strictly more than half of the k voters prefer u to v, i.e. k < 2 · #{i : r_i(u) < r_i(v)}. (In particular D has no loops.)

Statement

def digraph_k_inducible (k : ℕ) {V : Type*} (D : Digraph V) : Prop
Defined in
arXiv:2611.27965 (Recognizing k-inducible Digraphs is NP-complete), Section 1: definition of k-inducible digraphs (majority relation of a k-voter preference profile); linear orders encoded by injective rank functions into ℕ
Verified
26 Nov 2026
Axioms
none listed
Used by 3

Read back from the Lean

Given a natural number k, an implicit vertex type V, and a directed graph D : Digraph V, digraph_k_inducible k D asserts the existence of a family of functions r : Fin k → V → ℕ such that: 1. For every index i : Fin k, the function r i : V → ℕ is injective. 2. For all vertices u, v : V, the adjacency relation D.Adj u v holds if and only if k < 2 * C, where C is the number of indices i : Fin k for which r i u < r i v (that is, r i u < r i v holds for a strict majority of the k indices).

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

def digraph_k_inducible (k : ℕ) {V : Type*} (D : Digraph V) : Prop :=
  ∃ r : Fin k → V → ℕ, (∀ i, Function.Injective (r i)) ∧
    ∀ u v, D.Adj u v ↔ k < 2 * (Finset.univ.filter (fun i => r i u < r i v)).card
See it in the graphDiscuss this resultChallenge it