generalized_numerical_semigroup_top_gaps
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
- GeneralizedNumericalSemigroupA generalized numerical semigroup in dimension d is an additive submonoid of ℕ^d whose complement in ℕ^d is finite.
- generalized_numerical_semigroup_topThe submonoid of all elements of ℕ^d is a generalized numerical semigroup with empty complement.
- generalized_numerical_semigroup_gapsThe set of gaps of a generalized numerical semigroup S is the finite set of elements of ℕ^d not belonging to S.
- two_pow_eq_succ_iffFor a natural d, two to the power d equals d+1 exactly when d is zero or one.
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.
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.
uses
two_pow_eq_succ_ifftheorem 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.
- The proof in the source was generated by an automated search: it wraps several candidate tactics in `first`, including an unused lemma `two_pow_eq_succ_iff`. In the successful branch, unfolding the definitions of `generalized_numerical_semigroup_gaps` and `generalized_numerical_semigroup_top` reduces the gap set to the finite set associated with the complement of the universal submonoid ⊤, which is empty, so simplification closes the goal directly.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- 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)