AFTD Auto-Formalizing Theoretical Domains

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

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)
See it in the graphDiscuss this resultChallenge it