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.SphericalPerceptronFreeEnergy.Time line 11
abbrev Time := unitInterval
abbreviation OAI.SphericalPerceptronFreeEnergy.BrownianPath line 12
abbrev BrownianPath := C(ℝ≥0, ℝ)
abbreviation OAI.SphericalPerceptronFreeEnergy.Spin line 17
abbrev Spin (N : ℕ) := EuclideanSpace ℝ (Fin N)
definition OAI.SphericalPerceptronFreeEnergy.patternCount line 19
def patternCount (α : ℝ) (N : ℕ) : ℕ := ⌊α * (N : ℝ)⌋₊
abbreviation OAI.SphericalPerceptronFreeEnergy.Patterns line 20
abbrev Patterns (α : ℝ) (N : ℕ) := Fin (patternCount α N) → Fin N → ℝ
definition OAI.SphericalPerceptronFreeEnergy.patternLaw line 22
def patternLaw (α : ℝ) (N : ℕ) : Measure (Patterns α N) := Measure.pi fun _ => Measure.pi fun _ => gaussianReal 0 1
definition OAI.SphericalPerceptronFreeEnergy.unitSphereLaw line 25
def unitSphereLaw (N : ℕ) : Measure (Metric.sphere (0 : Spin N) 1) := let s := (volume : Measure (Spin N)).toSphere (s Set.univ)⁻¹ • s
definition OAI.SphericalPerceptronFreeEnergy.sphereLaw line 29
def sphereLaw (N : ℕ) : Measure (Spin N) := (unitSphereLaw N).map fun x => Real.sqrt (N : ℝ) • x.val
definition OAI.SphericalPerceptronFreeEnergy.patternField line 32
def patternField {α : ℝ} {N : ℕ} (g : Patterns α N) (a : Fin (patternCount α N)) (x : Spin N) : ℝ := (∑ i : Fin N, g a i * x i) / Real.sqrt (N : ℝ)
definition OAI.SphericalPerceptronFreeEnergy.hamiltonian line 36
def hamiltonian (α : ℝ) (φ : ℝ →ᵇ ℝ) (N : ℕ) (g : Patterns α N) (x : Spin N) : ℝ := ∑ a : Fin (patternCount α N), φ (patternField g a x)
definition OAI.SphericalPerceptronFreeEnergy.pressure line 40
def pressure (α β : ℝ) (φ : ℝ →ᵇ ℝ) (N : ℕ) (g : Patterns α N) : ℝ := Real.log (∫ x, Real.exp (β * hamiltonian α φ N g x) ∂sphereLaw N) / (N : ℝ)
definition OAI.SphericalPerceptronFreeEnergy.expectedPressure line 43
def expectedPressure (α β : ℝ) (φ : ℝ →ᵇ ℝ) (N : ℕ) : ℝ := ∫ g, pressure α β φ N g ∂patternLaw α N
structure OAI.SphericalPerceptronFreeEnergy.Trial line 46
structure Trial where toFun : Time → ℝ monotone : Monotone toFun measurable : Measurable toFun nonneg : ∀ t, 0 ≤ toFun t le_one : ∀ t, toFun t ≤ 1
definition OAI.SphericalPerceptronFreeEnergy.timeLaw line 55
def timeLaw : Measure Time := Measure.comap Subtype.val volume
definition OAI.SphericalPerceptronFreeEnergy.tailIntegral line 57
def tailIntegral (m : Trial) (t : Time) : ℝ := ∫ s in Set.Ici t, m s ∂timeLaw
definition OAI.SphericalPerceptronFreeEnergy.entropy line 60
def entropy (m : Trial) : ℝ≥0∞ := (∫⁻ t, (ENNReal.ofReal (tailIntegral m t))⁻¹ - (ENNReal.ofReal (1 - (t : ℝ)))⁻¹ ∂timeLaw) / 2
definition OAI.SphericalPerceptronFreeEnergy.brownianEval line 64
def brownianEval (t : ℝ≥0) (ω : BrownianPath) : ℝ := ω t
definition OAI.SphericalPerceptronFreeEnergy.nullSigma line 66
@[instance_reducible] def nullSigma (P : Measure BrownianPath) : MeasurableSpace BrownianPath := MeasurableSpace.generateFrom {s | P s = 0}
definition OAI.SphericalPerceptronFreeEnergy.usualBrownianSigma line 69
@[instance_reducible] def usualBrownianSigma (P : Measure BrownianPath) (t : Time) : MeasurableSpace BrownianPath := ⨅ s : {s : ℝ≥0 // (t : ℝ) < s}, (⨆ r : {r : ℝ≥0 // r ≤ s.val}, MeasurableSpace.comap (brownianEval r.val) (borel ℝ)) ⊔ nullSigma P
definition OAI.SphericalPerceptronFreeEnergy.Progressive line 75
def Progressive (P : Measure BrownianPath) (v : Time → BrownianPath → ℝ) : Prop := ∀ t : Time, @Measurable (Set.Iic t × BrownianPath) ℝ (MeasurableSpace.prod inferInstance (usualBrownianSigma P t)) (borel ℝ) (fun p => v p.1.val p.2)
definition OAI.SphericalPerceptronFreeEnergy.controlCost line 81
def controlCost (P : Measure BrownianPath) (m : Trial) (v : Time → BrownianPath → ℝ) : ℝ≥0∞ := ∫⁻ ω, ∫⁻ t, ENNReal.ofReal (m t * v t ω ^ 2) ∂timeLaw ∂P
definition OAI.SphericalPerceptronFreeEnergy.controlPayoff line 85
def controlPayoff (P : Measure BrownianPath) (f : ℝ →ᵇ ℝ) (m : Trial) (v : Time → BrownianPath → ℝ) : ℝ := (∫ ω, f (brownianEval 1 ω + ∫ t, m t * v t ω ∂timeLaw) ∂P) - (controlCost P m v).toReal / 2
definition OAI.SphericalPerceptronFreeEnergy.controlValue line 90
def controlValue (P : Measure BrownianPath) (f : ℝ →ᵇ ℝ) (m : Trial) : ℝ := sSup {a | ∃ v : Time → BrownianPath → ℝ, Progressive P v ∧ controlCost P m v < ∞ ∧ a = controlPayoff P f m v}
definition OAI.SphericalPerceptronFreeEnergy.variationalValue line 94
def variationalValue (P : Measure BrownianPath) (α β : ℝ) (φ : ℝ →ᵇ ℝ) : EReal := ⨅ m : Trial, ((α * controlValue P (β • φ) m : ℝ) : EReal) + (entropy m).toEReal