AFTD Auto-Formalizing Theoretical Domains

op874_interacting_missing_colors_local_obstruction

theoremverified

Two missing-color triangles with leaves and a cross edge force incompatible opposite-port selections, even though each single-color constraint graph is a pseudoforest.

Statement

theorem op874_interacting_missing_colors_local_obstruction
    (h : Fin 10 → Fin 10 → Fin 6)
    (hi : ∀ v x y, op874_two_color_core_adj v x → op874_two_color_core_adj v y →
      x ≠ y → h v x ≠ h v y)
    (a₁ : h 0 6 = 1 ∨ h 6 0 = 1)
    (a₂ : h 0 9 = 1 ∨ h 9 0 = 1)
    (a₃ : h 6 9 = 1 ∨ h 9 6 = 1)
    (a₄ : h 7 9 = 1 ∨ h 9 7 = 1)
    (a₅ : h 7 9 = 2 ∨ h 9 7 = 2)
    (a₆ : h 6 9 = 2 ∨ h 9 6 = 2)
    (b₁ : h 2 4 = 4 ∨ h 4 2 = 4)
    (b₂ : h 2 8 = 4 ∨ h 8 2 = 4)
    (b₃ : h 4 8 = 4 ∨ h 8 4 = 4)
    (b₄ : h 5 8 = 4 ∨ h 8 5 = 4)
    (b₅ : h 5 8 = 2 ∨ h 8 5 = 2)
    (b₆ : h 4 8 = 2 ∨ h 8 4 = 2)
    (cross : h 4 6 = 2 ∨ h 6 4 = 2) : False
Source
Local-state counting obstruction for OP-874, https://arxiv.org/abs/2610.41950, Section 2.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1

The proof, explained

The proof derives a contradiction by showing that the local port assignments required by colors 1 and 4 propagate along two triangles with leaf edges into conflicting assignments for color 2. First, for color 1 on triangle {0, 6, 9} with leaf {7, 9}, the leaf must assign color 1 to vertex 7 because assigning it to vertex 9 leaves no valid color 1 orientation for the triangle; symmetrically, the leaf {5, 8} on triangle {2, 4, 8} must assign color 4 to vertex 5. Because port labels incident to any vertex must be distinct, color 2 on these leaves is forced to the opposite endpoints, giving h(9, 7) = 2 and h(8, 5) = 2, which subsequently forces color 2 on adjacent triangle edges to the other endpoints, h(6, 9) = 2 and h(4, 8) = 2. Finally, assigning color 2 to either endpoint of the cross edge {4, 6} contradicts the forced color 2 assignment already present at that vertex.

  1. At each vertex in the core graph, any two distinct incident edges must be assigned distinct port colors.

    Applying the injectivity hypothesis hi to each vertex and pairs of its distinct neighbors in the core graph op874_two_color_core_adj yields local distinctness properties: h(0, 6) ≠ h(0, 9) at vertex 0 (d₀); h(2, 4) ≠ h(2, 8) at vertex 2 (d₂); pairwise distinctness of incident edges at vertex 4 (d₄a, d₄b, d₄c), vertex 6 (d₆a, d₆b, d₆c), vertex 8 (d₈a, d₈b, d₈c), and vertex 9 (d₉a, d₉b, d₉c). The adjacency proofs and vertex inequalities are discharged by expanding the definition of the core graph.

    lines 18–31

      have d₀ := hi 0 6 9 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₂ := hi 2 4 8 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₄a := hi 4 2 6 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₄b := hi 4 2 8 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₄c := hi 4 6 8 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₆a := hi 6 0 4 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₆b := hi 6 0 9 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₆c := hi 6 4 9 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₈a := hi 8 2 4 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₈b := hi 8 2 5 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₈c := hi 8 4 5 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₉a := hi 9 0 6 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₉b := hi 9 0 7 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
      have d₉c := hi 9 6 7 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])
  2. The leaf edge {7, 9} must have color 1 at vertex 7: h(7, 9) = 1. automation

    Hypothesis a₄ states that edge {7, 9} has color 1 at vertex 7 or vertex 9. If h(7, 9) = 1, the claim is immediate. If instead h(9, 7) = 1, vertex 9 already uses color 1, leaving no valid color 1 orientation for the three edges of triangle {0, 6, 9} (hypotheses a₁, a₂, a₃): an exhaustive case analysis across all eight combinations of orientations contradicts the local distinctness constraints.

    lines 32–36

      have leaf₁ : h 7 9 = 1 := by
        rcases a₄ with h | h
        · exact h
        · rcases a₁ with a₁ | a₁ <;> rcases a₂ with a₂ | a₂ <;>
            rcases a₃ with a₃ | a₃ <;> simp_all
  3. The leaf edge {5, 8} must have color 4 at vertex 5: h(5, 8) = 4. automation

    Hypothesis b₄ states that edge {5, 8} has color 4 at vertex 5 or vertex 8. If h(5, 8) = 4, the claim holds directly. If instead h(8, 5) = 4, then vertex 8 already uses color 4, preventing a valid color 4 orientation for the edges of triangle {2, 4, 8} (hypotheses b₁, b₂, b₃). Case analysis over all eight orientations produces a contradiction in every branch.

    lines 37–41

      have leaf₄ : h 5 8 = 4 := by
        rcases b₄ with h | h
        · exact h
        · rcases b₁ with b₁ | b₁ <;> rcases b₂ with b₂ | b₂ <;>
            rcases b₃ with b₃ | b₃ <;> simp_all
  4. The leaf edge {7, 9} must have color 2 at vertex 9: h(9, 7) = 2.

    Hypothesis a₅ requires edge {7, 9} to have color 2 at vertex 7 or vertex 9. If h(7, 9) = 2, then since h(7, 9) = 1 was established previously, we would have 1 = 2 in Fin 6, an impossible equality. Thus, the only possible assignment is h(9, 7) = 2.

    lines 42–46

      have q₉ : h 9 7 = 2 := by
        rcases a₅ with q | q
        · have : (1 : Fin 6) = 2 := leaf₁.symm.trans q
          contradiction
        · exact q
  5. The leaf edge {5, 8} must have color 2 at vertex 8: h(8, 5) = 2.

    Hypothesis b₅ requires edge {5, 8} to have color 2 at vertex 5 or vertex 8. If h(5, 8) = 2, then since h(5, 8) = 4 was proved earlier, we would have 4 = 2 in Fin 6, a contradiction. Hence, h(8, 5) = 2.

    lines 47–51

      have q₈ : h 8 5 = 2 := by
        rcases b₅ with q | q
        · have : (4 : Fin 6) = 2 := leaf₄.symm.trans q
          contradiction
        · exact q
  6. The triangle edge {6, 9} must have color 2 at vertex 6: h(6, 9) = 2.

    Hypothesis a₆ states that edge {6, 9} has color 2 at vertex 6 or vertex 9. If h(9, 6) = 2, then combining with h(9, 7) = 2 gives h(9, 6) = h(9, 7), which contradicts the distinctness condition d₉c (h(9, 6) ≠ h(9, 7)). Therefore, h(6, 9) = 2.

    lines 52–55

    uses False.elim

      have q₆ : h 6 9 = 2 := by
        rcases a₆ with q | q
        · exact q
        · exact False.elim (d₉c (q.trans q₉.symm))
  7. The triangle edge {4, 8} must have color 2 at vertex 4: h(4, 8) = 2.

    Hypothesis b₆ states that edge {4, 8} has color 2 at vertex 4 or vertex 8. If h(8, 4) = 2, then combining with h(8, 5) = 2 gives h(8, 4) = h(8, 5), which contradicts the distinctness condition d₈c (h(8, 4) ≠ h(8, 5)). Therefore, h(4, 8) = 2.

    lines 56–59

    uses False.elim

      have q₄ : h 4 8 = 2 := by
        rcases b₆ with q | q
        · exact q
        · exact False.elim (d₈c (q.trans q₈.symm))
  8. Contradiction: the cross edge {4, 6} cannot be assigned color 2 at either endpoint.

    Hypothesis cross states that edge {4, 6} has color 2 at vertex 4 or vertex 6. If h(4, 6) = 2, then together with h(4, 8) = 2 this gives h(4, 6) = h(4, 8), contradicting d₄c (h(4, 6) ≠ h(4, 8)). If h(6, 4) = 2, then together with h(6, 9) = 2 this gives h(6, 4) = h(6, 9), contradicting d₆c (h(6, 4) ≠ h(6, 9)). Since both branches of the disjunction lead to a contradiction, the proof is complete.

    lines 60–62

      rcases cross with q | q
      · exact d₄c (q.trans q₄.symm)
      · exact d₆c (q.trans q₆.symm)
False.elim
from a contradiction (a proof of False), any proposition can be deduced

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 op874_interacting_missing_colors_local_obstruction    (h : Fin 10 → Fin 10 → Fin 6)    (hi : ∀ v x y, op874_two_color_core_adj v x → op874_two_color_core_adj v y →      x ≠ y → h v x ≠ h v y)    (a₁ : h 0 6 = 1 ∨ h 6 0 = 1)    (a₂ : h 0 9 = 1 ∨ h 9 0 = 1)    (a₃ : h 6 9 = 1 ∨ h 9 6 = 1)    (a₄ : h 7 9 = 1 ∨ h 9 7 = 1)    (a₅ : h 7 9 = 2 ∨ h 9 7 = 2)    (a₆ : h 6 9 = 2 ∨ h 9 6 = 2)    (b₁ : h 2 4 = 4 ∨ h 4 2 = 4)    (b₂ : h 2 8 = 4 ∨ h 8 2 = 4)    (b₃ : h 4 8 = 4 ∨ h 8 4 = 4)    (b₄ : h 5 8 = 4 ∨ h 8 5 = 4)    (b₅ : h 5 8 = 2 ∨ h 8 5 = 2)    (b₆ : h 4 8 = 2 ∨ h 8 4 = 2)    (cross : h 4 6 = 2 ∨ h 6 4 = 2) : False := by  have d₀ := hi 0 6 9 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₂ := hi 2 4 8 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₄a := hi 4 2 6 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₄b := hi 4 2 8 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₄c := hi 4 6 8 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₆a := hi 6 0 4 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₆b := hi 6 0 9 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₆c := hi 6 4 9 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₈a := hi 8 2 4 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₈b := hi 8 2 5 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₈c := hi 8 4 5 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₉a := hi 9 0 6 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₉b := hi 9 0 7 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have d₉c := hi 9 6 7 (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj]) (by simp [op874_two_color_core_adj])  have leaf₁ : h 7 9 = 1 := by    rcases a₄ with h | h    · exact h    · rcases a₁ with a₁ | a₁ <;> rcases a₂ with a₂ | a₂ <;>        rcases a₃ with a₃ | a₃ <;> simp_all  have leaf₄ : h 5 8 = 4 := by    rcases b₄ with h | h    · exact h    · rcases b₁ with b₁ | b₁ <;> rcases b₂ with b₂ | b₂ <;>        rcases b₃ with b₃ | b₃ <;> simp_all  have q₉ : h 9 7 = 2 := by    rcases a₅ with q | q    · have : (1 : Fin 6) = 2 := leaf₁.symm.trans q      contradiction    · exact q  have q₈ : h 8 5 = 2 := by    rcases b₅ with q | q    · have : (4 : Fin 6) = 2 := leaf₄.symm.trans q      contradiction    · exact q  have q₆ : h 6 9 = 2 := by    rcases a₆ with q | q    · exact q    · exact False.elim (d₉c (q.trans q₉.symm))  have q₄ : h 4 8 = 2 := by    rcases b₆ with q | q    · exact q    · exact False.elim (d₈c (q.trans q₈.symm))  rcases cross with q | q  · exact d₄c (q.trans q₄.symm)  · exact d₆c (q.trans q₆.symm)
See it in the graphDiscuss this resultChallenge it