File size: 5,033 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import Mathlib
import OAI.Probability.CriticalPercolation.Modular.WeightedPeakTransport
import OAI.Probability.CriticalPercolation.Modular.GeometricPeakBand
import OAI.Probability.CriticalPercolation.Modular.NormalizedDiscrepancy

namespace OAI

section
noncomputable section
open Set MeasureTheory Filter
open scoped Classical ENNReal BigOperators Topology

namespace CriticalPercolation

lemma ennreal_geometric_band (v : ℝβ‰₯0∞) (hv : vβ‰ βˆž) (N : β„•)
    (hN : ENNReal.ofReal ((16:ℝ)^N)≀v) :
    βˆƒ m : β„•, ENNReal.ofReal ((16:ℝ)^(N+m))≀v ∧ v<ENNReal.ofReal ((16:ℝ)^(N+m+1)) := by
  have hNr : (16:ℝ)^N≀v.toReal := (ENNReal.ofReal_le_iff_le_toReal hv).mp hN
  have hone : 1≀v.toReal := (one_le_powβ‚€ (by norm_num : (1:ℝ)≀16)).trans hNr
  obtain ⟨k,hk,hk'⟩ := exists_nat_pow_near hone (by norm_num : (1:ℝ)<16)
  have hNk : N≀k := by
    by_contra h
    have hkle : k+1≀N := by omega
    have hp : (16:ℝ)^(k+1)≀16^N := pow_le_pow_rightβ‚€ (by norm_num) hkle
    exact (not_lt_of_ge hNr) (hk'.trans_le hp)
  obtain ⟨m,rfl⟩ := Nat.exists_eq_add_of_le hNk
  exact ⟨m,ENNReal.ofReal_le_of_le_toReal hk,(ENNReal.lt_ofReal_iff_toReal_lt hv).mpr hk'⟩

namespace BondGraph
variable {V E : Type*} (G : BondGraph V E) [Countable V] [Countable E]

omit [Countable V] [Countable E] in
lemma normalizedClusterVolume_ne_top (Ο‰ : Set E) (x : V) : G.normalizedClusterVolume Ο‰ xβ‰ βˆž := by
  unfold normalizedClusterVolume
  split_ifs with h
  Β· exact ENNReal.zero_ne_top
  Β· exact ENNReal.inv_ne_top.mpr h

def discrepancyVolumeTail (p : ℝ) (T : ℝβ‰₯0∞) (Ο‰ : Set E) (x : V) : ℝβ‰₯0∞ :=
  if T≀G.normalizedClusterVolume Ο‰ x then G.normalizedAbsoluteDiscrepancy p Ο‰ x else 0

lemma measurable_discrepancyVolumeTail (p : ℝ) (T : ℝβ‰₯0∞) (x : V) :
    Measurable (fun Ο‰ : Set E => G.discrepancyVolumeTail p T Ο‰ x) :=
  (G.measurable_normalizedAbsoluteDiscrepancy p x).ite
    (measurableSet_le measurable_const (G.measurable_normalizedClusterVolume x)) measurable_const

omit [Countable V] [Countable E] in
lemma discrepancyVolumeTail_le_bands (p : ℝ) (N : β„•) (Ο‰ : Set E) (x : V) :
    G.discrepancyVolumeTail p (ENNReal.ofReal ((16:ℝ)^N)) Ο‰ x ≀
      βˆ‘' m : β„•, G.discrepancyVolumeBand p (ENNReal.ofReal ((16:ℝ)^(N+m)))
        (ENNReal.ofReal ((16:ℝ)^(N+m+1))) Ο‰ x := by
  unfold discrepancyVolumeTail
  split_ifs with h
  Β· obtain ⟨m,hm⟩ := ennreal_geometric_band _ (G.normalizedClusterVolume_ne_top Ο‰ x) N h
    calc
      _ = G.discrepancyVolumeBand p (ENNReal.ofReal ((16:ℝ)^(N+m)))
          (ENNReal.ofReal ((16:ℝ)^(N+m+1))) Ο‰ x := (ite_eq_left hm).symm
      _ ≀ _ := ENNReal.le_tsum (f := fun index : β„• =>
        G.discrepancyVolumeBand p (ENNReal.ofReal ((16:ℝ)^(N+index)))
          (ENNReal.ofReal ((16:ℝ)^(N+index+1))) Ο‰ x) m
  Β· exact zero_le

lemma expected_discrepancyTail_bound (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) :
    (∫⁻ Ο‰, G.discrepancyVolumeTail p (ENNReal.ofReal ((16:ℝ)^N)) Ο‰ 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)*
          (ENNReal.ofReal (1/2:ℝ))^N*2 := by
  let A : ℝ := 5*((D*(2*K)^2 : β„•)*16)^2*((G.orbitRepresentatives hq).roots.card : ℝ)^3+1
  let R : ℝβ‰₯0∞ := (G.orbitRepresentatives hq).roots.card
  calc
    _ ≀ ∫⁻ Ο‰, βˆ‘' m : β„•, G.discrepancyVolumeBand p (ENNReal.ofReal ((16:ℝ)^(N+m)))
        (ENNReal.ofReal ((16:ℝ)^(N+m+1))) Ο‰ x βˆ‚G.law p :=
      lintegral_mono (fun Ο‰ => G.discrepancyVolumeTail_le_bands p N Ο‰ x)
    _ = βˆ‘' m : β„•, ∫⁻ Ο‰, G.discrepancyVolumeBand p (ENNReal.ofReal ((16:ℝ)^(N+m)))
        (ENNReal.ofReal ((16:ℝ)^(N+m+1))) Ο‰ x βˆ‚G.law p :=
      lintegral_tsum (fun m => (G.measurable_discrepancyVolumeBand p _ _ x).aemeasurable)
    _ ≀ βˆ‘' m : β„•, R * ENNReal.ofReal (A*(1/2:ℝ)^(N+m)) := by
      apply ENNReal.tsum_le_tsum
      intro m
      exact (Finset.single_le_sum (f := fun y => ∫⁻ Ο‰,
        G.discrepancyVolumeBand p (ENNReal.ofReal ((16:ℝ)^(N+m)))
          (ENNReal.ofReal ((16:ℝ)^(N+m+1))) Ο‰ y βˆ‚G.law p) (fun _ _ => zero_le) hx).trans
        (G.expected_discrepancyBand_geometric hc hl hq D K hD hK p (N+m))
    _ = _ := by
      have he (m : β„•) : ENNReal.ofReal (A*(1/2:ℝ)^(N+m)) =
          ENNReal.ofReal A * (ENNReal.ofReal (1/2:ℝ))^N * (ENNReal.ofReal (1/2:ℝ))^m := by
        rw [ENNReal.ofReal_mul (show 0≀A by dsimp [A]; positivity),
          ENNReal.ofReal_pow (by norm_num : (0:ℝ)≀1/2),pow_add,mul_assoc]
      simp_rw [he,←mul_assoc]
      rw [ENNReal.tsum_mul_left,ENNReal.tsum_geometric]
      norm_num [R,A,ENNReal.ofReal_div_of_pos]

end BondGraph
end CriticalPercolation
end
end

end OAI