Buckets:
| import OAI.Probability.InvariantIsing.Core.MixedSpectralFeatures | |
| import OAI.Probability.InvariantIsing.Arrays.TripleContractions | |
| import OAI.Probability.InvariantIsing.Arrays.PerturbationWeights | |
| namespace OAI | |
| /-! Finite covariance derivative contractions in the tensor perturbation | |
| error of the spectral Ward identity (manuscript, ยง3, lines 421--439). -/ | |
| noncomputable section | |
| open IsingPerceptron | |
| open scoped BigOperators | |
| namespace InvariantIsing | |
| def projectedOverlapEndpointDerivative {N : โ} (U : Orthogonal N) (K : Finset (Fin N)) | |
| (i j : Fin N) (ฯ ฯ : Spin N) : โ := | |
| (N : โ)โปยน * ((if i โ K then spinCoordinate U ฯ j * spinCoordinate U ฯ i else 0) - | |
| (if j โ K then spinCoordinate U ฯ i * spinCoordinate U ฯ j else 0)) | |
| lemma hasDerivAt_mixedProjectedOverlap_plane {N : โ} (U : Orthogonal N) | |
| (K : Finset (Fin N)) (i j : Fin N) (ฯ ฯ : Spin N) : | |
| HasDerivAt (fun s => mixedProjectedOverlap (matrixRotation (planeRotation i j s * U)) | |
| (matrixRotation U) K ฯ ฯ) (projectedOverlapEndpointDerivative U K i j ฯ ฯ) 0 := by | |
| have hd := (HasDerivAt.fun_sum (u := K) (fun k _ => | |
| (hasDerivAt_planeRotation_coordinate i j k U (spinVector ฯ) 0).mul_const | |
| (matrixRotation U (spinVector ฯ) k))).const_mul (N : โ)โปยน | |
| convert hd using 1 | |
| ยท rfl | |
| ยท simp only [planeRotation_zero, one_mul, projectedOverlapEndpointDerivative, spinCoordinate, | |
| sub_mul, ite_mul, zero_mul, Finset.sum_sub_distrib, Finset.sum_ite_eq'] | |
| def spectralMonomialEndpointCoefficient {N m : โ} (U : Orthogonal N) | |
| (I : Fin m โ Finset (Fin N)) (d : Fin m โ โ) (ฯ ฯ : Spin N) (a : Fin m) : โ := | |
| (โ b โ Finset.univ.erase a, projectedOverlap (matrixRotation U) (I b) ฯ ฯ ^ d b) * | |
| ((d a : โ) * projectedOverlap (matrixRotation U) (I a) ฯ ฯ ^ (d a - 1)) | |
| def spectralMonomialEndpointDerivative {N m : โ} (U : Orthogonal N) | |
| (I : Fin m โ Finset (Fin N)) (d : Fin m โ โ) (i j : Fin N) (ฯ ฯ : Spin N) : โ := | |
| โ a, spectralMonomialEndpointCoefficient U I d ฯ ฯ a * projectedOverlapEndpointDerivative U (I a) i j ฯ ฯ | |
| /-- This is the derivative in one tensor endpoint. The other endpoint and | |
| all tree coordinates remain fixed during the plane rotation. -/ | |
| theorem hasDerivAt_spectralMonomial_mixed_plane {N m : โ} (U : Orthogonal N) | |
| (I : Fin m โ Finset (Fin N)) (d : Fin m โ โ) (i j : Fin N) (ฯ ฯ : Spin N) : | |
| HasDerivAt (fun s => โ a, | |
| mixedProjectedOverlap (matrixRotation (planeRotation i j s * U)) (matrixRotation U) (I a) ฯ ฯ ^ d a) | |
| (spectralMonomialEndpointDerivative U I d i j ฯ ฯ) 0 := by | |
| have hd := HasDerivAt.fun_finsetProd (u := Finset.univ) (fun a _ => | |
| (hasDerivAt_mixedProjectedOverlap_plane U (I a) i j ฯ ฯ).pow (d a)) | |
| have hs (a : Fin m) : mixedProjectedOverlap (matrixRotation (planeRotation i j 0 * U)) | |
| (matrixRotation U) (I a) ฯ ฯ = projectedOverlap (matrixRotation U) (I a) ฯ ฯ := by | |
| simp only [planeRotation_zero, one_mul] | |
| rfl | |
| simpa only [Pi.pow_apply, hs, smul_eq_mul, spectralMonomialEndpointDerivative, | |
| spectralMonomialEndpointCoefficient, mul_assoc] using hd | |
| theorem hasDerivAt_spectralTensor_cross_plane {N m : โ} (U : Orthogonal N) | |
| (I : Fin m โ Finset (Fin N)) (d : Fin m โ โ) (i j : Fin N) (ฯ ฯ : Spin N) : | |
| HasDerivAt (fun s => โ v : SpectralTensorIndex I d, | |
| spectralMonomialFeature (matrixRotation (planeRotation i j s * U)) I d ฯ v * | |
| spectralMonomialFeature (matrixRotation U) I d ฯ v) | |
| (spectralMonomialEndpointDerivative U I d i j ฯ ฯ) 0 := by | |
| have hf : (fun s => โ v : SpectralTensorIndex I d, | |
| spectralMonomialFeature (matrixRotation (planeRotation i j s * U)) I d ฯ v * | |
| spectralMonomialFeature (matrixRotation U) I d ฯ v) = | |
| (fun s => โ a, mixedProjectedOverlap (matrixRotation (planeRotation i j s * U)) | |
| (matrixRotation U) (I a) ฯ ฯ ^ d a) := | |
| funext fun s => spectralMonomialFeature_mixed_cross _ _ I d ฯ ฯ | |
| rw [hf] | |
| exact hasDerivAt_spectralMonomial_mixed_plane U I d i j ฯ ฯ | |
| lemma jointSpectralMonomialCoefficients_mixed_cross {N m : โ} (U V : Rotation N) | |
| (I : Fin m โ Finset (Fin N)) (d : Fin m โ โ) (n r : โ) | |
| (x y : Spin N ร LabeledLeaf n) : | |
| cylinderCross (jointSpectralMonomialCoefficients U I d n r x) | |
| (jointSpectralMonomialCoefficients V I d n r y) = | |
| (โ a, mixedProjectedOverlap U V (I a) x.1 y.1 ^ d a) * treeOverlap n x.2 y.2 ^ r := by | |
| unfold jointSpectralMonomialCoefficients | |
| rw [treeField_path_cross n x.2 y.2 (monomialPath_monotone n r) (monomialPath_nonneg n r 0), | |
| spectralMonomialFeature_mixed_cross] | |
| simp only [monomialPath, treeOverlap] | |
| ring | |
| theorem hasDerivAt_jointSpectralCoefficients_cross_plane {N m : โ} (U : Orthogonal N) | |
| (I : Fin m โ Finset (Fin N)) (d : Fin m โ โ) (n r : โ) | |
| (i j : Fin N) (x y : Spin N ร LabeledLeaf n) : | |
| HasDerivAt (fun s => cylinderCross | |
| (jointSpectralMonomialCoefficients (matrixRotation (planeRotation i j s * U)) I d n r x) | |
| (jointSpectralMonomialCoefficients (matrixRotation U) I d n r y)) | |
| (spectralMonomialEndpointDerivative U I d i j x.1 y.1 * treeOverlap n x.2 y.2 ^ r) 0 := by | |
| have hf : (fun s => cylinderCross | |
| (jointSpectralMonomialCoefficients (matrixRotation (planeRotation i j s * U)) I d n r x) | |
| (jointSpectralMonomialCoefficients (matrixRotation U) I d n r y)) = | |
| (fun s => (โ a, mixedProjectedOverlap (matrixRotation (planeRotation i j s * U)) | |
| (matrixRotation U) (I a) x.1 y.1 ^ d a) * treeOverlap n x.2 y.2 ^ r) := | |
| funext fun s => jointSpectralMonomialCoefficients_mixed_cross _ _ I d n r x y | |
| rw [hf] | |
| exact (hasDerivAt_spectralMonomial_mixed_plane U I d i j x.1 y.1).mul_const _ | |
| lemma spectralMonomialEndpointCoefficient_abs_le {N m : โ} (U : Orthogonal N) | |
| (I : Fin m โ Finset (Fin N)) (d : Fin m โ โ) (ฯ ฯ : Spin N) (a : Fin m) : | |
| |spectralMonomialEndpointCoefficient U I d ฯ ฯ a| โค d a := by | |
| have hpow (b : Fin m) (r : โ) : |projectedOverlap (matrixRotation U) (I b) ฯ ฯ ^ r| โค 1 := by | |
| rw [abs_pow] | |
| exact pow_le_oneโ (abs_nonneg _) (projectedOverlap_abs_le_one _ _ _ _) | |
| have hp : |โ b โ Finset.univ.erase a, projectedOverlap (matrixRotation U) (I b) ฯ ฯ ^ d b| โค 1 := by | |
| rw [Finset.abs_prod] | |
| exact Finset.prod_le_oneโ (fun _ _ => abs_nonneg _) (fun b _ => hpow b (d b)) | |
| unfold spectralMonomialEndpointCoefficient | |
| rw [abs_mul, abs_mul, abs_of_nonneg (Nat.cast_nonneg (d a) : (0 : โ) โค (d a : โ))] | |
| calc | |
| _ โค 1 * ((d a : โ) * 1) := | |
| mul_le_mul hp (mul_le_mul_of_nonneg_left (hpow a (d a - 1)) (Nat.cast_nonneg _)) | |
| (mul_nonneg (Nat.cast_nonneg _) (abs_nonneg _)) zero_le_one | |
| _ = _ := by ring | |
| def projectedEndpointContraction {N : โ} (U : Orthogonal N) | |
| (I J K : Finset (Fin N)) (ฮท ฮธ ฯ ฯ : Spin N) : โ := | |
| (N : โ)โปยน ^ 2 * โ i โ I, โ j โ J, | |
| spinCoordinate U ฮท i * spinCoordinate U ฮธ j * projectedOverlapEndpointDerivative U K i j ฯ ฯ | |
| /-- The two coordinate sums contract into products of normalized projected | |
| inner products, with one remaining factor `1/N`. -/ | |
| theorem projectedEndpointContraction_eq {N : โ} (U : Orthogonal N) | |
| (I J K : Finset (Fin N)) (ฮท ฮธ ฯ ฯ : Spin N) : | |
| projectedEndpointContraction U I J K ฮท ฮธ ฯ ฯ = | |
| (N : โ)โปยน * (projectedOverlap (matrixRotation U) (I โฉ K) ฮท ฯ * | |
| projectedOverlap (matrixRotation U) J ฮธ ฯ - | |
| projectedOverlap (matrixRotation U) I ฮท ฯ * projectedOverlap (matrixRotation U) (J โฉ K) ฮธ ฯ) := by | |
| classical | |
| have hi : (โ i โ I, if i โ K then spinCoordinate U ฮท i * spinCoordinate U ฯ i else 0) = | |
| โ i โ I โฉ K, spinCoordinate U ฮท i * spinCoordinate U ฯ i := by | |
| rw [โ Finset.sum_filter, Finset.filter_mem_eq_inter] | |
| have hj : (โ j โ J, if j โ K then spinCoordinate U ฮธ j * spinCoordinate U ฯ j else 0) = | |
| โ j โ J โฉ K, spinCoordinate U ฮธ j * spinCoordinate U ฯ j := by | |
| rw [โ Finset.sum_filter, Finset.filter_mem_eq_inter] | |
| have hterm (i j : Fin N) : spinCoordinate U ฮท i * spinCoordinate U ฮธ j * | |
| projectedOverlapEndpointDerivative U K i j ฯ ฯ = (N : โ)โปยน * | |
| ((if i โ K then spinCoordinate U ฮท i * spinCoordinate U ฯ i else 0) * | |
| (spinCoordinate U ฮธ j * spinCoordinate U ฯ j) - | |
| (spinCoordinate U ฮท i * spinCoordinate U ฯ i) * | |
| (if j โ K then spinCoordinate U ฮธ j * spinCoordinate U ฯ j else 0)) := by | |
| unfold projectedOverlapEndpointDerivative | |
| split_ifs <;> ring | |
| simp_rw [projectedEndpointContraction, hterm] | |
| simp only [โ Finset.mul_sum, Finset.sum_sub_distrib] | |
| rw [โ Finset.sum_mul, โ Finset.sum_mul, hi, hj] | |
| simp only [projectedOverlap, spinCoordinate] | |
| ring | |
| theorem projectedEndpointContraction_abs_le {N : โ} (U : Orthogonal N) | |
| (I J K : Finset (Fin N)) (ฮท ฮธ ฯ ฯ : Spin N) : | |
| |projectedEndpointContraction U I J K ฮท ฮธ ฯ ฯ| โค 2 * (N : โ)โปยน := by | |
| rw [projectedEndpointContraction_eq, abs_mul, abs_of_nonneg (by positivity : (0 : โ) โค (N : โ)โปยน)] | |
| have hab (K L : Finset (Fin N)) (s t u w : Spin N) : | |
| |projectedOverlap (matrixRotation U) K s t * projectedOverlap (matrixRotation U) L u w| โค 1 := by | |
| rw [abs_mul] | |
| exact (mul_le_mul (projectedOverlap_abs_le_one _ _ _ _) (projectedOverlap_abs_le_one _ _ _ _) | |
| (abs_nonneg _) zero_le_one).trans_eq (one_mul 1) | |
| have hd : |projectedOverlap (matrixRotation U) (I โฉ K) ฮท ฯ * projectedOverlap (matrixRotation U) J ฮธ ฯ - | |
| projectedOverlap (matrixRotation U) I ฮท ฯ * projectedOverlap (matrixRotation U) (J โฉ K) ฮธ ฯ| โค 2 := by | |
| have h1 := hab (I โฉ K) J ฮท ฯ ฮธ ฯ | |
| have h2 := hab I (J โฉ K) ฮท ฯ ฮธ ฯ | |
| exact (abs_sub _ _).trans (by linarith) | |
| nlinarith [mul_le_mul_of_nonneg_left hd (by positivity : (0 : โ) โค (N : โ)โปยน)] | |
| def spectralMonomialEndpointContraction {N m : โ} (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (d : Fin m โ โ) | |
| (I J : Finset (Fin N)) (ฮท ฮธ ฯ ฯ : Spin N) : โ := | |
| โ a, spectralMonomialEndpointCoefficient U groups d ฯ ฯ a * | |
| projectedEndpointContraction U I J (groups a) ฮท ฮธ ฯ ฯ | |
| theorem spectralMonomialEndpointContraction_eq {N m : โ} (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (d : Fin m โ โ) | |
| (I J : Finset (Fin N)) (ฮท ฮธ ฯ ฯ : Spin N) : | |
| spectralMonomialEndpointContraction U groups d I J ฮท ฮธ ฯ ฯ = | |
| (N : โ)โปยน ^ 2 * โ i โ I, โ j โ J, spinCoordinate U ฮท i * spinCoordinate U ฮธ j * | |
| spectralMonomialEndpointDerivative U groups d i j ฯ ฯ := by | |
| unfold spectralMonomialEndpointContraction projectedEndpointContraction spectralMonomialEndpointDerivative | |
| simp only [Finset.mul_sum] | |
| rw [Finset.sum_comm] | |
| apply Finset.sum_congr rfl | |
| intro i hi | |
| rw [Finset.sum_comm] | |
| apply Finset.sum_congr rfl | |
| intro j hj | |
| apply Finset.sum_congr rfl | |
| intro a _ | |
| ring | |
| theorem spectralMonomialEndpointContraction_abs_le {N m : โ} (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (d : Fin m โ โ) | |
| (I J : Finset (Fin N)) (ฮท ฮธ ฯ ฯ : Spin N) : | |
| |spectralMonomialEndpointContraction U groups d I J ฮท ฮธ ฯ ฯ| โค | |
| 2 * (N : โ)โปยน * โ a, (d a : โ) := by | |
| unfold spectralMonomialEndpointContraction | |
| calc | |
| _ โค โ a, |spectralMonomialEndpointCoefficient U groups d ฯ ฯ a * | |
| projectedEndpointContraction U I J (groups a) ฮท ฮธ ฯ ฯ| := Finset.abs_sum_le_sum_abs _ _ | |
| _ โค โ a, (d a : โ) * (2 * (N : โ)โปยน) := by | |
| apply Finset.sum_le_sum | |
| intro a _ | |
| rw [abs_mul] | |
| exact mul_le_mul (spectralMonomialEndpointCoefficient_abs_le U groups d ฯ ฯ a) | |
| (projectedEndpointContraction_abs_le U I J (groups a) ฮท ฮธ ฯ ฯ) (abs_nonneg _) (Nat.cast_nonneg _) | |
| _ = _ := by rw [โ Finset.sum_mul]; ring | |
| def tensorWardPerturbationError {N m : โ} (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (degree : Fin N โ Fin m โ โ) | |
| (treeDegree : Fin N โ โ) (n : โ) (u : Fin N โ โ) | |
| (I J : Finset (Fin N)) (ฮท ฮธ : Spin N) (x y : Spin N ร LabeledLeaf n) : โ := | |
| โ r, tensorPerturbationAmplitude N u r ^ 2 * treeOverlap n x.2 y.2 ^ treeDegree r * | |
| spectralMonomialEndpointContraction U groups (degree r) I J ฮท ฮธ x.1 y.1 | |
| theorem tensorWardPerturbationError_eq {N m : โ} (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (degree : Fin N โ Fin m โ โ) | |
| (treeDegree : Fin N โ โ) (n : โ) (u : Fin N โ โ) | |
| (I J : Finset (Fin N)) (ฮท ฮธ : Spin N) (x y : Spin N ร LabeledLeaf n) : | |
| tensorWardPerturbationError U groups degree treeDegree n u I J ฮท ฮธ x y = | |
| (N : โ)โปยน ^ 2 * โ i โ I, โ j โ J, spinCoordinate U ฮท i * spinCoordinate U ฮธ j * | |
| โ r, tensorPerturbationAmplitude N u r ^ 2 * treeOverlap n x.2 y.2 ^ treeDegree r * | |
| spectralMonomialEndpointDerivative U groups (degree r) i j x.1 y.1 := by | |
| unfold tensorWardPerturbationError | |
| simp_rw [spectralMonomialEndpointContraction_eq] | |
| simp only [Finset.mul_sum] | |
| rw [Finset.sum_comm] | |
| apply Finset.sum_congr rfl | |
| intro i hi | |
| rw [Finset.sum_comm] | |
| apply Finset.sum_congr rfl | |
| intro j hj | |
| apply Finset.sum_congr rfl | |
| intro r _ | |
| ring | |
| theorem hasDerivAt_tensorPerturbation_cross_plane {N m : โ} (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (degree : Fin N โ Fin m โ โ) | |
| (treeDegree : Fin N โ โ) (n : โ) (u : Fin N โ โ) | |
| (i j : Fin N) (x y : Spin N ร LabeledLeaf n) : | |
| HasDerivAt (fun s => โ r, tensorPerturbationAmplitude N u r ^ 2 * | |
| treeOverlap n x.2 y.2 ^ treeDegree r * | |
| โ v : SpectralTensorIndex groups (degree r), | |
| spectralMonomialFeature (matrixRotation (planeRotation i j s * U)) groups (degree r) x.1 v * | |
| spectralMonomialFeature (matrixRotation U) groups (degree r) y.1 v) | |
| (โ r, tensorPerturbationAmplitude N u r ^ 2 * treeOverlap n x.2 y.2 ^ treeDegree r * | |
| spectralMonomialEndpointDerivative U groups (degree r) i j x.1 y.1) 0 := | |
| HasDerivAt.fun_sum (u := Finset.univ) fun r _ => | |
| (hasDerivAt_spectralTensor_cross_plane U groups (degree r) i j x.1 y.1).const_mul _ | |
| theorem hasDerivAt_jointTensorPerturbation_cross_plane {N m : โ} (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (degree : Fin N โ Fin m โ โ) | |
| (treeDegree : Fin N โ โ) (n : โ) (u : Fin N โ โ) | |
| (i j : Fin N) (x y : Spin N ร LabeledLeaf n) : | |
| HasDerivAt (fun s => โ r, tensorPerturbationAmplitude N u r ^ 2 * cylinderCross | |
| (jointSpectralMonomialCoefficients (matrixRotation (planeRotation i j s * U)) groups (degree r) n (treeDegree r) x) | |
| (jointSpectralMonomialCoefficients (matrixRotation U) groups (degree r) n (treeDegree r) y)) | |
| (โ r, tensorPerturbationAmplitude N u r ^ 2 * treeOverlap n x.2 y.2 ^ treeDegree r * | |
| spectralMonomialEndpointDerivative U groups (degree r) i j x.1 y.1) 0 := by | |
| have hd := HasDerivAt.fun_sum (u := Finset.univ) fun r _ => | |
| (hasDerivAt_jointSpectralCoefficients_cross_plane U groups (degree r) n (treeDegree r) i j x y).const_mul | |
| (tensorPerturbationAmplitude N u r ^ 2) | |
| convert hd using 1 | |
| apply Finset.sum_congr rfl | |
| intro r _ | |
| ring | |
| /-- One covariance contraction after Gaussian integration by parts, for | |
| the actual finite geometric-weight perturbation. It is uniform in tree | |
| depth, all four spin replicas, and the coordinate groups. -/ | |
| theorem tensorWardPerturbationError_abs_le {N m : โ} (hN : 0 < N) (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (degree : Fin N โ Fin m โ โ) | |
| (treeDegree : Fin N โ โ) (n : โ) (u : Fin N โ โ) (hu : โ r, |u r| โค 2) | |
| (D : โ) (hD : 0 โค D) (hdegree : โ r, (โ a, (degree r a : โ)) โค D * ((r : โ) + 1)) | |
| (I J : Finset (Fin N)) (ฮท ฮธ : Spin N) (x y : Spin N ร LabeledLeaf n) : | |
| |tensorWardPerturbationError U groups degree treeDegree n u I J ฮท ฮธ x y| โค | |
| 8 * D * perturbationScale N ^ 2 := by | |
| have ht (r : Fin N) : |treeOverlap n x.2 y.2 ^ treeDegree r| โค 1 := by | |
| rw [abs_pow, abs_of_nonneg (treeOverlap_mem n x.2 y.2).1] | |
| exact pow_le_oneโ (treeOverlap_mem n x.2 y.2).1 (treeOverlap_mem n x.2 y.2).2 | |
| unfold tensorWardPerturbationError | |
| calc | |
| _ โค โ r, |tensorPerturbationAmplitude N u r ^ 2 * treeOverlap n x.2 y.2 ^ treeDegree r * | |
| spectralMonomialEndpointContraction U groups (degree r) I J ฮท ฮธ x.1 y.1| := Finset.abs_sum_le_sum_abs _ _ | |
| _ โค โ r, tensorPerturbationAmplitude N u r ^ 2 * | |
| (2 * (N : โ)โปยน * โ a, (degree r a : โ)) := by | |
| apply Finset.sum_le_sum | |
| intro r _ | |
| rw [abs_mul, abs_mul, abs_of_nonneg (sq_nonneg _)] | |
| have hcoef : tensorPerturbationAmplitude N u r ^ 2 * |treeOverlap n x.2 y.2 ^ treeDegree r| โค | |
| tensorPerturbationAmplitude N u r ^ 2 := | |
| mul_le_of_le_one_right (sq_nonneg _) (ht r) | |
| exact mul_le_mul hcoef | |
| (spectralMonomialEndpointContraction_abs_le U groups (degree r) I J ฮท ฮธ x.1 y.1) | |
| (abs_nonneg _) (sq_nonneg _) | |
| _ = 2 * (N : โ)โปยน * โ r, tensorPerturbationAmplitude N u r ^ 2 * โ a, (degree r a : โ) := by | |
| rw [Finset.mul_sum] | |
| apply Finset.sum_congr rfl | |
| intro r _ | |
| ring | |
| _ โค 2 * (N : โ)โปยน * (4 * N * perturbationScale N ^ 2 * D) := | |
| mul_le_mul_of_nonneg_left (tensorPerturbationAmplitude_degree_sum_le u hu degree D hD hdegree) (by positivity) | |
| _ = _ := by | |
| have hn : (N : โ) โ 0 := by exact_mod_cast hN.ne' | |
| field_simp | |
| ring | |
| theorem tensorWardPerturbationError_test_abs_le {N m : โ} (hN : 0 < N) (U : Orthogonal N) | |
| (groups : Fin m โ Finset (Fin N)) (degree : Fin N โ Fin m โ โ) | |
| (treeDegree : Fin N โ โ) (n : โ) (u : Fin N โ โ) (hu : โ r, |u r| โค 2) | |
| (D : โ) (hD : 0 โค D) (hdegree : โ r, (โ a, (degree r a : โ)) โค D * ((r : โ) + 1)) | |
| (I J : Finset (Fin N)) (ฮท ฮธ : Spin N) (x y : Spin N ร LabeledLeaf n) | |
| (F B : โ) (hB : 0 โค B) (hF : |F| โค B) : | |
| |F * tensorWardPerturbationError U groups degree treeDegree n u I J ฮท ฮธ x y| โค | |
| 8 * B * D * perturbationScale N ^ 2 := by | |
| rw [abs_mul] | |
| exact (mul_le_mul hF | |
| (tensorWardPerturbationError_abs_le hN U groups degree treeDegree n u hu D hD hdegree I J ฮท ฮธ x y) | |
| (abs_nonneg _) hB).trans_eq (by ring) | |
| end InvariantIsing | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 18.4 kB
- Xet hash:
- 023f610a0afa98bf5cb0ed789d8f0e335630ae7621a637c0f1980a8cb71c7dd3
ยท
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.