AFTD Auto-Formalizing Theoretical Domains

ising_inverse_square_ring_partition

def

The finite-ring partition function at coupling x and field h is the sum over all spin configurations of exp of the interaction energy times x plus the field energy times h.

Statement

noncomputable def ising_inverse_square_ring_partition (L : ℕ) (x h : ℝ) : ℝ
Source
step towards ising_inverse_square_bulk_field_polynomials_real_rooted
Verified
01 Nov 2026
Axioms
none listed
Built on 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_kernelFor 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…
  • ising_ring_spinMaps a Boolean spin to the real value +1 for true and -1 for false.

Lean source view module on GitHub

/-- The finite-ring Ising partition function whose log, divided by L, is the reduced free energy. -/
noncomputable def ising_inverse_square_ring_partition (L : ℕ) (x h : ℝ) : ℝ := ∑ s : Fin L → Bool,
    Real.exp (x * (∑ i : Fin L, ∑ j : Fin L,
      if i.val < j.val then ising_inverse_square_ring_kernel L i j *
        ising_ring_spin (s i) * ising_ring_spin (s j) else 0) +
      h * (∑ i : Fin L, ising_ring_spin (s i)))
See it in the graphDiscuss this resultChallenge it