AFTD Auto-Formalizing Theoretical Domains

op309_girth7_source_forest_palette_kernel

theoremverified

The ten-class conflict graph extracted from the girth-seven source-forest quotient is not five-colorable.

Statement

theorem op309_girth7_source_forest_palette_kernel (c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 : Fin 5)
    (h0_1 : c0 ≠ c1)
    (h0_3 : c0 ≠ c3)
    (h0_5 : c0 ≠ c5)
    (h0_8 : c0 ≠ c8)
    (h0_9 : c0 ≠ c9)
    (h1_2 : c1 ≠ c2)
    (h1_3 : c1 ≠ c3)
    (h1_4 : c1 ≠ c4)
    (h1_5 : c1 ≠ c5)
    (h1_6 : c1 ≠ c6)
    (h1_7 : c1 ≠ c7)
    (h1_8 : c1 ≠ c8)
    (h1_9 : c1 ≠ c9)
    (h2_4 : c2 ≠ c4)
    (h2_5 : c2 ≠ c5)
    (h2_6 : c2 ≠ c6)
    (h2_7 : c2 ≠ c7)
    (h3_5 : c3 ≠ c5)
    (h3_8 : c3 ≠ c8)
    (h3_9 : c3 ≠ c9)
    (h4_5 : c4 ≠ c5)
    (h4_6 : c4 ≠ c6)
    (h4_7 : c4 ≠ c7)
    (h5_6 : c5 ≠ c6)
    (h5_9 : c5 ≠ c9)
    (h6_7 : c6 ≠ c7)
    (h7_8 : c7 ≠ c8)
    (h8_9 : c8 ≠ c9) : False
Source
OP-309 girth-seven source-forest quotient; experiment 42311.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem proves by contradiction that the given 10-vertex conflict graph cannot be 5-colored. It first establishes that colors $c_5$ and $c_8$ must coincide, for otherwise the six vertices $\{c_0, c_1, c_3, c_5, c_8, c_9\}$ would form an induced 6-clique, violating the pigeonhole principle in a 5-element color set. Using $c_5 = c_8$ along with the edge between $c_7$ and $c_8$ yields $c_5 \neq c_7$. Finally, this inequality together with the remaining conflict edges reveals a second 6-clique on $\{c_1, c_2, c_4, c_5, c_6, c_7\}$, which again contradicts 5-colorability by the pigeonhole principle.

  1. $c_5 = c_8$

    Suppose for contradiction that $c_5 \neq c_8$ (`by_contra`). Under this assumption, the six colors $c_0, c_1, c_3, c_8, c_9, c_5$ are mutually distinct: all 15 pairwise inequalities follow from the given conflict edges together with $c_8 \neq c_5$ (by symmetry from $c_5 \neq c_8$ via `Ne.symm`) and $c_9 \neq c_5$ (from $c_5 \neq c_9$ via `Ne.symm`). The `simp` tactic uses these 15 inequalities to verify that the list $[c_0, c_1, c_3, c_8, c_9, c_5]$ has no duplicates (`List.Nodup`). By the pigeonhole principle (`List.Nodup.length_le_card`), the length of this list (6) cannot exceed the cardinality of $\text{Fin } 5$ (5). The `norm_num` tactic reduces this contradiction ($6 \le 5$) to `False`, discharging the assumption and concluding that $c_5 = c_8$.

    lines 30–50

    uses Ne.symm, List.Nodup.length_le_card

      have h58 : c5 = c8 := by
        by_contra h58ne
        have hn : [c0, c1, c3, c8, c9, c5].Nodup := by
          have k0_1 : c0 ≠ c1 := h0_1
          have k0_3 : c0 ≠ c3 := h0_3
          have k0_8 : c0 ≠ c8 := h0_8
          have k0_9 : c0 ≠ c9 := h0_9
          have k0_5 : c0 ≠ c5 := h0_5
          have k1_3 : c1 ≠ c3 := h1_3
          have k1_8 : c1 ≠ c8 := h1_8
          have k1_9 : c1 ≠ c9 := h1_9
          have k1_5 : c1 ≠ c5 := h1_5
          have k3_8 : c3 ≠ c8 := h3_8
          have k3_9 : c3 ≠ c9 := h3_9
          have k3_5 : c3 ≠ c5 := h3_5
          have k8_9 : c8 ≠ c9 := h8_9
          have k8_5 : c8 ≠ c5 := Ne.symm h58ne
          have k9_5 : c9 ≠ c5 := Ne.symm h5_9
          simp [k0_1, k0_3, k0_8, k0_9, k0_5, k1_3, k1_8, k1_9, k1_5, k3_8, k3_9, k3_5, k8_9, k8_5, k9_5]
        have hc := List.Nodup.length_le_card hn
        norm_num at hc
  2. $c_5 \neq c_7$

    Rewriting with the equality $c_5 = c_8$ (`rw [h58]`) changes the goal $c_5 \neq c_7$ to $c_8 \neq c_7$. By the symmetry of inequality (`Ne.symm`), this is immediately justified by the conflict edge hypothesis $c_7 \neq c_8$ (`h7_8`).

    lines 51–53

    uses Ne.symm

      have h57 : c5 ≠ c7 := by
        rw [h58]
        exact Ne.symm h7_8
  3. The vertices $c_1, c_5, c_2, c_4, c_6, c_7$ form an impossible 6-clique, deriving a contradiction (False).

    With $c_5 \neq c_7$ established, the six vertices $c_1, c_5, c_2, c_4, c_6, c_7$ are pairwise adjacent: the 15 required inequalities follow from the conflict edges, $c_5 \neq c_7$, and the symmetries $c_5 \neq c_2$ and $c_5 \neq c_4$ (`Ne.symm`). The `simp` tactic confirms that the list $[c_1, c_5, c_2, c_4, c_6, c_7]$ has no duplicates (`List.Nodup`). By the pigeonhole principle (`List.Nodup.length_le_card`), this list of 6 distinct colors must have length at most the cardinality of $\text{Fin } 5$ (5). Evaluating $6 \le 5$ with `norm_num` yields `False`, completing the proof.

    lines 54–72

    uses Ne.symm, List.Nodup.length_le_card

      have hn : [c1, c5, c2, c4, c6, c7].Nodup := by
          have k1_5 : c1 ≠ c5 := h1_5
          have k1_2 : c1 ≠ c2 := h1_2
          have k1_4 : c1 ≠ c4 := h1_4
          have k1_6 : c1 ≠ c6 := h1_6
          have k1_7 : c1 ≠ c7 := h1_7
          have k5_2 : c5 ≠ c2 := Ne.symm h2_5
          have k5_4 : c5 ≠ c4 := Ne.symm h4_5
          have k5_6 : c5 ≠ c6 := h5_6
          have k5_7 : c5 ≠ c7 := h57
          have k2_4 : c2 ≠ c4 := h2_4
          have k2_6 : c2 ≠ c6 := h2_6
          have k2_7 : c2 ≠ c7 := h2_7
          have k4_6 : c4 ≠ c6 := h4_6
          have k4_7 : c4 ≠ c7 := h4_7
          have k6_7 : c6 ≠ c7 := h6_7
          simp [k1_5, k1_2, k1_4, k1_6, k1_7, k5_2, k5_4, k5_6, k5_7, k2_4, k2_6, k2_7, k4_6, k4_7, k6_7]
      have hc := List.Nodup.length_le_card hn
      norm_num at hc
Ne.symm
Inequality is symmetric: if $a \neq b$, then $b \neq a$.
List.Nodup.length_le_card
The length of a list with no duplicate elements is at most the cardinality of its underlying finite type.

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

theorem op309_girth7_source_forest_palette_kernel (c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 : Fin 5)    (h0_1 : c0 ≠ c1)    (h0_3 : c0 ≠ c3)    (h0_5 : c0 ≠ c5)    (h0_8 : c0 ≠ c8)    (h0_9 : c0 ≠ c9)    (h1_2 : c1 ≠ c2)    (h1_3 : c1 ≠ c3)    (h1_4 : c1 ≠ c4)    (h1_5 : c1 ≠ c5)    (h1_6 : c1 ≠ c6)    (h1_7 : c1 ≠ c7)    (h1_8 : c1 ≠ c8)    (h1_9 : c1 ≠ c9)    (h2_4 : c2 ≠ c4)    (h2_5 : c2 ≠ c5)    (h2_6 : c2 ≠ c6)    (h2_7 : c2 ≠ c7)    (h3_5 : c3 ≠ c5)    (h3_8 : c3 ≠ c8)    (h3_9 : c3 ≠ c9)    (h4_5 : c4 ≠ c5)    (h4_6 : c4 ≠ c6)    (h4_7 : c4 ≠ c7)    (h5_6 : c5 ≠ c6)    (h5_9 : c5 ≠ c9)    (h6_7 : c6 ≠ c7)    (h7_8 : c7 ≠ c8)    (h8_9 : c8 ≠ c9) : False := by  have h58 : c5 = c8 := by    by_contra h58ne    have hn : [c0, c1, c3, c8, c9, c5].Nodup := by      have k0_1 : c0 ≠ c1 := h0_1      have k0_3 : c0 ≠ c3 := h0_3      have k0_8 : c0 ≠ c8 := h0_8      have k0_9 : c0 ≠ c9 := h0_9      have k0_5 : c0 ≠ c5 := h0_5      have k1_3 : c1 ≠ c3 := h1_3      have k1_8 : c1 ≠ c8 := h1_8      have k1_9 : c1 ≠ c9 := h1_9      have k1_5 : c1 ≠ c5 := h1_5      have k3_8 : c3 ≠ c8 := h3_8      have k3_9 : c3 ≠ c9 := h3_9      have k3_5 : c3 ≠ c5 := h3_5      have k8_9 : c8 ≠ c9 := h8_9      have k8_5 : c8 ≠ c5 := Ne.symm h58ne      have k9_5 : c9 ≠ c5 := Ne.symm h5_9      simp [k0_1, k0_3, k0_8, k0_9, k0_5, k1_3, k1_8, k1_9, k1_5, k3_8, k3_9, k3_5, k8_9, k8_5, k9_5]    have hc := List.Nodup.length_le_card hn    norm_num at hc  have h57 : c5 ≠ c7 := by    rw [h58]    exact Ne.symm h7_8  have hn : [c1, c5, c2, c4, c6, c7].Nodup := by      have k1_5 : c1 ≠ c5 := h1_5      have k1_2 : c1 ≠ c2 := h1_2      have k1_4 : c1 ≠ c4 := h1_4      have k1_6 : c1 ≠ c6 := h1_6      have k1_7 : c1 ≠ c7 := h1_7      have k5_2 : c5 ≠ c2 := Ne.symm h2_5      have k5_4 : c5 ≠ c4 := Ne.symm h4_5      have k5_6 : c5 ≠ c6 := h5_6      have k5_7 : c5 ≠ c7 := h57      have k2_4 : c2 ≠ c4 := h2_4      have k2_6 : c2 ≠ c6 := h2_6      have k2_7 : c2 ≠ c7 := h2_7      have k4_6 : c4 ≠ c6 := h4_6      have k4_7 : c4 ≠ c7 := h4_7      have k6_7 : c6 ≠ c7 := h6_7      simp [k1_5, k1_2, k1_4, k1_6, k1_7, k5_2, k5_4, k5_6, k5_7, k2_4, k2_6, k2_7, k4_6, k4_7, k6_7]  have hc := List.Nodup.length_le_card hn  norm_num at hc
See it in the graphDiscuss this resultChallenge it