Download data/lean/OAI/Probability/InvariantIsing/Arrays/NSpinTensorCascade.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 20.5 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Arrays/NSpinTensorCascade.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/InvariantIsing/Arrays/NSpinTensorCascade.lean
-
curl -L -o NSpinTensorCascade.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Arrays/NSpinTensorCascade.lean
20.5 kB
| import OAI.Probability.InvariantIsing.Arrays.NSpinCascadeFluctuation | |
| import OAI.Probability.InvariantIsing.Arrays.PerturbationFeatures | |
| namespace OAI | |
| /-! | |
| The finite spectral-monomial enriched Ising model. Gaussian marks have a | |
| separate variance at every site/tensor coordinate and every cascade level. | |
| The spectral coefficients retain their actual dependence on the rotation. | |
| -/ | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory | |
| open scoped BigOperators NNReal | |
| namespace InvariantIsing | |
| abbrev SpinTensorIndex {N m k : β} (I : Fin m β Finset (Fin N)) | |
| (degree : Fin k β Fin m β β) := | |
| Fin N β Sigma (fun j : Fin k => SpectralTensorIndex I (degree j)) | |
| def spinTensorFeature {N m k : β} (U : Rotation N) (I : Fin m β Finset (Fin N)) | |
| (degree : Fin k β Fin m β β) (amplitude : Fin k β β) (Ο : Spin N) : | |
| SpinTensorIndex I degree β β | |
| | Sum.inl i => spinValue (Ο i) | |
| | Sum.inr v => amplitude v.1 * spectralMonomialFeature U I (degree v.1) Ο v.2 | |
| lemma measurable_spinTensorFeature {N m k : β} (I : Fin m β Finset (Fin N)) | |
| (degree : Fin k β Fin m β β) (amplitude : Fin k β β) (Ο : Spin N) | |
| (i : SpinTensorIndex I degree) : | |
| Measurable (fun U : SpecialOrthogonal N => | |
| spinTensorFeature (specialRotation U) I degree amplitude Ο i) := by | |
| cases i with | |
| | inl i => exact measurable_const | |
| | inr v => exact (measurable_spectralMonomialFeature I (degree v.1) Ο v.2).const_mul _ | |
| /-- Variances shared by the coordinates of each spectral monomial. -/ | |
| def tensorVarianceProfile {N m k : β} (I : Fin m β Finset (Fin N)) | |
| (degree : Fin k β Fin m β β) (site : ββ₯0) (monomial : Fin k β ββ₯0) : | |
| SpinTensorIndex I degree β ββ₯0 | |
| | Sum.inl _ => site | |
| | Sum.inr v => monomial v.1 | |
| /-- The concrete Gaussian covariance is the linear spin-field kernel plus | |
| the required finite sum of spectral-overlap monomials. -/ | |
| theorem spinTensorFeature_covariance {N m k : β} (U : Rotation N) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (site : ββ₯0) (monomial : Fin k β ββ₯0) (Ο Ο : Spin N) : | |
| (β i : SpinTensorIndex I degree, (tensorVarianceProfile I degree site monomial i : β) * | |
| spinTensorFeature U I degree amplitude Ο i * spinTensorFeature U I degree amplitude Ο i) = | |
| (site : β) * (β i, spinValue (Ο i) * spinValue (Ο i)) + | |
| β j, (monomial j : β) * amplitude j ^ 2 * | |
| β a, projectedOverlap U (I a) Ο Ο ^ degree j a := by | |
| classical | |
| rw [Fintype.sum_sum_type, Fintype.sum_sigma] | |
| simp only [tensorVarianceProfile, spinTensorFeature] | |
| congr 1 | |
| Β· rw [Finset.mul_sum] | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| ring | |
| Β· apply Finset.sum_congr rfl | |
| intro j _ | |
| calc | |
| _ = (monomial j : β) * amplitude j ^ 2 * | |
| β v : SpectralTensorIndex I (degree j), | |
| spectralMonomialFeature U I (degree j) Ο v * spectralMonomialFeature U I (degree j) Ο v := by | |
| rw [Finset.mul_sum] | |
| apply Finset.sum_congr rfl | |
| intro v _ | |
| ring | |
| _ = _ := by rw [spectralMonomialFeature_cross] | |
| theorem spinTensorFeature_variance_le {N m k : β} (U : Rotation N) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (site : ββ₯0) (monomial : Fin k β ββ₯0) (Ο : Spin N) : | |
| (β i : SpinTensorIndex I degree, (tensorVarianceProfile I degree site monomial i : β) * | |
| spinTensorFeature U I degree amplitude Ο i ^ 2) β€ | |
| (site : β) * N + β j, (monomial j : β) * amplitude j ^ 2 := by | |
| have he : (β i : SpinTensorIndex I degree, (tensorVarianceProfile I degree site monomial i : β) * | |
| spinTensorFeature U I degree amplitude Ο i ^ 2) = | |
| β i : SpinTensorIndex I degree, (tensorVarianceProfile I degree site monomial i : β) * | |
| spinTensorFeature U I degree amplitude Ο i * spinTensorFeature U I degree amplitude Ο i := by | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| ring | |
| rw [he, spinTensorFeature_covariance] | |
| simp only [β sq, spinValue_sq, Finset.sum_const, Finset.card_univ, | |
| Fintype.card_fin, nsmul_eq_mul, mul_one] | |
| apply add_le_add le_rfl | |
| apply Finset.sum_le_sum | |
| intro j _ | |
| have hp : (β a, projectedOverlap U (I a) Ο Ο ^ degree j a) β€ 1 := | |
| (le_abs_self _).trans (spectralMonomial_abs_le_one U I (degree j) Ο Ο) | |
| simpa only [mul_one] using mul_le_mul_of_nonneg_left hp | |
| (mul_nonneg (NNReal.coe_nonneg _) (sq_nonneg _)) | |
| def spinTensorEnergy {N m k : β} (U : Rotation N) (I : Fin m β Finset (Fin N)) | |
| (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (z : SpinTensorIndex I degree β β) (Ο : Spin N) : β := | |
| β i, z i * spinTensorFeature U I degree amplitude Ο i | |
| def spinTensorTerminal {N m k : β} (eig : Fin N β β) (U : Rotation N) | |
| (c : Fin N β β) (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) | |
| (amplitude : Fin k β β) (z : SpinTensorIndex I degree β β) : β := | |
| logPartition (fun Ο => rotatedEnergy eig U Ο + fieldEnergy c Ο + | |
| spinTensorEnergy U I degree amplitude z Ο) | |
| lemma measurable_spinTensorTerminal {N m k : β} (eig : Fin N β β) (U : Rotation N) | |
| (c : Fin N β β) (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) | |
| (amplitude : Fin k β β) : | |
| Measurable (spinTensorTerminal eig U c I degree amplitude) := by | |
| unfold spinTensorTerminal logPartition spinTensorEnergy | |
| fun_prop | |
| lemma measurable_spinTensorTerminal_joint {N m k : β} (eig c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) : | |
| Measurable (fun p : SpecialOrthogonal N Γ (SpinTensorIndex I degree β β) => | |
| spinTensorTerminal eig (specialRotation p.1) c I degree amplitude p.2) := by | |
| have hE (Ο : Spin N) : Measurable | |
| (fun p : SpecialOrthogonal N Γ (SpinTensorIndex I degree β β) => | |
| rotatedEnergy eig (specialRotation p.1) Ο + fieldEnergy c Ο + | |
| spinTensorEnergy (specialRotation p.1) I degree amplitude p.2 Ο) := by | |
| apply Measurable.add | |
| Β· exact ((Finset.measurable_sum _ fun i _ => | |
| (((measurable_specialRotation_eval (spinVector Ο) i).comp measurable_fst).pow_const 2).const_mul | |
| (eig i)).const_mul (1 / 2 : β)).add_const _ | |
| Β· exact Finset.measurable_sum _ fun i _ => | |
| ((measurable_pi_apply i).comp measurable_snd).mul | |
| ((measurable_spinTensorFeature I degree amplitude Ο i).comp measurable_fst) | |
| unfold spinTensorTerminal logPartition | |
| exact ((Finset.measurable_sum _ fun Ο _ => (hE Ο).exp).const_mul | |
| (Fintype.card (Spin N) : β)β»ΒΉ).log | |
| lemma spinTensorTerminal_linearGrowth {N m k : β} (eig : Fin N β β) (U : Rotation N) | |
| (c : Fin N β β) (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) | |
| (amplitude : Fin k β β) : | |
| IsingPerceptron.HasLinearGrowth (spinTensorTerminal eig U c I degree amplitude) := by | |
| classical | |
| let L : β := β Ο : Spin N, β i : SpinTensorIndex I degree, | |
| |spinTensorFeature U I degree amplitude Ο i| | |
| have hL : 0 β€ L := Finset.sum_nonneg fun _ _ => Finset.sum_nonneg fun _ _ => abs_nonneg _ | |
| have hb (z : SpinTensorIndex I degree β β) (Ο : Spin N) : | |
| |spinTensorEnergy U I degree amplitude z Ο| β€ L * βzβ := by | |
| have hΟ : (β i : SpinTensorIndex I degree, |spinTensorFeature U I degree amplitude Ο i|) β€ L := by | |
| apply Finset.single_le_sum (f := fun Ο : Spin N => | |
| β i : SpinTensorIndex I degree, |spinTensorFeature U I degree amplitude Ο i|) | |
| Β· exact fun _ _ => Finset.sum_nonneg fun _ _ => abs_nonneg _ | |
| Β· exact Finset.mem_univ Ο | |
| calc | |
| _ β€ β i, |z i * spinTensorFeature U I degree amplitude Ο i| := Finset.abs_sum_le_sum_abs _ _ | |
| _ β€ β i, βzβ * |spinTensorFeature U I degree amplitude Ο i| := | |
| Finset.sum_le_sum fun i _ => by | |
| rw [abs_mul] | |
| exact mul_le_mul_of_nonneg_right (by simpa only [Real.norm_eq_abs] using norm_le_pi_norm z i) | |
| (abs_nonneg _) | |
| _ = βzβ * β i, |spinTensorFeature U I degree amplitude Ο i| := (Finset.mul_sum _ _ _).symm | |
| _ β€ βzβ * L := mul_le_mul_of_nonneg_left hΟ (norm_nonneg _) | |
| _ = _ := mul_comm _ _ | |
| refine β¨|spinTensorTerminal eig U c I degree amplitude 0|, L, abs_nonneg _, hL, fun z => ?_β© | |
| have hcomp : |spinTensorTerminal eig U c I degree amplitude z - | |
| spinTensorTerminal eig U c I degree amplitude 0| β€ L * βzβ := by | |
| apply abs_logPartition_sub_le | |
| intro Ο | |
| simpa [spinTensorEnergy] using hb z Ο | |
| have ht := abs_add_le | |
| (spinTensorTerminal eig U c I degree amplitude z - spinTensorTerminal eig U c I degree amplitude 0) | |
| (spinTensorTerminal eig U c I degree amplitude 0) | |
| rw [sub_add_cancel] at ht | |
| linarith | |
| def tensorGaussianLaw {N m k : β} (I : Fin m β Finset (Fin N)) | |
| (degree : Fin k β Fin m β β) (v : SpinTensorIndex I degree β ββ₯0) : | |
| ProbabilityMeasure (SpinTensorIndex I degree β β) := | |
| β¨Measure.pi (fun i => gaussianReal 0 (v i)), inferInstanceβ© | |
| lemma tensorGaussianLaw_moments {N m k : β} (hN : 0 < N) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) | |
| (v : SpinTensorIndex I degree β ββ₯0) : | |
| IsingPerceptron.ExponentialNormMoments | |
| (tensorGaussianLaw I degree v : Measure (SpinTensorIndex I degree β β)) := by | |
| let : Nonempty (SpinTensorIndex I degree) := β¨Sum.inl β¨0, hNβ©β© | |
| have hm := IsingPerceptron.finite_gaussian_exponentialNormMoments | |
| (P := Measure.pi (fun i : SpinTensorIndex I degree => gaussianReal 0 (v i))) | |
| (X := fun z : SpinTensorIndex I degree β β => z) measurable_id (fun _ => 0) v | |
| (fun i => (measurePreserving_eval (fun j : SpinTensorIndex I degree => gaussianReal 0 (v j)) i).map_eq) | |
| change IsingPerceptron.ExponentialNormMoments | |
| ((Measure.pi (fun i : SpinTensorIndex I degree => gaussianReal 0 (v i))).map id) at hm | |
| rw [Measure.map_id] at hm | |
| exact hm | |
| def tensorCascadeLaw {N m k : β} (I : Fin m β Finset (Fin N)) | |
| (degree : Fin k β Fin m β β) (n : β) (b : β β β) | |
| (v : β β SpinTensorIndex I degree β ββ₯0) : | |
| Measure (IsingPerceptron.NoiseTree (SpinTensorIndex I degree β β) n) := | |
| IsingPerceptron.noiseCascadeLaw (SpinTensorIndex I degree β β) n b | |
| (fun i => tensorGaussianLaw I degree (v i)) | |
| def tensorCascadeLog {N m k : β} (eig : Fin N β β) (U : Rotation N) (c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (z : SpinTensorIndex I degree β β) | |
| (T : IsingPerceptron.NoiseTree (SpinTensorIndex I degree β β) n) : β := | |
| Real.log (β« leaf, Real.exp (IsingPerceptron.noiseLeafTerminal n | |
| (fun _ => spinTensorTerminal eig U c I degree amplitude) (fun _ p => p.1 + p.2) z leaf) | |
| βIsingPerceptron.noiseLeafKernel (SpinTensorIndex I degree β β) n T) | |
| def tensorCascadeValue {N m k : β} (eig : Fin N β β) (U : Rotation N) (c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (b : β β β) (v : β β SpinTensorIndex I degree β ββ₯0) | |
| (z : SpinTensorIndex I degree β β) : β := | |
| IsingPerceptron.cascadeRecursion n b (fun i => tensorGaussianLaw I degree (v i)) | |
| (fun _ p => p.1 + p.2) (spinTensorTerminal eig U c I degree amplitude) z | |
| /-- The actual sum of the root and all Gaussian marks on a sampled leaf. -/ | |
| def tensorLeafState {N m k : β} (I : Fin m β Finset (Fin N)) | |
| (degree : Fin k β Fin m β β) : (n : β) β (SpinTensorIndex I degree β β) β | |
| IsingPerceptron.NoiseLeaf (SpinTensorIndex I degree β β) n β (SpinTensorIndex I degree β β) | |
| | 0, z, _ => z | |
| | n + 1, z, leaf => tensorLeafState I degree n (z + leaf.2.1) leaf.2.2 | |
| lemma noiseLeafTerminal_spinTensorTerminal {N m k : β} | |
| (eig : Fin N β β) (U : Rotation N) (c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (z : SpinTensorIndex I degree β β) | |
| (leaf : IsingPerceptron.NoiseLeaf (SpinTensorIndex I degree β β) n) : | |
| IsingPerceptron.noiseLeafTerminal n (fun _ => spinTensorTerminal eig U c I degree amplitude) | |
| (fun _ p => p.1 + p.2) z leaf = | |
| spinTensorTerminal eig U c I degree amplitude (tensorLeafState I degree n z leaf) := by | |
| induction n generalizing z with | |
| | zero => rfl | |
| | succ n ih => exact ih (z + leaf.2.1) leaf.2.2 | |
| /-- The cascade logarithm is the actual spin/leaf joint partition, with | |
| uniform Ising prior and the sampled cascade leaf law. -/ | |
| theorem tensorCascadeLog_eq_jointPartition {N m k : β} | |
| (eig : Fin N β β) (U : Rotation N) (c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (z : SpinTensorIndex I degree β β) | |
| (T : IsingPerceptron.NoiseTree (SpinTensorIndex I degree β β) n) : | |
| tensorCascadeLog eig U c I degree amplitude n z T = | |
| Real.log (β« leaf, (Fintype.card (Spin N) : β)β»ΒΉ * β Ο : Spin N, | |
| Real.exp (rotatedEnergy eig U Ο + fieldEnergy c Ο + | |
| spinTensorEnergy U I degree amplitude (tensorLeafState I degree n z leaf) Ο) | |
| βIsingPerceptron.noiseLeafKernel (SpinTensorIndex I degree β β) n T) := by | |
| unfold tensorCascadeLog | |
| congr 1 | |
| apply integral_congr_ae | |
| refine ae_of_all _ fun leaf => ?_ | |
| dsimp only | |
| rw [noiseLeafTerminal_spinTensorTerminal] | |
| unfold spinTensorTerminal logPartition | |
| apply Real.exp_log | |
| exact mul_pos (inv_pos.mpr (by exact_mod_cast Fintype.card_pos (Ξ± := Spin N))) (sum_exp_pos _) | |
| /-- Exact leaf-law recursion and conditional centered fluctuation for the | |
| finite spectral tensor perturbations. The Haar rotation is retained in every | |
| coefficient; the statement holds separately for every rotation. -/ | |
| theorem tensorCascadeLog_recursion {N m k : β} (hN : 0 < N) | |
| (eig : Fin N β β) (U : Rotation N) (c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (b : β β β) (v : β β SpinTensorIndex I degree β ββ₯0) | |
| (hb : IsingPerceptron.CascadeExponents n b) (z : SpinTensorIndex I degree β β) : | |
| let P := tensorCascadeLaw I degree n b v | |
| let F := tensorCascadeLog eig U c I degree amplitude n z | |
| let V := tensorCascadeValue eig U c I degree amplitude n b v z | |
| Integrable F P β§ (β« T, F T βP) = V β§ | |
| Integrable (fun T => (F T - V) ^ 2) P β§ | |
| (β« T, (F T - V) ^ 2 βP) β€ | |
| 4 * β« T, (Real.log (IsingPerceptron.rawTreeTotal n T).toReal) ^ 2 | |
| β(IsingPerceptron.rawCascadeLaw n b : Measure (IsingPerceptron.RawTree n)) := by | |
| have h := IsingPerceptron.linearGrowth_noiseCascade_recursion n b hb | |
| (fun i => tensorGaussianLaw I degree (v i)) (fun i _ => tensorGaussianLaw_moments hN I degree (v i)) | |
| (measurable_spinTensorTerminal eig U c I degree amplitude) | |
| (spinTensorTerminal_linearGrowth eig U c I degree amplitude) z | |
| let L := fun T => Real.log | |
| ((IsingPerceptron.terminalTreeFactor n b (fun i => tensorGaussianLaw I degree (v i)) | |
| (fun _ p => p.1 + p.2) (spinTensorTerminal eig U c I degree amplitude) z T).toReal / | |
| (IsingPerceptron.noiseTreeTotal (SpinTensorIndex I degree β β) n T).toReal) | |
| have he : tensorCascadeLog eig U c I degree amplitude n z =α΅[tensorCascadeLaw I degree n b v] L := | |
| IsingPerceptron.noise_leaf_log_eq_ratio n b hb (fun i => tensorGaussianLaw I degree (v i)) | |
| (fun _ => measurable_fst.add measurable_snd) (measurable_spinTensorTerminal eig U c I degree amplitude) z | |
| have heq : (fun T => (tensorCascadeLog eig U c I degree amplitude n z T - | |
| tensorCascadeValue eig U c I degree amplitude n b v z) ^ 2) | |
| =α΅[tensorCascadeLaw I degree n b v] | |
| (fun T => (L T - tensorCascadeValue eig U c I degree amplitude n b v z) ^ 2) := by | |
| filter_upwards [he] with T hT | |
| exact congrArg (fun x => (x - tensorCascadeValue eig U c I degree amplitude n b v z) ^ 2) hT | |
| exact β¨h.2.1.congr (Filter.EventuallyEq.symm he), (integral_congr_ae he).trans h.2.2.1, | |
| h.2.2.2.1.congr (Filter.EventuallyEq.symm heq), (integral_congr_ae heq).trans_le h.2.2.2.2β© | |
| lemma measurable_tensorCascadeValue_joint {N m k : β} (eig c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (b : β β β) (v : β β SpinTensorIndex I degree β ββ₯0) : | |
| Measurable (fun p : SpecialOrthogonal N Γ (SpinTensorIndex I degree β β) => | |
| tensorCascadeValue eig (specialRotation p.1) c I degree amplitude n b v p.2) := by | |
| induction n generalizing b v with | |
| | zero => exact measurable_spinTensorTerminal_joint eig c I degree amplitude | |
| | succ n ih => | |
| have hp : Measurable | |
| (fun p : (SpecialOrthogonal N Γ (SpinTensorIndex I degree β β)) Γ (SpinTensorIndex I degree β β) => | |
| (p.1.1, p.1.2 + p.2)) := | |
| measurable_fst.fst.prodMk (measurable_fst.snd.add measurable_snd) | |
| have hm := (((ih (fun i => b (i + 1)) (fun i => v (i + 1))).comp hp).const_mul (b 0)).exp | |
| exact hm.stronglyMeasurable.integral_prod_right.measurable.log.div_const (b 0) | |
| lemma integrable_tensorCascadeValue_root {N m k : β} (hN : 0 < N) | |
| (eig : Fin N β β) (U : Rotation N) (c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (b : β β β) (v : β β SpinTensorIndex I degree β ββ₯0) | |
| (hb : IsingPerceptron.CascadeExponents n b) (root : SpinTensorIndex I degree β ββ₯0) : | |
| Integrable (tensorCascadeValue eig U c I degree amplitude n b v) | |
| (tensorGaussianLaw I degree root : Measure (SpinTensorIndex I degree β β)) := by | |
| have hm := IsingPerceptron.measurable_cascadeRecursion n b | |
| (fun i => tensorGaussianLaw I degree (v i)) | |
| (fun _ => measurable_fst.add measurable_snd) (measurable_spinTensorTerminal eig U c I degree amplitude) | |
| change Measurable (tensorCascadeValue eig U c I degree amplitude n b v) at hm | |
| have hg := IsingPerceptron.cascadeRecursion_linearGrowth n b | |
| (fun i => tensorGaussianLaw I degree (v i)) (fun i _ => tensorGaussianLaw_moments hN I degree (v i)) | |
| (measurable_spinTensorTerminal eig U c I degree amplitude) | |
| (spinTensorTerminal_linearGrowth eig U c I degree amplitude) (fun i hi => (hb.1 i hi).1) | |
| obtain β¨C, L, _, hL, hboundβ© := hg | |
| have hi := (integrable_const C).add ((tensorGaussianLaw_moments hN I degree root 1).const_mul L) | |
| apply hi.mono' hm.aestronglyMeasurable | |
| exact ae_of_all _ fun z => by | |
| change |tensorCascadeValue eig U c I degree amplitude n b v z| β€ C + L * Real.exp (1 * βzβ) | |
| rw [one_mul] | |
| exact (hbound z).trans (add_le_add le_rfl | |
| (mul_le_mul_of_nonneg_left | |
| ((le_add_of_nonneg_right zero_le_one).trans (Real.add_one_le_exp βzβ)) hL)) | |
| def tensorEnrichedPressure {N m k : β} (eig : Fin N β β) (U : Rotation N) (c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (b : β β β) (v : β β SpinTensorIndex I degree β ββ₯0) | |
| (root : SpinTensorIndex I degree β ββ₯0) : β := | |
| (N : β)β»ΒΉ * β« z, tensorCascadeValue eig U c I degree amplitude n b v z | |
| β(tensorGaussianLaw I degree root : Measure (SpinTensorIndex I degree β β)) | |
| theorem tensorEnrichedPressure_eq_cascade_expectation {N m k : β} (hN : 0 < N) | |
| (eig : Fin N β β) (U : Rotation N) (c : Fin N β β) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) | |
| (n : β) (b : β β β) (v : β β SpinTensorIndex I degree β ββ₯0) | |
| (hb : IsingPerceptron.CascadeExponents n b) (root : SpinTensorIndex I degree β ββ₯0) : | |
| tensorEnrichedPressure eig U c I degree amplitude n b v root = | |
| (N : β)β»ΒΉ * β« z, (β« T, tensorCascadeLog eig U c I degree amplitude n z T | |
| βtensorCascadeLaw I degree n b v) | |
| β(tensorGaussianLaw I degree root : Measure (SpinTensorIndex I degree β β)) := by | |
| unfold tensorEnrichedPressure | |
| congr 1 | |
| apply integral_congr_ae | |
| exact ae_of_all _ fun z => | |
| (tensorCascadeLog_recursion hN eig U c I degree amplitude n b v hb z).2.1.symm | |
| end InvariantIsing | |
| end | |
| end OAI | |