AFTD Auto-Formalizing Theoretical Domains

op874_no_single_external_edge_repair

theoremverified

The displayed fixed external coloring has no strong completion after changing at most one edge color.

Statement

theorem op874_no_single_external_edge_repair :
    ¬ ∃ (c : Fin 12 → Fin 6) (h : Fin 8 → Fin 12 → Fin 6),
      (∀ v e f, v ∈ op874sr_ends e → v ∈ op874sr_ends f → c e = c f → e=f) ∧
      (∀ v e f, v ∈ op874sr_ends e → v ∈ op874sr_ends f → h v e = h v f → e=f) ∧
      (∀ v e f, v ∈ op874sr_ends e → v ∈ op874sr_ends f → h v e ≠ c f) ∧
      truncation_local_states_define_strong_coloring op874sr_ends (fun _ e => c e) h ∧
      (∃ e, ∀ f, f ≠ e → c f = op874sr_colors f)
Source
OP-874: single-edge repair obstruction, experiments 38435 and 38438.
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4

The proof, explained

The theorem states that the fixed coloring op874sr_colors cannot be extended to a strong coloring of the truncated graph even if one edge color is modified. The proof proceeds by contradiction, reducing to the theorem op874_single_color_at_most_one_impossible, which shows that no valid completion can assign color 2 to at most one edge. Since color 2 is entirely absent from op874sr_colors, changing at most one edge allows color 2 to appear on at most that one edge, directly triggering the impossibility result.

  1. Assume for contradiction that a valid completion (c, h) exists that modifies the color of at most one edge e in op874sr_colors.

    We unpack the negated existential hypothesis into the coloring functions c and h, the hypotheses establishing that they define a valid strong coloring on the truncation, and a designated edge e such that c(f) = op874sr_colors(f) for all edges f ≠ e.

    line 8

      rintro ⟨c,h,hc,hh,hch,hs,e,he⟩
  2. The fixed coloring op874sr_colors never assigns color 2 to any edge. automation

    The array op874sr_colors is explicitly defined as ![4, 3, 0, 3, 1, 4, 0, 5, 1, 3, 4, 5], which contains no entry equal to 2. The tactic decide verifies this universal statement across all 12 edges by direct finite evaluation.

    line 9

      have hn : ∀ f, op874sr_colors f ≠ 2 := by decide
  3. It suffices to show that c assigns color 2 to at most one edge.

    We apply the known impossibility theorem op874_single_color_at_most_one_impossible. Since c and h satisfy all the conditions of a valid strong coloring, the theorem implies that c cannot use color 2 at most once; thus, proving that color 2 appears at most once under c will derive False.

    line 10

    uses op874_single_color_at_most_one_impossible

      apply op874_single_color_at_most_one_impossible c h hc hh hch hs
  4. Color 2 is assigned to at most one edge under c, completing the contradiction.

    Let f and g be edges such that c(f) = 2 and c(g) = 2. If f ≠ e, then c(f) equals op874sr_colors(f), which cannot be 2; hence f = e. By identical reasoning, g = e. Therefore f = g, showing that at most one edge has color 2 and yielding the contradiction.

    lines 11–18

      intro f g hf hg
      have hfe : f=e := by
        by_contra hne
        exact hn f ((he f hne).symm.trans hf)
      have hge : g=e := by
        by_contra hne
        exact hn g ((he g hne).symm.trans hg)
      exact hfe.trans hge.symm
op874_single_color_at_most_one_impossible
No valid strong completion (c, h) of the truncation of op874sr_ends can assign color 2 to at most one edge.

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_no_single_external_edge_repair :    ¬ ∃ (c : Fin 12 → Fin 6) (h : Fin 8 → Fin 12 → Fin 6),      (∀ v e f, v ∈ op874sr_ends e → v ∈ op874sr_ends f → c e = c f → e=f) ∧      (∀ v e f, v ∈ op874sr_ends e → v ∈ op874sr_ends f → h v e = h v f → e=f) ∧      (∀ v e f, v ∈ op874sr_ends e → v ∈ op874sr_ends f → h v e ≠ c f) ∧      truncation_local_states_define_strong_coloring op874sr_ends (fun _ e => c e) h ∧      (∃ e, ∀ f, f ≠ e → c f = op874sr_colors f) := by  rintro ⟨c,h,hc,hh,hch,hs,e,he⟩  have hn : ∀ f, op874sr_colors f ≠ 2 := by decide  apply op874_single_color_at_most_one_impossible c h hc hh hch hs  intro f g hf hg  have hfe : f=e := by    by_contra hne    exact hn f ((he f hne).symm.trans hf)  have hge : g=e := by    by_contra hne    exact hn g ((he g hne).symm.trans hg)  exact hfe.trans hge.symm
See it in the graphDiscuss this resultChallenge it