AFTD Auto-Formalizing Theoretical Domains

generalized_numerical_semigroup_non_gaps_below_gaps

def

The 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 partial order by some gap of S.

Statement

noncomputable def generalized_numerical_semigroup_non_gaps_below_gaps {d : ℕ} (S : GeneralizedNumericalSemigroup d) : Finset (Fin d → ℕ)
Defined in
arXiv:2611.20086 Section 5
Verified
18 Nov 2026
Axioms
none listed
Built on 2
Used by 1

Read back from the Lean

Given a natural number $d$ (implicit) and a generalized numerical semigroup $S$ of dimension $d$ (an additive submonoid of $\text{Fin } d \to \mathbb{N}$ with finite complement), generalized_numerical_semigroup_non_gaps_below_gaps S is the finite set of elements $x \in S$ (as an AddSubmonoid) such that $x \le g$ pointwise for some gap $g \in \text{generalized\_numerical\_semigroup\_gaps } 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 N(S) of non-gaps bounded above by at least one gap of S. -/
noncomputable def generalized_numerical_semigroup_non_gaps_below_gaps {d : ℕ} (S : GeneralizedNumericalSemigroup d) : Finset (Fin d → ℕ) := by
  classical
  exact ((generalized_numerical_semigroup_gaps S).biUnion Finset.Iic).filter
    (fun x => x ∈ S.toAddSubmonoid)
See it in the graphDiscuss this resultChallenge it