AFTD Auto-Formalizing Theoretical Domains

op874_pseudoforest_pairrich_no_port_cover

theoremverified

For the explicit eight-vertex edge and missing-color data, there is no assignment of a distinct port to each missing color at each vertex that covers every edge at which both endpoints miss that color.

Statement

theorem op874_pseudoforest_pairrich_no_port_cover :
    ¬ ∃ p : Fin 8 → Fin 6 → Fin 8,
      (∀ v z w, z ∈ op874pf_missing v → w ∈ op874pf_missing v → z ≠ w → p v z ≠ p v w) ∧
      (∀ u v z, s(u,v) ∈ op874pf_edges → z ∈ op874pf_missing u → z ∈ op874pf_missing v →
        p u z = v ∨ p v z = u)
Source
OP-874: four overlapping directed cycles in the pair-rich pseudoforest obstruction.
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • op874pf_edgesThe twelve edges of the explicit eight-vertex port-obstruction graph.
  • op874pf_missingThe three missing colors assigned to each vertex in the explicit eight-vertex port-obstruction graph.
Used by 2

The proof, explained

The proof proceeds by contradiction, assuming there exists a valid port assignment that covers every edge between vertices sharing a missing color. For each of the colors 2, 3, 4, and 5, the vertices missing that color induce an explicit 4-cycle in the graph. An auxiliary lemma establishes that covering any 4-cycle with distinct opposite vertices forces the ports along the cycle into one of only two directed orientations (clockwise or counterclockwise). Combining these independent choices gives 16 candidate configurations, but each of the eight vertices belongs to two cycles and requires distinct ports for its two missing colors. In every one of the 16 cases, the chosen orientations assign identical ports to the two missing colors at some vertex, violating injectivity and producing a contradiction.

  1. In a 4-cycle a-b-c-d-a with non-adjacent vertices distinct, if edge {a, b} is covered from a (p = b), all four ports are forced into the clockwise orientation: p = b, q = c, r = d, and s = a.

    We perform a case split on the coverage of edge {a, b} (p = b ∨ q = a). Assuming p = b, the distinctness b ≠ d prevents p = d, which by the coverage of edge {d, a} (s = a ∨ p = d) forces s = a. Then, since a ≠ c, s cannot equal c, which by coverage of {c, d} (r = d ∨ s = c) forces r = d. Finally, since d ≠ b, r cannot equal b, so coverage of {b, c} (q = c ∨ r = b) forces q = c. Combining these equations proves the first disjunct.

    lines 10–14

    uses Or.inl

      rcases hab with hp | hq
      · have hs : s=a := hda.resolve_right (by simpa only [hp] using hbd)
        have hr : r=d := hcd.resolve_right (by simpa only [hs] using hac)
        have hq : q=c := hbc.resolve_right (by simpa only [hr] using hbd.symm)
        exact Or.inl ⟨hp,hq,hr,hs⟩
  2. If edge {a, b} is instead covered from b (q = a), all four ports are forced into the counterclockwise orientation: p = d, q = a, r = b, and s = c.

    In the second case of the split, q = a. Symmetrically, since a ≠ c, q cannot equal c, so coverage of edge {b, c} forces r = b; since b ≠ d, r cannot equal d, so coverage of {c, d} forces s = c; and since c ≠ a, s cannot equal a, so coverage of {d, a} forces p = d. Combining these equations proves the second disjunct.

    lines 15–18

    uses Or.inr

      · have hr : r=b := hbc.resolve_left (by simpa only [hq] using hac)
        have hs : s=c := hcd.resolve_left (by simpa only [hr] using hbd)
        have hp : p=d := hda.resolve_left (by simpa only [hs] using hac.symm)
        exact Or.inr ⟨hp,hq,hr,hs⟩
  3. Assume for contradiction that there exists a valid port assignment p.

    We introduce the assumed port assignment p along with its two defining properties: injectivity (at each vertex v, distinct colors missing at v are assigned distinct ports) and coverage (for any edge whose endpoints both miss color z, at least one endpoint assigns its port for color z to the other endpoint).

    line 25

      rintro ⟨p, hinj, hcover⟩
  4. For each of the colors 2, 3, 4, and 5, the port assignments along its corresponding 4-cycle must follow one of two cyclic orientations.

    The graph contains four monochromatic 4-cycles with respect to the missing colors: color 2 on vertices (4, 5, 6, 7), color 3 on (0, 3, 4, 5), color 4 on (0, 1, 2, 3), and color 5 on (1, 2, 6, 7). In each case, decide confirms that opposite vertices are distinct, all cycle edges exist in op874pf_edges, and each vertex misses the specified color. Applying op874pf_cycle_cover to each cycle in turn restricts the ports for that color to either the clockwise or counterclockwise directed cycle.

    lines 26–49

    uses op874pf_cycle_cover

      have h2 := op874pf_cycle_cover (4 : Fin 8) 5 6 7 (p 4 2) (p 5 2) (p 6 2) (p 7 2)
        (by decide) (by decide)
        (hcover 4 5 2 (by decide) (by decide) (by decide))
        (hcover 5 6 2 (by decide) (by decide) (by decide))
        (hcover 6 7 2 (by decide) (by decide) (by decide))
        (hcover 7 4 2 (by decide) (by decide) (by decide))
      have h3 := op874pf_cycle_cover (0 : Fin 8) 3 4 5 (p 0 3) (p 3 3) (p 4 3) (p 5 3)
        (by decide) (by decide)
        (hcover 0 3 3 (by decide) (by decide) (by decide))
        (hcover 3 4 3 (by decide) (by decide) (by decide))
        (hcover 4 5 3 (by decide) (by decide) (by decide))
        (hcover 5 0 3 (by decide) (by decide) (by decide))
      have h4 := op874pf_cycle_cover (0 : Fin 8) 1 2 3 (p 0 4) (p 1 4) (p 2 4) (p 3 4)
        (by decide) (by decide)
        (hcover 0 1 4 (by decide) (by decide) (by decide))
        (hcover 1 2 4 (by decide) (by decide) (by decide))
        (hcover 2 3 4 (by decide) (by decide) (by decide))
        (hcover 3 0 4 (by decide) (by decide) (by decide))
      have h5 := op874pf_cycle_cover (1 : Fin 8) 2 6 7 (p 1 5) (p 2 5) (p 6 5) (p 7 5)
        (by decide) (by decide)
        (hcover 1 2 5 (by decide) (by decide) (by decide))
        (hcover 2 6 5 (by decide) (by decide) (by decide))
        (hcover 6 7 5 (by decide) (by decide) (by decide))
        (hcover 7 1 5 (by decide) (by decide) (by decide))
  5. At each of the eight vertices, the ports assigned to its two relevant missing colors must be distinct.

    Specializing the injectivity hypothesis hinj to each vertex and the pair of colors appearing in the 4-cycles produces eight inequality hypotheses: p(0, 3) ≠ p(0, 4), p(1, 4) ≠ p(1, 5), p(2, 4) ≠ p(2, 5), p(3, 3) ≠ p(3, 4), p(4, 2) ≠ p(4, 3), p(5, 2) ≠ p(5, 3), p(6, 2) ≠ p(6, 5), and p(7, 2) ≠ p(7, 5). The conditions that these colors are missing at the corresponding vertex and distinct from one another are checked computationally with decide.

    lines 50–57

      have h0 := hinj 0 3 4 (by decide) (by decide) (by decide)
      have h1 := hinj 1 4 5 (by decide) (by decide) (by decide)
      have h2' := hinj 2 4 5 (by decide) (by decide) (by decide)
      have h3' := hinj 3 3 4 (by decide) (by decide) (by decide)
      have h4' := hinj 4 2 3 (by decide) (by decide) (by decide)
      have h5' := hinj 5 2 3 (by decide) (by decide) (by decide)
      have h6' := hinj 6 2 5 (by decide) (by decide) (by decide)
      have h7' := hinj 7 2 5 (by decide) (by decide) (by decide)
  6. Every one of the sixteen combinations of cycle orientations leads to a contradiction. automation

    There are 2⁴ = 16 combinations of orientations for the four cycles. Splitting across all cases with rcases, each branch assigns explicit values to the ports of the two missing colors at each vertex. In every single case, automated simplification (simp_all) detects that the assigned ports violate at least one of the eight injectivity inequalities, closing all goals and finishing the contradiction.

    lines 58–59

      rcases h2 with h2 | h2 <;> rcases h3 with h3 | h3 <;>
        rcases h4 with h4 | h4 <;> rcases h5 with h5 | h5 <;> simp_all
op874pf_cycle_cover
In any 4-cycle a-b-c-d-a with distinct opposite vertices (a ≠ c and b ≠ d), if every edge is covered by a port from at least one endpoint, then the cycle's ports must follow either the clockwise orientation (p=b, q=c, r=d, s=a) or the counterclockwise orientation (p=d, q=a, r=b, s=c).
Or.inl
Introduces a disjunction P ∨ Q given a proof of the left disjunct P.
Or.inr
Introduces a disjunction P ∨ Q given a proof of the right disjunct Q.

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 maxRecDepth 8192set_option maxHeartbeats 2000000private lemma op874pf_cycle_cover {α : Type*} (a b c d p q r s : α)    (hac : a ≠ c) (hbd : b ≠ d)    (hab : p=b ∨ q=a) (hbc : q=c ∨ r=b)    (hcd : r=d ∨ s=c) (hda : s=a ∨ p=d) :    (p=b ∧ q=c ∧ r=d ∧ s=a) ∨      (p=d ∧ q=a ∧ r=b ∧ s=c) := by  rcases hab with hp | hq  · have hs : s=a := hda.resolve_right (by simpa only [hp] using hbd)    have hr : r=d := hcd.resolve_right (by simpa only [hs] using hac)    have hq : q=c := hbc.resolve_right (by simpa only [hr] using hbd.symm)    exact Or.inl ⟨hp,hq,hr,hs⟩  · have hr : r=b := hbc.resolve_left (by simpa only [hq] using hac)    have hs : s=c := hcd.resolve_left (by simpa only [hr] using hbd)    have hp : p=d := hda.resolve_left (by simpa only [hs] using hac.symm)    exact Or.inr ⟨hp,hq,hr,hs⟩theorem op874_pseudoforest_pairrich_no_port_cover :    ¬ ∃ p : Fin 8 → Fin 6 → Fin 8,      (∀ v z w, z ∈ op874pf_missing v → w ∈ op874pf_missing v → z ≠ w → p v z ≠ p v w) ∧      (∀ u v z, s(u,v) ∈ op874pf_edges → z ∈ op874pf_missing u → z ∈ op874pf_missing v →        p u z = v ∨ p v z = u) := by  rintro ⟨p, hinj, hcover⟩  have h2 := op874pf_cycle_cover (4 : Fin 8) 5 6 7 (p 4 2) (p 5 2) (p 6 2) (p 7 2)    (by decide) (by decide)    (hcover 4 5 2 (by decide) (by decide) (by decide))    (hcover 5 6 2 (by decide) (by decide) (by decide))    (hcover 6 7 2 (by decide) (by decide) (by decide))    (hcover 7 4 2 (by decide) (by decide) (by decide))  have h3 := op874pf_cycle_cover (0 : Fin 8) 3 4 5 (p 0 3) (p 3 3) (p 4 3) (p 5 3)    (by decide) (by decide)    (hcover 0 3 3 (by decide) (by decide) (by decide))    (hcover 3 4 3 (by decide) (by decide) (by decide))    (hcover 4 5 3 (by decide) (by decide) (by decide))    (hcover 5 0 3 (by decide) (by decide) (by decide))  have h4 := op874pf_cycle_cover (0 : Fin 8) 1 2 3 (p 0 4) (p 1 4) (p 2 4) (p 3 4)    (by decide) (by decide)    (hcover 0 1 4 (by decide) (by decide) (by decide))    (hcover 1 2 4 (by decide) (by decide) (by decide))    (hcover 2 3 4 (by decide) (by decide) (by decide))    (hcover 3 0 4 (by decide) (by decide) (by decide))  have h5 := op874pf_cycle_cover (1 : Fin 8) 2 6 7 (p 1 5) (p 2 5) (p 6 5) (p 7 5)    (by decide) (by decide)    (hcover 1 2 5 (by decide) (by decide) (by decide))    (hcover 2 6 5 (by decide) (by decide) (by decide))    (hcover 6 7 5 (by decide) (by decide) (by decide))    (hcover 7 1 5 (by decide) (by decide) (by decide))  have h0 := hinj 0 3 4 (by decide) (by decide) (by decide)  have h1 := hinj 1 4 5 (by decide) (by decide) (by decide)  have h2' := hinj 2 4 5 (by decide) (by decide) (by decide)  have h3' := hinj 3 3 4 (by decide) (by decide) (by decide)  have h4' := hinj 4 2 3 (by decide) (by decide) (by decide)  have h5' := hinj 5 2 3 (by decide) (by decide) (by decide)  have h6' := hinj 6 2 5 (by decide) (by decide) (by decide)  have h7' := hinj 7 2 5 (by decide) (by decide) (by decide)  rcases h2 with h2 | h2 <;> rcases h3 with h3 | h3 <;>    rcases h4 with h4 | h4 <;> rcases h5 with h5 | h5 <;> simp_all
See it in the graphDiscuss this resultChallenge it