allUniqueSums A is the set of elements in α that can be written as the sum of exactly one
unordered pair of elements from A.
Equations
Instances For
A set A has no unique representation in its sumset A + A if for every pair of elements
a₁, a₂ ∈ A, there exist another pair of elements b₁, b₂ ∈ A such that a₁ + a₂ = b₁ + b₂
and {a₁, a₂} ≠ {b₁, b₂}.
Equations
- HasNoUniqueRepresentation A = (allUniqueSums ↑A = ∅)
Instances For
A Sidon set is a set, such that such that all pairwise sums of elements are distinct apart from coincidences forced by the commutativity of addition.
Equations
Instances For
Maximal Sidon sets in an interval.
We follow the convention that IsMaximalSidonSetIn A N means A ⊆ {1, …, N} is Sidon and
is inclusion-maximal among subsets of Set.Icc 1 N with the Sidon property.
IsMaximalSidonSetIn A N means A ⊆ {1, …, N} is Sidon and cannot be extended within
{1, …, N} while remaining Sidon.
Equations
Instances For
If A is a maximal Sidon set in {1, …, N}, then A ⊆ {1, …, N}.
If A is a maximal Sidon set in {1, …, N}, then A is Sidon.
The maximum size of a Sidon set in the supplied Finset.
Equations
- A.maxSidonSubsetCard = {B ∈ A.powerset | IsSidon ↑B}.sup Finset.card