AFTD Auto-Formalizing Theoretical Domains

generalized_numerical_semigroup_top_gaps

theoremverified

The gap set of the full generalized numerical semigroup in dimension d is empty.

Statement

theorem generalized_numerical_semigroup_top_gaps (d : ℕ) : generalized_numerical_semigroup_gaps (generalized_numerical_semigroup_top d) = ∅
Source
arXiv:2611.20086 Definition 2.1
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4

Read back from the Lean

For every natural number $d$, the set of gaps of the top generalized numerical semigroup of dimension $d$ (whose underlying additive submonoid is the full submonoid $\top$ on $\text{Fin } d \to \mathbb{N}$) is the empty finset.

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

By definition, the full generalized numerical semigroup in dimension d contains every element of ℕᵈ (the universal submonoid ⊤). Its complement is therefore empty, so its gap set—the finite set of elements in ℕᵈ not belonging to the semigroup—is the empty set. The proof unfolds these definitions and completes the goal by simplification.

  1. The gap set of the full generalized numerical semigroup in dimension d is empty. automation

    Unfolding the definitions of the gap set (`generalized_numerical_semigroup_gaps`) and the full semigroup (`generalized_numerical_semigroup_top`), the gaps are defined as the complement in ℕᵈ of the underlying submonoid, converted to a finite set. Since the submonoid of the full semigroup is the top submonoid ⊤ (all of ℕᵈ), its complement is the empty set, whose corresponding finite set is ∅. Simplification closes the goal.

    line 2

    uses two_pow_eq_succ_iff

    theorem generalized_numerical_semigroup_top_gaps (d : ℕ) : generalized_numerical_semigroup_gaps (generalized_numerical_semigroup_top d) = ∅ := by first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff | (simp only [generalized_numerical_semigroup_gaps, generalized_numerical_semigroup_top] at *; first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff)
two_pow_eq_succ_iff
For any natural number d, 2^d = d + 1 if and only if d = 0 or d = 1.

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 gap set of the full generalized numerical semigroup is empty. -/theorem generalized_numerical_semigroup_top_gaps (d : ℕ) : generalized_numerical_semigroup_gaps (generalized_numerical_semigroup_top d) = ∅ := by first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff | (simp only [generalized_numerical_semigroup_gaps, generalized_numerical_semigroup_top] at *; first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff)
See it in the graphDiscuss this resultChallenge it