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.Ring.IsNonarchimedean

19 declarations and 1 deprecated aliases. Mathlib docs · Source

Nonarchimedean functions

A function f : α → R is nonarchimedean if it satisfies the strong triangle inequality f (a + b) ≤ max (f a) (f b) for all a b : α. This file proves basic properties of nonarchimedean functions.

theorem IsNonarchimedean.add_le E1 #

∀ {α : Type u_1} {R : Type u_3} {a b : α} [inst : LinearOrder R] {f : α → R} [inst_1 : Semiring R]
  [IsStrictOrderedRing R] [inst_3 : Add α], (∀ (x : α), 0 ≤ f x) → IsNonarchimedean f → f (a + b) ≤ f a + f b

A nonnegative nonarchimedean function satisfies the triangle inequality.

theorem IsNonarchimedean.nsmul_le E1 #

∀ {α : Type u_1} {R : Type u_3} {a : α} [inst : LinearOrder R] {f : α → R} {n : ℕ} [inst_1 : AddMonoid α],
  IsNonarchimedean f → f 0 ≤ f a → f (n • a) ≤ f a

If f : α → R is nonarchimedean and f 0 ≤ f a, then f (n • a) ≤ f a for every n : ℕ.

theorem IsNonarchimedean.nsmul_le_of_pos E1 #

∀ {α : Type u_1} {R : Type u_3} {a : α} [inst : LinearOrder R] {f : α → R} {n : ℕ} [inst_1 : AddMonoid α],
  IsNonarchimedean f → 0 < n → f (n • a) ≤ f a

If f : α → R is nonarchimedean, then f (n • a) ≤ f a for every positive n : ℕ.

theorem IsNonarchimedean.nmul_le E1 #

∀ {α : Type u_1} {R : Type u_3} {a : α} [inst : LinearOrder R] {f : α → R} {n : ℕ} [inst_1 : NonAssocSemiring α],
  IsNonarchimedean f → f 0 ≤ f a → f (↑n * a) ≤ f a

If f : α → R is nonarchimedean and f 0 ≤ f a, then f (n * a) ≤ f a for every n : ℕ.

theorem IsNonarchimedean.nmul_le_of_pos E1 #

∀ {α : Type u_1} {R : Type u_3} [inst : LinearOrder R] {f : α → R} {n : ℕ} [inst_1 : NonAssocSemiring α],
  IsNonarchimedean f → ∀ (a : α), 0 < n → f (↑n * a) ≤ f a

If f : α → R is nonarchimedean, then f (n * a) ≤ f a for every positive n : ℕ.

theorem IsNonarchimedean.add_eq_right_of_lt E1 #

∀ {α : Type u_1} {R : Type u_3} {a b : α} [inst : LinearOrder R] {f : α → R} [inst_1 : AddGroup α],
  (∀ (a : α), f (-a) = f a) → f a < f b → IsNonarchimedean f → f (a + b) = f b

theorem IsNonarchimedean.add_eq_left_of_lt E1 #

∀ {α : Type u_1} {R : Type u_3} {a b : α} [inst : LinearOrder R] {f : α → R} [inst_1 : AddGroup α],
  (∀ (a : α), f (-a) = f a) → f a < f b → IsNonarchimedean f → f (b + a) = f b

theorem IsNonarchimedean.add_eq_max_of_ne E1 #

∀ {α : Type u_1} {R : Type u_3} {a b : α} [inst : LinearOrder R] {f : α → R} [inst_1 : AddGroup α],
  (∀ (a : α), f (-a) = f a) → IsNonarchimedean f → f a ≠ f b → f (a + b) = max (f a) (f b)

If f : α → R is nonarchimedean and invariant under negation, and f a ≠ f b, then f (a + b) = max (f a) (f b).

theorem IsNonarchimedean.apply_natCast_le_one E1 #

∀ {α : Type u_1} {R : Type u_3} [inst : LinearOrder R] {f : α → R} {n : ℕ} [inst_1 : AddMonoidWithOne α]
  [inst_2 : One R], f 0 ≤ f 1 → f 1 = 1 → IsNonarchimedean f → f ↑n ≤ 1

theorem IsNonarchimedean.apply_intCast_le_one E1 #

∀ {α : Type u_1} {R : Type u_3} [inst : LinearOrder R] {f : α → R} [inst_1 : One R] [inst_2 : AddGroupWithOne α],
  f 0 ≤ f 1 → f 1 = 1 → (∀ (a : α), f (-a) = f a) → IsNonarchimedean f → ∀ {n : ℤ}, f ↑n ≤ 1

If f : α → R is nonarchimedean, maps one to one, is invariant under negation, and f 0 ≤ f 1, then f n ≤ 1 for every n : ℤ.

theorem IsNonarchimedean.multiset_image_add_of_nonempty E1 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : LinearOrder R] {f : α → R} (g : β → α)
  [inst_1 : AddCommMonoid α],
  IsNonarchimedean f → ∀ {s : Multiset β}, s ≠ 0 → ∃ b ∈ s, f (Multiset.map g s).sum ≤ f (g b)

Given a nonarchimedean function α → R, a function g : β → α and a nonempty multiset s : Multiset β, we can always find b : β belonging to s such that f (t.sum g) ≤ f (g b).

theorem IsNonarchimedean.multiset_image_add E1 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : LinearOrder R] {f : α → R} (g : β → α)
  [inst_1 : AddCommMonoid α],
  IsNonarchimedean f →
    ∀ [Nonempty β] (s : Multiset β), (∀ (x : α), f 0 ≤ f x) → ∃ b, (s ≠ 0 → b ∈ s) ∧ f (Multiset.map g s).sum ≤ f (g b)

Given a nonarchimedean function f : α → R such that f 0 is a minimum of f, a function g : β → α, and a multiset s : Multiset β, we can always find b : β, belonging to s if s is nonempty, such that f (s.map g).sum ≤ f (g b).

theorem IsNonarchimedean.multiset_powerset_image_add E1 #

∀ {α : Type u_1} {R : Type u_3} [inst : LinearOrder R] {f : α → R} [inst_1 : AddCommMonoid α],
  IsNonarchimedean f →
    ∀ (n : ℕ) [inst_2 : CommMonoid α] (s : Multiset α),
      ∃ t,
        t.card = s.card - n ∧
          (∀ x ∈ t, x ∈ s) ∧ f (Multiset.map Multiset.prod (Multiset.powersetCard (s.card - n) s)).sum ≤ f t.prod

theorem IsNonarchimedean.apply_sum_le_sup E2 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : LinearOrder R] {f : α → R} {g : β → α}
  [inst_1 : AddCommMonoid α],
  IsNonarchimedean f → ∀ {s : Finset β} (hne : s.Nonempty), f (∑ i ∈ s, g i) ≤ s.sup' hne fun i ↦ f (g i)

Ultrametric inequality with Finset.sum.

theorem IsNonarchimedean.finset_image_add_of_nonempty E1 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : LinearOrder R] {f : α → R} (g : β → α)
  [inst_1 : AddCommMonoid α], IsNonarchimedean f → ∀ {s : Finset β}, s.Nonempty → ∃ b ∈ s, f (s.sum g) ≤ f (g b)

Given a nonarchimedean function α → R, a function g : β → α and a nonempty finset s : Finset β, we can always find b : β belonging to s such that f (s.sum g) ≤ f (g b).

theorem IsNonarchimedean.finset_image_add E1 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : LinearOrder R] {f : α → R} (g : β → α)
  [inst_1 : AddCommMonoid α],
  IsNonarchimedean f →
    ∀ (s : Finset β) [Nonempty β], (∀ (x : α), f 0 ≤ f x) → ∃ i, (s.Nonempty → i ∈ s) ∧ f (s.sum g) ≤ f (g i)

Given a nonarchimedean function f : α → R such that f 0 is a minimum of f, a function g : β → α, and a finset s : Finset β, we can always find b : β, belonging to s if s is nonempty, such that f (s.sum g) ≤ f (g b).

theorem IsNonarchimedean.finset_powerset_image_add E1 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : LinearOrder R] {f : α → R} {n : ℕ} (g : β → α)
  [inst_1 : AddCommMonoid α],
  IsNonarchimedean f →
    ∀ (s : Finset β) [inst_2 : CommMonoid α],
      ∃ u, f (∑ t ∈ Finset.powersetCard (s.card - n) s, ∏ i ∈ t, g i) ≤ f (∏ i ∈ ↑u, g i)

theorem IsNonarchimedean.apply_sum_eq_of_lt E1 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} [inst : LinearOrder R] {f : α → R} (g : β → α) [inst_1 : AddCommGroup α],
  IsNonarchimedean f →
    (∀ (a : α), f (-a) = f a) →
      ∀ {s : Finset β} {k : β}, k ∈ s → (∀ j ∈ s, j ≠ k → f (g j) < f (g k)) → f (∑ i ∈ s, g i) = f (g k)

theorem IsNonarchimedean.add_pow_le E1 #

∀ {α : Type u_1} {R : Type u_3} (a b : α) [inst : LinearOrder R] {f : α → R} (n : ℕ) [inst_1 : Mul R]
  [inst_2 : CommSemiring α],
  (∀ (x y : α), f (x * y) ≤ f x * f y) → IsNonarchimedean f → ∃ m < n + 1, f ((a + b) ^ n) ≤ f (a ^ m) * f (b ^ (n - m))

If f is a submultiplicative, nonarchimedean function on a commutative semiring α, then for n : ℕ and a b : α we can find m : ℕ such that m ≤ n and f ((a + b) ^ n) ≤ (f (a ^ m)) * (f (b ^ (n - m))).

Deprecated aliases

NameNew nameSince
IsNonarchimedean.add_eq_max_of_ne'IsNonarchimedean.add_eq_max_of_ne2026-08-16