generalized_numerical_semigroup_frobenius_allowable
The Frobenius allowable elements of a generalized numerical semigroup S are the maximal elements of its gap set with respect to the pointwise partial order on ℕ^d.
Statement
noncomputable def generalized_numerical_semigroup_frobenius_allowable {d : ℕ} (S : GeneralizedNumericalSemigroup d) : Finset (Fin d → ℕ)
- Defined in
- arXiv:2611.20086 Section 2
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Built on 2
- GeneralizedNumericalSemigroupA generalized numerical semigroup in dimension d is an additive submonoid of ℕ^d whose complement in ℕ^d is finite.
- 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.
Read back from the Lean
Given a dimension $d : ℕ$ and a generalized numerical semigroup $S$ (an additive submonoid of Fin d → ℕ whose complement is finite), generalized_numerical_semigroup_frobenius_allowable S is defined as the finite set of maximal elements of the complement of $S$ under the pointwise order on Fin d → ℕ. That is, it is the set of all $h : \text{Fin } d \to \mathbb{N}$ not in $S$ such that for all $h' : \text{Fin } d \to \mathbb{N}$ not in $S$, if $h \le h'$ (pointwise), then $h = h'$.
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 Frobenius allowable elements (maximal gaps) of S. -/ noncomputable def generalized_numerical_semigroup_frobenius_allowable {d : ℕ} (S : GeneralizedNumericalSemigroup d) : Finset (Fin d → ℕ) := by classical exact (generalized_numerical_semigroup_gaps S).filter (fun h => ∀ h' ∈ generalized_numerical_semigroup_gaps S, h ≤ h' → h = h')