AFTD Auto-Formalizing Theoretical Domains

path_selection_of_no_common_color

theoremverified

For a path of finite equal-size palettes with empty total intersection, arbitrary prescribed endpoint colors extend to a compatible selection.

Statement

theorem path_selection_of_no_common_color
    {Ω : Type*} [DecidableEq Ω] (P : ℕ → Finset Ω)
    (hcard : ∀ i, (P i).card = (P (i+1)).card)
    (n : ℕ) (x y : Ω) (hx : x ∈ P 0) (hy : y ∈ P n)
    (hcover : ∀ z : Ω, ∃ i ≤ n, z ∉ P i) :
    ∃ g : ℕ → Ω, g 0 = x ∧ g n = y ∧ (∀ i ≤ n, g i ∈ P i) ∧
      (∀ i < n, g (i+1) ∈ P i → g (i+1) = g i)
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 1
  • path_selection_fixed_endpointsFor a finite path of finite sets of equal cardinality and prescribed elements x and y of its first and last sets, a selection exists from…
Used by 2

The proof, explained

The theorem is proved by applying path_selection_fixed_endpoints, which reduces the existence of the selection to showing that if the endpoint color y belongs to all palettes along the path, then x = y. This implication holds vacuously because the covering hypothesis asserts that no color belongs to every palette, so y ∉ P i for some i ≤ n, immediately refuting the premise.

  1. It suffices to show that if y ∈ P i for all i ≤ n, then x = y.

    By path_selection_fixed_endpoints (specifically its right-to-left direction), a compatible palette selection from x to y exists if and only if y belonging to every palette along the path forces x = y.

    line 8

    uses path_selection_fixed_endpoints

      apply (path_selection_fixed_endpoints P hcard x hx n y hy).2
  2. The condition holds vacuously because y cannot belong to all palettes along the path.

    Assume for contradiction that y ∈ P i for every i ≤ n. The hypothesis hcover applied to z = y guarantees some index i ≤ n such that y ∉ P i. This directly contradicts the assumption that y is in every palette, so the premise is false and the implication holds vacuously by explosion (ex falso quodlibet).

    lines 9–11

      intro hall
      obtain ⟨i, hi, hn⟩ := hcover y
      exact (hn (hall i hi)).elim
path_selection_fixed_endpoints
A compatible selection along a path of equal-sized palettes with endpoints x ∈ P 0 and y ∈ P n exists if and only if: whenever y belongs to every palette up to n, x must equal y.

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 path_selection_of_no_common_color    {Ω : Type*} [DecidableEq Ω] (P : ℕ → Finset Ω)    (hcard : ∀ i, (P i).card = (P (i+1)).card)    (n : ℕ) (x y : Ω) (hx : x ∈ P 0) (hy : y ∈ P n)    (hcover : ∀ z : Ω, ∃ i ≤ n, z ∉ P i) :    ∃ g : ℕ → Ω, g 0 = x ∧ g n = y ∧ (∀ i ≤ n, g i ∈ P i) ∧      (∀ i < n, g (i+1) ∈ P i → g (i+1) = g i) := by  apply (path_selection_fixed_endpoints P hcard x hx n y hy).2  intro hall  obtain ⟨i, hi, hn⟩ := hcover y  exact (hn (hall i hi)).elim
See it in the graphDiscuss this resultChallenge it