ising_inverse_square_ring_kernel
def
For a natural-number ring size L and sites i and j in Fin L, use their real-valued indices i.val and j.val: the kernel is 0 if i=j and otherwise is 1 divided by L squared times sin squared of pi times ((i.val:ℝ)-(j.val:ℝ))/L.
Statement
noncomputable def ising_inverse_square_ring_kernel (L : ℕ) (i j : Fin L) : ℝ
- Defined in
- arXiv:2610.39815, Sections 2–4; helper for OP-806.
- Verified
- 01 Nov 2026
- Axioms
- none listed
- Used by 3
- ising_inverse_square_ring_free_energyFor natural L and real x and h, the reduced free energy per spin is 1/L times the real logarithm of the sum over functions s from Fin L to…
- ising_inverse_square_ring_partitionThe finite-ring partition function at coupling x and field h is the sum over all spin configurations of exp of the interaction energy…
- ising_inverse_square_ring_kernel_diagonalThe periodized ring kernel has zero diagonal.
Read back from the Lean
A definition of a function ising_inverse_square_ring_kernel taking a natural number $L$ and two elements $i, j \in \mathrm{Fin}(L)$, returning a real number. It is defined as:
- $0$, if $i = j$;
- $\frac{1}{L^2 \sin^2\left(\frac{\pi (i - j)}{L}\right)}$, if $i \neq j$ (where $i$ and $j$ represent the values of the indices cast to $\mathbb{R}$, and $L$ is cast to $\mathbb{R}$).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
noncomputable def ising_inverse_square_ring_kernel (L : ℕ) (i j : Fin L) : ℝ := if i = j then 0 else 1 / ((L : ℝ)^2 * (Real.sin (Real.pi * ((i.val : ℝ) - (j.val : ℝ)) / L))^2)