AFTD Auto-Formalizing Theoretical Domains

op874_diamond_forces_disjoint_matching_palettes

theoremverified

On a four-cycle whose vertex 0 shares its low color with vertices 1 and 3, compatible local states force all four factor-edge colors to differ. Thus the high palettes at opposite vertices 1 and 3 are disjoint, including when those vertices are joined by a matching edge.

Statement

theorem op874_diamond_forces_disjoint_matching_palettes
    (b : Fin 4 → Bool) (edge : Fin 4 → Fin 4) (h : Fin 4 → Fin 3 → Fin 6)
    (hproper : ∀ j, edge (j-1) ≠ edge j)
    (hinj : ∀ j, Function.Injective (h j))
    (havoid : ∀ j p, h j p ≠ cycle_matching_low_color (b j) ∧
      h j p ≠ cycle_factor_high_color (edge (j-1)) ∧
      h j p ≠ cycle_factor_high_color (edge j))
    (hstrong : ∀ i, h i 0 ≠ h (i+1) 1 ∧ h i 0 ≠ h (i+1) 2 ∧
      h i 2 ≠ h (i+1) 1 ∧ h i 2 ≠ h (i+1) 2)
    (hbit01 : b 0 = b 1) (hbit03 : b 0 = b 3) :
    Disjoint ({edge 0,edge 1} : Finset (Fin 4)) {edge 2,edge 3}
Source
Forced mixture of matching-palette intersection types for OP-874; https://arxiv.org/abs/2610.41950.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3

The proof, explained

To show that the factor-edge sets {edge 0, edge 1} and {edge 2, edge 3} are disjoint, it suffices to prove four pairwise distinctness conditions between their elements. Two conditions hold because adjacent edges along the cycle must differ by the proper coloring hypothesis. The remaining two hold because vertices 0 and 1 share their matching bit, as do vertices 3 and 0, which by a previous lemma forces the cycle edges flanking each transition to differ. Unfolding finset disjointness and assembling these four inequalities concludes the proof.

  1. The outer cycle edges around vertex 0 have distinct colors: edge 3 ≠ edge 1.

    Because vertices 0 and 1 share the same matching low color (b 0 = b 1), the lemma same_bit_factor_edge_forces_outer_colors_distinct applied at index 0 implies that the preceding edge 3 and the succeeding edge 1 cannot have the same color.

    lines 12–13

    uses same_bit_factor_edge_forces_outer_colors_distinct

      have h31 : edge 3 ≠ edge 1 :=
        same_bit_factor_edge_forces_outer_colors_distinct 4 b edge h 0 hproper hinj havoid (hstrong 0) hbit01
  2. The outer cycle edges around vertex 3 have distinct colors: edge 2 ≠ edge 0.

    Because vertex 3 and vertex 0 share the same matching low color (b 3 = b 0, using the symmetry of b 0 = b 3), applying same_bit_factor_edge_forces_outer_colors_distinct at index 3 implies that edge 2 and edge 0 cannot have the same color.

    lines 14–15

    uses same_bit_factor_edge_forces_outer_colors_distinct

      have h20 : edge 2 ≠ edge 0 :=
        same_bit_factor_edge_forces_outer_colors_distinct 4 b edge h 3 hproper hinj havoid (hstrong 3) hbit03.symm
  3. Adjacent cycle edges have distinct colors: edge 3 ≠ edge 0 and edge 1 ≠ edge 2.

    The assumption that the cycle edge coloring is proper (hproper) guarantees that edge (j - 1) ≠ edge j for all j. Evaluating this at j = 0 gives edge 3 ≠ edge 0, and at j = 2 gives edge 1 ≠ edge 2.

    lines 16–17

      have h30 : edge 3 ≠ edge 0 := hproper 0
      have h12 : edge 1 ≠ edge 2 := hproper 2
  4. Disjointness of {edge 0, edge 1} and {edge 2, edge 3} reduces to four pairwise inequalities: edge 0 ≠ edge 2, edge 0 ≠ edge 3, edge 1 ≠ edge 2, and edge 1 ≠ edge 3.

    Simplifying the disjointness of finite sets using rules for insert, singletons, and the negation of disjunctions expands the goal Disjoint {edge 0, edge 1} {edge 2, edge 3} into the conjunction of these four non-identities.

    lines 18–19

    uses Finset.disjoint_insert_left, Finset.disjoint_singleton_left, Finset.mem_insert, Finset.mem_singleton, not_or

      simp only [Finset.disjoint_insert_left, Finset.disjoint_singleton_left,
        Finset.mem_insert, Finset.mem_singleton, not_or]
  5. The sets {edge 0, edge 1} and {edge 2, edge 3} are disjoint.

    The four required inequalities are directly provided by the symmetry of edge 2 ≠ edge 0, the symmetry of edge 3 ≠ edge 0, edge 1 ≠ edge 2, and the symmetry of edge 3 ≠ edge 1.

    line 20

      refine ⟨⟨h20.symm, h30.symm⟩, ⟨h12, h31.symm⟩⟩
Finset.disjoint_insert_left
A finset insert a s is disjoint from t if and only if a ∉ t and s is disjoint from t.
Finset.disjoint_singleton_left
A singleton finset {a} is disjoint from s if and only if a ∉ s.
Finset.mem_insert
An element a belongs to insert b s if and only if a = b or a ∈ s.
Finset.mem_singleton
An element b belongs to the singleton {a} if and only if b = a.
not_or
A negation of a disjunction ¬(p ∨ q) is equivalent to ¬p ∧ ¬q.
same_bit_factor_edge_forces_outer_colors_distinct
Under proper edge-coloring, injective local palettes, avoidance of incident edge colors and matching bits, and strong adjacency compatibility on an n-cycle, if adjacent vertices i and i + 1 share the same matching low color bit (b i = b (i + 1)), then the outer cycle edges edge (i - 1) and edge (i + 1) must have distinct colors.

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_diamond_forces_disjoint_matching_palettes    (b : Fin 4 → Bool) (edge : Fin 4 → Fin 4) (h : Fin 4 → Fin 3 → Fin 6)    (hproper : ∀ j, edge (j-1) ≠ edge j)    (hinj : ∀ j, Function.Injective (h j))    (havoid : ∀ j p, h j p ≠ cycle_matching_low_color (b j) ∧      h j p ≠ cycle_factor_high_color (edge (j-1)) ∧      h j p ≠ cycle_factor_high_color (edge j))    (hstrong : ∀ i, h i 0 ≠ h (i+1) 1 ∧ h i 0 ≠ h (i+1) 2 ∧      h i 2 ≠ h (i+1) 1 ∧ h i 2 ≠ h (i+1) 2)    (hbit01 : b 0 = b 1) (hbit03 : b 0 = b 3) :    Disjoint ({edge 0,edge 1} : Finset (Fin 4)) {edge 2,edge 3} := by  have h31 : edge 3 ≠ edge 1 :=    same_bit_factor_edge_forces_outer_colors_distinct 4 b edge h 0 hproper hinj havoid (hstrong 0) hbit01  have h20 : edge 2 ≠ edge 0 :=    same_bit_factor_edge_forces_outer_colors_distinct 4 b edge h 3 hproper hinj havoid (hstrong 3) hbit03.symm  have h30 : edge 3 ≠ edge 0 := hproper 0  have h12 : edge 1 ≠ edge 2 := hproper 2  simp only [Finset.disjoint_insert_left, Finset.disjoint_singleton_left,    Finset.mem_insert, Finset.mem_singleton, not_or]  refine ⟨⟨h20.symm, h30.symm⟩, ⟨h12, h31.symm⟩⟩
See it in the graphDiscuss this resultChallenge it