Lean / Reader
Lean reader

Proof.lean

762 lines84 declarationsno sorryimports OMAStatements.S_mo_511513 Mathlib

Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports OMAStatements.S_mo_511513, which it does not have: you can read it there, but it will not check. Build the project itself to check it.

  1. import OMAStatements.S_mo_511513
  2. import Mathlib
  3. /-! Finite-stage elementary estimates for the sparse centered random-walk counterexample. -/
  4. noncomputable section
  5. open Finset Filter Real
  6. open scoped Topology BigOperators
  7. namespace SparseWalk
  8. /-- A positive exponentially small sequence has unbounded backward ratios at
  9. any prescribed divergent sequence of time shifts. -/
  10. theorem unbounded_ratios (b : ℕ → ℝ) (hb : ∀ n, 0 < b n)
  11. {ρ : ℝ} (hρ₀ : 0 < ρ) (hρ₁ : ρ < 1) (hdecay : ∀ n, b n ≤ ρ^n)
  12. (s : ℕ → ℕ) (hs : Tendsto s atTop atTop) (hlo : ∀ᶠ n in atTop, 1 ≤ s n)
  13. (hhi : ∀ᶠ n in atTop, s n ≤ n) {M : ℝ} (hM : 0 < M)
  14. (N : ℕ) : ∃ n ≥ N, M < b (n - s n) / b n := by
  15. by_contra! H
  16. obtain ⟨r,hρr,hr₁⟩ := exists_between hρ₁
  17. have hr₀ := hρ₀.trans hρr
  18. have hsmall := (tendsto_pow_atTop_nhds_zero_of_lt_one hr₀.le hr₁).comp hs
  19. obtain ⟨K,hK⟩ := eventually_atTop.mp
  20. ((eventually_ge_atTop N).and (hlo.and (hhi.and (hsmall.eventually_lt_const (inv_pos.mpr hM)))))
  21. let C := (Finset.range (K+1)).inf' (by simp) (fun j ↦ b j / r^j)
  22. have hC : 0 < C := (Finset.lt_inf'_iff _).2 (fun j _ ↦ div_pos (hb j) (pow_pos hr₀ _))
  23. have lower (n : ℕ) : C * r^n ≤ b n := by
  24. induction n using Nat.strong_induction_on with
  25. | h n ih =>
  26. by_cases hn : n < K
  27. · apply (le_div_iff₀ (pow_pos hr₀ _)).mp
  28. exact Finset.inf'_le _ (mem_range.mpr (by omega : n < K+1))
  29. · obtain ⟨hnN,hn₁,hn₂,hn₃⟩ := hK n (by omega)
  30. have l := ih (n-s n) (by omega)
  31. have hbound := (div_le_iff₀ (hb n)).mp (H n hnN)
  32. have hpow : r ^ n = r^(n-s n) * r^(s n) := by
  33. rw [← pow_add, Nat.sub_add_cancel hn₂]
  34. have hpart : r^(s n) * M ≤ 1 := by
  35. have := (lt_div_iff₀ hM).mp (show r^(s n) < 1 / M by simpa using hn₃)
  36. linarith
  37. rw [hpow]
  38. apply (mul_le_mul_iff_left₀ hM).mp
  39. calc
  40. (C * (r^(n-s n)*r^(s n))) * M = (C*r^(n-s n))*(r^(s n)*M) := by ring
  41. _ ≤ (C*r^(n-s n))*1 := mul_le_mul_of_nonneg_left hpart (by positivity)
  42. _ ≤ b n * M := by simpa [mul_comm] using l.trans hbound
  43. have hg (n : ℕ) : C ≤ (ρ/r)^n := by
  44. rw [div_pow]
  45. exact (le_div_iff₀ (pow_pos hr₀ _)).2 ((lower n).trans (hdecay n))
  46. have ht := tendsto_pow_atTop_nhds_zero_of_lt_one (div_nonneg hρ₀.le hr₀.le)
  47. ((div_lt_one hr₀).2 hρr)
  48. exact (not_lt_of_ge (le_of_tendsto_of_tendsto' tendsto_const_nhds ht hg)) hC
  49. abbrev Atom := ℤ × ℝ
  50. /-- Unnormalized integration against a finite list of weighted atoms. -/
  51. def integrate : List Atom → (ℤ → ℝ) → ℝ
  52. | [], _ => 0
  53. | (x,w)::rest, f => w*f x + integrate rest f
  54. def raw (L : List Atom) : ℕ → ℤ → ℝ
  55. | 0, k => if k=0 then 1 else 0
  56. | n+1, k => integrate L (fun x ↦ raw L n (k-x))
  57. def positive (L : List Atom) := ∀ a ∈ L, 0 ≤ a.2
  58. lemma integrate_mono {L : List Atom} (hL : positive L) (f g : ℤ → ℝ)
  59. (hfg : ∀ a ∈ L, f a.1 ≤ g a.1) : integrate L f ≤ integrate L g := by
  60. induction L with
  61. | nil => rfl
  62. | cons a L ih =>
  63. exact add_le_add (mul_le_mul_of_nonneg_left (hfg a (by simp)) (hL a (by simp)))
  64. (ih (fun z hz ↦ hL z (by simp [hz])) (fun z hz ↦ hfg z (by simp [hz])))
  65. lemma integrate_scale (L : List Atom) (f : ℤ → ℝ) (c : ℝ) :
  66. integrate L (fun x ↦ c*f x) = c*integrate L f := by
  67. induction L with
  68. | nil => simp [integrate]
  69. | cons a L ih => cases a; simp only [integrate, ih]; ring
  70. lemma integrate_drift_deriv (L : List Atom) :
  71. HasDerivAt (fun t : ℝ ↦ integrate L (fun x ↦ Real.exp (-t*x))) (-integrate L Int.cast) 0 := by
  72. induction L with
  73. | nil => simpa [integrate] using (hasDerivAt_const (x := (0:ℝ)) (c := (0:ℝ)))
  74. | cons a L ih =>
  75. rcases a with ⟨x,w⟩
  76. have h := (((hasDerivAt_id (0:ℝ)).neg.mul_const (x:ℝ)).exp.const_mul w).add ih
  77. convert h using 1 <;> first | rfl | (simp [integrate]; ring)
  78. lemma strictly_tilt {L : List Atom} (h : 0 < integrate L Int.cast) :
  79. ∃ t : ℝ, integrate L (fun x ↦ Real.exp (-t*x)) < integrate L (fun _ ↦ 1) := by
  80. have hd := integrate_drift_deriv L
  81. by_contra! H
  82. have hm : IsLocalMin (fun t : ℝ ↦ integrate L (fun x ↦ Real.exp (-t*x))) 0 := by
  83. apply IsMinOn.isLocalMin (s := Set.univ) _ Filter.univ_mem
  84. apply isMinOn_univ_iff.mpr
  85. intro t
  86. simpa using H t
  87. have hz := hm.hasDerivAt_eq_zero hd
  88. linarith
  89. lemma raw_tilt_bound (L : List Atom) (hL : positive L) (t : ℝ)
  90. (n : ℕ) (k : ℤ) :
  91. raw L n k ≤ Real.exp (t*k) * (integrate L (fun x ↦ Real.exp (-t*x)))^n := by
  92. induction n generalizing k with
  93. | zero => by_cases hk : k=0 <;> simp [raw,hk, (Real.exp_pos _).le]
  94. | succ n ih =>
  95. rw [raw, pow_succ]
  96. calc
  97. _ ≤ integrate L (fun x ↦ Real.exp (t*(k-x)) * (integrate L (fun x ↦ Real.exp (-t*x)))^n) := by
  98. apply integrate_mono hL
  99. intro a _
  100. simpa using ih (k-a.1)
  101. _ = integrate L (fun x ↦ (Real.exp (t*k)*(integrate L (fun x ↦ Real.exp (-t*x)))^n) *
  102. Real.exp (-t*x)) := by
  103. congr 1
  104. funext x
  105. rw [show t*((k:ℝ)-x) = t*k + (-t*x) by ring, Real.exp_add]
  106. ring
  107. _ = _ := by rw [integrate_scale]; ring
  108. def atomWeight (i A : ℕ) : ℝ := (1/2 : ℝ)^(i+1) / (A:ℝ)
  109. def stageAtoms (a : ℕ → ℕ) : ℕ → List Atom
  110. | 0 => [(0,1),(1,1)]
  111. | j+1 => (-(a j : ℤ), atomWeight j (a j)) :: stageAtoms a j
  112. def stageMass (a : ℕ → ℕ) (j : ℕ) : ℝ := integrate (stageAtoms a j) (fun _ ↦ 1)
  113. lemma stage_positive (a : ℕ → ℕ) (j : ℕ) : positive (stageAtoms a j) := by
  114. induction j with
  115. | zero => intro x hx; simp [stageAtoms] at hx; rcases hx with rfl | rfl <;> norm_num
  116. | succ j ih =>
  117. intro x hx
  118. rcases List.mem_cons.mp hx with h | h
  119. · rw [h]; unfold atomWeight; positivity
  120. · exact ih x h
  121. lemma stage_le_one (a : ℕ → ℕ) (j : ℕ) : ∀ x ∈ stageAtoms a j, x.1 ≤ 1 := by
  122. induction j with
  123. | zero => intro x hx; simp [stageAtoms] at hx; rcases hx with rfl | rfl <;> norm_num
  124. | succ j ih =>
  125. intro x hx
  126. rcases List.mem_cons.mp hx with h | h
  127. · rw [h]; simp
  128. · exact ih x h
  129. lemma integrate_congr (L : List Atom) (f g : ℤ → ℝ) (h : ∀ x ∈ L, f x.1 = g x.1) :
  130. integrate L f = integrate L g := by
  131. induction L with
  132. | nil => rfl
  133. | cons a L ih =>
  134. rcases a with ⟨x,w⟩
  135. simp only [integrate]
  136. rw [h (x,w) (by simp), ih (fun u hu ↦ h u (by simp [hu]))]
  137. lemma integrate_zero (L : List Atom) : integrate L (fun _ ↦ 0) = 0 := by
  138. induction L with
  139. | nil => rfl
  140. | cons a L ih => cases a; simp [integrate,ih]
  141. lemma overshoot_zero (L : List Atom) (hL : ∀ x ∈ L, x.1 ≤ 1) (n : ℕ) (k : ℤ)
  142. (hk : (n:ℤ) < k) : raw L n k = 0 := by
  143. induction n generalizing k with
  144. | zero => simp [raw, ne_of_gt (show 0 < k by simpa using hk)]
  145. | succ n ih =>
  146. rw [raw, ← integrate_zero L]
  147. apply integrate_congr
  148. intro x hx
  149. apply ih
  150. have := hL x hx
  151. omega
  152. /-- Extra negative atoms of magnitude at least A are invisible up to a time m
  153. at endpoints k ≥ m−A. All other increments are at most one. -/
  154. theorem cutoff_stable (a : ℕ → ℕ) (ha : Monotone a) (j l : ℕ) (hjl : j ≤ l)
  155. (m : ℕ) (k : ℤ) (hk : (m:ℤ)-(a j:ℤ) ≤ k) :
  156. raw (stageAtoms a l) m k = raw (stageAtoms a j) m k := by
  157. induction m generalizing k with
  158. | zero => rfl
  159. | succ m ih =>
  160. rw [raw, raw]
  161. have trim (v : ℕ) (hv : j ≤ v) :
  162. integrate (stageAtoms a v) (fun x ↦ raw (stageAtoms a l) m (k-x)) =
  163. integrate (stageAtoms a j) (fun x ↦ raw (stageAtoms a l) m (k-x)) := by
  164. induction v, hv using Nat.le_induction with
  165. | base => rfl
  166. | succ v hv ihv =>
  167. have hav : (a j : ℤ) ≤ a v := by exact_mod_cast ha hv
  168. have eq := overshoot_zero (stageAtoms a l) (stage_le_one a l) m
  169. (k-(-(a v:ℤ))) (by omega)
  170. simp only [stageAtoms,integrate,eq,mul_zero,zero_add,ihv]
  171. rw [trim l hjl]
  172. apply integrate_congr
  173. intro x hx
  174. apply ih
  175. have := stage_le_one a j x hx
  176. omega
  177. lemma stage_mass_gt (a : ℕ → ℕ) (j : ℕ) : 0 < stageMass a j := by
  178. induction j with
  179. | zero => norm_num [stageMass,stageAtoms,integrate]
  180. | succ j ih =>
  181. change 0 < atomWeight j (a j) * 1 + stageMass a j
  182. have : 0 ≤ atomWeight j (a j) := by unfold atomWeight; positivity
  183. linarith
  184. lemma stage_drift (a : ℕ → ℕ) (ha : ∀ j, 0 < a j) (j : ℕ) :
  185. integrate (stageAtoms a j) Int.cast = (1/2 : ℝ)^j := by
  186. induction j with
  187. | zero => norm_num [stageAtoms,integrate]
  188. | succ j ih =>
  189. simp only [stageAtoms, integrate, ih, atomWeight, Int.cast_neg, Int.cast_natCast,
  190. pow_succ]
  191. have h : (a j:ℝ) ≠ 0 := by exact_mod_cast (ha j).ne'
  192. field_simp
  193. ring
  194. lemma integrate_nonneg {L : List Atom} (hL : positive L) {f : ℤ → ℝ}
  195. (hf : ∀ a ∈ L, 0 ≤ f a.1) : 0 ≤ integrate L f := by
  196. rw [← integrate_zero L]
  197. exact integrate_mono hL _ _ hf
  198. lemma integrate_pos_of_atom {L : List Atom} (hL : positive L) {f : ℤ → ℝ}
  199. (hf : ∀ a ∈ L, 0 ≤ f a.1) (x : Atom) (hx : x ∈ L)
  200. (hw : 0 < x.2) (hfx : 0 < f x.1) : 0 < integrate L f := by
  201. induction L with
  202. | nil => simp at hx
  203. | cons a L ih =>
  204. have hp : positive L := fun y hy ↦ hL y (by simp [hy])
  205. have hrest : ∀ y ∈ L, 0 ≤ f y.1 := fun y hy ↦ hf y (by simp [hy])
  206. change 0 < a.2 * f a.1 + integrate L f
  207. rcases List.mem_cons.mp hx with h | h
  208. · subst a
  209. exact add_pos_of_pos_of_nonneg (mul_pos hw hfx) (integrate_nonneg hp hrest)
  210. · exact add_pos_of_nonneg_of_pos (mul_nonneg (hL a (by simp)) (hf a (by simp))) (ih hp hrest h)
  211. lemma raw_nonneg {L : List Atom} (hL : positive L) (n : ℕ) (k : ℤ) : 0 ≤ raw L n k := by
  212. induction n generalizing k with
  213. | zero => simp [raw,apply_ite]
  214. | succ n ih => exact integrate_nonneg hL (fun _ _ ↦ ih _)
  215. lemma base_atom (a : ℕ → ℕ) (j : ℕ) : ((0,1) : Atom) ∈ stageAtoms a j := by
  216. induction j with
  217. | zero => simp [stageAtoms]
  218. | succ j ih => simp [stageAtoms,ih]
  219. lemma raw_pos (a : ℕ → ℕ) (j n : ℕ) : 0 < raw (stageAtoms a j) n 0 := by
  220. induction n with
  221. | zero => norm_num [raw]
  222. | succ n ih =>
  223. rw [raw]
  224. apply integrate_pos_of_atom (f := fun x ↦ raw (stageAtoms a j) n (0-x))
  225. (stage_positive a j) (fun _ _ ↦ raw_nonneg (stage_positive a j) _ _)
  226. (0,1) (base_atom a j) (by norm_num)
  227. simpa using ih
  228. def normalized (a : ℕ → ℕ) (j n : ℕ) : ℝ := raw (stageAtoms a j) n 0 / (stageMass a j)^n
  229. theorem stage_bad (a : ℕ → ℕ) (ha : ∀ i, 0 < a i) (j : ℕ)
  230. (s : ℕ → ℕ) (hs : Tendsto s atTop atTop) (hlo : ∀ᶠ n in atTop, 1 ≤ s n)
  231. (hhi : ∀ᶠ n in atTop, s n ≤ n) (M : ℝ) (hM : 0 < M) (N : ℕ) :
  232. ∃ n ≥ N, M < normalized a j (n-s n) / normalized a j n := by
  233. have h := stage_drift a ha j
  234. have hd : 0 < integrate (stageAtoms a j) Int.cast := by rw [h]; positivity
  235. obtain ⟨t,ht⟩ := strictly_tilt hd
  236. let z := integrate (stageAtoms a j) (fun x ↦ Real.exp (-t*x))
  237. have hz : 0 < z := integrate_pos_of_atom (stage_positive a j)
  238. (fun _ _ ↦ (Real.exp_pos _).le) (0,1) (base_atom a j) (by norm_num) (Real.exp_pos _)
  239. have hW := stage_mass_gt a j
  240. apply unbounded_ratios (normalized a j) (fun n ↦ div_pos (raw_pos a j n) (pow_pos hW n))
  241. (ρ := z / stageMass a j) (div_pos hz hW) ((div_lt_one hW).mpr ht) _ s hs hlo hhi hM N
  242. intro n
  243. rw [normalized,div_pow]
  244. apply div_le_div_of_nonneg_right _ (pow_nonneg hW.le _)
  245. simpa [z] using raw_tilt_bound (stageAtoms a j) (stage_positive a j) t n 0
  246. end SparseWalk
  247. /-! A diagonal distribution whose finite-stage return ratios grow without bound. -/
  248. noncomputable section
  249. open Filter
  250. open scoped Topology
  251. namespace SparseWalk
  252. def admissibleTime (a : ℕ → ℕ) (s : ℕ → ℕ) (j n : ℕ) : Prop :=
  253. j+1 ≤ n ∧ a j < n ∧ s n ≤ n ∧
  254. (j+1 : ℕ) < normalized a (j+1) (n-s n) / normalized a (j+1) n
  255. lemma exists_time (a s : ℕ → ℕ) (ha : ∀ i, 0 < a i) (hs : Tendsto s atTop atTop)
  256. (hhi : ∀ᶠ n in atTop, s n ≤ n) (j : ℕ) : ∃ n, admissibleTime a s j n := by
  257. obtain ⟨K,hK⟩ := eventually_atTop.mp hhi
  258. obtain ⟨n,hn,hr⟩ := stage_bad a ha (j+1) s hs (hs.eventually_ge_atTop 1) hhi
  259. (j+1 : ℕ) (by positivity) (max K (max (j+1) (a j+1)))
  260. exact ⟨n,by unfold admissibleTime; exact ⟨by omega,by omega,hK n (by omega),hr⟩⟩
  261. open Classical in
  262. def chooseTime (a s : ℕ → ℕ) (j : ℕ) : ℕ :=
  263. if h : ∃ n, admissibleTime a s j n then Nat.find h else 0
  264. lemma chooseTime_spec (a s : ℕ → ℕ) (ha : ∀ i, 0 < a i) (hs : Tendsto s atTop atTop)
  265. (hhi : ∀ᶠ n in atTop, s n ≤ n) (j : ℕ) :
  266. admissibleTime a s j (chooseTime a s j) := by
  267. classical
  268. have h := exists_time a s ha hs hhi j
  269. simpa [chooseTime, dif_pos h] using Nat.find_spec h
  270. /-- On advancing a stage, retain the prefix and fill the unused tail with the
  271. new jump length. The dummy tail never enters the stage's convolution. -/
  272. def approxLaw (s : ℕ → ℕ) : ℕ → ℕ → ℕ
  273. | 0, _ => 1
  274. | j+1, i => if i ≤ j then approxLaw s j i else chooseTime (approxLaw s j) s j + 1
  275. def magnitude (s : ℕ → ℕ) (i : ℕ) := approxLaw s i i
  276. def witnessTime (s : ℕ → ℕ) (j : ℕ) := chooseTime (approxLaw s j) s j
  277. lemma approx_pos (s : ℕ → ℕ) (j i : ℕ) : 0 < approxLaw s j i := by
  278. induction j generalizing i with
  279. | zero => simp [approxLaw]
  280. | succ j ih => simp only [approxLaw]; split <;> first | apply ih | omega
  281. lemma magnitude_pos (s : ℕ → ℕ) (i : ℕ) : 0 < magnitude s i := approx_pos s i i
  282. lemma approx_eq (s : ℕ → ℕ) {i j : ℕ} (h : i ≤ j) :
  283. approxLaw s j i = magnitude s i := by
  284. induction j, h using Nat.le_induction with
  285. | base => rfl
  286. | succ j hj ih => simpa [approxLaw,hj] using ih
  287. lemma next_magnitude (s : ℕ → ℕ) (j : ℕ) : magnitude s (j+1) = witnessTime s j + 1 := by
  288. simp [magnitude,approxLaw,witnessTime]
  289. lemma stage_congr {a b : ℕ → ℕ} (j : ℕ) (h : ∀ i < j, a i = b i) :
  290. stageAtoms a j = stageAtoms b j := by
  291. induction j with
  292. | zero => rfl
  293. | succ j ih => simp [stageAtoms,h j (by omega),ih (fun i hi ↦ h i (by omega))]
  294. lemma witness_spec (s : ℕ → ℕ) (hs : Tendsto s atTop atTop) (hhi : ∀ᶠ n in atTop, s n ≤ n)
  295. (j : ℕ) : admissibleTime (magnitude s) s j (witnessTime s j) := by
  296. have h := chooseTime_spec (approxLaw s j) s (approx_pos s j) hs hhi j
  297. have heq := stage_congr (a := approxLaw s j) (b := magnitude s) (j+1)
  298. (fun i hi ↦ approx_eq s (by omega))
  299. simpa only [admissibleTime, normalized, stageMass, heq, magnitude, witnessTime] using h
  300. lemma magnitude_strictMono (s : ℕ → ℕ) (hs : Tendsto s atTop atTop)
  301. (hhi : ∀ᶠ n in atTop, s n ≤ n) : StrictMono (magnitude s) := by
  302. apply strictMono_nat_of_lt_succ
  303. intro j
  304. rw [next_magnitude]
  305. exact (witness_spec s hs hhi j).2.1.trans (Nat.lt_succ_self _)
  306. /-- The inequality survives renormalization by any larger positive mass. -/
  307. lemma normalization_ratio (A B m n : ℝ) (hA : 0 < A) (hB : 0 < B) (hm : 0 < m)
  308. (hmn : m ≤ n) (t d : ℕ) :
  309. (A/m^t)/(B/m^(t+d)) ≤ (A/n^t)/(B/n^(t+d)) := by
  310. have hn := hm.trans_le hmn
  311. have eq (u : ℝ) (hu : 0 < u) : (A/u^t)/(B/u^(t+d)) = (A/B)*u^d := by
  312. rw [pow_add]
  313. field_simp
  314. rw [eq m hm,eq n hn]
  315. exact mul_le_mul_of_nonneg_left (pow_le_pow_left₀ hm.le hmn d) (div_pos hA hB).le
  316. /-- An arbitrary normalized return law agreeing with all applicable cutoffs
  317. has infinitely many arbitrarily large backward ratios. -/
  318. theorem arbitrarily_bad_full (s : ℕ → ℕ) (hs : Tendsto s atTop atTop)
  319. (hhi : ∀ᶠ n in atTop, s n ≤ n) (W : ℝ)
  320. (hW : ∀ j, stageMass (magnitude s) j ≤ W) (p : ℕ → ℝ)
  321. (hp : ∀ j m, m ≤ magnitude s j → p m = raw (stageAtoms (magnitude s) j) m 0 / W^m)
  322. (j : ℕ) : ∃ n ≥ j+1, (j+1 : ℕ) < p (n-s n) / p n := by
  323. let n := witnessTime s j
  324. obtain ⟨hjn,_,hsn,hbad⟩ := witness_spec s hs hhi j
  325. have hb : n ≤ magnitude s (j+1) := by rw [next_magnitude]; exact Nat.le_succ _
  326. refine ⟨n,hjn,?_⟩
  327. rw [hp (j+1) n hb, hp (j+1) (n-s n) ((Nat.sub_le ..).trans hb)]
  328. apply hbad.trans_le
  329. unfold normalized
  330. have hm := stage_mass_gt (magnitude s) (j+1)
  331. have he := normalization_ratio _ _ _ _ (raw_pos (magnitude s) (j+1) (n-s n))
  332. (raw_pos (magnitude s) (j+1) n) hm (hW (j+1)) (n-s n) (s n)
  333. have hsn' : s n ≤ n := hsn
  334. simpa only [Nat.sub_add_cancel hsn'] using he
  335. theorem full_not_tendsto (s : ℕ → ℕ) (hs : Tendsto s atTop atTop)
  336. (hhi : ∀ᶠ n in atTop, s n ≤ n) (W : ℝ)
  337. (hW : ∀ j, stageMass (magnitude s) j ≤ W) (p : ℕ → ℝ)
  338. (hp : ∀ j m, m ≤ magnitude s j → p m = raw (stageAtoms (magnitude s) j) m 0 / W^m) :
  339. ¬ Tendsto (fun n ↦ p (n-s n) / p n) atTop (𝓝 1) := by
  340. intro ht
  341. obtain ⟨K,hK⟩ := eventually_atTop.mp (ht.eventually_lt_const (by norm_num : (1:ℝ)<2))
  342. obtain ⟨n,hn,hr⟩ := arbitrarily_bad_full s hs hhi W hW p hp (K+2)
  343. have he := hK n (by omega)
  344. norm_num only [Nat.cast_add,Nat.cast_ofNat,Nat.cast_one] at hr
  345. linarith [Nat.cast_nonneg (α := ℝ) K]
  346. /-- The concrete time shift in the disproof of the question. -/
  347. def logShift (n : ℕ) : ℕ := ⌊Real.log (n:ℝ)⌋₊
  348. lemma logShift_tendsto : Tendsto logShift atTop atTop :=
  349. tendsto_nat_floor_atTop.comp (Real.tendsto_log_atTop.comp tendsto_natCast_atTop_atTop)
  350. lemma logShift_le (n : ℕ) : logShift n ≤ n :=
  351. Nat.floor_le_of_le (Real.log_le_self (Nat.cast_nonneg n))
  352. lemma logShift_growth : ∃ C : ℝ, ∀ᶠ n : ℕ in atTop, (logShift n : ℝ) ≤ C * Real.log (n:ℝ) := by
  353. refine ⟨1,?_⟩
  354. filter_upwards [eventually_ge_atTop (1:ℕ)] with n hn
  355. simpa [logShift] using Nat.floor_le (Real.log_nonneg (show (1:ℝ) ≤ n by exact_mod_cast hn))
  356. end SparseWalk
  357. open scoped BigOperators ENNReal NNReal
  358. open MeasureTheory
  359. namespace SparseWalk
  360. def jump (a : ℕ → ℕ) : ℕ → ℤ
  361. | 0 => 0
  362. | 1 => 1
  363. | i + 2 => -(a i : ℤ)
  364. noncomputable def labelWeight (a : ℕ → ℕ) : ℕ → ℝ
  365. | 0 => 1
  366. | 1 => 1
  367. | i + 2 => (1 / 2 : ℝ) ^ (i + 1) / (a i : ℝ)
  368. noncomputable def totalMass (a : ℕ → ℕ) : ℝ :=
  369. 2 + ∑' i, (1 / 2 : ℝ) ^ (i + 1) / (a i : ℝ)
  370. noncomputable def labelLaw (a : ℕ → ℕ) : Measure ℕ :=
  371. Measure.sum (fun m => ENNReal.ofReal (labelWeight a m / totalMass a) • Measure.dirac m)
  372. theorem geometric_jump_mass : HasSum (fun i : ℕ => (1 / 2 : ℝ) ^ (i + 1)) 1 := by
  373. simpa [pow_succ] using hasSum_geometric_two.mul_right (1 / 2 : ℝ)
  374. theorem negative_weights_summable {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) :
  375. Summable (fun i => (1 / 2 : ℝ) ^ (i + 1) / (a i : ℝ)) := by
  376. apply Summable.of_nonneg_of_le (fun i => by positivity) _ geometric_jump_mass.summable
  377. intro i
  378. exact div_le_self (by positivity) (by exact_mod_cast ha i)
  379. theorem labelWeight_nonneg (a : ℕ → ℕ) (m : ℕ) : 0 ≤ labelWeight a m := by
  380. match m with
  381. | 0 | 1 => norm_num [labelWeight]
  382. | n + 2 => simp only [labelWeight]; positivity
  383. theorem totalMass_ge_two (a : ℕ → ℕ) : 2 ≤ totalMass a := by
  384. have h : 0 ≤ ∑' i, (1 / 2 : ℝ) ^ (i + 1) / (a i : ℝ) :=
  385. tsum_nonneg (fun i => by positivity)
  386. unfold totalMass
  387. linarith
  388. theorem labelWeight_summable {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) :
  389. Summable (labelWeight a) :=
  390. (summable_nat_add_iff 2).mp (negative_weights_summable ha)
  391. theorem tsum_labelWeight {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) :
  392. ∑' m, labelWeight a m = totalMass a := by
  393. rw [← (labelWeight_summable ha).sum_add_tsum_nat_add 2]
  394. norm_num [Finset.sum_range_succ, labelWeight, totalMass]
  395. theorem truncated_mass_le {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) (j : ℕ) :
  396. 2 + ∑ i ∈ Finset.range j, (1 / 2 : ℝ) ^ (i + 1) / (a i : ℝ) ≤ totalMass a := by
  397. exact add_le_add_right ((negative_weights_summable ha).sum_le_tsum _ (fun i _ => by positivity)) 2
  398. theorem labelLaw_singleton (a : ℕ → ℕ) (m : ℕ) :
  399. labelLaw a {m} = ENNReal.ofReal (labelWeight a m / totalMass a) := by
  400. classical
  401. rw [labelLaw, Measure.sum_apply _ (measurableSet_singleton _), tsum_eq_single m]
  402. · simp
  403. · intro b hb
  404. simp [Measure.dirac_apply' _ (measurableSet_singleton _), hb]
  405. theorem labelLaw_real_singleton (a : ℕ → ℕ) (m : ℕ) :
  406. (labelLaw a).real {m} = labelWeight a m / totalMass a := by
  407. rw [Measure.real, labelLaw_singleton, ENNReal.toReal_ofReal]
  408. exact div_nonneg (labelWeight_nonneg a m) (by linarith [totalMass_ge_two a])
  409. theorem labelLaw_probability {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) :
  410. IsProbabilityMeasure (labelLaw a) := by
  411. constructor
  412. rw [labelLaw, Measure.sum_apply _ MeasurableSet.univ]
  413. simp only [Measure.smul_apply, measure_univ, smul_eq_mul, mul_one]
  414. rw [← ENNReal.ofReal_tsum_of_nonneg (fun i => div_nonneg (labelWeight_nonneg a i)
  415. (by linarith [totalMass_ge_two a])) ((labelWeight_summable ha).div_const _),
  416. tsum_div_const, tsum_labelWeight ha, div_self (by linarith [totalMass_ge_two a]),
  417. ENNReal.ofReal_one]
  418. theorem jump_integrable {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) :
  419. Integrable (fun m => (jump a m : ℝ)) (labelLaw a) := by
  420. apply integrable_sum_dirac (fun _ => ENNReal.ofReal_ne_top)
  421. apply (summable_nat_add_iff 2).mp
  422. refine (geometric_jump_mass.summable.div_const (totalMass a)).congr (fun i => ?_)
  423. have hai : 0 < (a i : ℝ) := by exact_mod_cast ha i
  424. rw [ENNReal.toReal_ofReal (div_nonneg (labelWeight_nonneg a _) (by linarith [totalMass_ge_two a]))]
  425. simp [jump, labelWeight]
  426. field_simp
  427. theorem jump_integral {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) :
  428. ∫ m, (jump a m : ℝ) ∂labelLaw a = 0 := by
  429. rw [labelLaw, integral_sum_dirac (fun _ => ENNReal.ofReal_ne_top)]
  430. simp only [ENNReal.toReal_ofReal (div_nonneg (labelWeight_nonneg a _) (by linarith [totalMass_ge_two a])),
  431. smul_eq_mul]
  432. let f := fun m => labelWeight a m / totalMass a * (jump a m : ℝ)
  433. change ∑' m, f m = 0
  434. have ht : HasSum (fun i => f (i + 2)) (-(1 / totalMass a)) := by
  435. have eqfun : (fun i => f (i + 2)) = (fun i : ℕ => -((1/2 : ℝ)^(i+1) / totalMass a)) := by
  436. funext i
  437. have hai : 0 < (a i : ℝ) := by exact_mod_cast ha i
  438. simp [f, labelWeight, jump]
  439. field_simp
  440. rw [eqfun]
  441. exact (geometric_jump_mass.div_const (totalMass a)).neg
  442. have hs : Summable f := (summable_nat_add_iff 2).mp ht.summable
  443. rw [← hs.sum_add_tsum_nat_add 2, ht.tsum_eq]
  444. simp [Finset.sum_range_succ, f, jump, labelWeight]
  445. theorem stageMass_eq_sum (a : ℕ → ℕ) (j : ℕ) :
  446. stageMass a j = 2 + ∑ i ∈ Finset.range j, (1 / 2 : ℝ) ^ (i + 1) / (a i : ℝ) := by
  447. induction j with
  448. | zero => norm_num [stageMass, stageAtoms, integrate]
  449. | succ i ih =>
  450. change atomWeight i (a i) * 1 + stageMass a i = _
  451. rw [ih, Finset.sum_range_succ]
  452. unfold atomWeight
  453. ring
  454. theorem stageMass_le_totalMass {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) (j : ℕ) :
  455. stageMass a j ≤ totalMass a := by
  456. rw [stageMass_eq_sum]
  457. exact truncated_mass_le ha j
  458. theorem totalMass_sub_stageMass {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) (j : ℕ) :
  459. totalMass a - stageMass a j =
  460. ∑' i : ℕ, (1 / 2 : ℝ) ^ (i + j + 1) / (a (i + j) : ℝ) := by
  461. rw [stageMass_eq_sum, totalMass, ← (negative_weights_summable ha).sum_add_tsum_nat_add j]
  462. ring
  463. theorem totalMass_sub_stageMass_le {a : ℕ → ℕ} (ha : ∀ i, 0 < a i) (hm : Monotone a) (j : ℕ) :
  464. totalMass a - stageMass a j ≤ (1/2 : ℝ)^j / (a j : ℝ) := by
  465. rw [totalMass_sub_stageMass ha]
  466. have hg : HasSum (fun i : ℕ => (1 / 2 : ℝ) ^ (i + j + 1)) ((1 / 2 : ℝ)^j) := by
  467. simpa only [show ∀ i : ℕ, i + j + 1 = i + 1 + j by omega, pow_add _ (_ + 1), one_mul] using
  468. geometric_jump_mass.mul_right ((1/2 : ℝ)^j)
  469. rw [← (hg.div_const (a j : ℝ)).tsum_eq]
  470. apply Summable.tsum_le_tsum _ ((summable_nat_add_iff j).mpr (negative_weights_summable ha))
  471. (hg.div_const (a j : ℝ)).summable
  472. intro i
  473. exact div_le_div_of_nonneg_left (by positivity) (by exact_mod_cast ha j)
  474. (by exact_mod_cast hm (Nat.le_add_left j i))
  475. end SparseWalk
  476. /-! Independent increments on their countable product sample space and
  477. finite convolution after the impossible negative jumps have been discarded. -/
  478. noncomputable section
  479. open Filter Finset MeasureTheory ProbabilityTheory
  480. open scoped BigOperators Topology ENNReal
  481. namespace SparseWalk
  482. abbrev labelProduct (μ : Measure ℕ) [IsProbabilityMeasure μ] : Measure (ℕ → ℕ) :=
  483. Measure.infinitePi fun _ : ℕ ↦ μ
  484. def posAt (v : ℕ → ℤ) (n : ℕ) (ω : ℕ → ℕ) : ℤ := ∑ i ∈ range n, v (ω i)
  485. lemma pos_meas (v : ℕ → ℤ) (n : ℕ) : Measurable (posAt v n) := by
  486. apply Finset.measurable_fun_sum
  487. intro i _
  488. exact (measurable_of_countable v).comp (measurable_pi_apply i)
  489. lemma pos_bound {v : ℕ → ℤ} (hv : ∀ m, v m ≤ 1) (n : ℕ) (ω : ℕ → ℕ) :
  490. posAt v n ω ≤ n := by
  491. calc
  492. _ ≤ ∑ _i ∈ range n, (1:ℤ) := Finset.sum_le_sum fun i _ ↦ hv (ω i)
  493. _ = _ := by simp
  494. lemma pos_succ (v : ℕ → ℤ) (n : ℕ) (ω : ℕ → ℕ) :
  495. posAt v (n+1) ω = posAt v n ω + v (ω n) := Finset.sum_range_succ _ _
  496. lemma label_indep (μ : Measure ℕ) [IsProbabilityMeasure μ] (v : ℕ → ℤ) :
  497. iIndepFun (fun i (ω : ℕ → ℕ) ↦ v (ω i)) (labelProduct μ) :=
  498. iIndepFun_infinitePi (fun _ ↦ measurable_of_countable v)
  499. lemma label_map (μ : Measure ℕ) [IsProbabilityMeasure μ] (v : ℕ → ℤ) (i : ℕ) :
  500. (labelProduct μ).map (fun ω ↦ v (ω i)) = μ.map v := by
  501. calc
  502. _ = ((labelProduct μ).map (fun ω ↦ ω i)).map v :=
  503. (Measure.map_map (measurable_of_countable v) (measurable_pi_apply i)).symm
  504. _ = _ := congrArg (Measure.map v) (Measure.infinitePi_map_eval (fun _ : ℕ ↦ μ) i)
  505. lemma past_indep (μ : Measure ℕ) [IsProbabilityMeasure μ] (v : ℕ → ℤ) (n : ℕ) :
  506. IndepFun (fun ω : ℕ → ℕ ↦ ω n) (posAt v n) (labelProduct μ) := by
  507. have h : iIndepFun (fun i (ω : ℕ → ℕ) ↦ ω i) (labelProduct μ) :=
  508. iIndepFun_infinitePi (X := fun _ ↦ id) (fun _ ↦ measurable_id)
  509. have hp := h.indepFun_finset ({n} : Finset ℕ) (range n) (by simp) (fun i ↦ measurable_pi_apply i)
  510. let left : ((i : ({n} : Finset ℕ)) → ℕ) → ℕ := fun H ↦ H ⟨n, by simp⟩
  511. let right : ((i : range n) → ℕ) → ℤ := fun H ↦ ∑ i, v (H i)
  512. have hright : Measurable right :=
  513. Finset.measurable_fun_sum _ (fun i _ ↦ (measurable_of_countable v).comp (measurable_pi_apply i))
  514. have hh := hp.comp (show Measurable left from measurable_pi_apply _) hright
  515. change IndepFun (fun ω : ℕ → ℕ ↦ ω n) (fun ω ↦ ∑ i : range n, v (ω i)) _ at hh
  516. have he (ω : ℕ → ℕ) : (∑ i : range n, v (ω i)) = posAt v n ω := by
  517. exact Finset.sum_attach (range n) (fun i ↦ v (ω i))
  518. simpa only [he] using hh
  519. lemma coordinate_mass (μ : Measure ℕ) [IsProbabilityMeasure μ] (n m : ℕ) :
  520. (labelProduct μ) {ω | ω n = m} = μ {m} := by
  521. have h := congrArg (fun ν : Measure ℕ ↦ ν {m}) (Measure.infinitePi_map_eval (fun _ : ℕ ↦ μ) n)
  522. exact (Measure.map_apply (measurable_pi_apply n) (measurableSet_singleton m)).symm.trans h
  523. lemma finite_step (μ : Measure ℕ) [IsProbabilityMeasure μ] (v : ℕ → ℤ)
  524. (hv : ∀ m, v m ≤ 1) (n : ℕ) (k : ℤ) (L : ℕ)
  525. (outside : ∀ m ≥ L, (n : ℤ) + v m < k) :
  526. (labelProduct μ).real {ω | posAt v (n+1) ω = k} =
  527. ∑ m ∈ range L, μ.real {m} * (labelProduct μ).real {ω | posAt v n ω = k - v m} := by
  528. let E (m : ℕ) : Set (ℕ → ℕ) := {ω | ω n = m} ∩ {ω | posAt v n ω = k - v m}
  529. have heq : {ω | posAt v (n+1) ω = k} = ⋃ m ∈ range L, E m := by
  530. ext ω
  531. simp only [Set.mem_ofPred_eq, Set.mem_iUnion, Finset.mem_range, exists_prop, E, Set.mem_inter_iff]
  532. rw [pos_succ]
  533. constructor
  534. · intro h
  535. refine ⟨ω n, ?_, rfl, by omega⟩
  536. by_contra! hlarge
  537. have := outside (ω n) hlarge
  538. have := pos_bound hv n ω
  539. omega
  540. · rintro ⟨m, _, rfl, hm⟩
  541. omega
  542. have hd : Set.PairwiseDisjoint (↑(range L)) E := by
  543. intro i _ j _ hij
  544. exact Set.disjoint_left.mpr fun ω hi hj ↦ hij (hi.1.symm.trans hj.1)
  545. have hm (i : ℕ) : MeasurableSet (E i) :=
  546. (measurableSet_eq_fun (measurable_pi_apply n) measurable_const).inter
  547. (measurableSet_eq_fun (pos_meas v n) measurable_const)
  548. rw [heq, measureReal_biUnion_finset hd (fun i _ ↦ hm i)]
  549. apply Finset.sum_congr rfl
  550. intro m _
  551. have h := (past_indep μ v n).measure_inter_preimage_eq_mul {m} {k-v m}
  552. (measurableSet_singleton _) (measurableSet_singleton _)
  553. change ((labelProduct μ) (E m)).toReal = _ * _
  554. change (labelProduct μ) (E m) = (labelProduct μ) {ω | ω n = m} * _ at h
  555. rw [h, ENNReal.toReal_mul, coordinate_mass]
  556. rfl
  557. lemma jump_le_one (a : ℕ → ℕ) (m : ℕ) : jump a m ≤ 1 := by
  558. rcases m with _ | (_ | i) <;> simp [jump]
  559. lemma sum_stage (a : ℕ → ℕ) (j : ℕ) (f : ℤ → ℝ) :
  560. (∑ m ∈ range (j+2), labelWeight a m * f (jump a m)) = integrate (stageAtoms a j) f := by
  561. induction j with
  562. | zero => simp [Finset.sum_range_succ, labelWeight, jump, stageAtoms, integrate]
  563. | succ j ih =>
  564. rw [show j+1+2 = (j+2)+1 by omega, Finset.sum_range_succ, ih]
  565. simp [labelWeight, jump, stageAtoms, integrate, atomWeight, add_comm]
  566. lemma true_cutoff (μ : Measure ℕ) [IsProbabilityMeasure μ] (a : ℕ → ℕ) (ha : Monotone a)
  567. (W : ℝ) (_hW : 0 < W) (hm : ∀ m, μ.real {m} = labelWeight a m / W)
  568. (j n : ℕ) (k : ℤ) (hk : (n : ℤ) - a j ≤ k) :
  569. (labelProduct μ).real {ω | posAt (jump a) n ω = k} = raw (stageAtoms a j) n k / W^n := by
  570. induction n generalizing k with
  571. | zero =>
  572. by_cases hz : k = 0
  573. · subst k
  574. simp [posAt, raw]
  575. · simp [posAt, raw, hz, Ne.symm hz]
  576. | succ n ih =>
  577. have hout (m : ℕ) (hm' : j+2 ≤ m) : (n : ℤ) + jump a m < k := by
  578. obtain ⟨i, rfl⟩ := Nat.exists_eq_add_of_le' (show 2 ≤ m by omega)
  579. have hai : a j ≤ a i := ha (by omega)
  580. simp only [jump]
  581. omega
  582. rw [finite_step μ _ (jump_le_one a) n k (j+2) hout]
  583. calc
  584. _ = ∑ m ∈ range (j+2), (labelWeight a m * raw (stageAtoms a j) n (k - jump a m)) / W^(n+1) := by
  585. apply Finset.sum_congr rfl
  586. intro m _
  587. have := jump_le_one a m
  588. rw [hm, ih _ (by omega), pow_succ]
  589. ring
  590. _ = _ := by rw [← Finset.sum_div, sum_stage a j (fun x ↦ raw (stageAtoms a j) n (k-x)), raw]
  591. end SparseWalk
  592. /-! The negation is stated with the two definitions of the official statement unfolded.
  593. This lets the module be checked without importing the official placeholder. -/
  594. noncomputable section
  595. open Filter Finset MeasureTheory ProbabilityTheory
  596. open scoped BigOperators Topology ENNReal
  597. namespace SparseWalk
  598. theorem fullDisproof :
  599. ¬ (∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P],
  600. ∀ X : ℕ → Ω → ℤ,
  601. (∀ i, Measurable (X i)) →
  602. iIndepFun X P →
  603. (∀ i, Measure.map (X i) P = Measure.map (X 0) P) →
  604. Integrable (fun ω => (X 0 ω : ℝ)) P →
  605. (∫ ω, (X 0 ω : ℝ) ∂P) = 0 →
  606. (∀ u b : ℤ, 1 < u → ∃ z ∈ {z | 0 < P {ω | X 0 ω = z}}, ¬u ∣ z-b) →
  607. ∀ (s : ℕ → ℕ) (z : ℕ → ℤ),
  608. (∃ C : ℝ, ∀ᶠ n : ℕ in atTop, (s n : ℝ) ≤ C * Real.log (n : ℝ)) →
  609. (∃ B : ℤ, ∀ᶠ n : ℕ in atTop, |z n| ≤ B) →
  610. Tendsto (fun n =>
  611. (P {ω | (∑ i ∈ range (n-s n), X i ω) = -z n}).toReal /
  612. (P {ω | (∑ i ∈ range n, X i ω) = 0}).toReal) atTop (𝓝 1)) := by
  613. intro H
  614. let a := magnitude logShift
  615. have ha : ∀ i, 0 < a i := magnitude_pos logShift
  616. have hle : ∀ᶠ n in atTop, logShift n ≤ n := .of_forall logShift_le
  617. have ham : Monotone a := (magnitude_strictMono _ logShift_tendsto hle).monotone
  618. let μ := labelLaw a
  619. let _ : IsProbabilityMeasure μ := labelLaw_probability ha
  620. let P := labelProduct μ
  621. let X := fun (i : ℕ) (ω : ℕ → ℕ) => jump a (ω i)
  622. let g := fun m => (jump a m : ℝ)
  623. let e := fun ω : ℕ → ℕ => ω 0
  624. have hme : Measurable e := measurable_pi_apply 0
  625. have hmg : Measurable g := measurable_of_countable _
  626. have hmap : P.map e = μ := Measure.infinitePi_map_eval (fun _ : ℕ ↦ μ) 0
  627. have hi : Integrable (fun ω => (X 0 ω : ℝ)) P := by
  628. have h : Integrable g (P.map e) := by rw [hmap]; exact jump_integrable ha
  629. exact (integrable_map_measure hmg.aestronglyMeasurable hme.aemeasurable).mp h
  630. have hmean : ∫ ω, (X 0 ω : ℝ) ∂P = 0 := by
  631. calc
  632. _ = ∫ m, g m ∂(P.map e) := (integral_map hme.aemeasurable hmg.aestronglyMeasurable).symm
  633. _ = 0 := by rw [hmap]; exact jump_integral ha
  634. have hW : 0 < totalMass a := by linarith [totalMass_ge_two a]
  635. have atom (m : ℕ) (hm : labelWeight a m = 1) : 0 < P {ω | X 0 ω = jump a m} := by
  636. have hp : 0 < P {ω | ω 0 = m} := by
  637. rw [show P {ω | ω 0 = m} = μ {m} from coordinate_mass μ 0 m,
  638. show μ {m} = _ from labelLaw_singleton a m, hm]
  639. exact ENNReal.ofReal_pos.mpr (one_div_pos.mpr hW)
  640. exact hp.trans_le (measure_mono (fun ω h => congrArg (jump a) h))
  641. have span : ∀ u b : ℤ, 1 < u → ∃ z ∈ {z | 0 < P {ω | X 0 ω = z}}, ¬u ∣ z-b := by
  642. intro u b hu
  643. by_cases hd : u ∣ 0-b
  644. · refine ⟨1, atom 1 rfl, ?_⟩
  645. intro hh
  646. have h1 : u ∣ 1 := by simpa using Int.dvd_sub hh hd
  647. exact (not_le_of_gt hu) (Int.le_of_dvd (by norm_num) h1)
  648. · exact ⟨0, atom 0 rfl, hd⟩
  649. have ht := H (ℕ → ℕ) P X (fun i => (measurable_of_countable (jump a)).comp (measurable_pi_apply i))
  650. (label_indep μ (jump a))
  651. (fun i => (label_map μ (jump a) i).trans (label_map μ (jump a) 0).symm)
  652. hi hmean span logShift (fun _ => 0) logShift_growth
  653. (⟨0, .of_forall (fun _ => by simp)⟩)
  654. let p := fun n => P.real {ω | posAt (jump a) n ω = 0}
  655. have hp (j m : ℕ) (hm : m ≤ a j) : p m = raw (stageAtoms a j) m 0 / (totalMass a)^m := by
  656. apply true_cutoff μ a ham _ hW (labelLaw_real_singleton a) j m 0
  657. exact sub_nonpos.mpr (by exact_mod_cast hm)
  658. apply full_not_tendsto logShift logShift_tendsto hle (totalMass a)
  659. (stageMass_le_totalMass ha) p hp
  660. simpa only [p, Measure.real, posAt, X, neg_zero] using ht
  661. end SparseWalk
  662. theorem OMA.disproof : ¬ (OMA.S_mo_511513.claim) := SparseWalk.fullDisproof