The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Order.Archimedean.Real.Basic

58 declarations. Mathlib docs · Source

The real numbers are an Archimedean floor ring, and a conditionally complete linear order.

instance Real.instArchimedean E0 #

Archimedean ℝ

instance Real.instFloorRing E0 #

FloorRing ℝ

theorem Real.isCauSeq_iff_lift E1 #

∀ {f : ℕ → ℚ}, IsCauSeq abs f ↔ IsCauSeq abs fun i ↦ ↑(f i)

theorem Real.of_near E1 #

∀ (f : ℕ → ℚ) (x : ℝ), (∀ ε > 0, ∃ i, ∀ j ≥ i, |↑(f j) - x| < ε) → ∃ (h' : IsCauSeq abs f), Real.mk ⟨f, h'⟩ = x

theorem Real.exists_isLUB E1 #

∀ {s : Set ℝ}, s.Nonempty → BddAbove s → ∃ x, IsLUB s x

theorem Real.exists_isGLB E1 #

∀ {s : Set ℝ}, s.Nonempty → BddBelow s → ∃ x, IsGLB s x

A nonempty, bounded below set of real numbers has a greatest lower bound.

instance Real.instSupSet E0 #

SupSet ℝ

theorem Real.sSup_def E0 #

∀ (s : Set ℝ), sSup s = if h : s.Nonempty ∧ BddAbove s then Classical.choose ⋯ else 0

theorem Real.isLUB_sSup E1 #

∀ {s : Set ℝ}, s.Nonempty → BddAbove s → IsLUB s (sSup s)

instance Real.instInfSet E0 #

InfSet ℝ

theorem Real.sInf_def E0 #

∀ (s : Set ℝ), sInf s = -sSup (-s)

theorem Real.isGLB_sInf E1 #

∀ {s : Set ℝ}, s.Nonempty → BddBelow s → IsGLB s (sInf s)

instance Real.instConditionallyCompleteLinearOrder E0 #

ConditionallyCompleteLinearOrder ℝ

theorem Real.lt_sInf_add_pos E1 #

∀ {s : Set ℝ}, s.Nonempty → ∀ {ε : ℝ}, 0 < ε → ∃ a ∈ s, a < sInf s + ε

theorem Real.add_neg_lt_sSup E1 #

∀ {s : Set ℝ}, s.Nonempty → ∀ {ε : ℝ}, ε < 0 → ∃ a ∈ s, sSup s + ε < a

theorem Real.sInf_le_iff E0 #

∀ {s : Set ℝ} {a : ℝ}, BddBelow s → s.Nonempty → (sInf s ≤ a ↔ ∀ (ε : ℝ), 0 < ε → ∃ x ∈ s, x < a + ε)

theorem Real.le_sSup_iff E0 #

∀ {s : Set ℝ} {a : ℝ}, BddAbove s → s.Nonempty → (a ≤ sSup s ↔ ∀ ε < 0, ∃ x ∈ s, a + ε < x)

theorem Real.sSup_empty E0 #

sSup ∅ = 0

theorem Real.sInf_univ E1 #

sInf Set.univ = 0

theorem Real.iSup_of_isEmpty E1 #

∀ {ι : Sort u_1} [IsEmpty ι] (f : ι → ℝ), ⨆ i, f i = 0

theorem Real.iSup_const_zero E0 #

∀ {ι : Sort u_1}, ⨆ x, 0 = 0

theorem Real.sSup_of_not_bddAbove E1 #

∀ {s : Set ℝ}, ¬BddAbove s → sSup s = 0

theorem Real.iSup_of_not_bddAbove E1 #

∀ {ι : Sort u_1} {f : ι → ℝ}, ¬BddAbove (Set.range f) → ⨆ i, f i = 0

theorem Real.sSup_univ E1 #

sSup Set.univ = 0

theorem Real.sInf_empty E0 #

sInf ∅ = 0

theorem Real.iInf_of_isEmpty E1 #

∀ {ι : Sort u_1} [IsEmpty ι] (f : ι → ℝ), ⨅ i, f i = 0

theorem Real.iInf_const_zero E0 #

∀ {ι : Sort u_1}, ⨅ x, 0 = 0

theorem Real.sInf_of_not_bddBelow E1 #

∀ {s : Set ℝ}, ¬BddBelow s → sInf s = 0

theorem Real.iInf_of_not_bddBelow E1 #

∀ {ι : Sort u_1} {f : ι → ℝ}, ¬BddBelow (Set.range f) → ⨅ i, f i = 0

theorem Real.sSup_neg E0 #

∀ (s : Set ℝ), sSup (-s) = -sInf s

theorem Real.sInf_neg E0 #

∀ (s : Set ℝ), sInf (-s) = -sSup s

theorem Real.sSup_le E1 #

∀ {s : Set ℝ} {a : ℝ}, (∀ x ∈ s, x ≤ a) → 0 ≤ a → sSup s ≤ a

As sSup s = 0 when s is an empty set of reals, it suffices to show that all elements of s are at most some nonnegative number a to show that sSup s ≤ a.

See also csSup_le.

theorem Real.iSup_le E1 #

∀ {ι : Sort u_1} {f : ι → ℝ} {a : ℝ}, (∀ (i : ι), f i ≤ a) → 0 ≤ a → ⨆ i, f i ≤ a

As ⨆ i, f i = 0 when the domain of the real-valued function f is empty, it suffices to show that all values of f are at most some nonnegative number a to show that ⨆ i, f i ≤ a.

See also ciSup_le.

theorem Real.le_sInf E1 #

∀ {s : Set ℝ} {a : ℝ}, (∀ x ∈ s, a ≤ x) → a ≤ 0 → a ≤ sInf s

As sInf s = 0 when s is an empty set of reals, it suffices to show that all elements of s are at least some nonpositive number a to show that a ≤ sInf s.

See also le_csInf.

theorem Real.le_iInf E1 #

∀ {ι : Sort u_1} {f : ι → ℝ} {a : ℝ}, (∀ (i : ι), a ≤ f i) → a ≤ 0 → a ≤ ⨅ i, f i

As ⨅ i, f i = 0 when the domain of the real-valued function f is empty, it suffices to show that all values of f are at least some nonpositive number a to show that a ≤ ⨅ i, f i.

See also le_ciInf.

theorem Real.sSup_nonpos E1 #

∀ {s : Set ℝ}, (∀ x ∈ s, x ≤ 0) → sSup s ≤ 0

As sSup s = 0 when s is an empty set of reals, it suffices to show that all elements of s are nonpositive to show that sSup s ≤ 0.

theorem Real.iSup_nonpos E1 #

∀ {ι : Sort u_1} {f : ι → ℝ}, (∀ (i : ι), f i ≤ 0) → ⨆ i, f i ≤ 0

As ⨆ i, f i = 0 when the domain of the real-valued function f is empty, it suffices to show that all values of f are nonpositive to show that ⨆ i, f i ≤ 0.

theorem Real.sInf_nonneg E1 #

∀ {s : Set ℝ}, (∀ x ∈ s, 0 ≤ x) → 0 ≤ sInf s

As sInf s = 0 when s is an empty set of reals, it suffices to show that all elements of s are nonnegative to show that 0 ≤ sInf s.

theorem Real.iInf_nonneg E1 #

∀ {ι : Sort u_1} {f : ι → ℝ}, (∀ (i : ι), 0 ≤ f i) → 0 ≤ iInf f

As ⨅ i, f i = 0 when the domain of the real-valued function f is empty, it suffices to show that all values of f are nonnegative to show that 0 ≤ ⨅ i, f i.

theorem Real.sSup_nonneg' E1 #

∀ {s : Set ℝ}, (∃ x ∈ s, 0 ≤ x) → 0 ≤ sSup s

As sSup s = 0 when s is a set of reals that's unbounded above, it suffices to show that s contains a nonnegative element to show that 0 ≤ sSup s.

theorem Real.iSup_nonneg' E1 #

∀ {ι : Sort u_1} {f : ι → ℝ}, (∃ i, 0 ≤ f i) → 0 ≤ ⨆ i, f i

As ⨆ i, f i = 0 when the real-valued function f is unbounded above, it suffices to show that f takes a nonnegative value to show that 0 ≤ ⨆ i, f i.

theorem Real.sInf_nonpos' E1 #

∀ {s : Set ℝ}, (∃ x ∈ s, x ≤ 0) → sInf s ≤ 0

As sInf s = 0 when s is a set of reals that's unbounded below, it suffices to show that s contains a nonpositive element to show that sInf s ≤ 0.

theorem Real.iInf_nonpos' E1 #

∀ {ι : Sort u_1} {f : ι → ℝ}, (∃ i, f i ≤ 0) → ⨅ i, f i ≤ 0

As ⨅ i, f i = 0 when the real-valued function f is unbounded below, it suffices to show that f takes a nonpositive value to show that 0 ≤ ⨅ i, f i.

theorem Real.sSup_nonneg E1 #

∀ {s : Set ℝ}, (∀ x ∈ s, 0 ≤ x) → 0 ≤ sSup s

As sSup s = 0 when s is a set of reals that's either empty or unbounded above, it suffices to show that all elements of s are nonnegative to show that 0 ≤ sSup s.

theorem Real.iSup_nonneg E1 #

∀ {ι : Sort u_1} {f : ι → ℝ}, (∀ (i : ι), 0 ≤ f i) → 0 ≤ ⨆ i, f i

As ⨆ i, f i = 0 when the domain of the real-valued function f is empty or unbounded above, it suffices to show that all values of f are nonnegative to show that 0 ≤ ⨆ i, f i.

theorem Real.iSup_nonneg_of_nonnegHomClass E1 #

∀ {ι : Type u_2} {F : Type u_3} {α : Type u_4} [inst : FunLike F α ℝ] [NonnegHomClass F α ℝ] (f : F) (g : ι → α),
  0 ≤ ⨆ i, f (g i)

theorem Real.sInf_nonpos E1 #

∀ {s : Set ℝ}, (∀ x ∈ s, x ≤ 0) → sInf s ≤ 0

As sInf s = 0 when s is a set of reals that's either empty or unbounded below, it suffices to show that all elements of s are nonpositive to show that sInf s ≤ 0.

theorem Real.iInf_nonpos E1 #

∀ {ι : Sort u_1} {f : ι → ℝ}, (∀ (i : ι), f i ≤ 0) → ⨅ i, f i ≤ 0

As ⨅ i, f i = 0 when the domain of the real-valued function f is empty or unbounded below, it suffices to show that all values of f are nonpositive to show that 0 ≤ ⨅ i, f i.

theorem Real.sInf_le_sSup E1 #

∀ (s : Set ℝ), BddBelow s → BddAbove s → sInf s ≤ sSup s

theorem Real.cauSeq_converges E1 #

∀ (f : CauSeq ℝ abs), ∃ x, f ≈ CauSeq.const abs x

instance Real.instIsCompleteAbs E0 #

CauSeq.IsComplete ℝ abs

theorem Real.iInf_Ioi_eq_iInf_rat_gt E1 #

∀ {f : ℝ → ℝ} (x : ℝ), BddBelow (f '' Set.Ioi x) → Monotone f → ⨅ r, f ↑r = ⨅ q, f ↑↑q

theorem Real.not_bddAbove_coe E0 #

¬BddAbove (Set.range fun x ↦ ↑x)

theorem Real.not_bddBelow_coe E0 #

¬BddBelow (Set.range fun x ↦ ↑x)

theorem Real.iUnion_Iic_rat E1 #

⋃ r, Set.Iic ↑r = Set.univ

theorem Real.iInter_Iic_rat E1 #

⋂ r, Set.Iic ↑r = ∅

theorem Real.exists_natCast_add_one_lt_pow_of_one_lt E1 #

∀ {a : ℝ}, 1 < a → ∃ m, ↑m + 1 < a ^ m

Exponentiation is eventually larger than linear growth.

theorem Real.exists_nat_pos_inv_lt E1 #

∀ {b : ℝ}, 0 < b → ∃ n, 0 < n ∧ (↑n)⁻¹ < b