AFTD Auto-Formalizing Theoretical Domains

ising_two_layer_gibbs_expectation

def

The finite Gibbs expectation of a bounded continuous test function is the sum over both spin configurations of its value at the scaled magnetization pair times the Gibbs weight, divided by the sum of the weights.

Statement

noncomputable def ising_two_layer_gibbs_expectation (d n : ℕ) (c : ℝ)
    (G H : SimpleGraph (Fin n)) (f : BoundedContinuousFunction (ℝ × ℝ) ℝ) : ℝ
Source
Auxiliary definition for OP-812, critical two-layer random regular Ising crossover.
Verified
01 Nov 2026
Axioms
none listed
Built on 2
  • ising_two_layer_weightThe two-layer Gibbs weight is the exponential of the critical intralayer energy plus c times n to the power negative one half times the…
  • ising_two_layer_observableThe observable is the pair of total layer magnetizations, each multiplied by n to the power negative three quarters.
Used by 1
  • ising_two_layer_bad_fractionAmong all ordered pairs of simple d-regular graphs on Fin n, the fraction whose Gibbs expectation differs from the target expectation by…

Lean source view module on GitHub

open scoped BigOperators
open MeasureTheory

noncomputable def ising_two_layer_gibbs_expectation (d n : ℕ) (c : ℝ)
    (G H : SimpleGraph (Fin n)) (f : BoundedContinuousFunction (ℝ × ℝ) ℝ) : ℝ :=
  (∑ σ : Fin n → Bool, ∑ τ : Fin n → Bool,
    ising_two_layer_weight d n c G H σ τ * f (ising_two_layer_observable n σ τ)) /
  (∑ σ : Fin n → Bool, ∑ τ : Fin n → Bool, ising_two_layer_weight d n c G H σ τ)
See it in the graphDiscuss this resultChallenge it