three_token_odd_cycle_deficit_seven
The value of three_token_odd_cycle_deficit at 7 equals 5.
Statement
theorem three_token_odd_cycle_deficit_seven : three_token_odd_cycle_deficit 7 = 5- Source
- arXiv:2611.22830 "Independent sets in the 2-token graph of a cycle and kings on the torus"; OP-2010
- Verified
- 20 Nov 2026
- Axioms
Quot.soundpropext- Built on 2
- three_token_odd_cycle_deficitFor a natural number n, three_token_odd_cycle_deficit n equals (n - 1) * (n - 2) / 6 - 1 if 3 divides n, and (n - 1) * (n - 2) / 6…
- three_token_odd_cycle_deficit_fiveThe value of three_token_odd_cycle_deficit at 5 equals 2.
Read back from the Lean
The value of three_token_odd_cycle_deficit at 7 is equal to 5.
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
The theorem asserts that the three-token odd-cycle deficit at n = 7 is 5. It is proved by expanding the definition of `three_token_odd_cycle_deficit` and evaluating the resulting arithmetic. Since 3 does not divide 7, the definition gives (7 - 1) * (7 - 2) / 6 = 5, which the simplifier confirms directly.
three_token_odd_cycle_deficit 7 = 5 automation
The definition of `three_token_odd_cycle_deficit` is unfolded at n = 7. Because 3 does not divide 7, the conditional selects the expression (7 - 1) * (7 - 2) / 6, which evaluates to 6 * 5 / 6 = 5. Lean's simplifier evaluates this arithmetic expression directly to close the goal.
uses
three_token_odd_cycle_deficit_fivetheorem three_token_odd_cycle_deficit_seven : three_token_odd_cycle_deficit 7 = 5 := by first | exact three_token_odd_cycle_deficit_five | (apply three_token_odd_cycle_deficit_five <;> assumption) | (apply three_token_odd_cycle_deficit_five <;> simp_all) | simpa using three_token_odd_cycle_deficit_five | (simp only [three_token_odd_cycle_deficit] at *; first | exact three_token_odd_cycle_deficit_five | (apply three_token_odd_cycle_deficit_five <;> assumption) | (apply three_token_odd_cycle_deficit_five <;> simp_all) | simpa using three_token_odd_cycle_deficit_five)
three_token_odd_cycle_deficit_five- The value of three_token_odd_cycle_deficit at 5 is 2.
- The proof script consists of a boilerplate `first` tactic block that repeatedly attempts tactics citing `three_token_odd_cycle_deficit_five`. That lemma is never actually needed; after unfolding the definition of `three_token_odd_cycle_deficit`, the final `simpa` tactic closes the goal purely by arithmetic evaluation.
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.
/-- Sanity check: the deficit at n = 7 is 5. -/theorem three_token_odd_cycle_deficit_seven : three_token_odd_cycle_deficit 7 = 5 := by first | exact three_token_odd_cycle_deficit_five | (apply three_token_odd_cycle_deficit_five <;> assumption) | (apply three_token_odd_cycle_deficit_five <;> simp_all) | simpa using three_token_odd_cycle_deficit_five | (simp only [three_token_odd_cycle_deficit] at *; first | exact three_token_odd_cycle_deficit_five | (apply three_token_odd_cycle_deficit_five <;> assumption) | (apply three_token_odd_cycle_deficit_five <;> simp_all) | simpa using three_token_odd_cycle_deficit_five)