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 / V31. Set theory

Mathlib.SetTheory.Ordinal.Exponential

80 declarations and 2 deprecated aliases. Mathlib docs · Source

Ordinal exponential

In this file we define the power function and the logarithm function on ordinals. The two are related by the lemma Ordinal.opow_le_iff_le_log : b ^ c ≤ x ↔ c ≤ log b x for nontrivial inputs b, c.

Ordinal logarithm

Interaction with Nat.cast

instance Ordinal.instPow E0 #

Pow Ordinal.{u_1} Ordinal.{u_1}

The ordinal exponential, defined by transfinite recursion.

We call this opow in theorems in order to disambiguate from other exponentials.

theorem Ordinal.zero_opow' E1 #

∀ (a : Ordinal.{u_1}), 0 ^ a = 1 - a

0 ^ a = 1 if a = 0 and 0 ^ a = 0 otherwise.

theorem Ordinal.zero_opow_le E1 #

∀ (a : Ordinal.{u_1}), 0 ^ a ≤ 1

theorem Ordinal.zero_opow E0 #

∀ {a : Ordinal.{u_1}}, a ≠ 0 → 0 ^ a = 0

theorem Ordinal.opow_zero E0 #

∀ (a : Ordinal.{u_1}), a ^ 0 = 1

theorem Ordinal.opow_add_one E0 #

∀ (a b : Ordinal.{u_1}), a ^ (b + 1) = a ^ b * a

theorem Ordinal.opow_limit E1 #

∀ {a b : Ordinal.{u_1}}, a ≠ 0 → Order.IsSuccLimit b → a ^ b = ⨆ x, a ^ ↑x

theorem Ordinal.opow_le_of_isSuccLimit E1 #

∀ {a b c : Ordinal.{u_1}}, a ≠ 0 → Order.IsSuccLimit b → (a ^ b ≤ c ↔ ∀ b' < b, a ^ b' ≤ c)

theorem Ordinal.lt_opow_of_isSuccLimit E1 #

∀ {a b c : Ordinal.{u_1}}, b ≠ 0 → Order.IsSuccLimit c → (a < b ^ c ↔ ∃ c' < c, a < b ^ c')

theorem Ordinal.opow_one E0 #

∀ (a : Ordinal.{u_1}), a ^ 1 = a

theorem Ordinal.one_opow E0 #

∀ (a : Ordinal.{u_1}), 1 ^ a = 1

theorem Ordinal.opow_pos E1 #

∀ {a : Ordinal.{u_1}} (b : Ordinal.{u_1}), 0 < a → 0 < a ^ b

theorem Ordinal.opow_ne_zero E1 #

∀ {a : Ordinal.{u_1}} (b : Ordinal.{u_1}), a ≠ 0 → a ^ b ≠ 0

theorem Ordinal.opow_eq_zero E0 #

∀ {a b : Ordinal.{u_1}}, a ^ b = 0 ↔ a = 0 ∧ b ≠ 0

theorem Ordinal.opow_le_one E1 #

∀ {a : Ordinal.{u_1}}, a ≤ 1 → ∀ (b : Ordinal.{u_1}), a ^ b ≤ 1

theorem Ordinal.opow_natCast E0 #

∀ (a : Ordinal.{u_1}) (n : ℕ), a ^ ↑n = a ^ n

theorem Ordinal.isNormal_opow E1 #

∀ {a : Ordinal.{u_1}}, 1 < a → Order.IsNormal fun x ↦ a ^ x

theorem Ordinal.opow_lt_opow_iff_right E0 #

∀ {a b c : Ordinal.{u_1}}, 1 < a → (a ^ b < a ^ c ↔ b < c)

theorem Ordinal.opow_le_opow_iff_right E0 #

∀ {a b c : Ordinal.{u_1}}, 1 < a → (a ^ b ≤ a ^ c ↔ b ≤ c)

theorem Ordinal.opow_right_inj E0 #

∀ {a b c : Ordinal.{u_1}}, 1 < a → (a ^ b = a ^ c ↔ b = c)

theorem Ordinal.one_lt_opow E0 #

∀ {a b : Ordinal.{u_1}}, 1 < a ^ b ↔ 1 < a ∧ b ≠ 0

theorem Ordinal.one_lt_pow E0 #

∀ {a : Ordinal.{u_1}} {n : ℕ}, 1 < a ^ n ↔ 1 < a ∧ n ≠ 0

theorem Ordinal.opow_eq_one_iff E0 #

∀ {a b : Ordinal.{u_1}}, a ^ b = 1 ↔ a = 1 ∨ b = 0

theorem Ordinal.pow_eq_one_iff E0 #

∀ {a : Ordinal.{u_1}} {n : ℕ}, a ^ n = 1 ↔ a = 1 ∨ n = 0

theorem Ordinal.isSuccLimit_opow E1 #

∀ {a b : Ordinal.{u_1}}, 1 < a → Order.IsSuccLimit b → Order.IsSuccLimit (a ^ b)

theorem Ordinal.isSuccLimit_opow_left E1 #

∀ {a b : Ordinal.{u_1}}, Order.IsSuccLimit a → b ≠ 0 → Order.IsSuccLimit (a ^ b)

theorem Ordinal.opow_le_opow_right E1 #

∀ {a b c : Ordinal.{u_1}}, 0 < a → b ≤ c → a ^ b ≤ a ^ c

theorem Ordinal.opow_le_opow_left E1 #

∀ {a b : Ordinal.{u_1}} (c : Ordinal.{u_1}), a ≤ b → a ^ c ≤ b ^ c

theorem Ordinal.opow_le_opow E1 #

∀ {a b c d : Ordinal.{u_1}}, a ≤ c → b ≤ d → 0 < c → a ^ b ≤ c ^ d

theorem Ordinal.left_le_opow E1 #

∀ (a : Ordinal.{u_1}) {b : Ordinal.{u_1}}, 0 < b → a ≤ a ^ b

theorem Ordinal.left_lt_opow E1 #

∀ {a b : Ordinal.{u_1}}, 1 < a → 1 < b → a < a ^ b

theorem Ordinal.right_le_opow E1 #

∀ {a : Ordinal.{u_1}} (b : Ordinal.{u_1}), 1 < a → b ≤ a ^ b

theorem Ordinal.opow_lt_opow_left_of_succ E1 #

∀ {a b c : Ordinal.{u_1}}, a < b → a ^ Order.succ c < b ^ Order.succ c

theorem Ordinal.opow_add E1 #

∀ (a b c : Ordinal.{u_1}), a ^ (b + c) = a ^ b * a ^ c

theorem Ordinal.opow_one_add E1 #

∀ (a b : Ordinal.{u_1}), a ^ (1 + b) = a * a ^ b

theorem Ordinal.opow_dvd_opow E1 #

∀ (a : Ordinal.{u_1}) {b c : Ordinal.{u_1}}, b ≤ c → a ^ b ∣ a ^ c

theorem Ordinal.opow_dvd_opow_iff E0 #

∀ {a b c : Ordinal.{u_1}}, 1 < a → (a ^ b ∣ a ^ c ↔ b ≤ c)

theorem Ordinal.opow_mul E1 #

∀ (a b c : Ordinal.{u_1}), a ^ (b * c) = (a ^ b) ^ c

theorem Ordinal.opow_mul_add_pos E1 #

∀ {b v : Ordinal.{u_1}}, b ≠ 0 → ∀ (u : Ordinal.{u_1}), v ≠ 0 → ∀ (w : Ordinal.{u_1}), 0 < b ^ u * v + w

theorem Ordinal.opow_mul_add_lt_opow_mul E1 #

∀ {b u w x v : Ordinal.{u_1}}, w < b ^ u → v < x → b ^ u * v + w < b ^ u * x

theorem Ordinal.opow_mul_add_lt_opow E1 #

∀ {b u v w x : Ordinal.{u_1}}, v < b → w < b ^ u → u < x → b ^ u * v + w < b ^ x

theorem Ordinal.opow_mul_lt_opow E1 #

∀ {b u v x : Ordinal.{u_1}}, v < b → u < x → b ^ u * v < b ^ x

def Ordinal.log E1 #

Ordinal.{u_1} → Ordinal.{u_1} → Ordinal.{u_1}

The ordinal logarithm is the solution u to the equation x = b ^ u * v + w where v < b and w < b ^ u.

We special case log 0 x = log 1 x = 0, as well as log b 0 = 0.

theorem Ordinal.log_of_left_le_one E0 #

∀ {b : Ordinal.{u_1}}, b ≤ 1 → ∀ (x : Ordinal.{u_1}), Ordinal.log b x = 0

theorem Ordinal.log_zero_left E1 #

∀ (x : Ordinal.{u_1}), Ordinal.log 0 x = 0

theorem Ordinal.log_one_left E1 #

∀ (x : Ordinal.{u_1}), Ordinal.log 1 x = 0

theorem Ordinal.log_zero_right E0 #

∀ (b : Ordinal.{u_1}), Ordinal.log b 0 = 0

theorem Ordinal.opow_le_iff_le_log E1 #

∀ {b x c : Ordinal.{u_1}}, 1 < b → x ≠ 0 → (b ^ c ≤ x ↔ c ≤ Ordinal.log b x)

opow b and log b (almost) form a Galois connection.

See opow_le_iff_le_log' for a variant assuming c ≠ 0 rather than x ≠ 0. See also le_log_of_opow_le and opow_le_of_le_log, which are both separate implications under weaker assumptions.

theorem Ordinal.opow_le_iff_le_log' E1 #

∀ {b x c : Ordinal.{u_1}}, 1 < b → c ≠ 0 → (b ^ c ≤ x ↔ c ≤ Ordinal.log b x)

opow b and log b (almost) form a Galois connection.

See opow_le_iff_le_log for a variant assuming x ≠ 0 rather than c ≠ 0. See also le_log_of_opow_le and opow_le_of_le_log, which are both separate implications under weaker assumptions.

theorem Ordinal.le_log_of_opow_le E1 #

∀ {b x c : Ordinal.{u_1}}, 1 < b → b ^ c ≤ x → c ≤ Ordinal.log b x

theorem Ordinal.opow_le_of_le_log E1 #

∀ {b x c : Ordinal.{u_1}}, c ≠ 0 → c ≤ Ordinal.log b x → b ^ c ≤ x

theorem Ordinal.lt_opow_iff_log_lt E1 #

∀ {b x c : Ordinal.{u_1}}, 1 < b → x ≠ 0 → (x < b ^ c ↔ Ordinal.log b x < c)

opow b and log b (almost) form a Galois connection.

See lt_opow_iff_log_lt' for a variant assuming c ≠ 0 rather than x ≠ 0. See also lt_opow_of_log_lt and lt_log_of_lt_opow, which are both separate implications under weaker assumptions.

theorem Ordinal.lt_opow_iff_log_lt' E1 #

∀ {b x c : Ordinal.{u_1}}, 1 < b → c ≠ 0 → (x < b ^ c ↔ Ordinal.log b x < c)

opow b and log b (almost) form a Galois connection.

See lt_opow_iff_log_lt for a variant assuming x ≠ 0 rather than c ≠ 0. See also lt_opow_of_log_lt and lt_log_of_lt_opow, which are both separate implications under weaker assumptions.

theorem Ordinal.lt_opow_of_log_lt E1 #

∀ {b x c : Ordinal.{u_1}}, 1 < b → Ordinal.log b x < c → x < b ^ c

theorem Ordinal.lt_log_of_lt_opow E1 #

∀ {b x c : Ordinal.{u_1}}, c ≠ 0 → x < b ^ c → Ordinal.log b x < c

theorem Ordinal.lt_opow_succ_log_self E1 #

∀ {b : Ordinal.{u_1}}, 1 < b → ∀ (x : Ordinal.{u_1}), x < b ^ Order.succ (Ordinal.log b x)

theorem Ordinal.opow_log_le_self E1 #

∀ (b : Ordinal.{u_1}) {x : Ordinal.{u_1}}, x ≠ 0 → b ^ Ordinal.log b x ≤ x

theorem Ordinal.log_pos E1 #

∀ {b o : Ordinal.{u_1}}, 1 < b → o ≠ 0 → b ≤ o → 0 < Ordinal.log b o

theorem Ordinal.log_eq_zero E1 #

∀ {b o : Ordinal.{u_1}}, o < b → Ordinal.log b o = 0

theorem Ordinal.log_mono_right E1 #

∀ (b : Ordinal.{u_1}) {x y : Ordinal.{u_1}}, x ≤ y → Ordinal.log b x ≤ Ordinal.log b y

theorem Ordinal.log_le_self E1 #

∀ (b x : Ordinal.{u_1}), Ordinal.log b x ≤ x

theorem Ordinal.log_one_right E0 #

∀ (b : Ordinal.{u_1}), Ordinal.log b 1 = 0

theorem Ordinal.mod_opow_log_lt_self E1 #

∀ (b : Ordinal.{u_1}) {o : Ordinal.{u_1}}, o ≠ 0 → o % b ^ Ordinal.log b o < o

theorem Ordinal.log_mod_opow_log_lt_log_self E1 #

∀ {b o : Ordinal.{u_1}}, 1 < b → b ≤ o → Ordinal.log b (o % b ^ Ordinal.log b o) < Ordinal.log b o

theorem Ordinal.log_eq_iff E0 #

∀ {b x : Ordinal.{u_1}}, 1 < b → x ≠ 0 → ∀ (y : Ordinal.{u_1}), Ordinal.log b x = y ↔ b ^ y ≤ x ∧ x < b ^ (y + 1)

theorem Ordinal.log_opow_mul_add E1 #

∀ {b u v w : Ordinal.{u_1}}, 1 < b → v ≠ 0 → w < b ^ u → Ordinal.log b (b ^ u * v + w) = u + Ordinal.log b v

theorem Ordinal.log_opow_mul E1 #

∀ {b v : Ordinal.{u_1}}, 1 < b → ∀ (u : Ordinal.{u_1}), v ≠ 0 → Ordinal.log b (b ^ u * v) = u + Ordinal.log b v

theorem Ordinal.log_opow E1 #

∀ {b : Ordinal.{u_1}}, 1 < b → ∀ (x : Ordinal.{u_1}), Ordinal.log b (b ^ x) = x

theorem Ordinal.div_opow_log_pos E1 #

∀ (b : Ordinal.{u_1}) {o : Ordinal.{u_1}}, o ≠ 0 → 0 < o / b ^ Ordinal.log b o

theorem Ordinal.div_opow_log_lt E1 #

∀ {b : Ordinal.{u_1}} (o : Ordinal.{u_1}), 1 < b → o / b ^ Ordinal.log b o < b

theorem Ordinal.div_two_opow_log E1 #

∀ {o : Ordinal.{u_1}}, o ≠ 0 → o / 2 ^ Ordinal.log 2 o = 1

theorem Ordinal.two_opow_log_add E1 #

∀ {o : Ordinal.{u_1}}, o ≠ 0 → 2 ^ Ordinal.log 2 o + o % 2 ^ Ordinal.log 2 o = o

theorem Ordinal.add_log_le_log_mul E1 #

∀ {x y : Ordinal.{u_1}} (b : Ordinal.{u_1}), x ≠ 0 → y ≠ 0 → Ordinal.log b x + Ordinal.log b y ≤ Ordinal.log b (x * y)

theorem Ordinal.sub_omega0_opow_log_lt E1 #

∀ {a : Ordinal.{u_1}}, a ≠ 0 → a - Ordinal.omega0 ^ Ordinal.log Ordinal.omega0 a < a

theorem Ordinal.lt_omega0_opow E1 #

∀ {a b : Ordinal.{u_1}}, b ≠ 0 → (a < Ordinal.omega0 ^ b ↔ ∃ c < b, ∃ n, a < Ordinal.omega0 ^ c * ↑n)

theorem Ordinal.lt_omega0_opow_succ E1 #

∀ {a b : Ordinal.{u_1}}, a < Ordinal.omega0 ^ Order.succ b ↔ ∃ n, a < Ordinal.omega0 ^ b * ↑n

theorem Ordinal.lt_omega0_omega0_opow E1 #

∀ {a b : Ordinal.{u_1}},
  b ≠ 0 → (a < Ordinal.omega0 ^ Ordinal.omega0 ^ b ↔ ∃ c < b, ∃ n, a < Ordinal.omega0 ^ (Ordinal.omega0 ^ c * ↑n))

theorem Ordinal.natCast_pow E0 #

∀ (m n : ℕ), ↑(m ^ n) = ↑m ^ n

theorem Ordinal.iSup_pow_natCast E1 #

∀ {o : Ordinal.{u_1}}, 0 < o → ⨆ n, o ^ n = o ^ Ordinal.omega0

theorem Ordinal.natCast_log E0 #

∀ (m n : ℕ), ↑(Nat.log m n) = Ordinal.log ↑m ↑n

Deprecated aliases

NameNew nameSince
Ordinal.omega0_opow_mul_nat_ltOrdinal.opow_mul_lt_opow2026-06-01
Ordinal.opow_succOrdinal.opow_add_one2026-06-17