AFTD Auto-Formalizing Theoretical Domains

op309_five_cycle_total_dom_contains_three

theoremverified

Every total edge-dominating subset of a five-cycle contains three consecutive edges, so no star forest can serve as its full witness.

Statement

theorem op309_five_cycle_total_dom_contains_three (r : Fin 5 → Bool)
    (h : ∀ i : Fin 5, r (i + 4) = true ∨ r (i + 1) = true) :
    ∃ i : Fin 5, r i = true ∧ r (i + 1) = true ∧ r (i + 2) = true
Source
Finite verification of the five-cycle exception in https://arxiv.org/abs/2610.21036.
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem is proved by finite case exhaustion over all possible edge subsets of the 5-cycle. Since the cycle has only 5 edges, there are $2^5 = 32$ candidate boolean assignments. Moving the assignment and the domination hypothesis back into the goal yields a closed universal statement over the finite domain $\mathrm{Fin}\ 5 \to \mathrm{Bool}$, which Lean's decision procedure verifies by evaluating all 32 cases directly.

  1. All $2^5 = 32$ configurations of edges on the 5-cycle satisfy the implication. automation

    Reverting the edge selection function $r$ and the domination hypothesis $h$ turns the goal into a closed universal statement over all functions $r : \mathrm{Fin}\ 5 \to \mathrm{Bool}$. Because $\mathrm{Fin}\ 5 \to \mathrm{Bool}$ contains only $2^5 = 32$ elements, the universal quantification is decidable. The `decide` tactic checks every configuration by finite exhaustion, verifying that whenever every edge $i$ has an adjacent edge $i+4$ or $i+1$ in the set, there exists an edge $i$ for which $i$, $i+1$, and $i+2$ are all selected.

    lines 7–8

      revert r
      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

set_option maxRecDepth 16384set_option maxHeartbeats 2000000theorem op309_five_cycle_total_dom_contains_three (r : Fin 5 → Bool)    (h : ∀ i : Fin 5, r (i + 4) = true ∨ r (i + 1) = true) :    ∃ i : Fin 5, r i = true ∧ r (i + 1) = true ∧ r (i + 2) = true := by  revert r  decide
See it in the graphDiscuss this resultChallenge it