AFTD Auto-Formalizing Theoretical Domains

token_king_sharp_family_eight_unliftable

theoremverified

On the 8-cycle, the candidate sharp family token_king_sharp_family 8 has no nonattacking king lift: ¬ has_nonattacking_king_lift 8 (token_king_sharp_family 8).

Statement

theorem token_king_sharp_family_eight_unliftable :
    ¬ has_nonattacking_king_lift 8 (token_king_sharp_family 8)
Source
arXiv:2611.22830
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • has_nonattacking_king_liftGiven a natural number n with [NeZero n] and a family I : Finset { s : Finset (Fin n) // s.card = 2 }, has_nonattacking_king_lift n I…
  • token_king_sharp_familyFor n : ℕ, token_king_sharp_family n is the finset of elements e in { s : Finset (Fin n) // s.card = 2 } for which there exist u, v : Fin…
  • toroidal_king_graphThe king graph toroidal_king_graph n on the vertex type Fin n × Fin n, where two distinct vertices p and q are adjacent if and only if in…

Read back from the Lean

The theorem asserts that there does not exist a "non-attacking king lift" for the family of 2-element subsets token_king_sharp_family 8 in the 8×8 toroidal king graph. Specifically, it asserts the negation of the following existence statement: There exists a function $r$ from 2-element subsets of Fin 8 to Fin 8 such that: 1. For every 2-element subset $e$ in token_king_sharp_family 8, $r(e) \in e$. 2. For any two distinct 2-element subsets $e_1, e_2 \in \text{token\_king\_sharp\_family } 8$, the pairs $(r(e_1), \sum_{x \in e_1} x)$ and $(r(e_2), \sum_{x \in e_2} x)$ (with the second coordinate summed in Fin 8, i.e., modulo 8) are not adjacent in the toroidal king graph of size 8. Here: - token_king_sharp_family 8 is the collection of 2-element subsets $\{u, v\} \subset \text{Fin 8}$ whose cyclic distance $\min((u - v)\bmod 8, (v - u)\bmod 8)$ is either 4 (antipodal pairs) or 1 (adjacent pairs on the cycle). - The toroidal king graph on $\text{Fin } 8 \times \text{Fin } 8$ connects two distinct vertices $(x_1, y_1)$ and $(x_2, y_2)$ if their first coordinates are equal or adjacent in the 8-cycle graph $C_8$, and their second coordinates are equal or adjacent in $C_8$ (i.e., a chess king's move on an 8×8 torus).

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 proof proceeds by contradiction, showing that the candidate sharp family of edges on the 8-cycle cannot be lifted to pairwise non-attacking kings on the 8×8 torus. It considers the 8 cycle edges {i, i+1} and the 4 antipodal pairs {i, i+4}, all of which belong to the sharp family. Any valid lift must select one endpoint from each edge while placing the token at the sum of the endpoints modulo 8. By analyzing the king-graph adjacency between cycle edges and antipodal pairs whose token coordinates differ by at most 1, the proof derives 8 disjunctive constraints on the antipodal choices, and an exhaustive evaluation of all 16 possible antipodal assignments reveals that every assignment leads to a contradiction.

  1. The 8 cycle edges {i, i+1} and the 4 antipodal pairs {i, i+4} belong to token_king_sharp_family 8.

    Each pair of adjacent vertices {i, i+1} has cyclic distance 1 in the 8-cycle, which satisfies the sharp family condition since 1 ≤ 8/2 - 3 = 1 and 1 is odd. Each antipodal pair {i, i+4} has cyclic distance 4 = 8/2. Thus all 12 pairs satisfy the definition of token_king_sharp_family 8.

    lines 5–40

    uses Finset.mem_filter, Finset.mem_univ, true_and, Or.inl, Or.inr

      have mA0 : (⟨{0,1}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨0, 1, rfl, Or.inr ⟨by decide, by decide⟩⟩
      have mA1 : (⟨{1,2}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨1, 2, rfl, Or.inr ⟨by decide, by decide⟩⟩
      have mA2 : (⟨{2,3}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨2, 3, rfl, Or.inr ⟨by decide, by decide⟩⟩
      have mA3 : (⟨{3,4}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨3, 4, rfl, Or.inr ⟨by decide, by decide⟩⟩
      have mA4 : (⟨{4,5}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨4, 5, rfl, Or.inr ⟨by decide, by decide⟩⟩
      have mA5 : (⟨{5,6}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨5, 6, rfl, Or.inr ⟨by decide, by decide⟩⟩
      have mA6 : (⟨{6,7}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨6, 7, rfl, Or.inr ⟨by decide, by decide⟩⟩
      have mA7 : (⟨{7,0}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨7, 0, rfl, Or.inr ⟨by decide, by decide⟩⟩
      have mB0 : (⟨{0,4}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨0, 4, rfl, Or.inl (by decide)⟩
      have mB1 : (⟨{1,5}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨1, 5, rfl, Or.inl (by decide)⟩
      have mB2 : (⟨{2,6}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨2, 6, rfl, Or.inl (by decide)⟩
      have mB3 : (⟨{3,7}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by
        simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]
        exact ⟨3, 7, rfl, Or.inl (by decide)⟩
  2. For each of the 12 edges, the lift selection r must choose one of its two endpoints.

    The hypothesis hmem requires r(e) ∈ e for all e in token_king_sharp_family 8. Applying this to each of the 8 cycle edges and 4 antipodal pairs forces each r(e) to be the first or second vertex of that edge.

    lines 41–52

      have vA0 : r ⟨{0,1}, by decide⟩ = 0 ∨ r ⟨{0,1}, by decide⟩ = 1 := by have h := hmem _ mA0; simpa using h
      have vA1 : r ⟨{1,2}, by decide⟩ = 1 ∨ r ⟨{1,2}, by decide⟩ = 2 := by have h := hmem _ mA1; simpa using h
      have vA2 : r ⟨{2,3}, by decide⟩ = 2 ∨ r ⟨{2,3}, by decide⟩ = 3 := by have h := hmem _ mA2; simpa using h
      have vA3 : r ⟨{3,4}, by decide⟩ = 3 ∨ r ⟨{3,4}, by decide⟩ = 4 := by have h := hmem _ mA3; simpa using h
      have vA4 : r ⟨{4,5}, by decide⟩ = 4 ∨ r ⟨{4,5}, by decide⟩ = 5 := by have h := hmem _ mA4; simpa using h
      have vA5 : r ⟨{5,6}, by decide⟩ = 5 ∨ r ⟨{5,6}, by decide⟩ = 6 := by have h := hmem _ mA5; simpa using h
      have vA6 : r ⟨{6,7}, by decide⟩ = 6 ∨ r ⟨{6,7}, by decide⟩ = 7 := by have h := hmem _ mA6; simpa using h
      have vA7 : r ⟨{7,0}, by decide⟩ = 7 ∨ r ⟨{7,0}, by decide⟩ = 0 := by have h := hmem _ mA7; simpa using h
      have vB0 : r ⟨{0,4}, by decide⟩ = 0 ∨ r ⟨{0,4}, by decide⟩ = 4 := by have h := hmem _ mB0; simpa using h
      have vB1 : r ⟨{1,5}, by decide⟩ = 1 ∨ r ⟨{1,5}, by decide⟩ = 5 := by have h := hmem _ mB1; simpa using h
      have vB2 : r ⟨{2,6}, by decide⟩ = 2 ∨ r ⟨{2,6}, by decide⟩ = 6 := by have h := hmem _ mB2; simpa using h
      have vB3 : r ⟨{3,7}, by decide⟩ = 3 ∨ r ⟨{3,7}, by decide⟩ = 7 := by have h := hmem _ mB3; simpa using h
  3. The second coordinate (token sum) in Fin 8 is computed for each of the 12 edges.

    Direct computation of the sum of the elements modulo 8 gives the second coordinate for each lifted king position: {0,1} sums to 1, {1,2} to 3, {2,3} to 5, {3,4} to 7, {4,5} to 1, {5,6} to 3, {6,7} to 5, {7,0} to 7, while the antipodal pairs {0,4}, {1,5}, {2,6}, and {3,7} sum to 4, 6, 0, and 2 respectively.

    lines 53–64

      have tA0 : (⟨{0,1}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (1 : Fin 8) := by decide
      have tA1 : (⟨{1,2}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (3 : Fin 8) := by decide
      have tA2 : (⟨{2,3}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (5 : Fin 8) := by decide
      have tA3 : (⟨{3,4}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (7 : Fin 8) := by decide
      have tA4 : (⟨{4,5}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (1 : Fin 8) := by decide
      have tA5 : (⟨{5,6}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (3 : Fin 8) := by decide
      have tA6 : (⟨{6,7}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (5 : Fin 8) := by decide
      have tA7 : (⟨{7,0}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (7 : Fin 8) := by decide
      have tB0 : (⟨{0,4}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (4 : Fin 8) := by decide
      have tB1 : (⟨{1,5}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (6 : Fin 8) := by decide
      have tB2 : (⟨{2,6}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (0 : Fin 8) := by decide
      have tB3 : (⟨{3,7}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (2 : Fin 8) := by decide
  4. The lifted positions for 16 specific pairs of an adjacent edge and an antipodal edge must be non-adjacent in toroidal_king_graph 8.

    The hypothesis hadj requires distinct edges in token_king_sharp_family 8 to have non-adjacent lifted positions (r(e), e.val.sum id). The 16 specified pairs (such as {0,1} with {2,6} and {3,7}) are distinct edges whose token sums differ by at most 1 modulo 8, so their lifted king positions cannot be adjacent.

    lines 65–96

      have j02 : ¬ (toroidal_king_graph 8).Adj (r ⟨{0,1}, by decide⟩, (1 : Fin 8)) (r ⟨{2,6}, by decide⟩, (0 : Fin 8)) := by
        have h := hadj _ mA0 _ mB2 (by decide); simpa [tA0, tB2] using h
      have j03 : ¬ (toroidal_king_graph 8).Adj (r ⟨{0,1}, by decide⟩, (1 : Fin 8)) (r ⟨{3,7}, by decide⟩, (2 : Fin 8)) := by
        have h := hadj _ mA0 _ mB3 (by decide); simpa [tA0, tB3] using h
      have j10 : ¬ (toroidal_king_graph 8).Adj (r ⟨{1,2}, by decide⟩, (3 : Fin 8)) (r ⟨{0,4}, by decide⟩, (4 : Fin 8)) := by
        have h := hadj _ mA1 _ mB0 (by decide); simpa [tA1, tB0] using h
      have j13 : ¬ (toroidal_king_graph 8).Adj (r ⟨{1,2}, by decide⟩, (3 : Fin 8)) (r ⟨{3,7}, by decide⟩, (2 : Fin 8)) := by
        have h := hadj _ mA1 _ mB3 (by decide); simpa [tA1, tB3] using h
      have j20 : ¬ (toroidal_king_graph 8).Adj (r ⟨{2,3}, by decide⟩, (5 : Fin 8)) (r ⟨{0,4}, by decide⟩, (4 : Fin 8)) := by
        have h := hadj _ mA2 _ mB0 (by decide); simpa [tA2, tB0] using h
      have j21 : ¬ (toroidal_king_graph 8).Adj (r ⟨{2,3}, by decide⟩, (5 : Fin 8)) (r ⟨{1,5}, by decide⟩, (6 : Fin 8)) := by
        have h := hadj _ mA2 _ mB1 (by decide); simpa [tA2, tB1] using h
      have j31 : ¬ (toroidal_king_graph 8).Adj (r ⟨{3,4}, by decide⟩, (7 : Fin 8)) (r ⟨{1,5}, by decide⟩, (6 : Fin 8)) := by
        have h := hadj _ mA3 _ mB1 (by decide); simpa [tA3, tB1] using h
      have j32 : ¬ (toroidal_king_graph 8).Adj (r ⟨{3,4}, by decide⟩, (7 : Fin 8)) (r ⟨{2,6}, by decide⟩, (0 : Fin 8)) := by
        have h := hadj _ mA3 _ mB2 (by decide); simpa [tA3, tB2] using h
      have j42 : ¬ (toroidal_king_graph 8).Adj (r ⟨{4,5}, by decide⟩, (1 : Fin 8)) (r ⟨{2,6}, by decide⟩, (0 : Fin 8)) := by
        have h := hadj _ mA4 _ mB2 (by decide); simpa [tA4, tB2] using h
      have j43 : ¬ (toroidal_king_graph 8).Adj (r ⟨{4,5}, by decide⟩, (1 : Fin 8)) (r ⟨{3,7}, by decide⟩, (2 : Fin 8)) := by
        have h := hadj _ mA4 _ mB3 (by decide); simpa [tA4, tB3] using h
      have j50 : ¬ (toroidal_king_graph 8).Adj (r ⟨{5,6}, by decide⟩, (3 : Fin 8)) (r ⟨{0,4}, by decide⟩, (4 : Fin 8)) := by
        have h := hadj _ mA5 _ mB0 (by decide); simpa [tA5, tB0] using h
      have j53 : ¬ (toroidal_king_graph 8).Adj (r ⟨{5,6}, by decide⟩, (3 : Fin 8)) (r ⟨{3,7}, by decide⟩, (2 : Fin 8)) := by
        have h := hadj _ mA5 _ mB3 (by decide); simpa [tA5, tB3] using h
      have j60 : ¬ (toroidal_king_graph 8).Adj (r ⟨{6,7}, by decide⟩, (5 : Fin 8)) (r ⟨{0,4}, by decide⟩, (4 : Fin 8)) := by
        have h := hadj _ mA6 _ mB0 (by decide); simpa [tA6, tB0] using h
      have j61 : ¬ (toroidal_king_graph 8).Adj (r ⟨{6,7}, by decide⟩, (5 : Fin 8)) (r ⟨{1,5}, by decide⟩, (6 : Fin 8)) := by
        have h := hadj _ mA6 _ mB1 (by decide); simpa [tA6, tB1] using h
      have j71 : ¬ (toroidal_king_graph 8).Adj (r ⟨{7,0}, by decide⟩, (7 : Fin 8)) (r ⟨{1,5}, by decide⟩, (6 : Fin 8)) := by
        have h := hadj _ mA7 _ mB1 (by decide); simpa [tA7, tB1] using h
      have j72 : ¬ (toroidal_king_graph 8).Adj (r ⟨{7,0}, by decide⟩, (7 : Fin 8)) (r ⟨{2,6}, by decide⟩, (0 : Fin 8)) := by
        have h := hadj _ mA7 _ mB2 (by decide); simpa [tA7, tB2] using h
  5. Eight disjunctive constraints (D0 through D7) on the endpoints chosen for the antipodal pairs are derived.

    For each adjacent edge A_i, its token coordinate is adjacent to the token coordinates of two antipodal edges. For each of the 8 combinations of endpoint choices for these three edges, if both antipodal edges choose the conflicting endpoints, neither choice for A_i avoids king-graph adjacency, contradicting hadj. Ruling out these conflicting choices produces 8 disjunctions D0–D7, each constraining two antipodal choices.

    lines 97–152

    uses SimpleGraph.cycleGraph

      have D0 : r ⟨{2,6}, by decide⟩ = 6 ∨ r ⟨{3,7}, by decide⟩ = 3 := by
        rcases vA0 with hx | hx <;> rcases vB2 with h1 | h1 <;> rcases vB3 with h2 | h2 <;>
          simp only [hx, h1, h2] at j02 j03 ⊢ <;>
          first
            | decide
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j02
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j03
      have D1 : r ⟨{0,4}, by decide⟩ = 4 ∨ r ⟨{3,7}, by decide⟩ = 7 := by
        rcases vA1 with hx | hx <;> rcases vB0 with h1 | h1 <;> rcases vB3 with h2 | h2 <;>
          simp only [hx, h1, h2] at j10 j13 ⊢ <;>
          first
            | decide
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j10
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j13
      have D2 : r ⟨{0,4}, by decide⟩ = 0 ∨ r ⟨{1,5}, by decide⟩ = 5 := by
        rcases vA2 with hx | hx <;> rcases vB0 with h1 | h1 <;> rcases vB1 with h2 | h2 <;>
          simp only [hx, h1, h2] at j20 j21 ⊢ <;>
          first
            | decide
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j20
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j21
      have D3 : r ⟨{1,5}, by decide⟩ = 1 ∨ r ⟨{2,6}, by decide⟩ = 6 := by
        rcases vA3 with hx | hx <;> rcases vB1 with h1 | h1 <;> rcases vB2 with h2 | h2 <;>
          simp only [hx, h1, h2] at j31 j32 ⊢ <;>
          first
            | decide
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j31
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j32
      have D4 : r ⟨{2,6}, by decide⟩ = 2 ∨ r ⟨{3,7}, by decide⟩ = 7 := by
        rcases vA4 with hx | hx <;> rcases vB2 with h1 | h1 <;> rcases vB3 with h2 | h2 <;>
          simp only [hx, h1, h2] at j42 j43 ⊢ <;>
          first
            | decide
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j42
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j43
      have D5 : r ⟨{0,4}, by decide⟩ = 0 ∨ r ⟨{3,7}, by decide⟩ = 3 := by
        rcases vA5 with hx | hx <;> rcases vB0 with h1 | h1 <;> rcases vB3 with h2 | h2 <;>
          simp only [hx, h1, h2] at j50 j53 ⊢ <;>
          first
            | decide
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j50
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j53
      have D6 : r ⟨{0,4}, by decide⟩ = 4 ∨ r ⟨{1,5}, by decide⟩ = 1 := by
        rcases vA6 with hx | hx <;> rcases vB0 with h1 | h1 <;> rcases vB1 with h2 | h2 <;>
          simp only [hx, h1, h2] at j60 j61 ⊢ <;>
          first
            | decide
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j60
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j61
      have D7 : r ⟨{1,5}, by decide⟩ = 5 ∨ r ⟨{2,6}, by decide⟩ = 2 := by
        rcases vA7 with hx | hx <;> rcases vB1 with h1 | h1 <;> rcases vB2 with h2 | h2 <;>
          simp only [hx, h1, h2] at j71 j72 ⊢ <;>
          first
            | decide
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j71
            | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j72
  6. Every combination of endpoint choices for the 4 antipodal pairs contradicts at least one constraint, proving False. automation

    Exhaustive case analysis over all 2^4 = 16 possible assignments of endpoints to the 4 antipodal edges shows that every assignment violates at least one of the disjunctions D0 through D7, closing the contradiction.

    lines 153–154

      rcases vB0 with h0 | h0 <;> rcases vB1 with h1 | h1 <;> rcases vB2 with h2 | h2 <;> rcases vB3 with h3 | h3 <;>
        simp only [h0, h1, h2, h3] at D0 D1 D2 D3 D4 D5 D6 D7 <;> simp_all
  7. The candidate sharp family token_king_sharp_family 8 has no nonattacking king lift.

    Assuming for contradiction that a nonattacking king lift exists, unfolding has_nonattacking_king_lift yields a choice function r satisfying hmem and hadj. Applying the lemma tkse_key to r immediately yields False.

    lines 159–162

    uses tkse_key

      intro h
      unfold has_nonattacking_king_lift at h
      obtain ⟨r, hmem, hadj⟩ := h
      exact tkse_key r hmem hadj
Finset.mem_filter
An element belongs to a filtered finset if and only if it belongs to the base set and satisfies the predicate.
Finset.mem_univ
Every element of a finite type belongs to the universal finset Finset.univ.
true_and
The conjunction of True with any proposition p is logically equivalent to p.
Or.inl
Infers the disjunction a ∨ b from a proof of the left disjunct a.
Or.inr
Infers the disjunction a ∨ b from a proof of the right disjunct b.
SimpleGraph.cycleGraph
The simple graph structure representing an n-cycle graph.
tkse_key
For any vertex-selection function r on 2-element subsets of Fin 8 choosing an endpoint of each edge in token_king_sharp_family 8, not all lifted king positions can be pairwise non-adjacent in toroidal_king_graph 8.

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

Lean’s trace was cut to the first 400 of 655 tactics.

private lemma tkse_key (r : {s : Finset (Fin 8) // s.card = 2} → Fin 8)    (hmem : ∀ e ∈ token_king_sharp_family 8, r e ∈ e.val)    (hadj : ∀ e₁ ∈ token_king_sharp_family 8, ∀ e₂ ∈ token_king_sharp_family 8, e₁ ≠ e₂ →      ¬ (toroidal_king_graph 8).Adj (r e₁, e₁.val.sum id) (r e₂, e₂.val.sum id)) : False := by  have mA0 : (⟨{0,1}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨0, 1, rfl, Or.inr ⟨by decide, by decide⟩⟩  have mA1 : (⟨{1,2}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨1, 2, rfl, Or.inr ⟨by decide, by decide⟩⟩  have mA2 : (⟨{2,3}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨2, 3, rfl, Or.inr ⟨by decide, by decide⟩⟩  have mA3 : (⟨{3,4}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨3, 4, rfl, Or.inr ⟨by decide, by decide⟩⟩  have mA4 : (⟨{4,5}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨4, 5, rfl, Or.inr ⟨by decide, by decide⟩⟩  have mA5 : (⟨{5,6}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨5, 6, rfl, Or.inr ⟨by decide, by decide⟩⟩  have mA6 : (⟨{6,7}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨6, 7, rfl, Or.inr ⟨by decide, by decide⟩⟩  have mA7 : (⟨{7,0}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨7, 0, rfl, Or.inr ⟨by decide, by decide⟩⟩  have mB0 : (⟨{0,4}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨0, 4, rfl, Or.inl (by decide)⟩  have mB1 : (⟨{1,5}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨1, 5, rfl, Or.inl (by decide)⟩  have mB2 : (⟨{2,6}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨2, 6, rfl, Or.inl (by decide)⟩  have mB3 : (⟨{3,7}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}) ∈ token_king_sharp_family 8 := by    simp only [token_king_sharp_family, Finset.mem_filter, Finset.mem_univ, true_and]    exact ⟨3, 7, rfl, Or.inl (by decide)⟩  have vA0 : r ⟨{0,1}, by decide⟩ = 0 ∨ r ⟨{0,1}, by decide⟩ = 1 := by have h := hmem _ mA0; simpa using h  have vA1 : r ⟨{1,2}, by decide⟩ = 1 ∨ r ⟨{1,2}, by decide⟩ = 2 := by have h := hmem _ mA1; simpa using h  have vA2 : r ⟨{2,3}, by decide⟩ = 2 ∨ r ⟨{2,3}, by decide⟩ = 3 := by have h := hmem _ mA2; simpa using h  have vA3 : r ⟨{3,4}, by decide⟩ = 3 ∨ r ⟨{3,4}, by decide⟩ = 4 := by have h := hmem _ mA3; simpa using h  have vA4 : r ⟨{4,5}, by decide⟩ = 4 ∨ r ⟨{4,5}, by decide⟩ = 5 := by have h := hmem _ mA4; simpa using h  have vA5 : r ⟨{5,6}, by decide⟩ = 5 ∨ r ⟨{5,6}, by decide⟩ = 6 := by have h := hmem _ mA5; simpa using h  have vA6 : r ⟨{6,7}, by decide⟩ = 6 ∨ r ⟨{6,7}, by decide⟩ = 7 := by have h := hmem _ mA6; simpa using h  have vA7 : r ⟨{7,0}, by decide⟩ = 7 ∨ r ⟨{7,0}, by decide⟩ = 0 := by have h := hmem _ mA7; simpa using h  have vB0 : r ⟨{0,4}, by decide⟩ = 0 ∨ r ⟨{0,4}, by decide⟩ = 4 := by have h := hmem _ mB0; simpa using h  have vB1 : r ⟨{1,5}, by decide⟩ = 1 ∨ r ⟨{1,5}, by decide⟩ = 5 := by have h := hmem _ mB1; simpa using h  have vB2 : r ⟨{2,6}, by decide⟩ = 2 ∨ r ⟨{2,6}, by decide⟩ = 6 := by have h := hmem _ mB2; simpa using h  have vB3 : r ⟨{3,7}, by decide⟩ = 3 ∨ r ⟨{3,7}, by decide⟩ = 7 := by have h := hmem _ mB3; simpa using h  have tA0 : (⟨{0,1}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (1 : Fin 8) := by decide  have tA1 : (⟨{1,2}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (3 : Fin 8) := by decide  have tA2 : (⟨{2,3}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (5 : Fin 8) := by decide  have tA3 : (⟨{3,4}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (7 : Fin 8) := by decide  have tA4 : (⟨{4,5}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (1 : Fin 8) := by decide  have tA5 : (⟨{5,6}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (3 : Fin 8) := by decide  have tA6 : (⟨{6,7}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (5 : Fin 8) := by decide  have tA7 : (⟨{7,0}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (7 : Fin 8) := by decide  have tB0 : (⟨{0,4}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (4 : Fin 8) := by decide  have tB1 : (⟨{1,5}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (6 : Fin 8) := by decide  have tB2 : (⟨{2,6}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (0 : Fin 8) := by decide  have tB3 : (⟨{3,7}, by decide⟩ : {s : Finset (Fin 8) // s.card = 2}).val.sum id = (2 : Fin 8) := by decide  have j02 : ¬ (toroidal_king_graph 8).Adj (r ⟨{0,1}, by decide⟩, (1 : Fin 8)) (r ⟨{2,6}, by decide⟩, (0 : Fin 8)) := by    have h := hadj _ mA0 _ mB2 (by decide); simpa [tA0, tB2] using h  have j03 : ¬ (toroidal_king_graph 8).Adj (r ⟨{0,1}, by decide⟩, (1 : Fin 8)) (r ⟨{3,7}, by decide⟩, (2 : Fin 8)) := by    have h := hadj _ mA0 _ mB3 (by decide); simpa [tA0, tB3] using h  have j10 : ¬ (toroidal_king_graph 8).Adj (r ⟨{1,2}, by decide⟩, (3 : Fin 8)) (r ⟨{0,4}, by decide⟩, (4 : Fin 8)) := by    have h := hadj _ mA1 _ mB0 (by decide); simpa [tA1, tB0] using h  have j13 : ¬ (toroidal_king_graph 8).Adj (r ⟨{1,2}, by decide⟩, (3 : Fin 8)) (r ⟨{3,7}, by decide⟩, (2 : Fin 8)) := by    have h := hadj _ mA1 _ mB3 (by decide); simpa [tA1, tB3] using h  have j20 : ¬ (toroidal_king_graph 8).Adj (r ⟨{2,3}, by decide⟩, (5 : Fin 8)) (r ⟨{0,4}, by decide⟩, (4 : Fin 8)) := by    have h := hadj _ mA2 _ mB0 (by decide); simpa [tA2, tB0] using h  have j21 : ¬ (toroidal_king_graph 8).Adj (r ⟨{2,3}, by decide⟩, (5 : Fin 8)) (r ⟨{1,5}, by decide⟩, (6 : Fin 8)) := by    have h := hadj _ mA2 _ mB1 (by decide); simpa [tA2, tB1] using h  have j31 : ¬ (toroidal_king_graph 8).Adj (r ⟨{3,4}, by decide⟩, (7 : Fin 8)) (r ⟨{1,5}, by decide⟩, (6 : Fin 8)) := by    have h := hadj _ mA3 _ mB1 (by decide); simpa [tA3, tB1] using h  have j32 : ¬ (toroidal_king_graph 8).Adj (r ⟨{3,4}, by decide⟩, (7 : Fin 8)) (r ⟨{2,6}, by decide⟩, (0 : Fin 8)) := by    have h := hadj _ mA3 _ mB2 (by decide); simpa [tA3, tB2] using h  have j42 : ¬ (toroidal_king_graph 8).Adj (r ⟨{4,5}, by decide⟩, (1 : Fin 8)) (r ⟨{2,6}, by decide⟩, (0 : Fin 8)) := by    have h := hadj _ mA4 _ mB2 (by decide); simpa [tA4, tB2] using h  have j43 : ¬ (toroidal_king_graph 8).Adj (r ⟨{4,5}, by decide⟩, (1 : Fin 8)) (r ⟨{3,7}, by decide⟩, (2 : Fin 8)) := by    have h := hadj _ mA4 _ mB3 (by decide); simpa [tA4, tB3] using h  have j50 : ¬ (toroidal_king_graph 8).Adj (r ⟨{5,6}, by decide⟩, (3 : Fin 8)) (r ⟨{0,4}, by decide⟩, (4 : Fin 8)) := by    have h := hadj _ mA5 _ mB0 (by decide); simpa [tA5, tB0] using h  have j53 : ¬ (toroidal_king_graph 8).Adj (r ⟨{5,6}, by decide⟩, (3 : Fin 8)) (r ⟨{3,7}, by decide⟩, (2 : Fin 8)) := by    have h := hadj _ mA5 _ mB3 (by decide); simpa [tA5, tB3] using h  have j60 : ¬ (toroidal_king_graph 8).Adj (r ⟨{6,7}, by decide⟩, (5 : Fin 8)) (r ⟨{0,4}, by decide⟩, (4 : Fin 8)) := by    have h := hadj _ mA6 _ mB0 (by decide); simpa [tA6, tB0] using h  have j61 : ¬ (toroidal_king_graph 8).Adj (r ⟨{6,7}, by decide⟩, (5 : Fin 8)) (r ⟨{1,5}, by decide⟩, (6 : Fin 8)) := by    have h := hadj _ mA6 _ mB1 (by decide); simpa [tA6, tB1] using h  have j71 : ¬ (toroidal_king_graph 8).Adj (r ⟨{7,0}, by decide⟩, (7 : Fin 8)) (r ⟨{1,5}, by decide⟩, (6 : Fin 8)) := by    have h := hadj _ mA7 _ mB1 (by decide); simpa [tA7, tB1] using h  have j72 : ¬ (toroidal_king_graph 8).Adj (r ⟨{7,0}, by decide⟩, (7 : Fin 8)) (r ⟨{2,6}, by decide⟩, (0 : Fin 8)) := by    have h := hadj _ mA7 _ mB2 (by decide); simpa [tA7, tB2] using h  have D0 : r ⟨{2,6}, by decide⟩ = 6 ∨ r ⟨{3,7}, by decide⟩ = 3 := by    rcases vA0 with hx | hx <;> rcases vB2 with h1 | h1 <;> rcases vB3 with h2 | h2 <;>      simp only [hx, h1, h2] at j02 j03 ⊢ <;>      first        | decide        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j02        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j03  have D1 : r ⟨{0,4}, by decide⟩ = 4 ∨ r ⟨{3,7}, by decide⟩ = 7 := by    rcases vA1 with hx | hx <;> rcases vB0 with h1 | h1 <;> rcases vB3 with h2 | h2 <;>      simp only [hx, h1, h2] at j10 j13 ⊢ <;>      first        | decide        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j10        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j13  have D2 : r ⟨{0,4}, by decide⟩ = 0 ∨ r ⟨{1,5}, by decide⟩ = 5 := by    rcases vA2 with hx | hx <;> rcases vB0 with h1 | h1 <;> rcases vB1 with h2 | h2 <;>      simp only [hx, h1, h2] at j20 j21 ⊢ <;>      first        | decide        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j20        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j21  have D3 : r ⟨{1,5}, by decide⟩ = 1 ∨ r ⟨{2,6}, by decide⟩ = 6 := by    rcases vA3 with hx | hx <;> rcases vB1 with h1 | h1 <;> rcases vB2 with h2 | h2 <;>      simp only [hx, h1, h2] at j31 j32 ⊢ <;>      first        | decide        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j31        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j32  have D4 : r ⟨{2,6}, by decide⟩ = 2 ∨ r ⟨{3,7}, by decide⟩ = 7 := by    rcases vA4 with hx | hx <;> rcases vB2 with h1 | h1 <;> rcases vB3 with h2 | h2 <;>      simp only [hx, h1, h2] at j42 j43 ⊢ <;>      first        | decide        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j42        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j43  have D5 : r ⟨{0,4}, by decide⟩ = 0 ∨ r ⟨{3,7}, by decide⟩ = 3 := by    rcases vA5 with hx | hx <;> rcases vB0 with h1 | h1 <;> rcases vB3 with h2 | h2 <;>      simp only [hx, h1, h2] at j50 j53 ⊢ <;>      first        | decide        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j50        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j53  have D6 : r ⟨{0,4}, by decide⟩ = 4 ∨ r ⟨{1,5}, by decide⟩ = 1 := by    rcases vA6 with hx | hx <;> rcases vB0 with h1 | h1 <;> rcases vB1 with h2 | h2 <;>      simp only [hx, h1, h2] at j60 j61 ⊢ <;>      first        | decide        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j60        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j61  have D7 : r ⟨{1,5}, by decide⟩ = 5 ∨ r ⟨{2,6}, by decide⟩ = 2 := by    rcases vA7 with hx | hx <;> rcases vB1 with h1 | h1 <;> rcases vB2 with h2 | h2 <;>      simp only [hx, h1, h2] at j71 j72 ⊢ <;>      first        | decide        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j71        | exact absurd (by simp only [toroidal_king_graph, SimpleGraph.cycleGraph]; decide) j72  rcases vB0 with h0 | h0 <;> rcases vB1 with h1 | h1 <;> rcases vB2 with h2 | h2 <;> rcases vB3 with h3 | h3 <;>    simp only [h0, h1, h2, h3] at D0 D1 D2 D3 D4 D5 D6 D7 <;> simp_all/-- On the 8-cycle, the candidate sharpness family is unliftable to nonattacking kings. -/theorem token_king_sharp_family_eight_unliftable :    ¬ has_nonattacking_king_lift 8 (token_king_sharp_family 8) := by  intro h  unfold has_nonattacking_king_lift at h  obtain ⟨r, hmem, hadj⟩ := h  exact tkse_key r hmem hadj
See it in the graphDiscuss this resultChallenge it