Documentation

LeanPool.Erdos865.Sharpness

Sharpness of the 5/8 bound (Erdős 865, §5) #

The construction A = [M,2M] ∪ [4M,8M] is triple-free of size 5M + 2, so for N = 8M one has 8·|A| = 5·N + 16, showing the constant 5/8 is optimal.

The sharpness construction A = [M, 2M] ∪ [4M, 8M].

Equations
Instances For
    theorem Erdos865.sharpSet_subset {M : } (hM : 1 M) :
    sharpSet MFinset.Icc 1 (8 * M)

    The construction sits inside [1, 8M] (for M ≥ 1).

    theorem Erdos865.sharpSet_card {M : } (hM : 1 M) :
    (sharpSet M).card = 5 * M + 2

    The construction has 5M + 2 elements.

    The construction is triple-free.

    theorem Erdos865.sharpness {M : } (hM : 1 M) :
    AFinset.Icc 1 (8 * M), IsTripleFree A 8 * A.card = 5 * (8 * M) + 16

    Sharpness: for N = 8M with M ≥ 1 there is a triple-free subset of [1,N] of size 5M + 2, i.e. with 8 * card = 5 * N + 16.