AFTD Auto-Formalizing Theoretical Domains

craig_shell_size_three_one

theoremverifiedformalization

For p = 3 and k = 1, the shortest vector shell size of Craig's lattice is 6.

Statement

theorem craig_shell_size_three_one : craig_shell_size 3 1 = 6
Formalizes
arXiv:2611.22441 Eq. (7)
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • craig_shell_sizeFor natural numbers p and k, craig_shell_size p k is the number of pairs of disjoint k-element subsets of Fin p whose elements have…

Read back from the Lean

craig_shell_size 3 1 is equal to 6.

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

The theorem is proved by direct computation via definitional equality (`rfl`). For parameters $p = 3$ and $k = 1$, `craig_shell_size` counts pairs of disjoint subsets $(S_1, S_2)$ of $\{0, 1, 2\}$ of size 1 whose power sums match for all $r$ in the range $1 \le r < 1$. Because this range is empty, the power-sum condition is vacuously satisfied, leaving exactly the $3 \times 2 = 6$ ordered pairs of distinct singletons.

  1. craig_shell_size 3 1 = 6

    The claim holds by reflexivity (`rfl`), meaning both sides are definitionally equal by computation. Expanding `craig_shell_size 3 1`, the definition counts pairs of subsets $(S_1, S_2)$ of $\mathrm{Fin}\ 3$ satisfying $|S_1| = 1$, $|S_2| = 1$, $S_1 \cap S_2 = \emptyset$, and a moment-matching condition for every integer $r$ with $1 \le r < 1$. Because no such integer $r$ exists, the moment condition is vacuously true. The problem reduces to counting pairs of disjoint singletons from a 3-element set, which gives $3 \times 2 = 6$ pairs. Lean's kernel carries out this finite computation directly.

    line 2

    theorem craig_shell_size_three_one : craig_shell_size 3 1 = 6 := rfl

Written by a model (gemini-3.8-flash) from the Lean source alone (no goal states were available). Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- The shortest vector shell size in Craig's lattice for p = 3 and k = 1 is 6. -/theorem craig_shell_size_three_one : craig_shell_size 3 1 = 6 := rfl
See it in the graphDiscuss this resultChallenge it