AFTD Auto-Formalizing Theoretical Domains

op1862_gapSet

def

The gap set of the numerical semigroup generated by a and b: the elements of [0, a*b) that are not expressible as u*a + v*b with u,v ≥ 0.

Statement

def op1862_gapSet (a b : ℕ) : Finset ℕ
Source
step towards op_1862_generalized_wilf_conjecture_graded_semigroup
Verified
18 Nov 2026
Axioms
none listed

Lean source view module on GitHub

/-- Gap set of ⟨a,b⟩ as a Finset; chosen syntactically identical to the target's inline `gaps` let-binding. -/
def op1862_gapSet (a b : ℕ) : Finset ℕ := ((List.range (a * b)).filter (fun h => !(List.range (h + 1)).any fun u => (List.range (h + 1)).any fun v => u * a + v * b == h)).toFinset
See it in the graphDiscuss this resultChallenge it