The lines of the Lean statement that state the theorem, then the definitions in the file that it uses.
Local definitions the statement names, followed through the definitions they name in turn. The match is by name in the source text, so a name reached only through notation can be missed; the full file is below.
abbreviation OAI.DilutedSpinGlass.Spin line 12
abbrev Spin := Bool
definition OAI.DilutedSpinGlass.spin line 14
def spin (s : Spin) : ℝ := if s then 1 else -1
abbreviation OAI.DilutedSpinGlass.Interaction line 16
abbrev Interaction (p : ℕ) := (Fin p → Spin) → ℝ
abbreviation OAI.DilutedSpinGlass.InteractionSample line 19
abbrev InteractionSample (p : ℕ) := Interaction p × ℝ × ℝ × (Fin p → Spin → ℝ)
structure OAI.DilutedSpinGlass.Model line 22
structure Model (p : ℕ) where alpha : ℝ≥0 disorder : ProbabilityMeasure (InteractionSample p) field : ProbabilityMeasure ℝ
structure OAI.DilutedSpinGlass.Admissible line 29
structure Admissible {p : ℕ} (M : Model p) : Prop where
Show the remaining 22 lines
arity : 2 ≤ p even : Even p density : 0 < M.alpha interaction_integrable : Integrable (fun z : InteractionSample p => ‖z.1‖) M.disorder.toMeasure field_integrable : Integrable (fun h : ℝ => |h|) M.field.toMeasure factorization : ∀ᵐ z ∂M.disorder.toMeasure, 0 < z.2.1 ∧ ∀ s : Fin p → Spin, Real.exp (z.1 s) = z.2.1 * (1 + z.2.2.1 * ∏ l, z.2.2.2 l (s l)) ∧ |z.2.2.1 * ∏ l, z.2.2.2 l (s l)| < 1 independent_f : iIndepFun (fun l (z : InteractionSample p) => z.2.2.2 l) M.disorder.toMeasure identically_distributed_f : ∀ l j : Fin p, IdentDistrib (fun z : InteractionSample p => z.2.2.2 l) (fun z : InteractionSample p => z.2.2.2 j) M.disorder.toMeasure M.disorder.toMeasure independent_b : IndepFun (fun z : InteractionSample p => z.2.2.1) (fun z : InteractionSample p => z.2.2.2) M.disorder.toMeasure finite_b_moments : ∀ n : ℕ, 1 ≤ n → Integrable (fun z : InteractionSample p => (-z.2.2.1) ^ n) M.disorder.toMeasure positivity : ∀ n : ℕ, 1 ≤ n → 0 ≤ ∫ z : InteractionSample p, (-z.2.2.1) ^ n ∂M.disorder.toMeasure
definition OAI.DilutedSpinGlass.logWeight line 54
noncomputable def logWeight {p N k : ℕ} (theta : Fin k → InteractionSample p) (h : Fin N → ℝ) (indices : Fin k → Fin p → Fin N) (σ : Fin N → Spin) : ℝ := (∑ j, (theta j).1 (fun l => σ (indices j l))) + ∑ i, h i * spin (σ i)
definition OAI.DilutedSpinGlass.logPartition line 58
noncomputable def logPartition {p N k : ℕ} (theta : Fin k → InteractionSample p) (h : Fin N → ℝ) (indices : Fin k → Fin p → Fin N) : ℝ := Real.log (∑ σ : Fin N → Spin, Real.exp (logWeight theta h indices σ))
definition OAI.DilutedSpinGlass.pressure line 64
noncomputable def pressure {p : ℕ} (M : Model p) (N : ℕ) : ℝ := (∫ k : ℕ, ∫ theta : Fin k → InteractionSample p, ∫ h : Fin N → ℝ, ((∑ indices : Fin k → Fin p → Fin N, logPartition theta h indices) / (Fintype.card (Fin k → Fin p → Fin N) : ℝ)) ∂Measure.pi (fun _ : Fin N => M.field.toMeasure) ∂Measure.pi (fun _ : Fin k => M.disorder.toMeasure) ∂poissonMeasure (M.alpha * N)) / N
definition OAI.DilutedSpinGlass.q line 74
noncomputable def q (x : ℝ) (s : Spin) : ℝ := Real.exp (x * spin s) / (2 * Real.cosh x)
definition OAI.DilutedSpinGlass.edge line 77
noncomputable def edge {p : ℕ} (theta : Interaction p) (x : Fin p → ℝ) : ℝ := ∑ s : Fin p → Spin, Real.exp (theta s) * ∏ l, q (x l) (s l)
definition OAI.DilutedSpinGlass.appendSpin line 81
def appendSpin {p : ℕ} (s : Fin (p - 1) → Spin) (ε : Spin) (l : Fin p) : Spin := if h : l.val < p - 1 then s ⟨l.val, h⟩ else ε
definition OAI.DilutedSpinGlass.message line 84
noncomputable def message {p : ℕ} (theta : Interaction p) (x : Fin (p - 1) → ℝ) (ε : Spin) : ℝ := Real.log (∑ s : Fin (p - 1) → Spin, Real.exp (theta (appendSpin s ε)) * ∏ l, q (x l) (s l))
definition OAI.DilutedSpinGlass.siteLog line 89
noncomputable def siteLog {p k : ℕ} (theta : Fin k → InteractionSample p) (h : ℝ) (x : (Fin k × Fin (p - 1)) → ℝ) : ℝ := Real.log ((∑ ε : Spin, Real.exp (h * spin ε + ∑ j, message (theta j).1 (fun l => x (j, l)) ε)) / 2)
definition OAI.DilutedSpinGlass.Hierarchy line 100
noncomputable def Hierarchy : ℕ → TopCat | 0 => TopCat.of ℝ | r + 1 => TopCat.of (ProbabilityMeasure (Hierarchy r))
definition OAI.DilutedSpinGlass.logMean line 107
noncomputable def logMean {ι : Type} [Fintype ι] : (r : ℕ) → ((ι → ℝ) → ℝ) → (Fin r → ℝ) → (ι → Hierarchy r) → ℝ | 0, g, _, x => g x | r + 1, g, m, eta => Real.log (∫ x : ι → Hierarchy r, Real.exp (m 0 * logMean r g (fun i => m i.succ) x) ∂Measure.pi (fun i => (eta i).toMeasure)) / m 0
definition OAI.DilutedSpinGlass.trialLog line 117
noncomputable def trialLog {ι : Type} [Fintype ι] (r : ℕ) (ζ : Hierarchy (r + 1)) (m : Fin r → ℝ) (g : (ι → ℝ) → ℝ) : ℝ := ∫ eta : ι → Hierarchy r, logMean r g m eta ∂Measure.pi (fun _ : ι => ζ.toMeasure)
definition OAI.DilutedSpinGlass.Exponents line 123
def Exponents {r : ℕ} (m : Fin r → ℝ) : Prop := StrictMono m ∧ ∀ i, 0 < m i ∧ m i < 1
definition OAI.DilutedSpinGlass.functional line 127
noncomputable def functional {p : ℕ} (M : Model p) (r : ℕ) (ζ : Hierarchy (r + 1)) (m : Fin r → ℝ) : ℝ :=
Show the remaining 9 lines
Real.log 2 + (∫ k : ℕ, ∫ theta : Fin k → InteractionSample p, ∫ h : ℝ, trialLog r ζ m (siteLog theta h) ∂M.field.toMeasure ∂Measure.pi (fun _ : Fin k => M.disorder.toMeasure) ∂poissonMeasure (M.alpha * p)) - (M.alpha : ℝ) * (p - 1 : ℕ) * (∫ theta : InteractionSample p, trialLog r ζ m (fun x => Real.log (edge theta.1 x)) ∂M.disorder.toMeasure)
definition OAI.DilutedSpinGlass.phi line 139
noncomputable def phi {p : ℕ} (M : Model p) (r : ℕ) : ℝ := sInf {v : ℝ | ∃ (ζ : Hierarchy (r + 1)) (m : Fin r → ℝ), Exponents m ∧ v = functional M r ζ m}
definition OAI.DilutedSpinGlass.variationalValue line 143
noncomputable def variationalValue {p : ℕ} (M : Model p) : ℝ := ⨅ r : ℕ, phi M r