cfahlgren1/math / lean /OAI /Probability /InvariantIsing /Fields /SpinPriorReplicaAverage.lean
cfahlgren1's picture
download
raw
4.93 kB
import OAI.Probability.InvariantIsing.Fields.SpinPriorFrozenGibbs
import OAI.Probability.InvariantIsing.Arrays.TensorReplicaAverageLaw
import OAI.Probability.InvariantIsing.Spectral.SpectralGG
namespace OAI
/-! Finite replica averages under the actual namespaced tensor Gibbs law. -/
noncomputable section
open MeasureTheory ProbabilityTheory IsingPerceptron
namespace InvariantIsing
def spinPriorReplicaAverage {N m k q : ℕ}
(μ : Measure (SpecialOrthogonal N)) (π : Measure (Spin N)) (eig c : Fin N → ℝ)
(I : Fin m → Finset (Fin N)) (degree : Fin k → Fin m → ℕ) (amplitude : Fin k → ℝ)
(n : ℕ) (b : ℕ → ℝ) (r : Fin k → ℕ) (h : ℕ → ℝ)
(D : SpecialOrthogonal N → (Fin q → Spin N × LabeledLeaf n) → ℝ) : ℝ :=
∫ p : TensorFlatDisorder N n,
referenceReplicaMean (spinPriorNamespacedReference (n := n) π eig c I degree amplitude r h p)
(fun _ => 0) (D p.1.1)
∂(μ.prod (labeledCascadeLaw n b : Measure (LabeledTree n))).prod gaussianCoordinates
lemma measurable_spinPriorReplicaMean {N m k q : ℕ}
(π : Measure (Spin N)) [IsProbabilityMeasure π] (eig c : Fin N → ℝ)
(I : Fin m → Finset (Fin N)) (degree : Fin k → Fin m → ℕ) (amplitude : Fin k → ℝ)
(n : ℕ) (r : Fin k → ℕ) (h : ℕ → ℝ)
(D : SpecialOrthogonal N → (Fin q → Spin N × LabeledLeaf n) → ℝ)
(hD : Measurable (Function.uncurry D)) :
Measurable (fun p : TensorFlatDisorder N n =>
referenceReplicaMean (spinPriorNamespacedReference (n := n) π eig c I degree amplitude r h p)
(fun _ => 0) (D p.1.1)) := by
exact measurable_random_referenceReplicaMean
(measurable_spinPriorNamespacedReference (n := n) π eig c I degree amplitude r h) measurable_const
(hD.comp (measurable_fst.fst.fst.prodMk measurable_snd))
/-- Gaussian insertion and actual full-model sampling give exactly the
same bounded finite-replica averages, retaining the common Haar rotation. -/
theorem spinPriorFrozenGaussian_replicaAverage {N m k q : ℕ}
(μ : Measure (SpecialOrthogonal N)) [IsProbabilityMeasure μ]
(π : Measure (Spin N)) [IsProbabilityMeasure π] (eig c : Fin N → ℝ)
(I : Fin m → Finset (Fin N)) (degree : Fin k → Fin m → ℕ) (amplitude : Fin k → ℝ)
(n : ℕ) (b : ℕ → ℝ) (r : Fin k → ℕ) (h : ℕ → ℝ) (hh : Monotone h) (h0 : 0 ≤ h 0)
(j : Fin k) (t : ℝ)
(D : SpecialOrthogonal N → (Fin q → Spin N × LabeledLeaf n) → ℝ)
(hD : Measurable (Function.uncurry D)) :
let U := fun ω : TensorFrozenData N n j => ω.1.1
randomCoefficientAverage (tensorFrozenLaw μ n b j)
(spinPriorFrozenReference π eig c I degree amplitude n r h j)
(spectralPerturbationCoefficients U I (degree j) n (r j)) t (fun ω => D (U ω)) =
spinPriorReplicaAverage μ π eig c I degree (Function.update amplitude j t) n b r h D := by
intro U
let ν := spinPriorFrozenReference π eig c I degree amplitude n r h j
let A := spectralPerturbationCoefficients U I (degree j) n (r j)
have hAm := measurable_spectralPerturbationFields U measurable_fst.fst I (degree j) n (r j)
have hA (ω : TensorFrozenData N n j) (x : Spin N × LabeledLeaf n) :
(A ω x).sum (fun _ c => c ^ 2) ≤ 1 :=
jointSpectralMonomialCoefficients_variance_le_one (specialRotation (U ω)) I (degree j) n (r j) x
have he := randomCoefficient_all_exp_ae (P := tensorFrozenLaw μ n b j)
(measurable_spinPriorFrozenReference π eig c I degree amplitude n r h j) A hAm hA
have hf := spinPriorFrozenGaussian_reference_fold_ae μ π eig c I degree amplitude n b r h hh h0 j t
let F := fun p : TensorFlatDisorder N n =>
referenceReplicaMean (spinPriorNamespacedReference (n := n) π eig c I degree (Function.update amplitude j t) r h p)
(fun _ => 0) (D p.1.1)
have hF : Measurable F := measurable_spinPriorReplicaMean π eig c I degree
(Function.update amplitude j t) n r h D hD
unfold randomCoefficientAverage
calc
_ = ∫ p : TensorFrozenData N n j × (ℕ → ℝ),
F (p.1.1, gaussianNamespaceJoin (j + 1) (p.2, p.1.2))
∂(tensorFrozenLaw μ n b j).prod gaussianCoordinates := by
apply integral_congr_ae
filter_upwards [he, hf] with p hp hpf
rw [referenceReplicaMean_eq_tilted _ _ (hp t)]
change (∫ σ, D (U p.1) σ ∂Measure.pi
(fun _ : Fin q => (ν p.1).tilted (fun x => t * cylinderField (A p.1 x) p.2))) = _
have hpf' : (ν p.1).tilted (fun x => t * cylinderField (A p.1 x) p.2) =
spinPriorNamespacedReference (n := n) π eig c I degree (Function.update amplitude j t) r h
(p.1.1, gaussianNamespaceJoin (j + 1) (p.2, p.1.2)) := hpf
rw [hpf']
exact (referenceReplicaMean_zero _ _).symm
_ = _ := (tensorFrozenInsertion_measurePreserving μ n b j).hasLaw.integral_comp
hF.aestronglyMeasurable
end InvariantIsing
end
end OAI

Xet Storage Details

Size:
4.93 kB
·
Xet hash:
81e295ff3ed46314b0b7a83076572731ed3e8bc41cbecbaca3f45181f0784500

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