Odd roots of real numbers
Content created by Louis Wasserman.
Created on 2026-02-07.
Last modified on 2026-02-11.
{-# OPTIONS --lossy-unification #-} module real-numbers.odd-roots-real-numbers where
Imports
open import elementary-number-theory.natural-numbers open import elementary-number-theory.parity-natural-numbers open import foundation.action-on-identifications-functions open import foundation.automorphisms open import foundation.dependent-pair-types open import foundation.equivalences open import foundation.identity-types open import foundation.transport-along-identifications open import foundation.universe-levels open import real-numbers.cofinal-and-coinitial-strictly-increasing-pointwise-epsilon-delta-continuous-endomaps-real-numbers open import real-numbers.dedekind-real-numbers open import real-numbers.increasing-endomaps-real-numbers open import real-numbers.inequality-real-numbers open import real-numbers.nonnegative-real-numbers open import real-numbers.powers-real-numbers open import real-numbers.raising-universe-levels-real-numbers open import real-numbers.rational-real-numbers open import real-numbers.similarity-real-numbers open import real-numbers.strict-inequality-real-numbers open import real-numbers.strictly-increasing-endomaps-real-numbers
Idea
For odd , the function x ↦ \root{n}{x} is defined on the real numbers as the inverse function to the power operation .
Definition
module _ (l : Level) (n : ℕ) (odd-n : is-odd-ℕ n) where cofinal-and-coinitial-strictly-increasing-pointwise-ε-δ-continuous-endomap-power-is-odd-exponent-ℝ : cofinal-and-coinitial-strictly-increasing-pointwise-ε-δ-continuous-endomap-ℝ ( l) ( l) cofinal-and-coinitial-strictly-increasing-pointwise-ε-δ-continuous-endomap-power-is-odd-exponent-ℝ = ( ( pointwise-ε-δ-continuous-power-ℝ l n , is-strictly-increasing-power-is-odd-exponent-ℝ l n odd-n) , is-cofinal-power-is-odd-exponent-ℝ l n odd-n , is-coinitial-power-is-odd-exponent-ℝ l n odd-n) aut-power-is-odd-exponent-ℝ : Aut (ℝ l) aut-power-is-odd-exponent-ℝ = aut-cofinal-and-coinitial-strictly-increasing-pointwise-ε-δ-continuous-endomap-ℝ ( cofinal-and-coinitial-strictly-increasing-pointwise-ε-δ-continuous-endomap-power-is-odd-exponent-ℝ) root-is-odd-exponent-ℝ : {l : Level} (n : ℕ) → is-odd-ℕ n → ℝ l → ℝ l root-is-odd-exponent-ℝ {l} n odd-n = map-inv-equiv (aut-power-is-odd-exponent-ℝ l n odd-n)
Properties
For odd n, nth roots are the inverse operation to nth powers
module _ {l : Level} (n : ℕ) (odd-n : is-odd-ℕ n) (x : ℝ l) where abstract is-section-root-is-odd-exponent-ℝ : power-ℝ n (root-is-odd-exponent-ℝ n odd-n x) = x is-section-root-is-odd-exponent-ℝ = is-section-map-inv-equiv (aut-power-is-odd-exponent-ℝ l n odd-n) x is-retraction-root-is-odd-exponent-ℝ : root-is-odd-exponent-ℝ n odd-n (power-ℝ n x) = x is-retraction-root-is-odd-exponent-ℝ = is-retraction-map-inv-equiv (aut-power-is-odd-exponent-ℝ l n odd-n) x
nth roots preserve similarity
abstract preserves-sim-root-is-odd-exponent-ℝ : {l1 l2 : Level} (n : ℕ) (odd-n : is-odd-ℕ n) → {x : ℝ l1} {y : ℝ l2} → sim-ℝ x y → sim-ℝ (root-is-odd-exponent-ℝ n odd-n x) (root-is-odd-exponent-ℝ n odd-n y) preserves-sim-root-is-odd-exponent-ℝ {l1} {l2} n odd-n {x} {y} x~y = sim-eq-raise-ℝ ( is-injective-power-is-odd-exponent-ℝ ( l1 ⊔ l2) ( n) ( odd-n) ( equational-reasoning power-ℝ n (raise-ℝ l2 (root-is-odd-exponent-ℝ n odd-n x)) = raise-ℝ l2 (power-ℝ n (root-is-odd-exponent-ℝ n odd-n x)) by power-raise-ℝ l2 n _ = raise-ℝ l2 x by ap (raise-ℝ l2) (is-section-root-is-odd-exponent-ℝ n odd-n x) = raise-ℝ l1 y by eq-raise-sim-ℝ x~y = raise-ℝ l1 (power-ℝ n (root-is-odd-exponent-ℝ n odd-n y)) by ap ( raise-ℝ l1) ( inv (is-section-root-is-odd-exponent-ℝ n odd-n y)) = power-ℝ n (raise-ℝ l1 (root-is-odd-exponent-ℝ n odd-n y)) by inv (power-raise-ℝ l1 n _))) root-raise-is-odd-exponent-ℝ : {l0 : Level} (l : Level) (n : ℕ) (odd-n : is-odd-ℕ n) (x : ℝ l0) → root-is-odd-exponent-ℝ n odd-n (raise-ℝ l x) = raise-ℝ l (root-is-odd-exponent-ℝ n odd-n x) root-raise-is-odd-exponent-ℝ {l0} l n odd-n x = eq-sim-ℝ ( transitive-sim-ℝ _ _ _ ( sim-raise-ℝ l _) ( preserves-sim-root-is-odd-exponent-ℝ n odd-n (sim-raise-ℝ' l x)))
For odd n, the nth root operation preserves strict inequality
module _ (n : ℕ) (odd-n : is-odd-ℕ n) where abstract is-strictly-increasing-root-is-odd-exponent-ℝ : {l : Level} → is-strictly-increasing-endomap-ℝ (root-is-odd-exponent-ℝ {l} n odd-n) is-strictly-increasing-root-is-odd-exponent-ℝ {l} = is-strictly-increasing-map-inv-cofinal-and-coinitial-strictly-increasing-pointwise-ε-δ-continuous-endomap-ℝ ( cofinal-and-coinitial-strictly-increasing-pointwise-ε-δ-continuous-endomap-power-is-odd-exponent-ℝ ( l) ( n) ( odd-n)) preserves-le-root-is-odd-exponent-ℝ : {l1 l2 : Level} {x : ℝ l1} {y : ℝ l2} → le-ℝ x y → le-ℝ (root-is-odd-exponent-ℝ n odd-n x) (root-is-odd-exponent-ℝ n odd-n y) preserves-le-root-is-odd-exponent-ℝ {l1} {l2} {x} {y} x<y = preserves-le-sim-ℝ ( preserves-sim-root-is-odd-exponent-ℝ n odd-n (sim-raise-ℝ' l2 x)) ( preserves-sim-root-is-odd-exponent-ℝ n odd-n (sim-raise-ℝ' l1 y)) ( is-strictly-increasing-root-is-odd-exponent-ℝ ( raise-ℝ l2 x) ( raise-ℝ l1 y) ( preserves-le-sim-ℝ (sim-raise-ℝ l2 x) (sim-raise-ℝ l1 y) x<y))
For odd n, the nth root operation preserves inequality
module _ (n : ℕ) (odd-n : is-odd-ℕ n) where abstract is-increasing-root-is-odd-exponent-ℝ : {l : Level} → is-increasing-endomap-ℝ (root-is-odd-exponent-ℝ {l} n odd-n) is-increasing-root-is-odd-exponent-ℝ = is-increasing-is-strictly-increasing-endomap-ℝ ( root-is-odd-exponent-ℝ n odd-n) ( is-strictly-increasing-root-is-odd-exponent-ℝ n odd-n) preserves-leq-root-is-odd-exponent-ℝ : {l1 l2 : Level} {x : ℝ l1} {y : ℝ l2} → leq-ℝ x y → leq-ℝ ( root-is-odd-exponent-ℝ n odd-n x) ( root-is-odd-exponent-ℝ n odd-n y) preserves-leq-root-is-odd-exponent-ℝ {l1} {l2} {x} {y} x≤y = preserves-leq-sim-ℝ ( preserves-sim-root-is-odd-exponent-ℝ n odd-n (sim-raise-ℝ' l2 x)) ( preserves-sim-root-is-odd-exponent-ℝ n odd-n (sim-raise-ℝ' l1 y)) ( is-increasing-root-is-odd-exponent-ℝ ( raise-ℝ l2 x) ( raise-ℝ l1 y) ( preserves-leq-sim-ℝ (sim-raise-ℝ l2 x) (sim-raise-ℝ l1 y) x≤y))
For odd n, the nth root of 0 is 0
abstract root-zero-is-odd-exponent-ℝ : (n : ℕ) (odd-n : is-odd-ℕ n) → root-is-odd-exponent-ℝ n odd-n zero-ℝ = zero-ℝ root-zero-is-odd-exponent-ℝ n odd-n = is-injective-power-is-odd-exponent-ℝ ( lzero) ( n) ( odd-n) ( equational-reasoning power-ℝ n (root-is-odd-exponent-ℝ n odd-n zero-ℝ) = zero-ℝ by is-section-root-is-odd-exponent-ℝ n odd-n zero-ℝ = power-ℝ n zero-ℝ by inv (power-nonzero-zero-ℝ (n , is-nonzero-is-odd-ℕ odd-n)))
For odd n, the nth root of 1 is 1
abstract root-one-is-odd-exponent-ℝ : (n : ℕ) (odd-n : is-odd-ℕ n) → root-is-odd-exponent-ℝ n odd-n one-ℝ = one-ℝ root-one-is-odd-exponent-ℝ n odd-n = is-injective-power-is-odd-exponent-ℝ ( lzero) ( n) ( odd-n) ( equational-reasoning power-ℝ n (root-is-odd-exponent-ℝ n odd-n one-ℝ) = one-ℝ by is-section-root-is-odd-exponent-ℝ n odd-n one-ℝ = power-ℝ n one-ℝ by inv (power-one-ℝ n))
For odd n, the nth root of a nonnegative real number is nonnegative
module _ {l : Level} (n : ℕ) (odd-n : is-odd-ℕ n) (x⁰⁺@(x , 0≤x) : ℝ⁰⁺ l) where abstract is-nonnegative-root-is-odd-exponent-real-ℝ⁰⁺ : is-nonnegative-ℝ (root-is-odd-exponent-ℝ n odd-n x) is-nonnegative-root-is-odd-exponent-real-ℝ⁰⁺ = tr ( λ y → leq-ℝ y (root-is-odd-exponent-ℝ n odd-n x)) ( root-zero-is-odd-exponent-ℝ n odd-n) ( preserves-leq-root-is-odd-exponent-ℝ n odd-n 0≤x) root-is-odd-exponent-ℝ⁰⁺ : ℝ⁰⁺ l root-is-odd-exponent-ℝ⁰⁺ = ( root-is-odd-exponent-ℝ n odd-n x , is-nonnegative-root-is-odd-exponent-real-ℝ⁰⁺) module _ {l : Level} (n : ℕ) (odd-n : is-odd-ℕ n) (x⁰⁺@(x , 0≤x) : ℝ⁰⁺ l) where abstract is-section-root-is-odd-exponent-ℝ⁰⁺ : power-ℝ⁰⁺ n (root-is-odd-exponent-ℝ⁰⁺ n odd-n x⁰⁺) = x⁰⁺ is-section-root-is-odd-exponent-ℝ⁰⁺ = eq-ℝ⁰⁺ _ _ (is-section-root-is-odd-exponent-ℝ n odd-n x) is-retraction-root-is-odd-exponent-ℝ⁰⁺ : root-is-odd-exponent-ℝ⁰⁺ n odd-n (power-ℝ⁰⁺ n x⁰⁺) = x⁰⁺ is-retraction-root-is-odd-exponent-ℝ⁰⁺ = eq-ℝ⁰⁺ _ _ (is-retraction-root-is-odd-exponent-ℝ n odd-n x)
See also
Recent changes
- 2026-02-11. Louis Wasserman. Nonzero roots of nonnegative real numbers (#1835).
- 2026-02-07. Louis Wasserman. Odd roots of real numbers (#1739).