math / data /lean /OAI /Probability /InvariantIsing /Arrays /NSpinTensorFrozenFluctuation.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
19.8 kB
import OAI.Probability.InvariantIsing.Arrays.NSpinTensorFlatLaw
import OAI.Probability.InvariantIsing.Pressure.PressureDifferenceConcentration
namespace OAI
/-! Transfer the actual three-disorder pressure moments to one frozen Gaussian CGF. -/
noncomputable section
open MeasureTheory ProbabilityTheory IsingPerceptron
open scoped BigOperators NNReal ENNReal
namespace InvariantIsing
private lemma joint_map_eq_of_conditional_map_eq {Ξ© G E : Type*}
[MeasurableSpace Ξ©] [MeasurableSpace G] [MeasurableSpace E]
(P : Measure Ξ©) (Q : Measure G) [SFinite Q]
(f g : Ξ© Γ— G β†’ E) (hf : Measurable f) (hg : Measurable g)
(he : βˆ€ Ο‰, Q.map (fun z => f (Ο‰, z)) = Q.map (fun z => g (Ο‰, z))) :
(P.prod Q).map f = (P.prod Q).map g := by
apply Measure.ext
intro s hs
rw [Measure.map_apply hf hs, Measure.map_apply hg hs,
Measure.prod_apply (hf hs), Measure.prod_apply (hg hs)]
apply lintegral_congr_ae
refine ae_of_all P fun Ο‰ => ?_
have h := congrArg (fun Ξ½ : Measure E => Ξ½ s) (he Ο‰)
have hfω : Measurable (fun z => f (ω, z)) := hf.comp (measurable_const.prodMk measurable_id)
have hgω : Measurable (fun z => g (ω, z)) := hg.comp (measurable_const.prodMk measurable_id)
rw [Measure.map_apply hfω hs, Measure.map_apply hgω hs] at h
exact h
private lemma tensorNamespacedLog_conditional_law {N m k : β„•} (eig c : Fin N β†’ ℝ)
(U : SpecialOrthogonal N)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (T : LabeledTree n) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ) :
gaussianCoordinates.map (fun g => tensorFlatLog eig (specialRotation U) c I degree amplitude n
(tensorPathProfile I degree n treeDegree h) (T, g)) =
gaussianCoordinates.map (fun g => tensorNamespacedLog eig c I degree amplitude n treeDegree h ((U, T), g)) := by
let Ξ½ := labeledSpinReference n (uniformSpinPrior N : Measure (Spin N)) T
let H := fun x : Spin N Γ— LabeledLeaf n => rotatedEnergy eig (specialRotation U) x.1 + fieldEnergy c x.1
let K := fun F : Spin N Γ— LabeledLeaf n β†’ ℝ => Real.log (∫ x, Real.exp (H x + F x) βˆ‚Ξ½)
have : βˆ€ F : (Spin N Γ— LabeledLeaf n β†’ ℝ), IsProbabilityMeasure ((fun _ => Ξ½) F) :=
fun _ => by
change IsProbabilityMeasure (labeledSpinReference n (uniformSpinPrior N : Measure (Spin N)) T)
infer_instance
have hE : Measurable (fun p : (Spin N Γ— LabeledLeaf n β†’ ℝ) Γ— (Spin N Γ— LabeledLeaf n) => H p.2 + p.1 p.2) := by
apply measurable_from_prod_countable_left
intro x
have hc : Measurable (fun _ : Spin N Γ— LabeledLeaf n β†’ ℝ => H x) := measurable_const
exact hc.add (measurable_pi_apply x)
have hK : Measurable K := (measurable_random_referencePartition
(Ξ½ := fun _ : Spin N Γ— LabeledLeaf n β†’ ℝ => Ξ½) measurable_const hE).log
let v : Fin (n + 1) β†’ SpinTensorIndex I degree β†’ ℝβ‰₯0 :=
fun i => tensorPathProfile I degree n treeDegree h i
have hleft : Measurable (fun g x => cylinderField
(tensorLeafCoefficients (specialRotation U) I degree amplitude n v x) g) :=
Measurable.of_eval (fun _ => measurable_cylinderField _)
have hright : Measurable (fun g x => cylinderField
(tensorNamespacedCoefficients (specialRotation U) I degree amplitude n v x) g) :=
Measurable.of_eval (fun _ => measurable_cylinderField _)
change gaussianCoordinates.map (K ∘ (fun g x => cylinderField
(tensorLeafCoefficients (specialRotation U) I degree amplitude n v x) g)) =
gaussianCoordinates.map (K ∘ (fun g x => cylinderField
(tensorNamespacedCoefficients (specialRotation U) I degree amplitude n v x) g))
rw [← Measure.map_map hK hleft, ← Measure.map_map hK hright, tensorNamespacedFields_law]
private lemma measurable_tensorLeafField_joint {N m k : β„•}
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (v : Fin (n + 1) β†’ SpinTensorIndex I degree β†’ ℝβ‰₯0)
(x : Spin N Γ— LabeledLeaf n) :
Measurable (fun p : SpecialOrthogonal N Γ— (β„• β†’ ℝ) =>
cylinderField (tensorLeafCoefficients (specialRotation p.1) I degree amplitude n v x) p.2) := by
simp only [tensorLeafCoefficients, cylinderField_feature]
apply Finset.measurable_sum
intro i _
exact (((measurable_spinTensorFeature I degree amplitude x.1 i.2).comp measurable_fst).const_mul _).mul
((measurable_pi_apply (treeFeatureTag n x.2 i)).comp measurable_snd)
private lemma measurable_tensorJointLog {N : β„•} (eig c : Fin N β†’ ℝ) (n : β„•)
(Y : (((SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ)) Γ— (Spin N Γ— LabeledLeaf n)) β†’ ℝ)
(hY : Measurable Y) :
Measurable (fun p : (SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ) =>
Real.log (∫ x : Spin N Γ— LabeledLeaf n,
Real.exp (rotatedEnergy eig (specialRotation p.1.1) x.1 + fieldEnergy c x.1 + Y (p, x))
βˆ‚labeledSpinReference n (uniformSpinPrior N : Measure (Spin N)) p.1.2)) := by
have hbase : Measurable (fun p : (((SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ)) Γ—
(Spin N Γ— LabeledLeaf n)) => rotatedEnergy eig (specialRotation p.1.1.1) p.2.1 + fieldEnergy c p.2.1) := by
apply measurable_from_prod_countable_left
intro x
have hr : Measurable (fun U : SpecialOrthogonal N => rotatedEnergy eig (specialRotation U) x.1) := by
unfold rotatedEnergy
exact (Finset.measurable_sum _ fun i _ =>
((measurable_specialRotation_eval (spinVector x.1) i).pow_const 2).const_mul (eig i)).const_mul (1 / 2 : ℝ)
exact (hr.comp measurable_fst.fst).add_const (fieldEnergy c x.1)
let Ξ½ := fun p : (SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ) =>
labeledSpinReference n (uniformSpinPrior N : Measure (Spin N)) p.1.2
have : βˆ€ p, IsProbabilityMeasure (Ξ½ p) := fun p => by
change IsProbabilityMeasure (labeledSpinReference n (uniformSpinPrior N : Measure (Spin N)) p.1.2)
infer_instance
exact (measurable_random_referencePartition (Ξ½ := Ξ½)
((measurable_labeledSpinReference_general n (uniformSpinPrior N : Measure (Spin N))).comp measurable_fst.snd)
(hbase.add hY)).log
lemma measurable_tensorNamespacedLog {N m k : β„•} (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ) :
Measurable (tensorNamespacedLog eig c I degree amplitude n treeDegree h) := by
let v : Fin (n + 1) β†’ SpinTensorIndex I degree β†’ ℝβ‰₯0 :=
fun i => tensorPathProfile I degree n treeDegree h i
have hY : Measurable (fun p : (((SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ)) Γ—
(Spin N Γ— LabeledLeaf n)) =>
cylinderField (tensorNamespacedCoefficients (specialRotation p.1.1.1) I degree amplitude n v p.2) p.1.2) := by
apply measurable_from_prod_countable_left
intro x
have hp : Measurable (fun p : (SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ) =>
(p.1.1, p.2)) := measurable_fst.fst.prodMk measurable_snd
convert (measurable_tensorNamespacedFields_joint I degree amplitude n v x).comp hp using 1
rfl
exact measurable_tensorJointLog eig c n _ hY
private lemma measurable_tensorJointFlatLog {N m k : β„•} (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ) :
Measurable (fun p : (SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ) =>
tensorFlatLog eig (specialRotation p.1.1) c I degree amplitude n
(tensorPathProfile I degree n treeDegree h) (p.1.2, p.2)) := by
let v : Fin (n + 1) β†’ SpinTensorIndex I degree β†’ ℝβ‰₯0 :=
fun i => tensorPathProfile I degree n treeDegree h i
have hY : Measurable (fun p : (((SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ)) Γ—
(Spin N Γ— LabeledLeaf n)) =>
cylinderField (tensorLeafCoefficients (specialRotation p.1.1.1) I degree amplitude n v p.2) p.1.2) := by
apply measurable_from_prod_countable_left
intro x
have hp : Measurable (fun p : (SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ) =>
(p.1.1, p.2)) := measurable_fst.fst.prodMk measurable_snd
convert (measurable_tensorLeafField_joint I degree amplitude n v x).comp hp using 1
rfl
exact measurable_tensorJointLog eig c n _ hY
def tensorNamespacedPressure {N m k : β„•} (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ)
(p : (SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ)) : ℝ :=
(N : ℝ)⁻¹ * tensorNamespacedLog eig c I degree amplitude n treeDegree h p
/-- The tensor pressure has the marked-cascade pressure law,
including the Haar rotation. This is a law identity, stronger than matching means. -/
theorem tensorNamespacedPressure_law {N m k : β„•}
(ΞΌ : Measure (SpecialOrthogonal N)) [IsProbabilityMeasure ΞΌ] (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (b : β„• β†’ ℝ) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ) (hb : CascadeExponents n b) :
HasLaw (tensorNamespacedPressure eig c I degree amplitude n treeDegree h)
((ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0))).map
(tensorDisorderPressure eig c I degree amplitude n))
((ΞΌ.prod (labeledCascadeLaw n b : Measure (LabeledTree n))).prod gaussianCoordinates) := by
let P := ΞΌ.prod (labeledCascadeLaw n b : Measure (LabeledTree n))
let F := fun p : (SpecialOrthogonal N Γ— LabeledTree n) Γ— (β„• β†’ ℝ) =>
tensorFlatLog eig (specialRotation p.1.1) c I degree amplitude n
(tensorPathProfile I degree n treeDegree h) (p.1.2, p.2)
let G := tensorNamespacedLog eig c I degree amplitude n treeDegree h
have hF : Measurable F := measurable_tensorJointFlatLog eig c I degree amplitude n treeDegree h
have hG : Measurable G := measurable_tensorNamespacedLog eig c I degree amplitude n treeDegree h
have he : (P.prod gaussianCoordinates).map F = (P.prod gaussianCoordinates).map G :=
joint_map_eq_of_conditional_map_eq P gaussianCoordinates F G hF hG
(fun Ο‰ => tensorNamespacedLog_conditional_law eig c Ο‰.1 I degree amplitude n Ο‰.2 treeDegree h)
let S := fun x : ℝ => (N : ℝ)⁻¹ * x
have hS : Measurable S := measurable_id.const_mul _
have hes : (P.prod gaussianCoordinates).map (S ∘ F) = (P.prod gaussianCoordinates).map (S ∘ G) := by
rw [← Measure.map_map hS hF, ← Measure.map_map hS hG, he]
have hactual := (hasLaw_map (measurable_tensorDisorderPressure eig c I degree amplitude n).aemeasurable).comp
(tensorFlatToDisorder_measurePreserving ΞΌ I degree n b (tensorPathProfile I degree n treeDegree h)).hasLaw
have hflat := hactual.congr (tensorFlatPressure_eq_disorder_ae ΞΌ eig c I degree amplitude n b
(tensorPathProfile I degree n treeDegree h) hb)
refine ⟨(hG.const_mul (N : ℝ)⁻¹).aemeasurable, ?_⟩
exact hes.symm.trans hflat.map_eq
/-- Transport both the second moment and the exact variance and mean. -/
theorem tensorNamespacedPressure_moments {N m k : β„•}
(ΞΌ : Measure (SpecialOrthogonal N)) [IsProbabilityMeasure ΞΌ] (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (b : β„• β†’ ℝ) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ) (hb : CascadeExponents n b)
(hF : MemLp (tensorDisorderPressure eig c I degree amplitude n) 2
(ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0)))) :
let Q := (ΞΌ.prod (labeledCascadeLaw n b : Measure (LabeledTree n))).prod gaussianCoordinates
let R := ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0))
let F := tensorNamespacedPressure eig c I degree amplitude n treeDegree h
MemLp F 2 Q ∧ variance F Q = variance (tensorDisorderPressure eig c I degree amplitude n) R ∧
(∫ p, F p βˆ‚Q) = ∫ p, tensorDisorderPressure eig c I degree amplitude n p βˆ‚ R := by
intro Q R F
have hlaw := tensorNamespacedPressure_law ΞΌ eig c I degree amplitude n b treeDegree h hb
have hid : MemLp id 2 (R.map (tensorDisorderPressure eig c I degree amplitude n)) :=
(memLp_map_measure_iff aestronglyMeasurable_id hF.aemeasurable).mpr hF
refine ⟨hlaw.memLp hid, hlaw.variance_eq.trans (variance_id_map hF.aemeasurable), ?_⟩
exact hlaw.integral_eq.trans (integral_map hF.aemeasurable aestronglyMeasurable_id)
/-- Freezing one Gaussian namespace preserves the pressure law at every
value of that namespace's amplitude, including zero. -/
theorem tensorFrozenPressure_moments {N m k : β„•}
(ΞΌ : Measure (SpecialOrthogonal N)) [IsProbabilityMeasure ΞΌ] (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (b : β„• β†’ ℝ) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ) (hb : CascadeExponents n b)
(j : Fin k) (t : ℝ)
(hF : MemLp (tensorDisorderPressure eig c I degree (Function.update amplitude j t) n) 2
(ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0)))) :
let Q := (tensorFrozenLaw ΞΌ n b j).prod gaussianCoordinates
let R := ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0))
let F := fun p => (N : ℝ)⁻¹ * tensorFrozenPartitionLog eig c I degree amplitude n treeDegree h j t p
MemLp F 2 Q ∧
variance F Q = variance (tensorDisorderPressure eig c I degree (Function.update amplitude j t) n) R ∧
(∫ p, F p βˆ‚Q) = ∫ p, tensorDisorderPressure eig c I degree (Function.update amplitude j t) n p βˆ‚ R := by
intro Q R F
have hp := tensorFrozenInsertion_measurePreserving ΞΌ n b j
have hm := tensorNamespacedPressure_moments ΞΌ eig c I degree (Function.update amplitude j t)
n b treeDegree h hb hF
refine ⟨hm.1.comp_measurePreserving hp, ?_, ?_⟩
Β· exact (hp.variance_fun_comp hm.1.aemeasurable).trans hm.2.1
Β· exact (hp.hasLaw.integral_comp hm.1.aestronglyMeasurable).trans hm.2.2
lemma tensorFrozenCGF_eq_scaled_difference {N m k : β„•} (hN : 0 < N)
(ΞΌ : Measure (SpecialOrthogonal N)) [IsProbabilityMeasure ΞΌ] (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (b : β„• β†’ ℝ) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ)
(hh : Monotone h) (h0 : 0 ≀ h 0) (j : Fin k) (t : ℝ) :
tensorFrozenCGF eig c I degree amplitude n treeDegree h j t =ᡐ[
(tensorFrozenLaw ΞΌ n b j).prod gaussianCoordinates]
(fun p => (N : ℝ) *
((N : ℝ)⁻¹ * tensorFrozenPartitionLog eig c I degree amplitude n treeDegree h j t p -
(N : ℝ)⁻¹ * tensorFrozenPartitionLog eig c I degree amplitude n treeDegree h j 0 p)) := by
filter_upwards [tensorFrozenCGF_eq_log_difference ΞΌ eig c I degree amplitude n b treeDegree h hh h0 j t]
with p hp
rw [hp]
have hn : (N : ℝ) β‰  0 := Nat.cast_ne_zero.mpr (Nat.ne_of_gt hN)
field_simp
/-- The expected frozen CGF is the volume times the difference of the
two actual all-disorder pressures. -/
theorem tensorFrozenCGF_mean {N m k : β„•} (hN : 0 < N)
(ΞΌ : Measure (SpecialOrthogonal N)) [IsProbabilityMeasure ΞΌ] (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (b : β„• β†’ ℝ) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ)
(hh : Monotone h) (h0 : 0 ≀ h 0) (hb : CascadeExponents n b) (j : Fin k) (t : ℝ)
(hF : βˆ€ a : ℝ, a = t ∨ a = 0 β†’
MemLp (tensorDisorderPressure eig c I degree (Function.update amplitude j a) n) 2
(ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0)))) :
let Q := (tensorFrozenLaw ΞΌ n b j).prod gaussianCoordinates
let R := ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0))
(∫ p, tensorFrozenCGF eig c I degree amplitude n treeDegree h j t p βˆ‚Q) =
(N : ℝ) * ((∫ p, tensorDisorderPressure eig c I degree (Function.update amplitude j t) n p βˆ‚ R) -
∫ p, tensorDisorderPressure eig c I degree (Function.update amplitude j 0) n p βˆ‚ R) := by
intro Q R
have hmt := tensorFrozenPressure_moments ΞΌ eig c I degree amplitude n b treeDegree h hb j t (hF t (Or.inl rfl))
have hmz := tensorFrozenPressure_moments ΞΌ eig c I degree amplitude n b treeDegree h hb j 0 (hF 0 (Or.inr rfl))
rw [integral_congr_ae (tensorFrozenCGF_eq_scaled_difference hN ΞΌ eig c I degree amplitude n b treeDegree h hh h0 j t),
integral_const_mul, integral_sub (hmt.1.integrable (by norm_num)) (hmz.1.integrable (by norm_num)),
hmt.2.2, hmz.2.2]
/-- The actual full-disorder pressure variance controls the centered
selected-field CGF. The two pressures may be dependent. -/
theorem tensorFrozenCGF_centered_L1_bound {N m k : β„•} (hN : 0 < N)
(ΞΌ : Measure (SpecialOrthogonal N)) [IsProbabilityMeasure ΞΌ] (eig c : Fin N β†’ ℝ)
(I : Fin m β†’ Finset (Fin N)) (degree : Fin k β†’ Fin m β†’ β„•) (amplitude : Fin k β†’ ℝ)
(n : β„•) (b : β„• β†’ ℝ) (treeDegree : Fin k β†’ β„•) (h : β„• β†’ ℝ)
(hh : Monotone h) (h0 : 0 ≀ h 0) (hb : CascadeExponents n b) (j : Fin k) (t B : ℝ)
(hF : βˆ€ a : ℝ, a = t ∨ a = 0 β†’
MemLp (tensorDisorderPressure eig c I degree (Function.update amplitude j a) n) 2
(ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0))))
(hv : βˆ€ a : ℝ, a = t ∨ a = 0 β†’
variance (tensorDisorderPressure eig c I degree (Function.update amplitude j a) n)
(ΞΌ.prod (tensorRootTreeLaw I degree n b
(fun i => tensorPathProfile I degree n treeDegree h (i + 1))
(tensorPathProfile I degree n treeDegree h 0))) ≀ B) :
let Q := (tensorFrozenLaw ΞΌ n b j).prod gaussianCoordinates
let Z := tensorFrozenCGF eig c I degree amplitude n treeDegree h j t
MemLp Z 2 Q ∧ (∫ p, |Z p - ∫ p', Z p' βˆ‚Q| βˆ‚Q) ≀ 2 * N * Real.sqrt B := by
intro Q Z
let F := fun a p => (N : ℝ)⁻¹ * tensorFrozenPartitionLog eig c I degree amplitude n treeDegree h j a p
have ht : t = t ∨ t = 0 := Or.inl rfl
have hz : (0 : ℝ) = t ∨ (0 : ℝ) = 0 := Or.inr rfl
have hmt := tensorFrozenPressure_moments ΞΌ eig c I degree amplitude n b treeDegree h hb j t (hF t ht)
have hmz := tensorFrozenPressure_moments ΞΌ eig c I degree amplitude n b treeDegree h hb j 0 (hF 0 hz)
have he : Z =ᡐ[Q] fun p => (N : ℝ) * (F t p - F 0 p) := by
exact tensorFrozenCGF_eq_scaled_difference hN ΞΌ eig c I degree amplitude n b treeDegree h hh h0 j t
simpa only [abs_of_nonneg (show (0 : ℝ) ≀ N from Nat.cast_nonneg N)] using
centered_scaled_difference_L1_bound Q hmt.1 hmz.1
(hmt.2.1.trans_le (hv t ht)) (hmz.2.1.trans_le (hv 0 hz)) he
end InvariantIsing
end
end OAI