File size: 1,075 Bytes
848d4b7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
Reference numerical computation for: Autocorrelation Constant C Upper Bound

The autocorrelation constant C is defined as:
    C = inf_f max_t (f*f)(t) / (∫f)^2
where f is non-negative and supported on [-1/4, 1/4].

Current best bounds:
    1.2748 ≤ C ≤ 1.50992

Upper bound: Matolcsi & Vinuesa (2010), arXiv:1002.3298
Lower bound: Cloninger & Steinerberger (2014), arXiv:1205.0626

The best known upper bound of 1.50992 comes from an optimized construction
by Matolcsi & Vinuesa. A simple indicator function f = 1_{[-1/4, 1/4]}
gives ratio 2.0, which is far from optimal.
"""
from mpmath import mp, mpf

mp.dps = 110


def compute():
    """
    Return the best known upper bound on the autocorrelation constant C.

    The best known construction (Matolcsi & Vinuesa, 2010) achieves
    max_t (f*f)(t) / (∫f)^2 ≈ 1.50992.
    """
    # Best known upper bound from Matolcsi & Vinuesa (2010)
    best_known_upper = mpf("1.50992")
    return best_known_upper


if __name__ == "__main__":
    result = compute()
    print(mp.nstr(result, 110, strip_zeros=False))