AFTD Auto-Formalizing Theoretical Domains

op874_unselected_edge_two_bad_nonowners_impossible

theoremverified

Two adjacent nonowner vertices cannot have the displayed four-high-color palettes and disjoint exposed hidden colors at an unselected edge using the common pair.

Statement

theorem op874_unselected_edge_two_bad_nonowners_impossible
    (t s₁ s₂ x₁ x₂ y₁ y₂ : Fin 6)
    (htlo : 2 ≤ t.val) (hthi : t.val ≤ 3)
    (hs₁ : 4 ≤ s₁.val) (hs₂ : 4 ≤ s₂.val)
    (hx₁ : 4 ≤ x₁.val) (hx₂ : 4 ≤ x₂.val)
    (hy₁ : 2 ≤ y₁.val) (hy₂ : 2 ≤ y₂.val)
    (hsx₁ : s₁ ≠ x₁) (hsx₂ : s₂ ≠ x₂)
    (hys₁ : y₁ ≠ s₁) (hys₂ : y₂ ≠ s₂)
    (hyx₁ : y₁ ≠ x₁) (hyx₂ : y₂ ≠ x₂)
    (hyt₁ : y₁ ≠ t) (hyt₂ : y₂ ≠ t) (hyy : y₁ ≠ y₂) : False
Source
Structural two-port reduction for OP-874; experiments 43048, 43073 and 43075 test the local-state implications.
Verified
29 Nov 2026
Axioms
Quot.soundpropext
Used by 1

The proof, explained

The proof derives a contradiction by a pigeonhole argument on finite color sets. First, the distinct pairs {s₁, x₁} and {s₂, x₂} are bounded between 4 and 5, exhausting {4, 5}. Since y₁ and y₂ are each at least 2 and disjoint from their respective pairs, both y₁ and y₂ must lie in {2, 3}. But along with t (which also lies in {2, 3}), this gives three pairwise distinct elements in a two-element set, which the integer arithmetic solver omega recognizes as impossible.

  1. The inequality hypotheses on elements of Fin 6 transfer to inequalities on their underlying natural values: s₁ ≠ x₁, s₂ ≠ x₂, y₁ ≠ s₁, y₂ ≠ s₂, y₁ ≠ x₁, y₂ ≠ x₂, y₁ ≠ t, y₂ ≠ t, and y₁ ≠ y₂.

    By the injectivity of the value projection on Fin n (Fin.ext), if any pair of underlying values were equal, the elements themselves would be equal, contradicting the corresponding distinctness hypotheses.

    lines 11–19

    uses Fin.ext

      have hsx₁' : s₁.val ≠ x₁.val := fun h => hsx₁ (Fin.ext h)
      have hsx₂' : s₂.val ≠ x₂.val := fun h => hsx₂ (Fin.ext h)
      have hys₁' : y₁.val ≠ s₁.val := fun h => hys₁ (Fin.ext h)
      have hys₂' : y₂.val ≠ s₂.val := fun h => hys₂ (Fin.ext h)
      have hyx₁' : y₁.val ≠ x₁.val := fun h => hyx₁ (Fin.ext h)
      have hyx₂' : y₂.val ≠ x₂.val := fun h => hyx₂ (Fin.ext h)
      have hyt₁' : y₁.val ≠ t.val := fun h => hyt₁ (Fin.ext h)
      have hyt₂' : y₂.val ≠ t.val := fun h => hyt₂ (Fin.ext h)
      have hyy' : y₁.val ≠ y₂.val := fun h => hyy (Fin.ext h)
  2. Each of s₁, s₂, x₁, x₂, y₁, y₂ is strictly less than 6.

    These upper bounds are inherent to elements of Fin 6, brought into scope via their .isLt property.

    lines 20–25

      have b₁ := s₁.isLt
      have b₂ := s₂.isLt
      have b₃ := x₁.isLt
      have b₄ := x₂.isLt
      have b₅ := y₁.isLt
      have b₆ := y₂.isLt
  3. y₁ ≤ 3 and y₂ ≤ 3.

    For each index i ∈ {1, 2}, sᵢ and xᵢ are distinct integers in [4, 6), meaning they exhaust {4, 5}. Because yᵢ < 6 and yᵢ is distinct from both sᵢ and xᵢ, yᵢ cannot be 4 or 5, forcing yᵢ ≤ 3. Both inequalities are deduced by linear integer arithmetic via omega.

    lines 26–27

      have y₁small : y₁.val ≤ 3 := by omega
      have y₂small : y₂.val ≤ 3 := by omega
  4. Contradiction (False).

    The variables t, y₁, y₂ are pairwise distinct, yet all three satisfy 2 ≤ · ≤ 3, forcing three distinct integers into the two-element set {2, 3}. By the pigeonhole principle, this is impossible, and omega closes the goal by detecting the unsatisfiable system of linear integer inequalities.

    line 28

      omega
Fin.ext
Two elements of Fin n are equal if their underlying natural-number values are equal.

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_unselected_edge_two_bad_nonowners_impossible    (t s₁ s₂ x₁ x₂ y₁ y₂ : Fin 6)    (htlo : 2 ≤ t.val) (hthi : t.val ≤ 3)    (hs₁ : 4 ≤ s₁.val) (hs₂ : 4 ≤ s₂.val)    (hx₁ : 4 ≤ x₁.val) (hx₂ : 4 ≤ x₂.val)    (hy₁ : 2 ≤ y₁.val) (hy₂ : 2 ≤ y₂.val)    (hsx₁ : s₁ ≠ x₁) (hsx₂ : s₂ ≠ x₂)    (hys₁ : y₁ ≠ s₁) (hys₂ : y₂ ≠ s₂)    (hyx₁ : y₁ ≠ x₁) (hyx₂ : y₂ ≠ x₂)    (hyt₁ : y₁ ≠ t) (hyt₂ : y₂ ≠ t) (hyy : y₁ ≠ y₂) : False := by  have hsx₁' : s₁.val ≠ x₁.val := fun h => hsx₁ (Fin.ext h)  have hsx₂' : s₂.val ≠ x₂.val := fun h => hsx₂ (Fin.ext h)  have hys₁' : y₁.val ≠ s₁.val := fun h => hys₁ (Fin.ext h)  have hys₂' : y₂.val ≠ s₂.val := fun h => hys₂ (Fin.ext h)  have hyx₁' : y₁.val ≠ x₁.val := fun h => hyx₁ (Fin.ext h)  have hyx₂' : y₂.val ≠ x₂.val := fun h => hyx₂ (Fin.ext h)  have hyt₁' : y₁.val ≠ t.val := fun h => hyt₁ (Fin.ext h)  have hyt₂' : y₂.val ≠ t.val := fun h => hyt₂ (Fin.ext h)  have hyy' : y₁.val ≠ y₂.val := fun h => hyy (Fin.ext h)  have b₁ := s₁.isLt  have b₂ := s₂.isLt  have b₃ := x₁.isLt  have b₄ := x₂.isLt  have b₅ := y₁.isLt  have b₆ := y₂.isLt  have y₁small : y₁.val ≤ 3 := by omega  have y₂small : y₂.val ≤ 3 := by omega  omega
See it in the graphDiscuss this resultChallenge it