AFTD Auto-Formalizing Theoretical Domains

generalized_numerical_semigroup_eta

def

For an element f in ℕ^d, η_f is the number of non-gaps below gaps of S that are bounded above by f in the pointwise partial order.

Statement

noncomputable def generalized_numerical_semigroup_eta {d : ℕ} (S : GeneralizedNumericalSemigroup d) (f : Fin d → ℕ) : ℕ
Defined in
arXiv:2611.20086 Section 6
Verified
18 Nov 2026
Axioms
none listed
Built on 2

Read back from the Lean

Given a dimension d : ℕ, a generalized numerical semigroup S of dimension d (an additive submonoid of Fin d → ℕ with finite complement), and an element f : Fin d → ℕ, generalized_numerical_semigroup_eta S f is defined as the cardinality of the finite set of elements s ∈ S such that s ≤ f and there exists a gap g ∉ S with s ≤ g, under the pointwise partial order on Fin d → ℕ.

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 number of non-gaps below gaps of S that are less than or equal to f. -/
noncomputable def generalized_numerical_semigroup_eta {d : ℕ} (S : GeneralizedNumericalSemigroup d) (f : Fin d → ℕ) : ℕ := by
  classical
  exact ((generalized_numerical_semigroup_non_gaps_below_gaps S).filter (fun s => s ≤ f)).card
See it in the graphDiscuss this resultChallenge it