/-
Copyright 2025 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import Mathlib.Analysis.Normed.Field.Lemmas
public import Mathlib.Order.Filter.Defs
import Mathlib.Tactic.Rify@[expose] public sectionopen FilterSay a sequence is lacunary if there exists some $\lambda > 1$ such that $a_{n+1}/a_n > \lambda$ for all sufficiently large $n$.
def IsLacunary (n : ℕ → ℕ) : Prop := ∃ c > (1 : ℝ), ∀ᶠ k in atTop, c * n k < n (k + 1)Every lacunary sequence is eventually strictly increasing.
lemma IsLacunary.eventually_lt {n : ℕ → ℕ} (hn : IsLacunary n) : ∀ᶠ k in atTop, n k < n (k + 1) := n:ℕ → ℕhn:IsLacunary n⊢ ∀ᶠ (k : ℕ) in atTop, n k < n (k + 1)
n:ℕ → ℕc:ℝhc:c > 1h:∀ᶠ (k : ℕ) in atTop, c * ↑(n k) < ↑(n (k + 1))⊢ ∀ᶠ (k : ℕ) in atTop, n k < n (k + 1)
n:ℕ → ℕc:ℝhc:c > 1h✝:∀ᶠ (k : ℕ) in atTop, c * ↑(n k) < ↑(n (k + 1))N:ℕh:∀ (b : ℕ), N ≤ b → c * ↑(n b) < ↑(n (b + 1))⊢ ∀ᶠ (k : ℕ) in atTop, n k < n (k + 1)
n:ℕ → ℕc:ℝhc:c > 1h✝:∀ᶠ (k : ℕ) in atTop, c * ↑(n k) < ↑(n (k + 1))N:ℕh:∀ (b : ℕ), N ≤ b → c * ↑(n b) < ↑(n (b + 1))b:ℕhb:N ≤ b⊢ n b < n (b + 1)
grw [n:ℕ → ℕc:ℝhc:c > 1h✝:∀ᶠ (k : ℕ) in atTop, c * ↑(n k) < ↑(n (k + 1))N:ℕh:∀ (b : ℕ), N ≤ b → 1 * ↑(n b) < ↑(n (b + 1))b:ℕhb:N ≤ b⊢ n b < n (b + 1)n:ℕ → ℕc:ℝhc:c > 1h✝:∀ᶠ (k : ℕ) in atTop, c * ↑(n k) < ↑(n (k + 1))N:ℕh:∀ (b : ℕ), N ≤ b → 1 * ↑(n b) < ↑(n (b + 1))b:ℕhb:N ≤ b⊢ n b < n (b + 1) at h
All goals completed! 🐙
The real-valued analogue of IsLacunary.
def IsLacunaryReal (a : ℕ → ℝ) : Prop :=
∃ c > (1 : ℝ), ∀ᶠ k in atTop, c * a k < a (k + 1)An ℕ-valued sequence is lacunary iff its real cast is lacunary as a real sequence.
lemma isLacunary_iff_isLacunaryReal {n : ℕ → ℕ} :
IsLacunary n ↔ IsLacunaryReal (fun k => (n k : ℝ)) := Iff.rflA positive lacunary real-valued sequence is eventually strictly increasing.
lemma IsLacunaryReal.eventually_lt {a : ℕ → ℝ} (ha : IsLacunaryReal a)
(hpos : ∀ᶠ k in atTop, 0 < a k) : ∀ᶠ k in atTop, a k < a (k + 1) := a:ℕ → ℝha:IsLacunaryReal ahpos:∀ᶠ (k : ℕ) in atTop, 0 < a k⊢ ∀ᶠ (k : ℕ) in atTop, a k < a (k + 1)
a:ℕ → ℝhpos:∀ᶠ (k : ℕ) in atTop, 0 < a kc:ℝhc:c > 1hlac:∀ᶠ (k : ℕ) in atTop, c * a k < a (k + 1)⊢ ∀ᶠ (k : ℕ) in atTop, a k < a (k + 1)
filter_upwards [hlac, hpos] with k a:ℕ → ℝhpos:∀ᶠ (k : ℕ) in atTop, 0 < a kc:ℝhc:c > 1hlac:∀ᶠ (k : ℕ) in atTop, c * a k < a (k + 1)k:ℕhk:c * a k < a (k + 1)⊢ 0 < a k → a k < a (k + 1) a:ℕ → ℝhpos:∀ᶠ (k : ℕ) in atTop, 0 < a kc:ℝhc:c > 1hlac:∀ᶠ (k : ℕ) in atTop, c * a k < a (k + 1)k:ℕhk:c * a k < a (k + 1)hp:0 < a k⊢ a k < a (k + 1) using a:ℕ → ℝhpos:∀ᶠ (k : ℕ) in atTop, 0 < a kc:ℝhc:c > 1hlac:∀ᶠ (k : ℕ) in atTop, c * a k < a (k + 1)k:ℕhk:c * a k < a (k + 1)hp:0 < a k⊢ a k < a (k + 1) All goals completed! 🐙def IsSublacunary (m : ℕ → ℕ) : Prop :=
Filter.Tendsto (fun n => (m (n + 1) : ℝ) / m n) Filter.atTop (nhds 1)