AFTD Auto-Formalizing Theoretical Domains

truncation_two_common_missing_no_three_edges

theoremverified

In a strong six-color truncation coloring represented by local states, a vertex and three distinct incident neighbors cannot all miss the same two distinct external colors.

Statement

theorem truncation_two_common_missing_no_three_edges {V E Ω : Type*}
    [Fintype Ω] (hΩ : Fintype.card Ω = 6)
    (ends : E → Sym2 V) (hloop : ∀ e, ¬ (ends e).IsDiag)
    (hcubic : ∀ v, Set.ncard {e | v ∈ ends e} = 3)
    (c h : V → E → Ω)
    (hc : ∀ v e f, v ∈ ends e → v ∈ ends f → c v e = c v f → e = f)
    (hh : ∀ v e f, v ∈ ends e → v ∈ ends f → h v e = h v f → e = f)
    (hch : ∀ v e f, v ∈ ends e → v ∈ ends f → h v e ≠ c v f)
    (hs : truncation_local_states_define_strong_coloring ends c h)
    (v w₁ w₂ w₃ : V) (e₁ e₂ e₃ : E) (a b : Ω) (hab : a ≠ b)
    (he₁ : ends e₁ = s(v,w₁)) (he₂ : ends e₂ = s(v,w₂))
    (he₃ : ends e₃ = s(v,w₃))
    (hne₁₂ : e₁ ≠ e₂) (hne₁₃ : e₁ ≠ e₃) (hne₂₃ : e₂ ≠ e₃)
    (hva : ∀ f, v ∈ ends f → c v f ≠ a)
    (hvb : ∀ f, v ∈ ends f → c v f ≠ b)
    (hw₁a : ∀ f, w₁ ∈ ends f → c w₁ f ≠ a)
    (hw₁b : ∀ f, w₁ ∈ ends f → c w₁ f ≠ b)
    (hw₂a : ∀ f, w₂ ∈ ends f → c w₂ f ≠ a)
    (hw₂b : ∀ f, w₂ ∈ ends f → c w₂ f ≠ b)
    (hw₃a : ∀ f, w₃ ∈ ends f → c w₃ f ≠ a)
    (hw₃b : ∀ f, w₃ ∈ ends f → c w₃ f ≠ b) : False
Source
OP-874: necessary two-color local port-cover bound motivated by experiment 38417.
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 1

The proof, explained

In a strong edge coloring of a truncation, two endpoints of an edge cannot share an exposed missing color. If two distinct colors $a, b$ are missing at both $v$ and an incident neighbor $w$, this disjointness forces the internal edge color at $v$ to belong to $\{a, b\}$. Having three distinct incident neighbors that all miss both $a$ and $b$ forces all three values $h(v, e_1), h(v, e_2), h(v, e_3)$ into the two-element set $\{a, b\}$, contradicting the injectivity of $h(v, \cdot)$ by the pigeonhole principle.

  1. For every edge, the exposed pairs of missing colors at its two endpoints are disjoint.

    Using classical logic and the forward implication of `truncation_local_states_strong_coloring_iff`, we extract the edge compatibility condition (`compat`) guaranteed by the hypothesis `hs` that $(c, h)$ defines a strong edge coloring. In particular, for any edge $e$ with ends $u$ and $v$, the set of exposed colors at $u$ is disjoint from that at $v$.

    lines 24–26

    uses truncation_local_states_strong_coloring_iff

      classical
      have compat := (truncation_local_states_strong_coloring_iff
        hΩ ends hloop hcubic c h hc hh hch).1 hs
  2. If an external color $z$ is missing at both endpoints $v$ and $w$ of an edge $e$, then either $h(v, e) = z$ or $h(w, e) = z$.

    We prove the helper lemma `cover` by contradiction (`by_contra hn`, `push_neg`). If neither $h(v, e) = z$ nor $h(w, e) = z$, then $z$ satisfies the defining conditions for the exposed pair at both endpoints: $z$ is missing from all external edges at $v$ and $z \ne h(v, e)$ (giving $z \in \text{exposed}(v, e)$ as `hvP`), and likewise at $w$ (giving $z \in \text{exposed}(w, e)$ as `hwP`). But `compat` requires these two sets to be disjoint, so by `Set.disjoint_left.mp` this is a contradiction.

    lines 27–37

    uses Set.disjoint_left.mp

      have cover (e : E) (w : V) (z : Ω) (he : ends e = s(v,w))
          (hvz : ∀ f, v ∈ ends f → c v f ≠ z)
          (hwz : ∀ f, w ∈ ends f → c w f ≠ z) :
          h v e = z ∨ h w e = z := by
        by_contra hn
        push_neg at hn
        have hvP : z ∈ truncation_exposed_pair ends c h v e :=
          ⟨hvz, fun heq => hn.1 heq.symm⟩
        have hwP : z ∈ truncation_exposed_pair ends c h w e :=
          ⟨hwz, fun heq => hn.2 heq.symm⟩
        exact Set.disjoint_left.mp (compat e v w he).2 hvP hwP
  3. For any edge $e$ connecting $v$ to $w$, if both colors $a$ and $b$ are missing at $w$, then $h(v, e) = a$ or $h(v, e) = b$.

    We prove the helper lemma `force`. Applying `cover` to color $a$, either $h(v, e) = a$ (closing via `Or.inl`), or $h(w, e) = a$. In the latter case, applying `cover` to color $b$ yields either $h(v, e) = b$ (closing via `Or.inr`), or $h(w, e) = b$. If both $h(w, e) = a$ and $h(w, e) = b$, transitivity gives $a = b$, contradicting $a \ne b$ (`hab`); `False.elim` eliminates this impossible branch.

    lines 38–46

    uses Or.inl, Or.inr, False.elim

      have force (e : E) (w : V) (he : ends e = s(v,w))
          (hwa : ∀ f, w ∈ ends f → c w f ≠ a)
          (hwb : ∀ f, w ∈ ends f → c w f ≠ b) :
          h v e = a ∨ h v e = b := by
        rcases cover e w a he hva hwa with hv | hw
        · exact Or.inl hv
        · rcases cover e w b he hvb hwb with hv | hw'
          · exact Or.inr hv
          · exact False.elim (hab (hw.symm.trans hw'))
  4. For each of the three edges $e_1, e_2, e_3$, the internal color at $v$ is forced to be either $a$ or $b$.

    Applying `force` to each of the three edges $e_1, e_2, e_3$ incident to $v$ and their neighbors $w_1, w_2, w_3$ yields hypotheses $h_1, h_2, h_3$, establishing $h(v, e_i) \in \{a, b\}$ for each $i \in \{1, 2, 3\}$.

    lines 47–49

      have h₁ := force e₁ w₁ he₁ hw₁a hw₁b
      have h₂ := force e₂ w₂ he₂ hw₂a hw₂b
      have h₃ := force e₃ w₃ he₃ hw₃a hw₃b
  5. The vertex $v$ is an endpoint of each of the edges $e_1, e_2, e_3$.

    Rewriting with the edge endpoint hypotheses $he_1, he_2, he_3$ and simplifying confirms that $v \in \text{ends}(e_i)$ for $i \in \{1, 2, 3\}$.

    lines 50–52

      have hv₁ : v ∈ ends e₁ := by rw [he₁]; simp
      have hv₂ : v ∈ ends e₂ := by rw [he₂]; simp
      have hv₃ : v ∈ ends e₃ := by rw [he₃]; simp
  6. The three colors $h(v, e_1)$, $h(v, e_2)$, and $h(v, e_3)$ are pairwise distinct.

    The hypothesis $hh$ states that the assignment $e \mapsto h(v, e)$ is injective on edges incident to $v$. Because $e_1, e_2, e_3$ are assumed pairwise distinct (`hne₁₂`, `hne₁₃`, `hne₂₃`), their images under $h(v, \cdot)$ must be pairwise distinct.

    lines 53–55

      have h₁₂ : h v e₁ ≠ h v e₂ := fun eq => hne₁₂ (hh v e₁ e₂ hv₁ hv₂ eq)
      have h₁₃ : h v e₁ ≠ h v e₃ := fun eq => hne₁₃ (hh v e₁ e₃ hv₁ hv₃ eq)
      have h₂₃ : h v e₂ ≠ h v e₃ := fun eq => hne₂₃ (hh v e₂ e₃ hv₂ hv₃ eq)
  7. Contradiction, completing the proof. automation

    Case analysis on $h(v, e_i) \in \{a, b\}$ across the three edges produces $2^3 = 8$ branches. By the pigeonhole principle, in every branch at least two of the three edges are assigned the same color from $\{a, b\}$. This equality contradicts the pairwise distinctness of $h(v, e_1), h(v, e_2), h(v, e_3)$, and `simp_all` closes all 8 branches.

    lines 56–57

      rcases h₁ with h₁ | h₁ <;> rcases h₂ with h₂ | h₂ <;>
        rcases h₃ with h₃ | h₃ <;> simp_all
truncation_local_states_strong_coloring_iff
For a cubic graph with a 6-color set, local state functions c and h define a strong edge coloring of the truncation if and only if for every edge e = s(u, v), the external colors match (c u e = c v e) and the exposed color pairs at u and v are disjoint.
Set.disjoint_left.mp
If two sets are disjoint, an element belonging to the first set cannot belong to the second.
Or.inl
From a proof of A, infer the disjunction A ∨ B.
Or.inr
From a proof of B, infer the disjunction A ∨ B.
False.elim
From a contradiction (False), infer any proposition (principle of explosion).

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 maxHeartbeats 1000000theorem truncation_two_common_missing_no_three_edges {V E Ω : Type*}    [Fintype Ω] (hΩ : Fintype.card Ω = 6)    (ends : E → Sym2 V) (hloop : ∀ e, ¬ (ends e).IsDiag)    (hcubic : ∀ v, Set.ncard {e | v ∈ ends e} = 3)    (c h : V → E → Ω)    (hc : ∀ v e f, v ∈ ends e → v ∈ ends f → c v e = c v f → e = f)    (hh : ∀ v e f, v ∈ ends e → v ∈ ends f → h v e = h v f → e = f)    (hch : ∀ v e f, v ∈ ends e → v ∈ ends f → h v e ≠ c v f)    (hs : truncation_local_states_define_strong_coloring ends c h)    (v w₁ w₂ w₃ : V) (e₁ e₂ e₃ : E) (a b : Ω) (hab : a ≠ b)    (he₁ : ends e₁ = s(v,w₁)) (he₂ : ends e₂ = s(v,w₂))    (he₃ : ends e₃ = s(v,w₃))    (hne₁₂ : e₁ ≠ e₂) (hne₁₃ : e₁ ≠ e₃) (hne₂₃ : e₂ ≠ e₃)    (hva : ∀ f, v ∈ ends f → c v f ≠ a)    (hvb : ∀ f, v ∈ ends f → c v f ≠ b)    (hw₁a : ∀ f, w₁ ∈ ends f → c w₁ f ≠ a)    (hw₁b : ∀ f, w₁ ∈ ends f → c w₁ f ≠ b)    (hw₂a : ∀ f, w₂ ∈ ends f → c w₂ f ≠ a)    (hw₂b : ∀ f, w₂ ∈ ends f → c w₂ f ≠ b)    (hw₃a : ∀ f, w₃ ∈ ends f → c w₃ f ≠ a)    (hw₃b : ∀ f, w₃ ∈ ends f → c w₃ f ≠ b) : False := by  classical  have compat := (truncation_local_states_strong_coloring_iff    hΩ ends hloop hcubic c h hc hh hch).1 hs  have cover (e : E) (w : V) (z : Ω) (he : ends e = s(v,w))      (hvz : ∀ f, v ∈ ends f → c v f ≠ z)      (hwz : ∀ f, w ∈ ends f → c w f ≠ z) :      h v e = z ∨ h w e = z := by    by_contra hn    push_neg at hn    have hvP : z ∈ truncation_exposed_pair ends c h v e :=      ⟨hvz, fun heq => hn.1 heq.symm⟩    have hwP : z ∈ truncation_exposed_pair ends c h w e :=      ⟨hwz, fun heq => hn.2 heq.symm⟩    exact Set.disjoint_left.mp (compat e v w he).2 hvP hwP  have force (e : E) (w : V) (he : ends e = s(v,w))      (hwa : ∀ f, w ∈ ends f → c w f ≠ a)      (hwb : ∀ f, w ∈ ends f → c w f ≠ b) :      h v e = a ∨ h v e = b := by    rcases cover e w a he hva hwa with hv | hw    · exact Or.inl hv    · rcases cover e w b he hvb hwb with hv | hw'      · exact Or.inr hv      · exact False.elim (hab (hw.symm.trans hw'))  have h₁ := force e₁ w₁ he₁ hw₁a hw₁b  have h₂ := force e₂ w₂ he₂ hw₂a hw₂b  have h₃ := force e₃ w₃ he₃ hw₃a hw₃b  have hv₁ : v ∈ ends e₁ := by rw [he₁]; simp  have hv₂ : v ∈ ends e₂ := by rw [he₂]; simp  have hv₃ : v ∈ ends e₃ := by rw [he₃]; simp  have h₁₂ : h v e₁ ≠ h v e₂ := fun eq => hne₁₂ (hh v e₁ e₂ hv₁ hv₂ eq)  have h₁₃ : h v e₁ ≠ h v e₃ := fun eq => hne₁₃ (hh v e₁ e₃ hv₁ hv₃ eq)  have h₂₃ : h v e₂ ≠ h v e₃ := fun eq => hne₂₃ (hh v e₂ e₃ hv₂ hv₃ eq)  rcases h₁ with h₁ | h₁ <;> rcases h₂ with h₂ | h₂ <;>    rcases h₃ with h₃ | h₃ <;> simp_all
See it in the graphDiscuss this resultChallenge it