AFTD Auto-Formalizing Theoretical Domains

op874_pseudoforest_pairrich_data

theoremverified

In the explicit eight-vertex graph, the displayed edge colors are proper, the listed missing colors are exactly their complements, adjacent missing palettes intersect in at most two colors, and every vertex subset of every missing-color induced graph spans at most as many edges as vertices.

Statement

theorem op874_pseudoforest_pairrich_data :
    (∀ v : Fin 8, (op874pf_missing v).card = 3) ∧
    (∀ v z, z ∈ op874pf_missing v ↔
      ∀ w : Fin 8, s(v,w) ∈ op874pf_edges → op874pf_color s(v,w) ≠ z) ∧
    (∀ u v w : Fin 8, u ≠ w → s(u,v) ∈ op874pf_edges → s(v,w) ∈ op874pf_edges →
      op874pf_color s(u,v) ≠ op874pf_color s(v,w)) ∧
    (∀ u v : Fin 8, s(u,v) ∈ op874pf_edges →
      (op874pf_missing u ∩ op874pf_missing v).card ≤ 2) ∧
    (∀ z : Fin 6, ∀ S : Finset (Fin 8),
      (∀ v ∈ S, z ∈ op874pf_missing v) → (op874pf_induced_edges S).card ≤ S.card)
Source
OP-874: finite data for the fixed-color pseudoforest obstruction.
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
  • 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.
  • op874pf_colorThe explicit six-color assignment to the edges of the eight-vertex obstruction.
  • op874pf_induced_edgesThe increasing ordered pairs representing the edges induced by a vertex set in the obstruction.

The proof, explained

The theorem verifies five structural properties of an explicit 6-edge-colored 8-vertex graph by finite computation. The first four properties—palette sizes of missing colors, exact complementation with incident edge colors, properness of the coloring, and pairwise palette overlap bounds—are proved immediately by Lean's decision procedure `decide`. The fifth property, stating that the subgraph induced by vertices missing any color z forms a pseudoforest (every subset S spans at most |S| edges), is proved by case analysis on all six colors in Fin 6 and exhaustively checking all 256 vertex subsets with `decide`.

  1. The first four properties hold: each vertex misses exactly three colors, these are precisely the colors absent from incident edges, the edge coloring is proper, and adjacent vertices share at most two missing colors.

    The proof breaks the five-way conjunction into parts with `refine`, solving the first four directly and leaving the fifth for subsequent lines. Because the graph has only 8 vertices, 12 edges, and 6 colors, each of the first four claims is a decidable proposition over finite types; `decide` verifies each by direct computational exhaustion.

    line 14

      refine ⟨by decide, by decide, by decide, by decide, ?_⟩
  2. For every color z and every subset S of vertices missing z, the induced subgraph on S contains at most |S| edges.

    The proof introduces the color parameter z (`intro z`) and splits into six subgoals using `fin_cases z`, one for each color in {0, ..., 5}. For each fixed color, the condition is a universal statement over the 2⁸ = 256 subsets S of the 8 vertices; `decide` exhaustively verifies the inequality on all subsets for each case.

    lines 15–16

      intro z
      fin_cases z <;> decide

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 16384set_option maxHeartbeats 3000000theorem op874_pseudoforest_pairrich_data :    (∀ v : Fin 8, (op874pf_missing v).card = 3) ∧    (∀ v z, z ∈ op874pf_missing v ↔      ∀ w : Fin 8, s(v,w) ∈ op874pf_edges → op874pf_color s(v,w) ≠ z) ∧    (∀ u v w : Fin 8, u ≠ w → s(u,v) ∈ op874pf_edges → s(v,w) ∈ op874pf_edges →      op874pf_color s(u,v) ≠ op874pf_color s(v,w)) ∧    (∀ u v : Fin 8, s(u,v) ∈ op874pf_edges →      (op874pf_missing u ∩ op874pf_missing v).card ≤ 2) ∧    (∀ z : Fin 6, ∀ S : Finset (Fin 8),      (∀ v ∈ S, z ∈ op874pf_missing v) → (op874pf_induced_edges S).card ≤ S.card) := by  refine ⟨by decide, by decide, by decide, by decide, ?_⟩  intro z  fin_cases z <;> decide
See it in the graphDiscuss this resultChallenge it