AFTD Auto-Formalizing Theoretical Domains

ising_two_layer_weight

def

The two-layer Gibbs weight is the exponential of the critical intralayer energy plus c times n to the power negative one half times the overlap of the two spin configurations.

Statement

noncomputable def ising_two_layer_weight (d n : ℕ) (c : ℝ)
    (G H : SimpleGraph (Fin n)) (σ τ : Fin n → Bool) : ℝ
Source
Auxiliary definition for OP-812, critical two-layer random regular Ising crossover.
Verified
01 Nov 2026
Axioms
none listed
Built on 2
  • ising_ring_spinMaps a Boolean spin to the real value +1 for true and -1 for false.
  • ising_two_layer_edge_energyThe edge energy is the sum, over the unordered edges of the graph, of the products of the endpoint spins.
Used by 2

Lean source view module on GitHub

open scoped BigOperators
open MeasureTheory

noncomputable def ising_two_layer_weight (d n : ℕ) (c : ℝ)
    (G H : SimpleGraph (Fin n)) (σ τ : Fin n → Bool) : ℝ :=
  Real.exp (Real.artanh (1 / ((d : ℝ) - 1)) *
    (ising_two_layer_edge_energy G σ + ising_two_layer_edge_energy H τ) +
    c * (n : ℝ) ^ (-(1 / 2 : ℝ)) * ∑ v, ising_ring_spin (σ v) * ising_ring_spin (τ v))
See it in the graphDiscuss this resultChallenge it