math / data /lean /OAI /Probability /InvariantIsing /Arrays /NSpinTensorProjectedBackward.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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