AFTD Auto-Formalizing Theoretical Domains

standard_core_two_one_is_core

theoremverified

The finset standard_core_two_one is a core in the graph lattice_graph_two_one, that is, is_graph_core lattice_graph_two_one standard_core_two_one holds.

Statement

theorem standard_core_two_one_is_core : is_graph_core lattice_graph_two_one standard_core_two_one
Source
arXiv:2611.18633 Theorem 4.3
Verified
23 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
  • lattice_graph_two_oneThe radius-one lattice graph G_{2,1} on ℤ² has an edge between distinct lattice points u and v if and only if |u₁ - v₁| ≤ 1 and |u₂ - v₂|…
  • instFintypeNeighborSetLatticeGraphTwoOneFor any vertex v : ℤ × ℤ, the neighbor set lattice_graph_two_one.neighborSet v is finite, with a Fintype instance.
  • is_graph_coreIn a locally finite simple graph G, a nonempty finset of vertices S is a core if every vertex in S has at least as many neighbors in S as…
  • standard_core_two_oneThe canonical 12-point set standard_core_two_one is the Finset (ℤ × ℤ) defined as ((Finset.Icc (0 : ℤ) 3) ×ˢ (Finset.Icc (0 : ℤ) 3)) \…

Read back from the Lean

The finset standard_core_two_one satisfies is_graph_core in the graph lattice_graph_two_one. That is, in the King's graph on ℤ × ℤ (where two distinct vertices are adjacent iff their coordinates differ by at most 1 in each dimension), the set S = ({0, 1, 2, 3} × {0, 1, 2, 3}) \ {(0, 0), (0, 3), (3, 0), (3, 3)} is nonempty and every vertex in S has at least as many neighbors inside S as it has outside S.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

To show that the 12-point set `standard_core_two_one` is a core in the lattice graph, the definition of `is_graph_core` is expanded into nonemptiness and the local core inequality: every vertex in the set must have at least as many neighbors inside the set as outside it. Because the set is a concrete 12-element subset of $\mathbb{Z}^2$ and neighborhoods in the grid graph are finite, this is a finite decidable check that Lean verifies by direct computation.

  1. The core property reduces to checking nonemptiness and a neighborhood inequality for each vertex.

    Unfolding the definition of `is_graph_core` replaces the goal with two explicit conditions: `standard_core_two_one` must be non-empty, and for every vertex $v$ in this set, its number of external neighbors $|N(v) \setminus S|$ cannot exceed its number of internal neighbors $|N(v) \cap S|$.

    line 3

      unfold is_graph_core
  2. The core conditions hold for `standard_core_two_one`. automation

    The set `standard_core_two_one` is an explicit finite subset of 12 vertices in $\mathbb{Z} \times \mathbb{Z}$ (a $4 \times 4$ grid without its four corners), and in the King's graph on $\mathbb{Z}^2$ each vertex has 8 neighbors. Nonemptiness and the inequality $|N(v) \setminus S| \le |N(v) \cap S|$ are decidable predicates over finite sets, so the `decide` tactic checks all 12 vertices by direct computation.

    line 4

      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

/-- The canonical 12-point set is a core in G_{2,1}. -/theorem standard_core_two_one_is_core : is_graph_core lattice_graph_two_one standard_core_two_one := by  unfold is_graph_core  decide
See it in the graphDiscuss this resultChallenge it