AFTD Auto-Formalizing Theoretical Domains

op309_odd_ring_chord_spacing_obstruction

theoremverified

In every odd cyclic ring of the displayed ten-position chord pattern, each chord is given one of two colors. Some two cycle edges at cyclic distance two have equally colored endpoint chords. This gives an infinite combinatorial obstruction to imposing the chord-spacing condition on all prescribed Hamiltonian cycles.

Statement

theorem op309_odd_ring_chord_spacing_obstruction
    (n : ℕ) [NeZero n] (hodd : n % 2 = 1) (b : Fin n → Fin 5 → Bool) :
    ∃ (i : Fin n) (j : Fin 8),
      op309_ring_bad_cycle_edge b i ⟨j.val, by omega⟩ ∧
      op309_ring_bad_cycle_edge b i ⟨j.val+2, by omega⟩
Source
New parity obstruction to the chord-spacing route from https://arxiv.org/abs/2611.24297, supported by experiments 34618, 34620 and 34623.
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The proof establishes that any 2-coloring of an odd cyclic ring of 10-chord Hamiltonian cycle blocks must contain two monochromatic cycle edges at cyclic distance two. By computational exhaustion on all 32 possible 5-chord colorings, any block that avoids internal distance-two monochromatic edges must satisfy boundary chord equalities b i 0 = b i 4 and b i 2 = b i 3. If every block were to avoid both internal distance-two pairs and the inter-block match b i 4 = b (i+1) 0, the first chord color b i 0 would strictly alternate along the odd ring, contradicting the impossibility of 2-coloring an odd cycle. Thus, either an internal spacing constraint fails (yielding distance-two bad cycle edges at some j ∈ {0, ..., 6}) or the boundary condition holds (yielding distance-two bad cycle edges at j = 7 and j+2 = 9).

  1. Any block coloring satisfying the internal chord-spacing conditions must have f 0 = f 4 and f 2 = f 3. automation

    Unfolding op309_ring_block_spacing_ok produces seven negated pairs of equal chord colors. Since there are only 2^5 = 32 possible colorings f : Fin 5 → Bool, the decide tactic exhaustively evaluates all of them and confirms that any satisfying coloring has f 0 = f 4 and f 2 = f 3.

    lines 17–18

    uses op309_ring_block_spacing_ok

      unfold op309_ring_block_spacing_ok
      decide
  2. If an n-cycle admits an adjacent-inequality Boolean coloring, its lift y to ℕ alternates at every step: y(k+1) = ¬y(k).

    Suppose for contradiction that x i ≠ x (i+1) for all i. Lifting x to y : ℕ → Bool by y k = x (k : Fin n), we obtain y k ≠ y (k+1). Since Bool has only two elements, case analysis on y k and y (k+1) shows y (k+1) = !y k.

    lines 22–28

      intro h
      have hn : 0 < n := by omega
      let y (k : ℕ) : Bool := x (k : Fin n)
      have hstep (k : ℕ) : y (k+1) = !y k := by
        have hk := h (k : Fin n)
        have hk' : y k ≠ y (k+1) := by simpa [y] using hk
        cases hy : y k <;> cases hz : y (k+1) <;> simp_all
  3. For all k ∈ ℕ, y k equals y 0 when k is even and ¬y 0 when k is odd.

    We prove this alternating formula by induction on k. The base case k = 0 is immediate. For the induction step from k to k+1, we rewrite using y (k+1) = !y k and the induction hypothesis, then split on whether k is even or odd, using linear arithmetic modulo 2 to establish the parity of k+1.

    lines 29–38

      have halt (k : ℕ) : y k = if k % 2 = 0 then y 0 else !y 0 := by
        induction k with
        | zero => simp
        | succ k ih =>
            rw [hstep, ih]
            by_cases he : k % 2 = 0
            · have hs : (k+1) % 2 = 1 := by omega
              simp [he, hs]
            · have hs : (k+1) % 2 = 0 := by omega
              simp [he, hs]
  4. No odd cycle admits an alternating Boolean coloring.

    By the periodicity of Fin n, y n = x (n : Fin n) = x 0 = y 0. But because n is odd (n % 2 = 1), evaluating the alternation formula at k = n gives y n = !y 0. Combining these yields y 0 = !y 0, an immediate contradiction for both possible Boolean values.

    lines 39–43

      have hperiod : y n = y 0 := by simp [y]
      have hy := halt n
      simp [hodd] at hy
      rw [hperiod] at hy
      cases hzero : y 0 <;> simp [hzero] at hy
  5. In an odd ring of blocks, either some block violates internal spacing, or some block satisfies b i 2 = b i 3 and b i 4 = b (i+1) 0.

    Assume for contradiction that both fail. Then every block satisfies op309_ring_block_spacing_ok, which forces b i 0 = b i 4 and b i 2 = b i 3 by op309_ring_block_spacing_structure. The negated boundary condition then implies b i 4 ≠ b (i+1) 0, so b i 0 ≠ b (i+1) 0 for all i. But this defines an alternating Boolean coloring on an odd cycle, contradicting op309_ring_odd_boolean_alternation.

    lines 49–56

    uses op309_ring_block_spacing_structure, op309_ring_odd_boolean_alternation

      classical
      by_contra h
      push_neg at h
      have he : ∀ i, b i 0 ≠ b (i+1) 0 := by
        intro i hh
        have hs := op309_ring_block_spacing_structure (b i) (h.1 i)
        exact h.2 i hs.2 (hs.1.symm.trans hh)
      exact op309_ring_odd_boolean_alternation n hodd (fun i => b i 0) he
  6. Cycle indices j and j+2 are well-defined for j < 8, and the odd ring splits into an internal violation or a boundary match.

    Linear arithmetic (omega) verifies in the theorem statement that j < 8 implies j < 10 and j + 2 < 10. In the proof body, applying op309_ring_odd_block_obstruction splits the goal into two cases: some block i violates internal block spacing, or some block i satisfies the boundary matching condition.

    lines 67–70

    uses op309_ring_odd_block_obstruction

          op309_ring_bad_cycle_edge b i ⟨j.val, by omega⟩ ∧
          op309_ring_bad_cycle_edge b i ⟨j.val+2, by omega⟩ := by
      classical
      rcases op309_ring_odd_block_obstruction n hodd b with ⟨i,h⟩ | ⟨i,h⟩
  7. An internal spacing violation at block i decomposes into seven disjunctive subcases for j ∈ {0, ..., 6}.

    Unfolding op309_ring_block_spacing_ok and applying De Morgan's laws (not_and_or, not_not) converts the negated conjunction of internal spacing constraints into a seven-way disjunction, one for each position j from 0 to 6.

    lines 71–73

    uses op309_ring_block_spacing_ok, not_and_or, not_not

      · unfold op309_ring_block_spacing_ok at h
        simp only [not_and_or, not_not] at h
        rcases h with h | h | h | h | h | h | h
  8. In each internal subcase j ∈ {0, ..., 6}, block i has bad cycle edges at j and j+2. automation

    For each j from 0 to 6, we supply j as the witness. The tactic simpa unfolds op309_ring_bad_cycle_edge and the ten-chord word op309_ring_chord_word, verifying that the equality of chord colors in the hypothesis matches the definition of bad cycle edges at indices j and j+2.

    lines 74–80

    uses op309_ring_bad_cycle_edge, op309_ring_chord_word

        · refine ⟨i, 0, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
        · refine ⟨i, 1, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
        · refine ⟨i, 2, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
        · refine ⟨i, 3, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
        · refine ⟨i, 4, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
        · refine ⟨i, 5, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
        · refine ⟨i, 6, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
  9. In the boundary case, block i has bad cycle edges at j = 7 and j+2 = 9. automation

    We supply j = 7 as the witness. Edge 7 connects chord 2 to chord 3 within block i, and edge 9 connects chord 4 of block i to chord 0 of block i+1. The hypothesis b i 2 = b i 3 ∧ b i 4 = b (i+1) 0 directly matches these two bad cycle edges via simpa.

    lines 81–82

    uses op309_ring_bad_cycle_edge, op309_ring_chord_word

      · refine ⟨i, 7, ?_⟩
        simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
op309_ring_block_spacing_ok
The condition that within a single block, no two bad edges occur at cyclic distance 2 (violating none of the seven distance-2 constraints).
op309_ring_block_spacing_structure
Any 5-chord coloring satisfying the internal block spacing condition must assign equal colors to chord 0 and chord 4, and equal colors to chord 2 and chord 3.
op309_ring_odd_boolean_alternation
An odd cycle admits no 2-coloring where every pair of cyclically adjacent vertices has distinct colors.
op309_ring_odd_block_obstruction
In an odd cyclic ring of blocks, either some block violates internal spacing, or some block satisfies b i 2 = b i 3 and b i 4 = b (i+1) 0.
not_and_or
The negation of a conjunction ¬(A ∧ B) is equivalent to ¬A ∨ ¬B.
not_not
Double negation elimination: ¬¬A is equivalent to A.
op309_ring_bad_cycle_edge
The condition that a Hamiltonian cycle edge connects two chords of the same color, either internally within a block or crossing to the next block.
op309_ring_chord_word
The cyclic sequence of 10 chord indices [0, 1, 2, 0, 3, 1, 4, 2, 3, 4] traversed within each block along the Hamiltonian cycle.

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 32768set_option maxHeartbeats 6000000open Fin.NatCastdef op309_ring_block_spacing_ok (f : Fin 5 → Bool) : Prop :=  ¬ (f 0 = f 1 ∧ f 2 = f 0) ∧  ¬ (f 1 = f 2 ∧ f 0 = f 3) ∧  ¬ (f 2 = f 0 ∧ f 3 = f 1) ∧  ¬ (f 0 = f 3 ∧ f 1 = f 4) ∧  ¬ (f 3 = f 1 ∧ f 4 = f 2) ∧  ¬ (f 1 = f 4 ∧ f 2 = f 3) ∧  ¬ (f 4 = f 2 ∧ f 3 = f 4)theorem op309_ring_block_spacing_structure : ∀ f : Fin 5 → Bool, op309_ring_block_spacing_ok f →    f 0 = f 4 ∧ f 2 = f 3 := by  unfold op309_ring_block_spacing_ok  decidetheorem op309_ring_odd_boolean_alternation (n : ℕ) [NeZero n] (hodd : n % 2 = 1)    (x : Fin n → Bool) : ¬ (∀ i, x i ≠ x (i+1)) := by  intro h  have hn : 0 < n := by omega  let y (k : ℕ) : Bool := x (k : Fin n)  have hstep (k : ℕ) : y (k+1) = !y k := by    have hk := h (k : Fin n)    have hk' : y k ≠ y (k+1) := by simpa [y] using hk    cases hy : y k <;> cases hz : y (k+1) <;> simp_all  have halt (k : ℕ) : y k = if k % 2 = 0 then y 0 else !y 0 := by    induction k with    | zero => simp    | succ k ih =>        rw [hstep, ih]        by_cases he : k % 2 = 0        · have hs : (k+1) % 2 = 1 := by omega          simp [he, hs]        · have hs : (k+1) % 2 = 0 := by omega          simp [he, hs]  have hperiod : y n = y 0 := by simp [y]  have hy := halt n  simp [hodd] at hy  rw [hperiod] at hy  cases hzero : y 0 <;> simp [hzero] at hytheorem op309_ring_odd_block_obstruction    (n : ℕ) [NeZero n] (hodd : n % 2 = 1) (b : Fin n → Fin 5 → Bool) :    (∃ i, ¬ op309_ring_block_spacing_ok (b i)) ∨    (∃ i, b i 2 = b i 3 ∧ b i 4 = b (i+1) 0) := by  classical  by_contra h  push_neg at h  have he : ∀ i, b i 0 ≠ b (i+1) 0 := by    intro i hh    have hs := op309_ring_block_spacing_structure (b i) (h.1 i)    exact h.2 i hs.2 (hs.1.symm.trans hh)  exact op309_ring_odd_boolean_alternation n hodd (fun i => b i 0) hedef op309_ring_chord_word : Fin 10 → Fin 5 := ![0,1,2,0,3,1,4,2,3,4]def op309_ring_bad_cycle_edge {n : ℕ} [NeZero n] (b : Fin n → Fin 5 → Bool) (i : Fin n) (j : Fin 10) : Prop :=  if j.val = 9 then b i 4 = b (i+1) 0  else b i (op309_ring_chord_word j) = b i (op309_ring_chord_word (j+1))theorem op309_odd_ring_chord_spacing_obstruction    (n : ℕ) [NeZero n] (hodd : n % 2 = 1) (b : Fin n → Fin 5 → Bool) :    ∃ (i : Fin n) (j : Fin 8),      op309_ring_bad_cycle_edge b i ⟨j.val, by omega⟩ ∧      op309_ring_bad_cycle_edge b i ⟨j.val+2, by omega⟩ := by  classical  rcases op309_ring_odd_block_obstruction n hodd b with ⟨i,h⟩ | ⟨i,h⟩  · unfold op309_ring_block_spacing_ok at h    simp only [not_and_or, not_not] at h    rcases h with h | h | h | h | h | h | h    · refine ⟨i, 0, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h    · refine ⟨i, 1, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h    · refine ⟨i, 2, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h    · refine ⟨i, 3, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h    · refine ⟨i, 4, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h    · refine ⟨i, 5, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h    · refine ⟨i, 6, ?_⟩; simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h  · refine ⟨i, 7, ?_⟩    simpa [op309_ring_bad_cycle_edge, op309_ring_chord_word] using h
See it in the graphDiscuss this resultChallenge it