Research Atlas

Home / Seeing the gap on an SU(2) lattice / Algebraic check of the chordal bound

Python program

Algebraic check of the chordal bound

Seeing the gap on an SU(2) lattice

Python programreplay_chordal_algebra.py
"""Exact finite algebra and constants for the small-field chordal bound."""

from fractions import Fraction
from math import comb, factorial


def i0_square(index):
    return Fraction(comb(2 * index, index), factorial(index) ** 2)


def i1_square(index):
    if index < 0:
        return Fraction(0)
    return Fraction(
        comb(2 * index + 2, index + 1),
        factorial(index) * factorial(index + 2),
    )


def transverse_numerator(index):
    product = (index + 1) * (index + 2)
    return (
        comb(2 * index, index) * (4 * (2 * index + 1) + (index - 1) * product)
        - 4**index * product
    )


assert [transverse_numerator(index) for index in range(6)] == [
    0, 0, 0, 80, 1140, 10416,
]
for index in range(20):
    first_factorials = factorial(index) * factorial(index + 1)
    coefficient = (
        8 * i1_square(index)
        + 8 * i1_square(index - 1)
        - 4 * i0_square(index)
        - Fraction(2 ** (2 * index + 2), first_factorials)
    )
    assert coefficient == Fraction(
        4 * transverse_numerator(index),
        first_factorials * (index + 1) * (index + 2),
    )


def cubic(u):
    return 8 * u**3 + 28 * u**2 - 98 * u - 695


# Both sides after multiplication by (u+3/2)^4 have degree <=4.
for u in map(Fraction, range(2, 7)):
    v = u + Fraction(3, 2)
    s_squared = u**2 - Fraction(25, 4)
    combined_numerator = 64 + (s_squared / 4 - 2) * v**2 - v**3 / 2
    factored_numerator = (2 * u - 5) * cubic(u) / 64
    assert combined_numerator == factored_numerator

assert cubic(4) == -127
assert 9 + Fraction(25, 4) < 16
assert 6 * Fraction(2, 7) < 3
assert 2 / Fraction(7, 25) - 6 == Fraction(8, 7)
print("PASS: transverse initial coefficients, radial quartic, field and transfer constants")

The original records reflect the work at the time of writing. The article gives the final interpretation and scope.

Original file checksum · SHA-256eebfe5098e0ab3f032810277294b85680b982871fb757036a17899d529b65902