AFTD Auto-Formalizing Theoretical Domains

in1261_seven_anticomplete_pairs

theoremverified

The first and second displayed blocks of the explicit graph are anticomplete, as are the third and fourth blocks.

Statement

theorem in1261_seven_anticomplete_pairs:
    (∀ a ∈ ({0,1,2,3,4,5,6} : Finset (Fin 28)),
      ∀ b ∈ ({7,8,9,10,11,12,13} : Finset (Fin 28)), ¬ in1261_seven_graph.Adj a b) ∧
    (∀ c ∈ ({14,15,16,17,18,19,20} : Finset (Fin 28)),
      ∀ d ∈ ({21,22,23,24,25,26,27} : Finset (Fin 28)), ¬ in1261_seven_graph.Adj c d)
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 states that two pairs of 7-vertex blocks in the 28-vertex graph `in1261_seven_graph` are mutually anticomplete: vertices {0, …, 6} share no edges with {7, …, 13}, and vertices {14, …, 20} share no edges with {21, …, 27}. By definition of the graph, edges between vertices in these ranges are explicitly forbidden. Because the sets are finite and the adjacency relation is decidable, the theorem is proved by finite case exhaustion via 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` exposes the adjacency condition as a boolean combination of decidable arithmetic inequalities on `Fin 28` indices. Lean's typeclass synthesis (`infer_instance`) automatically assembles the decision procedure from standard decidability instances for natural number comparisons.

    lines 4–5

      unfold in1261_seven_graph in1261_seven_forbidden_ordered
      infer_instance
  2. No edge connects any vertex in {0, 1, 2, 3, 4, 5, 6} to any vertex in {7, 8, 9, 10, 11, 12, 13}, and no edge connects any vertex in {14, 15, 16, 17, 18, 19, 20} to any vertex in {21, 22, 23, 24, 25, 26, 27}. automation

    The goal requires proving the absence of edges across two pairs of 7-element vertex sets. Because both sets are finite and adjacency is decidable, the `decide` tactic checks every pair by direct computation: each pair (a, b) with a < 7 and 7 ≤ b < 14, as well as (c, d) with 14 ≤ c < 21 and 21 ≤ d, satisfies the forbidden-pair condition and is therefore non-adjacent.

    line 12

      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 maxHeartbeats 4000000set_option linter.all falselocal instance  aftdLocal_2a60f20893e61368_0 : DecidableRel in1261_seven_graph.Adj := by  unfold in1261_seven_graph in1261_seven_forbidden_ordered  infer_instancetheorem in1261_seven_anticomplete_pairs:    (∀ a ∈ ({0,1,2,3,4,5,6} : Finset (Fin 28)),      ∀ b ∈ ({7,8,9,10,11,12,13} : Finset (Fin 28)), ¬ in1261_seven_graph.Adj a b) ∧    (∀ c ∈ ({14,15,16,17,18,19,20} : Finset (Fin 28)),      ∀ d ∈ ({21,22,23,24,25,26,27} : Finset (Fin 28)), ¬ in1261_seven_graph.Adj c d) := by  decide
See it in the graphDiscuss this resultChallenge it