cfahlgren1/math / lean /OAI /Probability /InvariantIsing /Fields /SpinPriorTemperatureDerivative.lean
cfahlgren1's picture
download
raw
3.78 kB
import OAI.Probability.InvariantIsing.Fields.SpinPriorTemperatureCGF
import OAI.Probability.InvariantIsing.Pressure.ThermalPressure
namespace OAI
/-! The temperature derivative for the actual constrained cascade model. -/
noncomputable section
open MeasureTheory ProbabilityTheory IsingPerceptron Set Filter
open scoped BigOperators Topology
namespace InvariantIsing
def spinPriorObservableAverage {N m k n : ℕ}
(μ : Measure (SpecialOrthogonal N)) (π : Measure (Spin N))
(eig c : Fin N → ℝ) (I : Fin m → Finset (Fin N))
(degree : Fin k → Fin m → ℕ) (amp : Fin k → ℝ) (b : ℕ → ℝ) (r : Fin k → ℕ) (h : ℕ → ℝ)
(D : SpecialOrthogonal N → Spin N × LabeledLeaf n → ℝ) : ℝ :=
∫ p : TensorFlatDisorder N n, ∫ x, D p.1.1 x
∂spinPriorNamespacedReference π eig c I degree amp r h p
∂(μ.prod (labeledCascadeLaw n b : Measure (LabeledTree n))).prod gaussianCoordinates
theorem hasDerivAt_spinPriorMeanPressure_temperature {N m k : ℕ} (hN : 0 < N)
(μ : Measure (SpecialOrthogonal N)) [IsProbabilityMeasure μ]
(π : Measure (Spin N)) [IsProbabilityMeasure π] (eig c : Fin N → ℝ)
(I : Fin m → Finset (Fin N)) (v : Fin m → ℝ)
(degree : Fin k → Fin m → ℕ) (amp : Fin k → ℝ)
(n : ℕ) (b : ℕ → ℝ) (r : Fin k → ℕ) (h : ℕ → ℝ) (hh : Monotone h) (h0 : 0 ≤ h 0)
(K : ℝ) (hK : ∀ i, |eig i| ≤ K) (t : ℝ) :
HasDerivAt (fun s => spinPriorMeanPressure (n := n) μ π
(diagonalPerturbedEigenvalues eig I v s) c I degree amp b r h)
(spinPriorObservableAverage (n := n) μ π (diagonalPerturbedEigenvalues eig I v t)
c I degree amp b r h (fun U x => (N : ℝ)⁻¹ * rotatedEnergy eig (specialRotation U) x.1)) t := by
let P := (μ.prod (labeledCascadeLaw n b : Measure (LabeledTree n))).prod gaussianCoordinates
let ν := spinPriorNamespacedReference (n := n) π (diagonalPerturbedEigenvalues eig I v 0) c I degree amp r h
let Y := fun (p : TensorFlatDisorder N n) (x : Spin N × LabeledLeaf n) =>
rotatedEnergy eig (specialRotation p.1.1) x.1
have hY : Measurable (Function.uncurry Y) := measurable_tensorTemperatureObservable eig
have hB (p : TensorFlatDisorder N n) (x : Spin N × LabeledLeaf n) : |Y p x| ≤ K * N / 2 :=
abs_rotatedEnergy_le eig (specialRotation p.1.1) K hK x.1
have hd := hasDerivAt_bounded_random_cgf P ν
(measurable_spinPriorNamespacedReference (n := n) π _ c I degree amp r h) Y hY (K * N / 2) hB t
let M := fun s => spinPriorMeanPressure (n := n) μ π
(diagonalPerturbedEigenvalues eig I v s) c I degree amp b r h
have he (s : ℝ) : M s = M 0 + (∫ p, cgf (Y p) (ν p) s ∂P) / N := by
have hi (s : ℝ) := spinPriorNamespacedLog_integrable (n := n) μ π
(diagonalPerturbedEigenvalues eig I v s) c I degree amp b r h hh h0
rw [integral_congr_ae (spinPriorTemperatureCGF_eq_log_difference hN μ π eig c I v degree amp n b r h hh h0 s),
integral_sub (hi s) (hi 0)]
dsimp only [M, spinPriorMeanPressure]
ring
have hf : M = fun s => M 0 + (∫ p, cgf (Y p) (ν p) s ∂P) / N := funext he
have hfold : (∫ p, ∫ x, Y p x ∂(ν p).tilted (fun x => t * Y p x) ∂P) =
∫ p, ∫ x, Y p x ∂spinPriorNamespacedReference (n := n) π (diagonalPerturbedEigenvalues eig I v t)
c I degree amp r h p ∂P := by
apply integral_congr_ae
filter_upwards [spinPriorTemperature_reference_fold hN μ π eig c I v degree amp n b r h hh h0 t] with p hp
rw [hp]
have hhD := (hd.div_const (N : ℝ)).const_add (M 0)
rw [hfold] at hhD
rw [← hf] at hhD
simpa only [M, Y, P, spinPriorObservableAverage, integral_const_mul, integral_mul_const, div_eq_mul_inv,
mul_comm] using hhD
end InvariantIsing
end
end OAI

Xet Storage Details

Size:
3.78 kB
·
Xet hash:
54c8a8738567a90417721c91c0408836d2ba2ea50411a2e175687c8fce7a282d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.