Download data/lean/OAI/Probability/InvariantIsing/Magnetic/MagneticBlockPath.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.94 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Magnetic/MagneticBlockPath.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/InvariantIsing/Magnetic/MagneticBlockPath.lean
-
curl -L -o MagneticBlockPath.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Magnetic/MagneticBlockPath.lean
3.94 kB
| import OAI.Probability.InvariantIsing.Magnetic.RestrictedPairTies | |
| namespace OAI | |
| /-! The canonical site-average overlap path and its uniform comparison | |
| with the original constrained-block overlap path. -/ | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory IsingPerceptron Set | |
| open scoped BigOperators NNReal | |
| namespace InvariantIsing | |
| def magneticBlockLevel {N : β} (h : FieldStep) (m : Fin N β β) | |
| (i : Fin (h.depth + 1)) : β := (N : β)β»ΒΉ * β j, magneticFieldLevel h (m j) i | |
| lemma magneticBlockLevel_mem_unit {N : β} (hN : 0 < N) (h : FieldStep) | |
| (m : Fin N β β) (i : Fin (h.depth + 1)) : magneticBlockLevel h m i β Icc (0 : β) 1 := by | |
| have hn : (0 : β) < N := by exact_mod_cast hN | |
| constructor | |
| Β· exact mul_nonneg (inv_nonneg.mpr hn.le) | |
| (Finset.sum_nonneg (fun j _ => (magneticFieldLevel_mem_unit h (m j) i).1)) | |
| Β· calc | |
| _ β€ (N : β)β»ΒΉ * β _j : Fin N, (1 : β) := | |
| mul_le_mul_of_nonneg_left | |
| (Finset.sum_le_sum (fun j _ => (magneticFieldLevel_mem_unit h (m j) i).2)) | |
| (inv_nonneg.mpr hn.le) | |
| _ = 1 := by simp [hn.ne'] | |
| lemma magneticBlockLevel_monotone {N : β} (h : FieldStep) (m : Fin N β β) : | |
| Monotone (magneticBlockLevel h m) := by | |
| intro i j hij | |
| exact mul_le_mul_of_nonneg_left | |
| (Finset.sum_le_sum (fun k _ => magneticFieldLevel_monotone h (m k) hij)) (by positivity) | |
| def magneticBlockPath {N : β} (hN : 0 < N) (h : FieldStep) (m : Fin N β β) : OverlapPath := | |
| fieldLevelPath h (magneticBlockLevel h m) (magneticBlockLevel_monotone h m) | |
| (magneticBlockLevel_mem_unit hN h m) | |
| lemma magneticBlockPairMean_comparison {N : β} (hN : 0 < N) | |
| {A : Type*} [Fintype A] [DecidableEq A] (group : Fin N β A) (k : A β β) | |
| (hk : β a, k a β€ spinGroupSize group a) (m : A β β) (hm : β a, |m a| < 1) | |
| (hc : β a, (k a : β) = spinGroupSize group a * ((1 + m a) / 2)) | |
| (h : FieldStep) (i : Fin (h.depth + 1)) {t : β} (ht : 0 < t) : | |
| |restrictedBlockPairMean hN (spinGroupSlice group k) (spinGroupSlice_nonempty group k hk) | |
| h (fun _ => 0) i - magneticBlockLevel h (fun j => m (group j)) i| β€ | |
| 2 * ((N : β)β»ΒΉ * (β j, constrainedFieldValue h (m (group j))) - | |
| constrainedBlockValue (spinGroupSlice group k) h) / t + t / 2 := by | |
| have he := restrictedBlockPairMean_comparison hN (spinGroupSlice group k) | |
| (spinGroupSlice_nonempty group k hk) h (fun j => magneticBias h (m (group j))) i ht | |
| rw [β magneticBlockGap_eq_biasedGap hN group k hk m hm hc h, | |
| restrictedBlockPairMean_group_bias hN group k hk (fun a => magneticBias h (m a)) h i] at he | |
| exact he | |
| lemma magneticBlockPath_l1_comparison {N : β} (hN : 0 < N) | |
| {A : Type*} [Fintype A] [DecidableEq A] (group : Fin N β A) (k : A β β) | |
| (hk : β a, k a β€ spinGroupSize group a) (m : A β β) (hm : β a, |m a| < 1) | |
| (hc : β a, (k a : β) = spinGroupSize group a * ((1 + m a) / 2)) | |
| (h : FieldStep) {t : β} (ht : 0 < t) : | |
| (β« s, |restrictedBlockOverlapPath hN (spinGroupSlice group k) | |
| (spinGroupSlice_nonempty group k hk) h s - magneticBlockPath hN h (fun j => m (group j)) s| | |
| βpathMeasure) β€ | |
| 2 * ((N : β)β»ΒΉ * (β j, constrainedFieldValue h (m (group j))) - | |
| constrainedBlockValue (spinGroupSlice group k) h) / t + t / 2 := by | |
| let p := restrictedBlockOverlapPath hN (spinGroupSlice group k) | |
| (spinGroupSlice_nonempty group k hk) h | |
| let q := magneticBlockPath hN h (fun j => m (group j)) | |
| calc | |
| _ β€ β« _s, (2 * ((N : β)β»ΒΉ * (β j, constrainedFieldValue h (m (group j))) - | |
| constrainedBlockValue (spinGroupSlice group k) h) / t + t / 2) βpathMeasure := by | |
| apply integral_mono (p.integrable.sub q.integrable).abs (integrable_const _) | |
| intro s | |
| exact magneticBlockPairMean_comparison hN group k hk m hm hc h (fieldLevelIndex h s) ht | |
| _ = _ := by simp | |
| end InvariantIsing | |
| end | |
| end OAI | |