AFTD Auto-Formalizing Theoretical Domains

in1261_seven_full_cross_three_defects

theoremverified

In the explicit seven-by-seven control graph, vertex 0 is adjacent to the whole third block and exactly three vertices of the first block are nonadjacent to vertex 14.

Statement

theorem in1261_seven_full_cross_three_defects:
    (∀ y : Fin 28, y ∈ ({14,15,16,17,18,19,20} : Finset (Fin 28)) → in1261_seven_graph.Adj 0 y) ∧
    (({0,1,2,3,4,5,6} : Finset (Fin 28)).filter (fun a => ¬ in1261_seven_graph.Adj a 14)).card = 3
Source
OP-1957: finite seven-by-seven control from experiment 43349; related problem arXiv:2611.22690.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
Used by 1

The proof, explained

The theorem establishes two adjacency properties in the explicit 28-vertex graph in1261_seven_graph: vertex 0 is adjacent to all seven vertices in {14, ..., 20}, and exactly three vertices in {0, ..., 6} fail to be adjacent to vertex 14. First, the adjacency relation is proven decidable by expanding its definition into basic arithmetic comparisons on natural numbers. With decidability available to typeclass search, the claim is verified by direct finite computation using the decide tactic.

  1. The adjacency relation of in1261_seven_graph is decidable.

    Unfolding the definitions of in1261_seven_graph and in1261_seven_forbidden_ordered reduces the adjacency relation to standard decidable predicates on natural numbers (equalities, inequalities, and boolean connectives). Typeclass synthesis (infer_instance) then automatically derives the DecidableRel instance.

    lines 4–5

      unfold in1261_seven_graph in1261_seven_forbidden_ordered
      infer_instance
  2. Vertex 0 is adjacent to every vertex in {14, 15, 16, 17, 18, 19, 20}, and exactly 3 vertices in {0, 1, 2, 3, 4, 5, 6} are nonadjacent to vertex 14. automation

    With the adjacency relation established as decidable, the entire finite statement is verified by the decision procedure decide: it evaluates the universal quantification over {14, ..., 20} by checking each vertex, filters {0, ..., 6} to the three nonadjacent vertices {1, 2, 3}, and confirms the filtered set has cardinality 3.

    line 10

    uses aftdLocal_4177c105032b32a5_0

      decide
aftdLocal_4177c105032b32a5_0
The adjacency relation between vertices in in1261_seven_graph is decidable.

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 maxHeartbeats 4000000set_option linter.all falselocal instance  aftdLocal_4177c105032b32a5_0 : DecidableRel in1261_seven_graph.Adj := by  unfold in1261_seven_graph in1261_seven_forbidden_ordered  infer_instancetheorem in1261_seven_full_cross_three_defects:    (∀ y : Fin 28, y ∈ ({14,15,16,17,18,19,20} : Finset (Fin 28)) → in1261_seven_graph.Adj 0 y) ∧    (({0,1,2,3,4,5,6} : Finset (Fin 28)).filter (fun a => ¬ in1261_seven_graph.Adj a 14)).card = 3 := by  decide
See it in the graphDiscuss this resultChallenge it