Download data/lean/OAI/Probability/CriticalPercolation/Modular/GeometricPeakBand.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.95 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/Modular/GeometricPeakBand.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/CriticalPercolation/Modular/GeometricPeakBand.lean
-
curl -L -o GeometricPeakBand.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/Modular/GeometricPeakBand.lean
3.95 kB
| import Mathlib | |
| import OAI.Probability.CriticalPercolation.Model | |
| import OAI.Probability.CriticalPercolation.Criticality.GeometricFourth | |
| import OAI.Probability.CriticalPercolation.Modular.NormalizedDiscrepancy | |
| import OAI.Probability.CriticalPercolation.Modular.PeakVolumeBand | |
| import OAI.Probability.CriticalPercolation.Modular.WeightedPeakBand | |
| namespace OAI | |
| section | |
| noncomputable section | |
| open Set MeasureTheory | |
| open scoped Classical ENNReal BigOperators | |
| namespace CriticalPercolation.BondGraph | |
| variable {V E : Type*} (G : BondGraph V E) [Countable V] [Countable E] | |
| lemma expected_peakBand_le (hc : G.fullGraph.Connected) (hl : G.LocallyFinite) | |
| (hq : G.QuasiTransitive) (p : unitInterval) (T U : β) (hT : 0<T) | |
| (x : V) (hx : xβ(G.orbitRepresentatives hq).roots) : | |
| (β«β» Ο, G.peakVolumeBand (ENNReal.ofReal T) (ENNReal.ofReal U) Ο x βG.law p) β€ | |
| ENNReal.ofReal ((G.orbitRepresentatives hq).roots.card/T) := by | |
| rw [ENNReal.ofReal_div_of_pos hT,ENNReal.ofReal_natCast] | |
| apply (ENNReal.le_div_iff_mul_le (Or.inl (ENNReal.ofReal_pos.mpr hT).ne') (Or.inl ENNReal.ofReal_ne_top)).mpr | |
| rw [mul_comm] | |
| apply le_trans _ (G.expected_peakVolumeBand_mul_le hc hl hq p (ENNReal.ofReal T) (ENNReal.ofReal U)) | |
| apply mul_le_mul_right | |
| exact Finset.single_le_sum (f := fun y => β«β» Ο, | |
| G.peakVolumeBand (ENNReal.ofReal T) (ENNReal.ofReal U) Ο y βG.law p) | |
| (fun _ _ => zero_le) hx | |
| lemma expected_discrepancy_peakBand_geometric (hc : G.fullGraph.Connected) (hl : G.LocallyFinite) | |
| (hq : G.QuasiTransitive) (D K : β) (hD : β v, (G.incidentEdges {v}).ncardβ€D) | |
| (hK : β v, (G.vertexBall v 1).ncardβ€K) (p : unitInterval) (n : β) | |
| (x : V) (hx : xβ(G.orbitRepresentatives hq).roots) : | |
| (β«β» Ο, ENNReal.ofReal |G.weightedDiscrepancy p Ο x| * | |
| G.peakVolumeBand (ENNReal.ofReal ((16:β)^n)) (ENNReal.ofReal ((16:β)^(n+1))) Ο x βG.law p) β€ | |
| ENNReal.ofReal ((5*((D*(2*K)^2 : β)*16)^2*((G.orbitRepresentatives hq).roots.card : β)^3+1)* | |
| (1/2:β)^n) := by | |
| let C : β := (D*(2*K)^2 : β) | |
| let N : β := (G.orbitRepresentatives hq).roots.card | |
| have ht : (0:β)<16^n := by positivity | |
| have h4 := G.expected_discrepancy_peakBand_fourth hc hl D K hD hK p | |
| ((16:β)^n) ((16:β)^(n+1)) ht (by positivity) x | |
| apply geometric_fourth_bound _ (5*(C*16)^2*N^3) (by dsimp [N]; positivity) n | |
| apply h4.trans | |
| calc | |
| _ β€ ENNReal.ofReal (5*(C*(16:β)^(n+1))^2)* | |
| (ENNReal.ofReal (N/(16:β)^n))^3 := by | |
| apply mul_le_mul_right | |
| exact ENNReal.pow_le_pow_left (G.expected_peakBand_le hc hl hq p _ _ ht x hx) | |
| _ = ENNReal.ofReal ((5*(C*16)^2*N^3)/(16:β)^n) := by | |
| rw [βENNReal.ofReal_pow (by dsimp [N]; positivity),βENNReal.ofReal_mul (by positivity)] | |
| congr 1 | |
| rw [pow_succ] | |
| field_simp | |
| ring | |
| lemma expected_discrepancyBand_geometric (hc : G.fullGraph.Connected) (hl : G.LocallyFinite) | |
| (hq : G.QuasiTransitive) (D K : β) (hD : β v, (G.incidentEdges {v}).ncardβ€D) | |
| (hK : β v, (G.vertexBall v 1).ncardβ€K) (p : unitInterval) (n : β) : | |
| (β xβ(G.orbitRepresentatives hq).roots, β«β» Ο, | |
| G.discrepancyVolumeBand p (ENNReal.ofReal ((16:β)^n)) | |
| (ENNReal.ofReal ((16:β)^(n+1))) Ο x βG.law p) β€ | |
| (G.orbitRepresentatives hq).roots.card * | |
| ENNReal.ofReal ((5*((D*(2*K)^2 : β)*16)^2*((G.orbitRepresentatives hq).roots.card : β)^3+1)* | |
| (1/2:β)^n) := by | |
| rw [G.expected_discrepancyBand_peak hc hl hq p _ _ (ENNReal.ofReal_pos.mpr (by positivity))] | |
| calc _ β€ β xβ(G.orbitRepresentatives hq).roots, | |
| ENNReal.ofReal ((5*((D*(2*K)^2 : β)*16)^2*((G.orbitRepresentatives hq).roots.card : β)^3+1)* | |
| (1/2:β)^n) := by | |
| exact Finset.sum_le_sum (fun x hx => G.expected_discrepancy_peakBand_geometric hc hl hq D K hD hK p n x hx) | |
| _ = _ := by simp [nsmul_eq_mul] | |
| end CriticalPercolation.BondGraph | |
| end | |
| end | |
| end OAI | |