AFTD Auto-Formalizing Theoretical Domains

three_token_odd_cycle_matching_bound_negation

theoremverifiedformalization

It is not the case that for all integers k ≥ 2, the independence number of the 3-token graph of the odd cycle C_{2k+1} is equal to ((2 * k + 1).choose 3 + k) / 2.

Statement

theorem three_token_odd_cycle_matching_bound_negation :
    ¬ (∀ k ≥ 2, (token_graph (SimpleGraph.cycleGraph (2 * k + 1)) 3).indepNum = ((2 * k + 1).choose 3 + k) / 2)
Formalizes
arXiv:2611.22830 Section 5 -- Independent sets in the 2-token graph of a cycle and kings on the torus
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • token_graphThe k-token graph F_k(G) of a simple graph G has as vertices the k-subsets of V(G), with two k-subsets adjacent whenever their symmetric…
Used by 3

Read back from the Lean

It is not the case that for every natural number $k \ge 2$, the independence number of the 3-token graph of the cycle graph on $2k + 1$ vertices equals $\lfloor (\binom{2k + 1}{3} + k) / 2 \rfloor$.

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 universal claim is disproved by exhibiting a counterexample at k = 2. If the proposed matching bound held for all k ≥ 2, the independence number of the 3-token graph of C_5 would be ((5.choose 3) + 2) / 2 = 6, requiring an independent set of size 6. However, an exhaustive computational search over all 210 subsets of size 6 out of the 10 vertices confirms that no such independent set exists, producing a contradiction.

  1. Adjacency in the cycle graph C_n is decidable for all n.

    Unfolding the definition of cycleGraph, two vertices a, b are adjacent if and only if a - b = 1 or b - a = 1 (for n ≥ 2), which is decidable by standard arithmetic on Fin n.

    lines 1–6

    instance three_token_odd_cycle_matching_bound_negation_cycleGraph_decidableRel (n : ℕ) :
        DecidableRel (SimpleGraph.cycleGraph n).Adj := by
      intro a b
      dsimp [SimpleGraph.cycleGraph]
      split <;> infer_instance
    
  2. Adjacency in the k-token graph is decidable whenever the base graph has a finite vertex type and decidable adjacency.

    Two k-subsets are adjacent in the token graph if their symmetric difference consists of two adjacent vertices in the base graph. Since the vertex type is finite and adjacency is decidable, this existential condition over pairs of vertices is decidable by finite search.

    lines 7–13

    instance three_token_odd_cycle_matching_bound_negation_token_graph_decidableRel
        {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (k : ℕ) :
        DecidableRel (token_graph G k).Adj := by
      intro ⟨x, hx⟩ ⟨y, hy⟩
      dsimp [token_graph]
      infer_instance
    
  3. Whether a finite set of vertices in G_5 is an independent set is decidable.

    Being an independent set is characterized as having every distinct pair of elements non-adjacent. Because G_5 has decidable adjacency and the candidate vertex set is finite, this pairwise condition is decidable, transferring decidability to the independent set predicate via decidable_of_iff.

    lines 18–30

    uses Finset.mem_coe, decidable_of_iff, three_token_odd_cycle_matching_bound_negation_isIndepSet_iff

    lemma three_token_odd_cycle_matching_bound_negation_isIndepSet_iff
        (s : Finset {s : Finset (Fin 5) // s.card = 3}) :
        three_token_odd_cycle_matching_bound_negation_G5.IsIndepSet (s : Set _) ↔
          ∀ x ∈ s, ∀ y ∈ s, x ≠ y → ¬ three_token_odd_cycle_matching_bound_negation_G5.Adj x y := by
      dsimp [SimpleGraph.IsIndepSet, Set.Pairwise]
      simp only [Finset.mem_coe]
    
    instance three_token_odd_cycle_matching_bound_negation_isIndepSet_decidable
        (s : Finset {s : Finset (Fin 5) // s.card = 3}) :
        Decidable (three_token_odd_cycle_matching_bound_negation_G5.IsIndepSet (s : Set _)) :=
      decidable_of_iff (∀ x ∈ s, ∀ y ∈ s, x ≠ y → ¬ three_token_odd_cycle_matching_bound_negation_G5.Adj x y)
        (three_token_odd_cycle_matching_bound_negation_isIndepSet_iff s).symm
    
  4. The 3-token graph of C_5 contains no independent set of size 6. automation

    The 3-token graph of C_5 has 10 vertices (all 3-subsets of 5 elements). The `decide` tactic performs an exhaustive search over all (10 choose 6) = 210 candidate subsets of size 6, verifying that none of them is independent.

    lines 31–36

    set_option maxRecDepth 500000 in
    theorem three_token_odd_cycle_matching_bound_negation_no_indep_6 :
        ¬ ∃ s : Finset {s : Finset (Fin 5) // s.card = 3},
          s.card = 6 ∧ three_token_odd_cycle_matching_bound_negation_G5.IsIndepSet (s : Set _) := by
      decide
    
  5. If the formula held for all k ≥ 2, the independence number of the 3-token graph of C_5 would be 6.

    Specializing the universally quantified hypothesis to k = 2 gives an odd cycle of length 2(2) + 1 = 5. Evaluating the expression ((2 * 2 + 1).choose 3 + 2) / 2 = (10 + 2) / 2 yields 6, so the assumed formula would force the independence number of G_5 to be 6.

    lines 38–47

    theorem three_token_odd_cycle_matching_bound_negation :
        ¬ (∀ k ≥ 2, (token_graph (SimpleGraph.cycleGraph (2 * k + 1)) 3).indepNum = ((2 * k + 1).choose 3 + k) / 2) := by
      intro h
      have h2 := h 2 (by omega)
      have h_val : ((2 * 2 + 1).choose 3 + 2) / 2 = 6 := by rfl
      have h_indep : (token_graph (SimpleGraph.cycleGraph 5) 3).indepNum = 6 := by
        have h_cg : 2 * 2 + 1 = 5 := by rfl
        rw [h_cg] at h2
        rw [h_val] at h2
        exact h2
  6. The universal formula fails by contradiction.

    Since the independence number is achieved by some independent set, an independence number of 6 implies the existence of an independent set of size 6 in G_5. This contradicts the exhaustive computational result that no such 6-element independent set exists.

    lines 48–51

    uses SimpleGraph.exists_isNIndepSet_indepNum, SimpleGraph.isNIndepSet_iff, three_token_odd_cycle_matching_bound_negation_no_indep_6

      obtain ⟨s, hs⟩ := SimpleGraph.exists_isNIndepSet_indepNum (G := three_token_odd_cycle_matching_bound_negation_G5)
      rw [h_indep] at hs
      rw [SimpleGraph.isNIndepSet_iff] at hs
      exact three_token_odd_cycle_matching_bound_negation_no_indep_6 ⟨s, hs.2, hs.1⟩
Finset.mem_coe
An element belongs to the set coercion of a finite set if and only if it belongs to the finite set itself.
decidable_of_iff
Given an equivalence between two propositions P ↔ Q, decidability of P implies decidability of Q.
three_token_odd_cycle_matching_bound_negation_isIndepSet_iff
A finite set of vertices in the 3-token graph of C_5 is an independent set if and only if every pair of distinct vertices in the set is non-adjacent.
SimpleGraph.exists_isNIndepSet_indepNum
In any graph, there exists an independent set whose cardinality equals the independence number of the graph.
SimpleGraph.isNIndepSet_iff
A finite set s is an independent set of size n in a graph G if and only if s is an independent set in G and the cardinality of s is n.
three_token_odd_cycle_matching_bound_negation_no_indep_6
There is no independent set of size 6 in the 3-token graph of C_5.

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

instance three_token_odd_cycle_matching_bound_negation_cycleGraph_decidableRel (n : ℕ) :    DecidableRel (SimpleGraph.cycleGraph n).Adj := by  intro a b  dsimp [SimpleGraph.cycleGraph]  split <;> infer_instanceinstance three_token_odd_cycle_matching_bound_negation_token_graph_decidableRel    {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (k : ℕ) :    DecidableRel (token_graph G k).Adj := by  intro ⟨x, hx⟩ ⟨y, hy⟩  dsimp [token_graph]  infer_instanceabbrev three_token_odd_cycle_matching_bound_negation_G5 :    SimpleGraph {s : Finset (Fin 5) // s.card = 3} :=  token_graph (SimpleGraph.cycleGraph 5) 3lemma three_token_odd_cycle_matching_bound_negation_isIndepSet_iff    (s : Finset {s : Finset (Fin 5) // s.card = 3}) :    three_token_odd_cycle_matching_bound_negation_G5.IsIndepSet (s : Set _) ↔      ∀ x ∈ s, ∀ y ∈ s, x ≠ y → ¬ three_token_odd_cycle_matching_bound_negation_G5.Adj x y := by  dsimp [SimpleGraph.IsIndepSet, Set.Pairwise]  simp only [Finset.mem_coe]instance three_token_odd_cycle_matching_bound_negation_isIndepSet_decidable    (s : Finset {s : Finset (Fin 5) // s.card = 3}) :    Decidable (three_token_odd_cycle_matching_bound_negation_G5.IsIndepSet (s : Set _)) :=  decidable_of_iff (∀ x ∈ s, ∀ y ∈ s, x ≠ y → ¬ three_token_odd_cycle_matching_bound_negation_G5.Adj x y)    (three_token_odd_cycle_matching_bound_negation_isIndepSet_iff s).symmset_option maxRecDepth 500000 intheorem three_token_odd_cycle_matching_bound_negation_no_indep_6 :    ¬ ∃ s : Finset {s : Finset (Fin 5) // s.card = 3},      s.card = 6 ∧ three_token_odd_cycle_matching_bound_negation_G5.IsIndepSet (s : Set _) := by  decide/-- The matching upper bound is not sharp for the 3-token graph of every odd cycle C_{2k+1}. -/theorem three_token_odd_cycle_matching_bound_negation :    ¬ (∀ k ≥ 2, (token_graph (SimpleGraph.cycleGraph (2 * k + 1)) 3).indepNum = ((2 * k + 1).choose 3 + k) / 2) := by  intro h  have h2 := h 2 (by omega)  have h_val : ((2 * 2 + 1).choose 3 + 2) / 2 = 6 := by rfl  have h_indep : (token_graph (SimpleGraph.cycleGraph 5) 3).indepNum = 6 := by    have h_cg : 2 * 2 + 1 = 5 := by rfl    rw [h_cg] at h2    rw [h_val] at h2    exact h2  obtain ⟨s, hs⟩ := SimpleGraph.exists_isNIndepSet_indepNum (G := three_token_odd_cycle_matching_bound_negation_G5)  rw [h_indep] at hs  rw [SimpleGraph.isNIndepSet_iff] at hs  exact three_token_odd_cycle_matching_bound_negation_no_indep_6 ⟨s, hs.2, hs.1⟩
See it in the graphDiscuss this resultChallenge it