Documentation

LeanPool.ErdosMoser.Basic

Distinct subset sums #

This file defines finite sets of natural numbers with distinct subset sums and establishes the elementary upper bound on their sum of squares in terms of their largest element.

A finite set has distinct subset sums if the subset-sum map on its powerset is injective.

Equations
Instances For

    The powerset of a finite set has cardinality 2 ^ A.card.

    theorem LeanPool.ErdosMoser.sumSquaresLeCardMulMaxSquare {A : Finset ℕ} (hA : A.Nonempty) :
    ∑ a ∈ A, ↑a ^ 2 ≤ ↑A.card * ↑(A.max' hA) ^ 2

    The sum of the squared elements of a nonempty finite set is at most its cardinality times the square of its largest element.