AFTD Auto-Formalizing Theoretical Domains

truncation_k4_double_selected_is_strong

theoremverified

The explicit local states form a strong six-edge-coloring of the truncation of the complete four-vertex base.

Statement

theorem truncation_k4_double_selected_is_strong :
    truncation_local_states_define_strong_coloring truncation_k4_double_selected_ends
      truncation_k4_double_selected_external truncation_k4_double_selected_internal
Source
Helper for the OP-874 truncation coloring campaign, related to arXiv:2610.41950; finite witnesses are checked in experiments 33310, 33357, 33358 and 33378.
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8
Used by 1

The proof, explained

The proof demonstrates that the explicit local states define a strong 6-edge-coloring of the truncation of K₄ by applying an equivalence characterization (`truncation_local_states_strong_coloring_iff`). The base graph is first verified by finite enumeration to be loopless, 3-regular, and to have disjoint exposed color pairs across every edge. Applying the characterization theorem together with pre-verified local certificates then reduces the goal to checking edge consistency and exposed pair disjointness, which are verified directly from the certificates and the previously established lemma.

  1. The base graph has no self-loops; every edge connects two distinct vertices.

    For each of the six edges of K₄, the endpoint pair consists of two distinct vertices. The universally quantified claim over Fin 6 is checked automatically by finite evaluation (`decide`).

    line 10

      have hloop : ∀ e, ¬ (truncation_k4_double_selected_ends e).IsDiag := by decide
  2. The base graph is 3-regular: every vertex has exactly three incident edges.

    By case analysis on the vertex v ∈ Fin 4, each vertex is shown to be incident to exactly three edges: {0, 1, 2} for vertex 0, {0, 3, 4} for vertex 1, {1, 3, 5} for vertex 2, and {2, 4, 5} for vertex 3. In each case, `Set.ncard_eq_three.mpr` reduces the claim to showing that the three chosen edges are pairwise distinct (proved by `decide`) and that the set of incident edges equals this three-element set (proved by extensionality and exhaustive case checking on all six edges using `fin_cases e <;> decide`).

    lines 11–29

    uses Set.ncard_eq_three.mpr

      have hcubic : ∀ v, Set.ncard {e | v ∈ truncation_k4_double_selected_ends e} = 3 := by
        intro v
        fin_cases v
        · apply Set.ncard_eq_three.mpr
          refine ⟨0,1,2, by decide, by decide, by decide, ?_⟩
          ext e
          fin_cases e <;> decide
        · apply Set.ncard_eq_three.mpr
          refine ⟨0,3,4, by decide, by decide, by decide, ?_⟩
          ext e
          fin_cases e <;> decide
        · apply Set.ncard_eq_three.mpr
          refine ⟨1,3,5, by decide, by decide, by decide, ?_⟩
          ext e
          fin_cases e <;> decide
        · apply Set.ncard_eq_three.mpr
          refine ⟨2,4,5, by decide, by decide, by decide, ?_⟩
          ext e
          fin_cases e <;> decide
  3. For every edge, the exposed pairs of colors at its two endpoints are disjoint.

    An exposed color at an endpoint of an edge is a color from the 6-color palette not assigned to any incident edge and distinct from the internal color at that vertex. After unfolding the definition of exposed pairs and set membership with `Set.mem_setOf_eq`, the condition that no color belongs to the exposed sets of both endpoints is a decidable finite statement, verified exhaustively by `decide`.

    lines 30–36

    uses Set.mem_setOf_eq

      have hsimple : ∀ e u v z, truncation_k4_double_selected_ends e = s(u,v) →
          z ∈ truncation_exposed_pair truncation_k4_double_selected_ends
            truncation_k4_double_selected_external truncation_k4_double_selected_internal u e →
          z ∈ truncation_exposed_pair truncation_k4_double_selected_ends
            truncation_k4_double_selected_external truncation_k4_double_selected_internal v e → False := by
        simp only [truncation_exposed_pair, Set.mem_setOf_eq]
        decide
  4. The problem reduces to verifying that endpoints of each edge agree on external colors and have disjoint exposed pairs.

    The equivalence theorem `truncation_local_states_strong_coloring_iff` characterizes when local states define a strong 6-edge-coloring of the truncation of a 3-regular loopless graph. Its backward direction is applied, supplying the required hypotheses: the palette cardinality is 6 (by `decide`), the graph is loopless (`hloop`) and 3-regular (`hcubic`), and the local certificate conditions (external injectivity, internal injectivity, and internal-external disjointness) are provided by the components of `truncation_k4_double_selected_local_certificate`.

    lines 37–42

    uses truncation_local_states_strong_coloring_iff, truncation_k4_double_selected_local_certificate

      apply (truncation_local_states_strong_coloring_iff (by decide)
        truncation_k4_double_selected_ends hloop hcubic
        truncation_k4_double_selected_external truncation_k4_double_selected_internal
        truncation_k4_double_selected_local_certificate.1
        truncation_k4_double_selected_local_certificate.2.1
        truncation_k4_double_selected_local_certificate.2.2.1).2
  5. The explicit local states satisfy the endpoint agreement and disjointness conditions for all edges, completing the proof.

    Given an arbitrary edge with endpoints u and v, external color agreement c(u, e) = c(v, e) holds directly by the fourth component of `truncation_k4_double_selected_local_certificate`. Disjointness of the exposed pairs is converted by `Set.disjoint_left` into the assertion that any color exposed at u is not exposed at v, which follows immediately from the contradiction established in `hsimple`.

    lines 43–46

    uses truncation_k4_double_selected_local_certificate, Set.disjoint_left

      intro e u v he
      refine ⟨(truncation_k4_double_selected_local_certificate.2.2.2.1 e u v he).1, ?_⟩
      rw [Set.disjoint_left]
      exact fun z hz1 hz2 => hsimple e u v z he hz1 hz2
Set.ncard_eq_three.mpr
A set has cardinality 3 if and only if it consists of three pairwise distinct elements.
Set.mem_setOf_eq
An element belongs to a set defined by a comprehension {y | p y} if and only if it satisfies the predicate p.
truncation_local_states_strong_coloring_iff
On a 3-regular loopless base multigraph with a 6-color palette, local states define a strong 6-edge-coloring of the truncation if and only if the local certificate properties hold, external colors agree across each edge, and exposed color pairs at the endpoints of each edge are disjoint.
truncation_k4_double_selected_local_certificate
The explicit coloring assignment for K₄ satisfies external injectivity, internal injectivity, disjointness of internal and external colors at each vertex, agreement of external colors across edges, and internal color separation.
Set.disjoint_left
Two sets are disjoint if and only if every element in the first set does not belong to the second set.

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

local instance membership_decidable_strong (v : Fin 4) (e : Fin 6) :    Decidable (v ∈ truncation_k4_double_selected_ends e) :=  decidable_of_iff    (v = (truncation_k4_double_selected_pairs e).1 ∨ v = (truncation_k4_double_selected_pairs e).2)    Sym2.mem_iff.symmtheorem truncation_k4_double_selected_is_strong :    truncation_local_states_define_strong_coloring truncation_k4_double_selected_ends      truncation_k4_double_selected_external truncation_k4_double_selected_internal := by  have hloop : ∀ e, ¬ (truncation_k4_double_selected_ends e).IsDiag := by decide  have hcubic : ∀ v, Set.ncard {e | v ∈ truncation_k4_double_selected_ends e} = 3 := by    intro v    fin_cases v    · apply Set.ncard_eq_three.mpr      refine ⟨0,1,2, by decide, by decide, by decide, ?_⟩      ext e      fin_cases e <;> decide    · apply Set.ncard_eq_three.mpr      refine ⟨0,3,4, by decide, by decide, by decide, ?_⟩      ext e      fin_cases e <;> decide    · apply Set.ncard_eq_three.mpr      refine ⟨1,3,5, by decide, by decide, by decide, ?_⟩      ext e      fin_cases e <;> decide    · apply Set.ncard_eq_three.mpr      refine ⟨2,4,5, by decide, by decide, by decide, ?_⟩      ext e      fin_cases e <;> decide  have hsimple : ∀ e u v z, truncation_k4_double_selected_ends e = s(u,v) →      z ∈ truncation_exposed_pair truncation_k4_double_selected_ends        truncation_k4_double_selected_external truncation_k4_double_selected_internal u e →      z ∈ truncation_exposed_pair truncation_k4_double_selected_ends        truncation_k4_double_selected_external truncation_k4_double_selected_internal v e → False := by    simp only [truncation_exposed_pair, Set.mem_setOf_eq]    decide  apply (truncation_local_states_strong_coloring_iff (by decide)    truncation_k4_double_selected_ends hloop hcubic    truncation_k4_double_selected_external truncation_k4_double_selected_internal    truncation_k4_double_selected_local_certificate.1    truncation_k4_double_selected_local_certificate.2.1    truncation_k4_double_selected_local_certificate.2.2.1).2  intro e u v he  refine ⟨(truncation_k4_double_selected_local_certificate.2.2.2.1 e u v he).1, ?_⟩  rw [Set.disjoint_left]  exact fun z hz1 hz2 => hsimple e u v z he hz1 hz2
See it in the graphDiscuss this resultChallenge it