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 / V02. Numbers

Mathlib.Data.Int.WithZero

10 declarations. Mathlib docs · Source

theorem WithZeroMulInt.toNNReal.congr_simp E1 #

∀ {e e_1 : NNReal} (e_e : e = e_1) (he : e ≠ 0), WithZeroMulInt.toNNReal he = WithZeroMulInt.toNNReal ⋯

def WithZeroMulInt.toNNReal E1 #

{e : NNReal} → e ≠ 0 → WithZero (Multiplicative ℤ) →*₀ NNReal

Given a nonzero e : ℝ≥0, this is the map ℤᵐ⁰ → ℝ≥0 sending 0 ↦ 0 and x ↦ e^(WithZero.log x) when x ≠ 0 as a MonoidWithZeroHom.

theorem WithZeroMulInt.toNNReal_pos_apply E0 #

∀ {e : NNReal} (he : e ≠ 0) {x : WithZero (Multiplicative ℤ)}, x = 0 → (WithZeroMulInt.toNNReal he) x = 0

theorem WithZeroMulInt.toNNReal_neg_apply E0 #

∀ {e : NNReal} (he : e ≠ 0) {x : WithZero (Multiplicative ℤ)}, x ≠ 0 → (WithZeroMulInt.toNNReal he) x = e ^ x.log

theorem WithZeroMulInt.toNNReal_ne_zero E1 #

∀ {e : NNReal} {m : WithZero (Multiplicative ℤ)} (he : e ≠ 0), m ≠ 0 → (WithZeroMulInt.toNNReal he) m ≠ 0

toNNReal sends nonzero elements to nonzero elements.

theorem WithZeroMulInt.toNNReal_pos E1 #

∀ {e : NNReal} {m : WithZero (Multiplicative ℤ)} (he : e ≠ 0), m ≠ 0 → 0 < (WithZeroMulInt.toNNReal he) m

toNNReal sends nonzero elements to positive elements.

theorem WithZeroMulInt.toNNReal_strictMono E1 #

∀ {e : NNReal} (he : 1 < e), StrictMono ⇑(WithZeroMulInt.toNNReal ⋯)

The map toNNReal is strictly monotone whenever 1 < e.

theorem WithZeroMulInt.toNNReal_eq_one_iff E0 #

∀ {e : NNReal} (m : WithZero (Multiplicative ℤ)) (he0 : e ≠ 0), e ≠ 1 → ((WithZeroMulInt.toNNReal he0) m = 1 ↔ m = 1)

theorem WithZeroMulInt.toNNReal_lt_one_iff E0 #

∀ {e : NNReal} {m : WithZero (Multiplicative ℤ)} (he : 1 < e), (WithZeroMulInt.toNNReal ⋯) m < 1 ↔ m < 1

theorem WithZeroMulInt.toNNReal_le_one_iff E0 #

∀ {e : NNReal} {m : WithZero (Multiplicative ℤ)} (he : 1 < e), (WithZeroMulInt.toNNReal ⋯) m ≤ 1 ↔ m ≤ 1