AFTD Auto-Formalizing Theoretical Domains

op309_vertexwise_four_tables_core

theoremverified

Each of the four valid port tables has five core classes with three triple hosts per class, and every class pair shares a host.

Statement

theorem op309_vertexwise_four_tables_core : ∀ i : Fin 4, Op309VertexwiseCore.validCore i = true
Source
OP-309 vertexwise fixed-forest obstruction; experiments 40589 and 40590.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem is established by exhaustive case analysis over the four table indices $i \\in \\{0, 1, 2, 3\\}$. For each case, Lean's `decide` tactic checks the computable boolean predicate `validCore i` by direct computation, verifying that the core set has size 5, each element of the core belongs to at least three host triples contained in the core, and every pair of core elements shares a host.

  1. For every table index $i \\in \\{0, 1, 2, 3\\}$, `validCore i` evaluates to `true`. automation

    We introduce the arbitrary index $i \\in \\text{Fin } 4$ and perform exhaustive case analysis using `fin_cases i`, producing four subgoals corresponding to $i = 0, 1, 2, 3$. For each case, `validCore i = true` is a decidable equality on finite lists and finsets; the `decide` tactic closes each branch by direct kernel evaluation.

    line 25

    theorem op309_vertexwise_four_tables_core : ∀ i : Fin 4, Op309VertexwiseCore.validCore i = true := by intro i; fin_cases i <;> 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 32768set_option maxHeartbeats 0namespace Op309VertexwiseCoredef hosts : Fin 4 → List (Finset (Fin 8)) := ![  [{0,1,6},{1,2,7},{1,2,3},{1,2,4},{2,4,5},{0,2,4},{1,4,7},{0,1,2},{3,5,6},{0,1,7}],  [{0,1,6},{1,2,7},{1,2,3},{1,2,4},{0,2,5},{0,2,4},{0,1,7},{0,1,2},{3,5,6},{1,4,7}],  [{0,1,6},{1,2,7},{0,2,3},{1,2,4},{1,2,5},{0,1,4},{0,2,7},{0,1,2},{3,5,6},{1,4,7}],  [{0,1,7},{1,2,3},{2,3,4},{1,2,5},{1,2,6},{1,3,5},{0,2,3},{0,1,2},{4,6,7},{0,1,5}]]def cores : Fin 4 → Finset (Fin 8) := ![  {0,1,2,4,7}, {0,1,2,4,7}, {0,1,2,4,7}, {0,1,2,3,5}]def validCore (i : Fin 4) : Bool :=  decide ((cores i).card = 5) &&  ((List.finRange 8).all fun a => decide (a ∉ cores i) ||    decide (3 ≤ ((hosts i).filter fun H =>      a ∈ H ∧ 3 ≤ (H ∩ cores i).card).length)) &&  ((List.finRange 8).all fun a => (List.finRange 8).all fun b =>    decide (a ∉ cores i) || decide (b ∉ cores i) || decide (a = b) ||      (hosts i).any fun H => decide (a ∈ H ∧ b ∈ H))end Op309VertexwiseCoretheorem op309_vertexwise_four_tables_core : ∀ i : Fin 4, Op309VertexwiseCore.validCore i = true := by intro i; fin_cases i <;> decide
See it in the graphDiscuss this resultChallenge it