Research Atlas

Главная / Где видна щель на решётке SU(2) / Алгебраическая проверка хордальной оценки

Программа · Python

Алгебраическая проверка хордальной оценки

Где видна щель на решётке SU(2)

Программа · Pythonreplay_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")

Исходные технические записи отражают состояние работы на дату их составления. Уточнения и итоговый вывод приведены в статье.

Контрольная сумма оригинала · SHA-256eebfe5098e0ab3f032810277294b85680b982871fb757036a17899d529b65902