generalized_numerical_semigroup_pseudo_frobenius
def
The 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.
Statement
noncomputable def generalized_numerical_semigroup_pseudo_frobenius {d : ℕ} (S : GeneralizedNumericalSemigroup d) : Finset (Fin d → ℕ)
- Defined in
- arXiv:2611.20086 Definition 2.4
- Verified
- 17 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 → ℕ with finite complement in Fin d → ℕ), generalized_numerical_semigroup_pseudo_frobenius S is defined as the finite set of gaps h of S (elements in Fin d → ℕ not in S) such that for all s ∈ S, if s ≠ 0, then h + s ∈ S.
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 pseudo-Frobenius elements of a generalized numerical semigroup S. -/ noncomputable def generalized_numerical_semigroup_pseudo_frobenius {d : ℕ} (S : GeneralizedNumericalSemigroup d) : Finset (Fin d → ℕ) := by classical exact (generalized_numerical_semigroup_gaps S).filter (fun h => ∀ s ∈ S.toAddSubmonoid, s ≠ 0 → h + s ∈ S.toAddSubmonoid)