AFTD Auto-Formalizing Theoretical Domains

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

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
See it in the graphDiscuss this resultChallenge it