generalized_numerical_semigroup_gaps
def
The set of gaps of a generalized numerical semigroup S is the finite set of elements of ℕ^d not belonging to S.
Statement
noncomputable def generalized_numerical_semigroup_gaps {d : ℕ} (S : GeneralizedNumericalSemigroup d) : Finset (Fin d → ℕ)
- Defined in
- arXiv:2611.20086 Definition 2.1
- Verified
- 17 Nov 2026
- Axioms
- none listed
- Built on 1
- GeneralizedNumericalSemigroupA generalized numerical semigroup in dimension d is an additive submonoid of ℕ^d whose complement in ℕ^d is finite.
- Used by 4
- generalized_numerical_semigroup_pseudo_frobeniusThe pseudo-Frobenius elements of a generalized numerical semigroup S are the gaps h of S such that h + s ∈ S for every non-zero s ∈ S.
- generalized_numerical_semigroup_non_gaps_below_gapsThe set of non-gaps below gaps of a generalized numerical semigroup S is the finite set of elements of S bounded above in the pointwise…
- generalized_numerical_semigroup_top_gapsThe gap set of the full generalized numerical semigroup in dimension d is empty.
- generalized_numerical_semigroup_frobenius_allowableThe Frobenius allowable elements of a generalized numerical semigroup S are the maximal elements of its gap set with respect to the…
Read back from the Lean
For a natural number $d$ and a generalized numerical semigroup $S$ in dimension $d$ (an additive submonoid of $\mathrm{Fin}\ d \to \mathbb{N}$ whose complement in $\mathrm{Fin}\ d \to \mathbb{N}$ is finite), generalized_numerical_semigroup_gaps S is defined as the finite set (Finset (Fin d → ℕ)) of all elements in $\mathrm{Fin}\ d \to \mathbb{N}$ that do not belong to $S$ (i.e., the gaps of $S$, formed by coercing the finiteness proof of the complement of $S$ to a Finset).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The finite set of gaps of a generalized numerical semigroup S. -/ noncomputable def generalized_numerical_semigroup_gaps {d : ℕ} (S : GeneralizedNumericalSemigroup d) : Finset (Fin d → ℕ) := S.finite_compl.toFinset