Download data/lean/OAI/Probability/InvariantIsing/Arrays/NSpinTensorProjectedBackward.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 21.2 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Arrays/NSpinTensorProjectedBackward.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/InvariantIsing/Arrays/NSpinTensorProjectedBackward.lean
-
curl -L -o NSpinTensorProjectedBackward.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Arrays/NSpinTensorProjectedBackward.lean
21.2 kB
| import OAI.Probability.InvariantIsing.Arrays.NSpinTensorBackwardPaths | |
| namespace OAI | |
| /-! Projected overlaps as products of actual backward site gradients. -/ | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory IsingPerceptron | |
| open scoped BigOperators NNReal ENNReal | |
| namespace InvariantIsing | |
| def rotationCoordinate {N : β} (U : Rotation N) (a i : Fin N) : β := | |
| U (WithLp.toLp 2 (Pi.single i 1)) a | |
| lemma rotation_apply_coordinates {N : β} (U : Rotation N) (f : Fin N β β) (a : Fin N) : | |
| U (WithLp.toLp 2 f) a = β i, rotationCoordinate U a i * f i := by | |
| classical | |
| have hv : (WithLp.toLp 2 f : EuclideanSpace β (Fin N)) = | |
| β i : Fin N, f i β’ (WithLp.toLp 2 (Pi.single i 1) : EuclideanSpace β (Fin N)) := by | |
| ext j | |
| change f j = WithLp.ofLp (β i : Fin N, f i β’ | |
| (WithLp.toLp 2 (Pi.single i 1) : EuclideanSpace β (Fin N))) j | |
| rw [WithLp.ofLp_sum, Finset.sum_apply] | |
| simp [mul_ite] | |
| rw [hv, map_sum] | |
| change WithLp.ofLp (β i : Fin N, U (f i β’ WithLp.toLp 2 (Pi.single i 1))) a = _ | |
| rw [WithLp.ofLp_sum, Finset.sum_apply] | |
| simp only [map_smul, WithLp.ofLp_smul, Pi.smul_apply, smul_eq_mul, rotationCoordinate, mul_comm] | |
| def tensorBackwardProjectedMean {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) | |
| (i : β) (z : SpinTensorIndex I degree β β) (a : Fin N) : β := | |
| β s, rotationCoordinate U a s * tensorBackwardCoordinateMean eig U c I degree amplitude n b v i z (Sum.inl s) | |
| lemma tensorBackwardProjectedMean_eq {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) | |
| (i : β) (z : SpinTensorIndex I degree β β) (a : Fin N) : | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v i z a = | |
| U (WithLp.toLp 2 (fun s => tensorBackwardCoordinateMean eig U c I degree amplitude n b v i z (Sum.inl s))) a := | |
| (rotation_apply_coordinates U _ a).symm | |
| def tensorProjectedCoordinateCap {N m k : β} (U : Rotation N) | |
| (I : Fin m β Finset (Fin N)) (degree : Fin k β Fin m β β) (amplitude : Fin k β β) (a : Fin N) : β := | |
| β s, |rotationCoordinate U a s| * tensorFeatureCoordinateCap U I degree amplitude (Sum.inl s) | |
| lemma measurable_tensorBackwardProjectedMean {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 : CascadeExponents n b) (i : β) (a : Fin N) : | |
| Measurable (fun z => tensorBackwardProjectedMean eig U c I degree amplitude n b v i z a) := | |
| Finset.measurable_sum _ fun s _ => | |
| (measurable_tensorBackwardCoordinateMean hN eig U c I degree amplitude n b v hb i (Sum.inl s)).const_mul _ | |
| lemma tensorBackwardProjectedMean_abs_le {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 : CascadeExponents n b) (i : β) (z : SpinTensorIndex I degree β β) (a : Fin N) : | |
| |tensorBackwardProjectedMean eig U c I degree amplitude n b v i z a| β€ | |
| tensorProjectedCoordinateCap U I degree amplitude a := by | |
| unfold tensorBackwardProjectedMean tensorProjectedCoordinateCap | |
| apply (Finset.abs_sum_le_sum_abs _ _).trans | |
| apply Finset.sum_le_sum | |
| intro s _ | |
| rw [abs_mul] | |
| exact mul_le_mul_of_nonneg_left | |
| (tensorBackwardCoordinateMean_abs_le hN eig U c I degree amplitude n b v hb i z (Sum.inl s)) (abs_nonneg _) | |
| lemma integrable_tensorBackwardProjectedMean {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 : CascadeExponents n b) (i : β) (z : SpinTensorIndex I degree β β) (a : Fin N) | |
| (ΞΌ : Measure (SpinTensorIndex I degree β β)) [IsFiniteMeasure ΞΌ] : | |
| Integrable (fun x => tensorBackwardProjectedMean eig U c I degree amplitude n b v i (z + x) a) ΞΌ := | |
| Integrable.of_bound | |
| ((measurable_tensorBackwardProjectedMean hN eig U c I degree amplitude n b v hb i a).comp | |
| (measurable_const.add measurable_id)).aestronglyMeasurable | |
| (tensorProjectedCoordinateCap U I degree amplitude a) | |
| (ae_of_all _ fun x => by simpa only [Real.norm_eq_abs] using | |
| tensorBackwardProjectedMean_abs_le hN eig U c I degree amplitude n b v hb i (z + x) a) | |
| theorem tensorBackwardProjectedMean_step {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 : CascadeExponents n b) (i : β) (hi : i < n) | |
| (z : SpinTensorIndex I degree β β) (a : Fin N) : | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v i z a = | |
| β« x, tensorBackwardProjectedMean eig U c I degree amplitude n b v (i + 1) (z + x) a | |
| βtensorAncestorMarkKernel eig U c I degree amplitude n b v i z := by | |
| let := tensorAncestorMarkKernel_markov hN eig U c I degree amplitude n b v hb i | |
| have hint (s : Fin N) : Integrable (fun x => rotationCoordinate U a s * | |
| tensorBackwardCoordinateMean eig U c I degree amplitude n b v (i + 1) (z + x) (Sum.inl s)) | |
| (tensorAncestorMarkKernel eig U c I degree amplitude n b v i z) := by | |
| apply Integrable.const_mul | |
| apply Integrable.of_bound | |
| ((measurable_tensorBackwardCoordinateMean hN eig U c I degree amplitude n b v hb (i + 1) (Sum.inl s)).comp | |
| (measurable_const.add measurable_id)).aestronglyMeasurable | |
| (tensorFeatureCoordinateCap U I degree amplitude (Sum.inl s)) | |
| exact ae_of_all _ fun x => by simpa only [Real.norm_eq_abs, Function.comp_apply, Pi.add_apply, id_eq] using | |
| tensorBackwardCoordinateMean_abs_le hN eig U c I degree amplitude n b v hb (i + 1) (z + x) (Sum.inl s) | |
| rw [tensorBackwardProjectedMean, show (fun x => tensorBackwardProjectedMean eig U c I degree amplitude n b v | |
| (i + 1) (z + x) a) = (fun x => β s, rotationCoordinate U a s * | |
| tensorBackwardCoordinateMean eig U c I degree amplitude n b v (i + 1) (z + x) (Sum.inl s)) from rfl, | |
| integral_finsetSum _ (fun s _ => hint s)] | |
| apply Finset.sum_congr rfl | |
| intro s _ | |
| rw [integral_const_mul, β tensorBackwardCoordinateMean_step hN eig U c I degree amplitude n b v hb i hi z (Sum.inl s)] | |
| lemma tensorBackwardProjectedMean_terminal {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 β β) (a : Fin N) : | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v n z a = | |
| tensorProjectedMagnetization eig U c I degree amplitude z a := by | |
| rw [tensorBackwardProjectedMean_eq, tensorProjectedMagnetization_eq] | |
| simp only [tensorBackwardCoordinateMean, Nat.sub_self, tensorCascadeCoordinateMean] | |
| def tensorProjectedPairPayoff {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) (J : Finset (Fin N)) | |
| (q : β) (zβ zβ : SpinTensorIndex I degree β β) | |
| (w : Fin q β (SpinTensorIndex I degree β β) Γ (SpinTensorIndex I degree β β)) : β := | |
| (N : β)β»ΒΉ * β a β J, | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v n (zβ + β i, (w i).1) a * | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v n (zβ + β i, (w i).2) a | |
| lemma tensorProjectedPairPayoff_cons {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) (J : Finset (Fin N)) | |
| (q : β) (zβ zβ aβ aβ : SpinTensorIndex I degree β β) | |
| (w : Fin q β (SpinTensorIndex I degree β β) Γ (SpinTensorIndex I degree β β)) : | |
| tensorProjectedPairPayoff eig U c I degree amplitude n b v J (q + 1) zβ zβ (Fin.cons (aβ, aβ) w) = | |
| tensorProjectedPairPayoff eig U c I degree amplitude n b v J q (zβ + aβ) (zβ + aβ) w := by | |
| simp only [tensorProjectedPairPayoff, Fin.sum_univ_succ, Fin.cons_zero, Fin.cons_succ, add_assoc] | |
| private lemma integral_pair_product_sum {A B C : Type*} [MeasurableSpace A] [MeasurableSpace B] | |
| (ΞΌ : Measure A) (Ξ½ : Measure B) (J : Finset C) (F : C β A β β) (G : C β B β β) | |
| (hF : β a β J, Integrable (F a) ΞΌ) (hG : β a β J, Integrable (G a) Ξ½) (c : β) : | |
| (β« x, β« y, c * β a β J, F a x * G a y βΞ½ βΞΌ) = | |
| c * β a β J, (β« x, F a x βΞΌ) * β« y, G a y βΞ½ := by | |
| have hi (x : A) : (β« y, c * β a β J, F a x * G a y βΞ½) = | |
| c * β a β J, F a x * β« y, G a y βΞ½ := by | |
| rw [integral_const_mul, integral_finsetSum _ (fun a ha => (hG a ha).const_mul (F a x))] | |
| simp_rw [integral_const_mul] | |
| simp_rw [hi] | |
| rw [integral_const_mul, integral_finsetSum _ (fun a ha => (hF a ha).mul_const _)] | |
| simp_rw [integral_mul_const] | |
| theorem tensorAncestorPairPathMean_independent_projected {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 : CascadeExponents n b) (J : Finset (Fin N)) (d q i : β) (hqi : i + q = n) (hdi : d β€ i) | |
| (zβ zβ : SpinTensorIndex I degree β β) : | |
| tensorAncestorPairPathMean eig U c I degree amplitude n b v d q i zβ zβ | |
| (tensorProjectedPairPayoff eig U c I degree amplitude n b v J q zβ zβ) = | |
| (N : β)β»ΒΉ * β a β J, | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v i zβ a * | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v i zβ a := by | |
| induction q generalizing i zβ zβ with | |
| | zero => | |
| have hi : i = n := by omega | |
| subst i | |
| simp only [tensorAncestorPairPathMean, tensorProjectedPairPayoff, Finset.univ_eq_empty, | |
| Finset.sum_empty, add_zero] | |
| | succ q ih => | |
| have hi : i < n := by omega | |
| let := tensorAncestorMarkKernel_markov hN eig U c I degree amplitude n b v hb i | |
| dsimp only [tensorAncestorPairPathMean] | |
| rw [ite_eq_right (by omega : Β¬i < d)] | |
| calc | |
| _ = β« x, β« y, (N : β)β»ΒΉ * β a β J, | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v (i + 1) (zβ + x) a * | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v (i + 1) (zβ + y) a | |
| βtensorAncestorMarkKernel eig U c I degree amplitude n b v i zβ | |
| βtensorAncestorMarkKernel eig U c I degree amplitude n b v i zβ := by | |
| apply integral_congr_ae | |
| apply ae_of_all | |
| intro x | |
| apply integral_congr_ae | |
| apply ae_of_all | |
| intro y | |
| dsimp only | |
| have hP : (fun w => tensorProjectedPairPayoff eig U c I degree amplitude n b v J (q + 1) | |
| zβ zβ (Fin.cons (x, y) w)) = | |
| tensorProjectedPairPayoff eig U c I degree amplitude n b v J q (zβ + x) (zβ + y) := | |
| funext (tensorProjectedPairPayoff_cons eig U c I degree amplitude n b v J q zβ zβ x y) | |
| rw [hP] | |
| exact ih (i + 1) (by omega) (by omega) (zβ + x) (zβ + y) | |
| _ = _ := by | |
| rw [integral_pair_product_sum] | |
| Β· congr 1 | |
| apply Finset.sum_congr rfl | |
| intro a ha | |
| rw [β tensorBackwardProjectedMean_step hN eig U c I degree amplitude n b v hb i hi zβ a, | |
| β tensorBackwardProjectedMean_step hN eig U c I degree amplitude n b v hb i hi zβ a] | |
| Β· intro a _ | |
| exact integrable_tensorBackwardProjectedMean hN eig U c I degree amplitude n b v hb (i + 1) zβ a _ | |
| Β· intro a _ | |
| exact integrable_tensorBackwardProjectedMean hN eig U c I degree amplitude n b v hb (i + 1) zβ a _ | |
| def tensorSharedProjectedProduct {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) | |
| (J : Finset (Fin N)) (d : β) : | |
| (q : β) β β β (SpinTensorIndex I degree β β) β (SpinTensorIndex I degree β β) β β | |
| | 0, i, zβ, zβ => (N : β)β»ΒΉ * β a β J, | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v i zβ a * | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v i zβ a | |
| | q + 1, i, zβ, zβ => if i < d then | |
| β« x, tensorSharedProjectedProduct eig U c I degree amplitude n b v J d q | |
| (i + 1) (zβ + x) (zβ + x) βtensorAncestorMarkKernel eig U c I degree amplitude n b v i zβ | |
| else (N : β)β»ΒΉ * β a β J, | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v i zβ a * | |
| tensorBackwardProjectedMean eig U c I degree amplitude n b v i zβ a | |
| lemma tensorSharedProjectedProduct_nonneg {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) | |
| (J : Finset (Fin N)) (d q i : β) (z : SpinTensorIndex I degree β β) : | |
| 0 β€ tensorSharedProjectedProduct eig U c I degree amplitude n b v J d q i z z := by | |
| induction q generalizing i z with | |
| | zero => exact mul_nonneg (by positivity) (Finset.sum_nonneg fun _ _ => mul_self_nonneg _) | |
| | succ q ih => | |
| dsimp only [tensorSharedProjectedProduct] | |
| split_ifs | |
| Β· exact integral_nonneg fun a => ih (i + 1) (z + a) | |
| Β· exact mul_nonneg (by positivity) (Finset.sum_nonneg fun _ _ => mul_self_nonneg _) | |
| theorem tensorAncestorPairPathMean_projected {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 : CascadeExponents n b) (J : Finset (Fin N)) (d q i : β) (hqi : i + q = n) | |
| (zβ zβ : SpinTensorIndex I degree β β) : | |
| tensorAncestorPairPathMean eig U c I degree amplitude n b v d q i zβ zβ | |
| (tensorProjectedPairPayoff eig U c I degree amplitude n b v J q zβ zβ) = | |
| tensorSharedProjectedProduct eig U c I degree amplitude n b v J d q i zβ zβ := by | |
| induction q generalizing i zβ zβ with | |
| | zero => | |
| have hi : i = n := by omega | |
| subst i | |
| simp only [tensorAncestorPairPathMean, tensorProjectedPairPayoff, tensorSharedProjectedProduct, | |
| Finset.univ_eq_empty, Finset.sum_empty, add_zero] | |
| | succ q ih => | |
| by_cases hid : i < d | |
| Β· dsimp only [tensorAncestorPairPathMean, tensorSharedProjectedProduct] | |
| rw [ite_eq_left hid, ite_eq_left hid] | |
| apply integral_congr_ae | |
| apply ae_of_all | |
| intro a | |
| dsimp only | |
| have hP : (fun w => tensorProjectedPairPayoff eig U c I degree amplitude n b v J (q + 1) | |
| zβ zβ (Fin.cons (a, a) w)) = | |
| tensorProjectedPairPayoff eig U c I degree amplitude n b v J q (zβ + a) (zβ + a) := | |
| funext (tensorProjectedPairPayoff_cons eig U c I degree amplitude n b v J q zβ zβ a a) | |
| rw [hP] | |
| exact ih (i + 1) (by omega) (zβ + a) (zβ + a) | |
| Β· rw [tensorSharedProjectedProduct, ite_eq_right hid] | |
| exact tensorAncestorPairPathMean_independent_projected hN eig U c I degree amplitude | |
| n b v hb J d (q + 1) i hqi (by omega) zβ zβ | |
| lemma tensorPairPathSpinMean_projectedPayoff {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) | |
| (J : Finset (Fin N)) (z : SpinTensorIndex I degree β β) | |
| (w : Fin n β (SpinTensorIndex I degree β β) Γ (SpinTensorIndex I degree β β)) : | |
| tensorPairPathSpinMean eig U c I degree amplitude n (z, w) | |
| (fun Ο => projectedOverlap U J (Ο 0) (Ο 1)) = | |
| tensorProjectedPairPayoff eig U c I degree amplitude n b v J n z z w := by | |
| rw [tensorPairPathSpinMean_overlap] | |
| simp only [tensorProjectedPairPayoff, tensorBackwardProjectedMean_terminal, tensorPairPathState, | |
| ite_true, ite_eq_right (show (1 : Fin 2) β 0 by decide)] | |
| /-- The actual projected-overlap test is the shared-path expectation of | |
| products of projected backward gradients at the branching level. -/ | |
| theorem tensorProjectedOverlap_backward_identity (hpub : PanchenkoTalagrandTensorPairInput) | |
| {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 : CascadeExponents n b) (J : Finset (Fin N)) (z : SpinTensorIndex I degree β β) | |
| (Ο : β β β) {B : β} (hB : 0 β€ B) (hΟ : β d, |Ο d| β€ B) : | |
| tensorSpinPairAverage eig U c I degree amplitude n b v z Ο | |
| (fun Ο => projectedOverlap U J (Ο 0) (Ο 1)) = | |
| β« Ξ± : β β LabeledLeaf n, Ο (labeledCommonDepth n (Ξ± 0) (Ξ± 1)) * | |
| tensorSharedProjectedProduct eig U c I degree amplitude n b v J | |
| (labeledCommonDepth n (Ξ± 0) (Ξ± 1)) n 0 z z βcascadeReplicaLaw n b := by | |
| rw [tensorProjectedOverlap_markov_identity hpub hN eig U c I degree amplitude n b v hb z J Ο hB hΟ] | |
| apply integral_congr_ae | |
| apply ae_of_all | |
| intro Ξ± | |
| simp only [tensorPairSpinPathPayoff, | |
| tensorPairPathSpinMean_projectedPayoff eig U c I degree amplitude n b v J z] | |
| rw [tensorAncestorPairPathMean_const_mul, | |
| tensorAncestorPairPathMean_projected hN eig U c I degree amplitude n b v hb J _ n 0 (by omega)] | |
| theorem tensorProjectedOverlap_nonneg (hpub : PanchenkoTalagrandTensorPairInput) | |
| {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 : CascadeExponents n b) (J : Finset (Fin N)) (z : SpinTensorIndex I degree β β) | |
| (Ο : β β β) {B : β} (hB : 0 β€ B) (hΟ : β d, |Ο d| β€ B) (hΟ0 : β d, 0 β€ Ο d) : | |
| 0 β€ tensorSpinPairAverage eig U c I degree amplitude n b v z Ο | |
| (fun Ο => projectedOverlap U J (Ο 0) (Ο 1)) := by | |
| rw [tensorProjectedOverlap_backward_identity hpub hN eig U c I degree amplitude n b v hb J z Ο hB hΟ] | |
| exact integral_nonneg fun Ξ± => mul_nonneg (hΟ0 _) | |
| (tensorSharedProjectedProduct_nonneg eig U c I degree amplitude n b v J _ n 0 z) | |
| theorem tensorRootedProjectedOverlap_backward_identity (hpub : PanchenkoTalagrandTensorPairInput) | |
| {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 : CascadeExponents n b) (J : Finset (Fin N)) | |
| (Ο : β β β) {B : β} (hB : 0 β€ B) (hΟ : β d, |Ο d| β€ B) : | |
| (β« z, tensorSpinPairAverage eig U c I degree amplitude n b (fun i => v (i + 1)) z Ο | |
| (fun Ο => projectedOverlap U J (Ο 0) (Ο 1)) | |
| β(tensorGaussianLaw I degree (v 0) : Measure (SpinTensorIndex I degree β β))) = | |
| β« z, β« Ξ± : β β LabeledLeaf n, Ο (labeledCommonDepth n (Ξ± 0) (Ξ± 1)) * | |
| tensorSharedProjectedProduct eig U c I degree amplitude n b (fun i => v (i + 1)) J | |
| (labeledCommonDepth n (Ξ± 0) (Ξ± 1)) n 0 z z βcascadeReplicaLaw n b | |
| β(tensorGaussianLaw I degree (v 0) : Measure (SpinTensorIndex I degree β β)) := by | |
| apply integral_congr_ae | |
| exact ae_of_all _ fun z => tensorProjectedOverlap_backward_identity hpub hN eig U c I degree amplitude | |
| n b (fun i => v (i + 1)) hb J z Ο hB hΟ | |
| end InvariantIsing | |
| end | |
| end OAI | |