op861_acyclic_five_tail_rule_counterexample
For an explicit acyclic five-vertex directed graph, the rule that chooses the least starting vertex of a longest directed path in each triple uses all five vertices as tails. Thus a natural five-vertex extension of the known four-vertex repeated-tail rule is false.
Statement
theorem op861_acyclic_five_tail_rule_counterexample :
(∀ v w, op861_dag5_edge v w → op861_dag5_rank v < op861_dag5_rank w) ∧
(∀ X : Finset (Fin 5), X.card = 3 →
op861_dag5_tail X ∈ X ∧
(∀ v ∈ X, op861_dag5_score X v ≤ op861_dag5_score X (op861_dag5_tail X)) ∧
(∀ v ∈ X, op861_dag5_score X v = op861_dag5_score X (op861_dag5_tail X) →
op861_dag5_tail X ≤ v)) ∧
(∀ v : Fin 5, ∃ X : Finset (Fin 5), X.card = 3 ∧ op861_dag5_tail X = v)- Source
- Counterexample found in experiment 30725 to a proposed extension of the four-vertex rule in https://korandi.org/docs/domination-3tournaments.pdf.
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
We consider an explicit directed acyclic graph on five vertices {0, 1, 2, 3, 4} with edges 2 → 4, 3 → 4, and 4 → 1, whose acyclicity is witnessed by a strictly increasing rank function. For each 3-element subset, a tail rule selects a vertex maximizing the directed path length within the triple, breaking ties by choosing the minimal vertex index. Lean verifies by exhaustive computation (`decide`) that this selection rule is well-defined and optimal on every triple, and that every vertex occurs as a tail, disproving the five-vertex analogue of the four-vertex repeated-tail rule.
The edge relation of the directed graph is decidable.
To enable automated evaluation by `decide`, we provide a `DecidableRel` instance for `op861_dag5_edge`. Unfolding its definition expresses the relation as a disjunction of equalities on `Fin 5`, which Lean's typeclass synthesis (`infer_instance`) decides automatically.
unfold op861_dag5_edge infer_instance
The directed graph is acyclic because rank strictly increases along every edge. automation
The main goal is a conjunction whose first component asserts that every directed edge strictly increases the rank function. The tactic `constructor` isolates this goal, and `decide` verifies it by exhaustively checking all pairs in `Fin 5`.
constructor · decide
The tail function correctly selects the tie-broken maximum path-score vertex for every triple, and every vertex is attained as a tail. automation
The remaining goal is a conjunction of two claims: first, that for every 3-element subset X, `op861_dag5_tail X` is in X, maximizes the path length score, and breaks ties by choosing the smallest vertex index; second, that every vertex in `Fin 5` is chosen as the tail of at least one 3-element subset. The tactic `constructor` splits this into the two goals, and `<;> decide` dispatches both by exhaustive verification over all ten 3-element subsets of `Fin 5`.
· constructor <;> decide
- The three main assertions—acyclicity, the optimality and tie-breaking properties of the tail choice on all triples, and the surjectivity of the tail assignment—are verified by the `decide` tactic via exhaustive computation over the finite domain Fin 5 and its subsets.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option maxRecDepth 16384set_option maxHeartbeats 2000000def op861_dag5_edge (v w : Fin 5) : Prop := (v = 2 ∧ w = 4) ∨ (v = 3 ∧ w = 4) ∨ (v = 4 ∧ w = 1)instance : DecidableRel op861_dag5_edge := fun v w => by unfold op861_dag5_edge infer_instancedef op861_dag5_rank : Fin 5 → ℕ := ![0, 3, 0, 0, 1]def op861_dag5_score (X : Finset (Fin 5)) (v : Fin 5) : ℕ := if ∃ u ∈ X, ∃ w ∈ X, op861_dag5_edge v u ∧ op861_dag5_edge u w then 2 else if ∃ u ∈ X, op861_dag5_edge v u then 1 else 0def op861_dag5_tail (X : Finset (Fin 5)) : Fin 5 := if X = {0,1,4} then 4 else if X = {0,2,4} then 2 else if X = {0,3,4} then 3 else if X = {1,2,3} then 1 else if X = {1,2,4} then 2 else if X = {1,3,4} then 3 else if X = {2,3,4} then 2 else 0theorem op861_acyclic_five_tail_rule_counterexample : (∀ v w, op861_dag5_edge v w → op861_dag5_rank v < op861_dag5_rank w) ∧ (∀ X : Finset (Fin 5), X.card = 3 → op861_dag5_tail X ∈ X ∧ (∀ v ∈ X, op861_dag5_score X v ≤ op861_dag5_score X (op861_dag5_tail X)) ∧ (∀ v ∈ X, op861_dag5_score X v = op861_dag5_score X (op861_dag5_tail X) → op861_dag5_tail X ≤ v)) ∧ (∀ v : Fin 5, ∃ X : Finset (Fin 5), X.card = 3 ∧ op861_dag5_tail X = v) := by constructor · decide · constructor <;> decide