Mathlib Phrasebook

2.1. First examples🔗

Given two sequences of real numbers, a_n and b_n, Mathlib allows one to say that a = O(b) by writing simply a =O[atTop] b. We can witness that this means what we expect as follows:

example (a b : ) : a =O[atTop] b C N, n N, a n C * b n := a: b: a =O[atTop] b C N, n N, a n C * b n simp_rw a: b: a =O[atTop] b C N, n N, a n C * b na: b: (∃ c, ∀ᶠ (x : ) in atTop, a x c * b x) C N, n N, a n C * b n All goals completed! 🐙]

If instead we have functions f, g : ℝ → ℝ, the same notation works:

example (f g : ) : f =O[atTop] g C N, n N, f n C * g n := f: g: f =O[atTop] g C N, n N, f n C * g n simp_rw f: g: f =O[atTop] g C N, n N, f n C * g nf: g: (∃ c, ∀ᶠ (x : ) in atTop, f x c * g x) C N, n N, f n C * g n All goals completed! 🐙]