Download data/lean/OAI/Probability/InvariantIsing/Arrays/OverlapBounds.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.74 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Arrays/OverlapBounds.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/InvariantIsing/Arrays/OverlapBounds.lean
-
curl -L -o OverlapBounds.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Arrays/OverlapBounds.lean
4.74 kB
| import OAI.Probability.InvariantIsing.Arrays.Overlaps | |
| import OAI.Probability.InvariantIsing.Pressure.PressureLipschitz | |
| namespace OAI | |
| /-! Dimension-independent bounds for projected spectral overlap kernels. -/ | |
| noncomputable section | |
| open MeasureTheory | |
| open scoped BigOperators | |
| namespace InvariantIsing | |
| lemma projected_spin_sq_sum_le {N : β} (U : Rotation N) (I : Finset (Fin N)) (Ο : Spin N) : | |
| (β i β I, U (spinVector Ο) i ^ 2) β€ N := by | |
| rw [β rotated_spin_sq_sum U Ο] | |
| exact Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ I) (fun _ _ _ => sq_nonneg _) | |
| lemma projectedOverlap_abs_le_one {N : β} (U : Rotation N) (I : Finset (Fin N)) (Ο Ο : Spin N) : | |
| |projectedOverlap U I Ο Ο| β€ 1 := by | |
| have hcs := Finset.sum_mul_sq_le_sq_mul_sq I | |
| (fun i => U (spinVector Ο) i) (fun i => U (spinVector Ο) i) | |
| have hs : (β i β I, U (spinVector Ο) i * U (spinVector Ο) i) ^ 2 β€ (N : β) ^ 2 := by | |
| apply hcs.trans | |
| simpa only [pow_two] using | |
| (mul_le_mul (projected_spin_sq_sum_le U I Ο) (projected_spin_sq_sum_le U I Ο) | |
| (Finset.sum_nonneg fun _ _ => sq_nonneg _) (Nat.cast_nonneg _)) | |
| have ha : |β i β I, U (spinVector Ο) i * U (spinVector Ο) i| β€ N := | |
| (sq_le_sqβ (abs_nonneg _) (Nat.cast_nonneg _)).mp (by simpa only [sq_abs] using hs) | |
| unfold projectedOverlap | |
| rw [abs_mul, abs_of_nonneg (show (0 : β) β€ (N : β)β»ΒΉ by positivity)] | |
| by_cases hN : N = 0 | |
| Β· simp [hN] | |
| Β· have hn : (N : β) β 0 := by exact_mod_cast hN | |
| exact (mul_le_mul_of_nonneg_left ha (by positivity)).trans_eq (inv_mul_cancelβ hn) | |
| lemma projectedOverlap_self_le_one {N : β} (U : Rotation N) (I : Finset (Fin N)) (Ο : Spin N) : | |
| projectedOverlap U I Ο Ο β€ 1 := | |
| (le_abs_self _).trans (projectedOverlap_abs_le_one U I Ο Ο) | |
| lemma abs_projected_cross_difference_sum_le {N : β} | |
| (U V W : SpecialOrthogonal N) (I : Finset (Fin N)) (Ο Ο : Spin N) : | |
| |β i β I, (specialRotation U (spinVector Ο) i - specialRotation V (spinVector Ο) i) * | |
| specialRotation W (spinVector Ο) i| β€ N * frobeniusDistance U V := by | |
| let d := frobeniusDistance U V | |
| let x := fun i => specialRotation U (spinVector Ο) i - specialRotation V (spinVector Ο) i | |
| let y := fun i => specialRotation W (spinVector Ο) i | |
| have hd : 0 β€ d := Real.sqrt_nonneg _ | |
| have hx : (β i β I, x i ^ 2) β€ N * d ^ 2 := by | |
| exact (Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ I) | |
| (fun _ _ _ => sq_nonneg _)).trans (specialRotation_spin_dist_sq_le U V Ο) | |
| have hy : (β i β I, y i ^ 2) β€ N := projected_spin_sq_sum_le _ I Ο | |
| have hsq : (β i β I, x i * y i) ^ 2 β€ ((N : β) * d) ^ 2 := by | |
| calc | |
| _ β€ (β i β I, x i ^ 2) * β i β I, y i ^ 2 := Finset.sum_mul_sq_le_sq_mul_sq I x y | |
| _ β€ ((N : β) * d ^ 2) * N := mul_le_mul hx hy | |
| (Finset.sum_nonneg fun _ _ => sq_nonneg _) (by positivity) | |
| _ = _ := by ring | |
| exact (sq_le_sqβ (abs_nonneg _) (by positivity)).mp (by simpa only [sq_abs] using hsq) | |
| /-- Every projected overlap has a uniform Frobenius Lipschitz constant. This | |
| controls the covariances of the Gaussian GG perturbations. -/ | |
| theorem abs_projectedOverlap_sub_rotation_le {N : β} (hN : 0 < N) | |
| (U V : SpecialOrthogonal N) (I : Finset (Fin N)) (Ο Ο : Spin N) : | |
| |projectedOverlap (specialRotation U) I Ο Ο - projectedOverlap (specialRotation V) I Ο Ο| β€ | |
| 2 * frobeniusDistance U V := by | |
| let A := β i β I, (specialRotation U (spinVector Ο) i - specialRotation V (spinVector Ο) i) * | |
| specialRotation U (spinVector Ο) i | |
| let B := β i β I, (specialRotation U (spinVector Ο) i - specialRotation V (spinVector Ο) i) * | |
| specialRotation V (spinVector Ο) i | |
| have hA : |A| β€ N * frobeniusDistance U V := abs_projected_cross_difference_sum_le U V U I Ο Ο | |
| have hB : |B| β€ N * frobeniusDistance U V := abs_projected_cross_difference_sum_le U V V I Ο Ο | |
| have he : projectedOverlap (specialRotation U) I Ο Ο - projectedOverlap (specialRotation V) I Ο Ο = | |
| (N : β)β»ΒΉ * (A + B) := by | |
| unfold projectedOverlap | |
| rw [β mul_sub] | |
| congr 1 | |
| dsimp only [A, B] | |
| rw [β Finset.sum_sub_distrib, β Finset.sum_add_distrib] | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| ring | |
| have hb : |A + B| β€ 2 * N * frobeniusDistance U V := by | |
| have h := (abs_add_le A B).trans (add_le_add hA hB) | |
| linarith | |
| rw [he, abs_mul, abs_of_nonneg (show (0 : β) β€ (N : β)β»ΒΉ by positivity)] | |
| have hn : (N : β) β 0 := by exact_mod_cast hN.ne' | |
| calc | |
| _ β€ (N : β)β»ΒΉ * (2 * N * frobeniusDistance U V) := mul_le_mul_of_nonneg_left hb (by positivity) | |
| _ = _ := by field_simp | |
| end InvariantIsing | |
| end | |
| end OAI | |