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.AbsoluteValue.Basic

90 declarations. Mathlib docs · Source

Absolute values

This file defines a bundled type of absolute values AbsoluteValue R S.

Main definitions

  • AbsoluteValue R S is the type of absolute values on R mapping to S.
  • AbsoluteValue.abs is the "standard" absolute value on S, mapping negative x to -x.
  • AbsoluteValue.toMonoidWithZeroHom: absolute values mapping to a linear ordered field preserve 0, * and 1
  • IsAbsoluteValue: a type class stating that f : β → α satisfies the axioms of an absolute value

theorem AbsoluteValue.mk.injEq E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S] (toMulHom : R →ₙ* S)
  (nonneg' : ∀ (x : R), 0 ≤ toMulHom.toFun x) (eq_zero' : ∀ (x : R), toMulHom.toFun x = 0 ↔ x = 0)
  (add_le' : ∀ (x y : R), toMulHom.toFun (x + y) ≤ toMulHom.toFun x + toMulHom.toFun y) (toMulHom_1 : R →ₙ* S)
  (nonneg'_1 : ∀ (x : R), 0 ≤ toMulHom_1.toFun x) (eq_zero'_1 : ∀ (x : R), toMulHom_1.toFun x = 0 ↔ x = 0)
  (add_le'_1 : ∀ (x y : R), toMulHom_1.toFun (x + y) ≤ toMulHom_1.toFun x + toMulHom_1.toFun y),
  ({ toMulHom := toMulHom, nonneg' := nonneg', eq_zero' := eq_zero', add_le' := add_le' } =
      { toMulHom := toMulHom_1, nonneg' := nonneg'_1, eq_zero' := eq_zero'_1, add_le' := add_le'_1 }) =
    (toMulHom = toMulHom_1)

def AbsoluteValue.ctorIdx E1 #

{R : Type u_4} →
  {S : Type u_5} → {inst : Semiring R} → {inst_1 : Semiring S} → {inst_2 : PartialOrder S} → AbsoluteValue R S → ℕ

theorem AbsoluteValue.mk.inj E1 #

∀ {R : Type u_4} {S : Type u_5} {inst : Semiring R} {inst_1 : Semiring S} {inst_2 : PartialOrder S} {toMulHom : R →ₙ* S}
  {nonneg' : ∀ (x : R), 0 ≤ toMulHom.toFun x} {eq_zero' : ∀ (x : R), toMulHom.toFun x = 0 ↔ x = 0}
  {add_le' : ∀ (x y : R), toMulHom.toFun (x + y) ≤ toMulHom.toFun x + toMulHom.toFun y} {toMulHom_1 : R →ₙ* S}
  {nonneg'_1 : ∀ (x : R), 0 ≤ toMulHom_1.toFun x} {eq_zero'_1 : ∀ (x : R), toMulHom_1.toFun x = 0 ↔ x = 0}
  {add_le'_1 : ∀ (x y : R), toMulHom_1.toFun (x + y) ≤ toMulHom_1.toFun x + toMulHom_1.toFun y},
  { toMulHom := toMulHom, nonneg' := nonneg', eq_zero' := eq_zero', add_le' := add_le' } =
      { toMulHom := toMulHom_1, nonneg' := nonneg'_1, eq_zero' := eq_zero'_1, add_le' := add_le'_1 } →
    toMulHom = toMulHom_1

theorem AbsoluteValue.trivial.congr_simp E1 #

∀ {R : Type u_4} [inst : Semiring R] [inst_1 : DecidablePred fun x ↦ x = 0] [inst_2 : NoZeroDivisors R] {S : Type u_5}
  [inst_3 : Semiring S] [inst_4 : PartialOrder S] [inst_5 : IsOrderedRing S] [inst_6 : Nontrivial S],
  AbsoluteValue.trivial = AbsoluteValue.trivial

structure AbsoluteValue E1 #

(R : Type u_4) → (S : Type u_5) → [Semiring R] → [Semiring S] → [PartialOrder S] → Type (max u_4 u_5)

AbsoluteValue R S is the type of absolute values on R mapping to S: the maps that preserve *, are nonnegative, positive definite and satisfy the triangle inequality.

abbrev AbsoluteValue.toMulHom E1 #

{R : Type u_4} →
  {S : Type u_5} → [inst : Semiring R] → [inst_1 : Semiring S] → [inst_2 : PartialOrder S] → AbsoluteValue R S → R →ₙ* S

ctor AbsoluteValue.mk E0 #

{R : Type u_4} →
  {S : Type u_5} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        [inst_2 : PartialOrder S] →
          (toMulHom : R →ₙ* S) →
            (∀ (x : R), 0 ≤ toMulHom.toFun x) →
              (∀ (x : R), toMulHom.toFun x = 0 ↔ x = 0) →
                (∀ (x y : R), toMulHom.toFun (x + y) ≤ toMulHom.toFun x + toMulHom.toFun y) → AbsoluteValue R S

theorem AbsoluteValue.nonneg' E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (self : AbsoluteValue R S) (x : R), 0 ≤ self.toFun x

The absolute value is nonnegative

theorem AbsoluteValue.add_le' E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (self : AbsoluteValue R S) (x y : R), self.toFun (x + y) ≤ self.toFun x + self.toFun y

The absolute value satisfies the triangle inequality

instance AbsoluteValue.funLike E0 #

{R : Type u_4} →
  {S : Type u_5} →
    [inst : Semiring R] → [inst_1 : Semiring S] → [inst_2 : PartialOrder S] → FunLike (AbsoluteValue R S) R S

instance AbsoluteValue.zeroHomClass E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S],
  ZeroHomClass (AbsoluteValue R S) R S

instance AbsoluteValue.mulHomClass E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S],
  MulHomClass (AbsoluteValue R S) R S

instance AbsoluteValue.nonnegHomClass E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S],
  NonnegHomClass (AbsoluteValue R S) R S

instance AbsoluteValue.subadditiveHomClass E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S],
  SubadditiveHomClass (AbsoluteValue R S) R S

theorem AbsoluteValue.coe_mk E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S] (f : R →ₙ* S)
  {h₁ : ∀ (x : R), 0 ≤ f.toFun x} {h₂ : ∀ (x : R), f.toFun x = 0 ↔ x = 0}
  {h₃ : ∀ (x y : R), f.toFun (x + y) ≤ f.toFun x + f.toFun y},
  ⇑{ toMulHom := f, nonneg' := h₁, eq_zero' := h₂, add_le' := h₃ } = ⇑f

theorem AbsoluteValue.ext E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  ⦃f g : AbsoluteValue R S⦄, (∀ (x : R), f x = g x) → f = g

theorem AbsoluteValue.ext_iff E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  {f g : AbsoluteValue R S}, f = g ↔ ∀ (x : R), f x = g x

def AbsoluteValue.Simps.apply E1 #

{R : Type u_4} →
  {S : Type u_5} → [inst : Semiring R] → [inst_1 : Semiring S] → [inst_2 : PartialOrder S] → AbsoluteValue R S → R → S

See Note [custom simps projection].

theorem AbsoluteValue.coe_toMulHom E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S), ⇑abv.toMulHom = ⇑abv

theorem AbsoluteValue.nonneg E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) (x : R), 0 ≤ abv x

theorem AbsoluteValue.add_le E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) (x y : R), abv (x + y) ≤ abv x + abv y

theorem AbsoluteValue.listSum_le E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) [AddLeftMono S] (l : List R), abv l.sum ≤ (List.map (⇑abv) l).sum

The triangle inequality for an AbsoluteValue applied to a list.

theorem AbsoluteValue.map_mul E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) (x y : R), abv (x * y) = abv x * abv y

theorem AbsoluteValue.ne_zero_iff E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) {x : R}, abv x ≠ 0 ↔ x ≠ 0

theorem AbsoluteValue.ne_zero E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) {x : R}, x ≠ 0 → abv x ≠ 0

Alias of the reverse direction of AbsoluteValue.ne_zero_iff.

theorem AbsoluteValue.pos_iff E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) {x : R}, 0 < abv x ↔ x ≠ 0

theorem AbsoluteValue.pos E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) {x : R}, x ≠ 0 → 0 < abv x

Alias of the reverse direction of AbsoluteValue.pos_iff.

theorem AbsoluteValue.nonpos_iff E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) {x : R}, abv x ≤ 0 ↔ x = 0

theorem AbsoluteValue.map_one_of_isLeftRegular E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S), IsLeftRegular (abv 1) → abv 1 = 1

theorem AbsoluteValue.map_zero E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S), abv 0 = 0

theorem AbsoluteValue.sub_le E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Ring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) (a b c : R), abv (a - c) ≤ abv (a - b) + abv (b - c)

theorem AbsoluteValue.map_sub_eq_zero_iff E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Ring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) (a b : R), abv (a - b) = 0 ↔ a = b

theorem AbsoluteValue.map_one E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) [IsDomain S] [Nontrivial R], abv 1 = 1

instance AbsoluteValue.monoidWithZeroHomClass E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S] [IsDomain S]
  [Nontrivial R], MonoidWithZeroHomClass (AbsoluteValue R S) R S

def AbsoluteValue.toMonoidWithZeroHom E3 #

{R : Type u_4} →
  {S : Type u_5} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] → [inst_2 : PartialOrder S] → AbsoluteValue R S → [IsDomain S] → [Nontrivial R] → R →*₀ S

Absolute values from a nontrivial R to a linear ordered ring preserve *, 0 and 1.

instance AbsoluteValue.instCoeMonoidWithZeroHom E0 #

{R : Type u_4} →
  {S : Type u_5} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        [inst_2 : PartialOrder S] → [IsDomain S] → [Nontrivial R] → Coe (AbsoluteValue R S) (R →*₀ S)

theorem AbsoluteValue.coe_toMonoidWithZeroHom E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) [inst_3 : IsDomain S] [inst_4 : Nontrivial R], ⇑↑abv = ⇑abv

def AbsoluteValue.toMonoidHom E1 #

{R : Type u_4} →
  {S : Type u_5} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] → [inst_2 : PartialOrder S] → AbsoluteValue R S → [IsDomain S] → [Nontrivial R] → R →* S

Absolute values from a nontrivial R to a linear ordered ring preserve * and 1.

theorem AbsoluteValue.coe_toMonoidHom E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) [inst_3 : IsDomain S] [inst_4 : Nontrivial R], ⇑abv.toMonoidHom = ⇑abv

theorem AbsoluteValue.map_pow E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) [IsDomain S] [Nontrivial R] (a : R) (n : ℕ), abv (a ^ n) = abv a ^ n

theorem AbsoluteValue.apply_nat_le_self E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (abv : AbsoluteValue R S) [IsDomain S] [IsOrderedRing S] (n : ℕ), abv ↑n ≤ ↑n

An absolute value satisfies f (n : R) ≤ n for every n : ℕ.

theorem AbsoluteValue.le_sub E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Ring R] [inst_1 : Ring S] [inst_2 : PartialOrder S] [IsOrderedRing S]
  (abv : AbsoluteValue R S) (a b : R), abv a - abv b ≤ abv (a - b)

theorem AbsoluteValue.map_neg E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [inst_3 : Ring R]
  (abv : AbsoluteValue R S) [NoZeroDivisors S] (a : R), abv (-a) = abv a

theorem AbsoluteValue.map_sub E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [inst_3 : Ring R]
  (abv : AbsoluteValue R S) [NoZeroDivisors S] (a b : R), abv (a - b) = abv (b - a)

theorem AbsoluteValue.le_add E1 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [inst_3 : Ring R]
  (abv : AbsoluteValue R S) [NoZeroDivisors S] (a b : R), abv a - abv b ≤ abv (a + b)

Bound abv (a + b) from below

theorem AbsoluteValue.sub_le_add E1 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [inst_3 : Ring R]
  (abv : AbsoluteValue R S) [NoZeroDivisors S] (a b : R), abv (a - b) ≤ abv a + abv b

Bound abv (a - b) from above

instance AbsoluteValue.addGroupSeminormClass E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [inst_3 : Ring R]
  [NoZeroDivisors S], AddGroupSeminormClass (AbsoluteValue R S) R S

instance AbsoluteValue.instMulRingNormClassOfNontrivialOfIsDomain E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [inst_3 : Ring R]
  [NoZeroDivisors S] [Nontrivial R] [IsDomain S], MulRingNormClass (AbsoluteValue R S) R S

theorem AbsoluteValue.apply_natAbs_eq E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [inst_3 : Ring R]
  (abv : AbsoluteValue R S) [NoZeroDivisors S] (x : ℤ), abv ↑x.natAbs = abv ↑x

def AbsoluteValue.abs E3 #

{S : Type u_4} → [inst : Ring S] → [inst_1 : LinearOrder S] → [IsStrictOrderedRing S] → AbsoluteValue S S

AbsoluteValue.abs is abs as a bundled AbsoluteValue.

theorem AbsoluteValue.abs_apply E0 #

∀ {S : Type u_4} [inst : Ring S] [inst_1 : LinearOrder S] [inst_2 : IsStrictOrderedRing S] (a : S),
  AbsoluteValue.abs a = |a|

instance AbsoluteValue.instInhabited E0 #

{S : Type u_4} → [inst : Ring S] → [inst_1 : LinearOrder S] → [IsStrictOrderedRing S] → Inhabited (AbsoluteValue S S)

theorem AbsoluteValue.abs_abv_sub_le_abv_sub E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : Ring R] [inst_1 : CommRing S] [inst_2 : LinearOrder S] [IsStrictOrderedRing S]
  (abv : AbsoluteValue R S) (a b : R), |abv a - abv b| ≤ abv (a - b)

def AbsoluteValue.trivial E1 #

{R : Type u_4} →
  [inst : Semiring R] →
    [DecidablePred fun x ↦ x = 0] →
      [NoZeroDivisors R] →
        {S : Type u_5} →
          [inst_3 : Semiring S] → [inst_4 : PartialOrder S] → [IsOrderedRing S] → [Nontrivial S] → AbsoluteValue R S

The trivial absolute value takes the value 1 on all nonzero elements.

theorem AbsoluteValue.trivial_apply E0 #

∀ {R : Type u_4} [inst : Semiring R] [inst_1 : DecidablePred fun x ↦ x = 0] [inst_2 : NoZeroDivisors R] {S : Type u_5}
  [inst_3 : Semiring S] [inst_4 : PartialOrder S] [inst_5 : IsOrderedRing S] [inst_6 : Nontrivial S] {x : R},
  x ≠ 0 → AbsoluteValue.trivial x = 1

def AbsoluteValue.IsNontrivial E1 #

{R : Type u_4} →
  [inst : Semiring R] → {S : Type u_5} → [inst_1 : Semiring S] → [inst_2 : PartialOrder S] → AbsoluteValue R S → Prop

An absolute value on a semiring R without zero divisors is nontrivial if it takes a value ≠ 1 on a nonzero element.

This has the advantage over v ≠ .trivial that it does not require decidability of · = 0 in R.

theorem AbsoluteValue.isNontrivial_iff_ne_trivial E1 #

∀ {R : Type u_4} [inst : Semiring R] {S : Type u_5} [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  [inst_3 : IsOrderedRing S] [inst_4 : DecidablePred fun x ↦ x = 0] [inst_5 : NoZeroDivisors R] [inst_6 : Nontrivial S]
  (v : AbsoluteValue R S), v.IsNontrivial ↔ v ≠ AbsoluteValue.trivial

theorem AbsoluteValue.not_isNontrivial_iff E0 #

∀ {R : Type u_4} [inst : Semiring R] {S : Type u_5} [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  (v : AbsoluteValue R S), ¬v.IsNontrivial ↔ ∀ (x : R), x ≠ 0 → v x = 1

theorem AbsoluteValue.not_isNontrivial_apply E0 #

∀ {R : Type u_4} [inst : Semiring R] {S : Type u_5} [inst_1 : Semiring S] [inst_2 : PartialOrder S]
  {v : AbsoluteValue R S}, ¬v.IsNontrivial → ∀ {x : R}, x ≠ 0 → v x = 1

theorem AbsoluteValue.IsNontrivial.exists_abv_gt_one E1 #

∀ {R : Type u_2} {S : Type u_3} [inst : Field R] [inst_1 : Semifield S] [inst_2 : LinearOrder S] [IsStrictOrderedRing S]
  [ExistsAddOfLE S] {v : AbsoluteValue R S}, v.IsNontrivial → ∃ x, 1 < v x

theorem AbsoluteValue.IsNontrivial.exists_abv_lt_one E1 #

∀ {R : Type u_2} {S : Type u_3} [inst : Field R] [inst_1 : Semifield S] [inst_2 : LinearOrder S] [IsStrictOrderedRing S]
  [ExistsAddOfLE S] {v : AbsoluteValue R S}, v.IsNontrivial → ∃ x, x ≠ 0 ∧ v x < 1

class IsAbsoluteValue E3 #

{S : Type u_4} → [Semiring S] → [PartialOrder S] → {R : Type u_5} → [Semiring R] → (R → S) → Prop

A function f is an absolute value if it is nonnegative, zero only at 0, additive, and multiplicative.

See also the type AbsoluteValue which represents a bundled version of absolute values.

ctor IsAbsoluteValue.mk E0 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] {f : R → S},
  (∀ (x : R), 0 ≤ f x) →
    (∀ {x : R}, f x = 0 ↔ x = 0) →
      (∀ (x y : R), f (x + y) ≤ f x + f y) → (∀ (x y : R), f (x * y) = f x * f y) → IsAbsoluteValue f

theorem IsAbsoluteValue.abv_nonneg' E1 #

∀ {S : Type u_4} {inst : Semiring S} {inst_1 : PartialOrder S} {R : Type u_5} {inst_2 : Semiring R} {f : R → S}
  [self : IsAbsoluteValue f] (x : R), 0 ≤ f x

The absolute value is nonnegative

theorem IsAbsoluteValue.abv_eq_zero' E1 #

∀ {S : Type u_4} {inst : Semiring S} {inst_1 : PartialOrder S} {R : Type u_5} {inst_2 : Semiring R} {f : R → S}
  [self : IsAbsoluteValue f] {x : R}, f x = 0 ↔ x = 0

The absolute value is positive definitive

theorem IsAbsoluteValue.abv_add' E1 #

∀ {S : Type u_4} {inst : Semiring S} {inst_1 : PartialOrder S} {R : Type u_5} {inst_2 : Semiring R} {f : R → S}
  [self : IsAbsoluteValue f] (x y : R), f (x + y) ≤ f x + f y

The absolute value satisfies the triangle inequality

theorem IsAbsoluteValue.abv_mul' E1 #

∀ {S : Type u_4} {inst : Semiring S} {inst_1 : PartialOrder S} {R : Type u_5} {inst_2 : Semiring R} {f : R → S}
  [self : IsAbsoluteValue f] (x y : R), f (x * y) = f x * f y

The absolute value is multiplicative

theorem IsAbsoluteValue.abv_nonneg E1 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] (abv : R → S)
  [IsAbsoluteValue abv] (x : R), 0 ≤ abv x

def IsAbsoluteValue.Mathlib.Meta.Positivity.evalAbv E1 #

Mathlib.Meta.Positivity.PositivityExt

The positivity extension which identifies expressions of the form abv a. For performance reasons, we only attempt to apply this when abv is a variable. If it is an explicit function, e.g. |_| or ‖_‖, another extension should apply.

theorem IsAbsoluteValue.abv_eq_zero E1 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] (abv : R → S)
  [IsAbsoluteValue abv] {x : R}, abv x = 0 ↔ x = 0

theorem IsAbsoluteValue.abv_add E1 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] (abv : R → S)
  [IsAbsoluteValue abv] (x y : R), abv (x + y) ≤ abv x + abv y

theorem IsAbsoluteValue.abv_mul E1 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] (abv : R → S)
  [IsAbsoluteValue abv] (x y : R), abv (x * y) = abv x * abv y

instance AbsoluteValue.isAbsoluteValue E0 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R]
  (abv : AbsoluteValue R S), IsAbsoluteValue ⇑abv

A bundled absolute value is an absolute value.

def IsAbsoluteValue.toAbsoluteValue E1 #

{S : Type u_4} →
  [inst : Semiring S] →
    [inst_1 : PartialOrder S] →
      {R : Type u_5} → [inst_2 : Semiring R] → (abv : R → S) → [IsAbsoluteValue abv] → AbsoluteValue R S

Convert an unbundled IsAbsoluteValue to a bundled AbsoluteValue.

theorem IsAbsoluteValue.toAbsoluteValue_apply E0 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] (abv : R → S)
  [inst_3 : IsAbsoluteValue abv] (a : R), (IsAbsoluteValue.toAbsoluteValue abv) a = abv a

theorem IsAbsoluteValue.abv_zero E1 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] (abv : R → S)
  [IsAbsoluteValue abv], abv 0 = 0

theorem IsAbsoluteValue.abv_pos E1 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] (abv : R → S)
  [IsAbsoluteValue abv] {a : R}, 0 < abv a ↔ a ≠ 0

instance IsAbsoluteValue.abs_isAbsoluteValue E0 #

∀ {S : Type u_4} [inst : Ring S] [inst_1 : LinearOrder S] [IsStrictOrderedRing S], IsAbsoluteValue abs

theorem IsAbsoluteValue.abv_one E1 #

∀ {S : Type u_4} [inst : Ring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] (abv : R → S)
  [IsAbsoluteValue abv] [IsDomain S] [Nontrivial R], abv 1 = 1

def IsAbsoluteValue.abvHom E1 #

{S : Type u_4} →
  [inst : Ring S] →
    [inst_1 : PartialOrder S] →
      {R : Type u_5} →
        [inst_2 : Semiring R] → (abv : R → S) → [IsAbsoluteValue abv] → [IsDomain S] → [Nontrivial R] → R →*₀ S

abv as a MonoidWithZeroHom.

theorem IsAbsoluteValue.abv_pow E1 #

∀ {S : Type u_4} [inst : Ring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Semiring R] [IsDomain S]
  [Nontrivial R] (abv : R → S) [IsAbsoluteValue abv] (a : R) (n : ℕ), abv (a ^ n) = abv a ^ n

theorem IsAbsoluteValue.abv_sub_le E1 #

∀ {S : Type u_4} [inst : Ring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Ring R] (abv : R → S)
  [IsAbsoluteValue abv] (a b c : R), abv (a - c) ≤ abv (a - b) + abv (b - c)

theorem IsAbsoluteValue.sub_abv_le_abv_sub E1 #

∀ {S : Type u_4} [inst : Ring S] [inst_1 : PartialOrder S] {R : Type u_5} [inst_2 : Ring R] (abv : R → S)
  [IsAbsoluteValue abv] [IsOrderedRing S] (a b : R), abv a - abv b ≤ abv (a - b)

theorem IsAbsoluteValue.abv_neg E1 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [NoZeroDivisors S]
  [inst_4 : Ring R] (abv : R → S) [IsAbsoluteValue abv] (a : R), abv (-a) = abv a

theorem IsAbsoluteValue.abv_sub E1 #

∀ {R : Type u_2} {S : Type u_3} [inst : CommRing S] [inst_1 : PartialOrder S] [IsOrderedRing S] [NoZeroDivisors S]
  [inst_4 : Ring R] (abv : R → S) [IsAbsoluteValue abv] (a b : R), abv (a - b) = abv (b - a)

theorem IsAbsoluteValue.abs_abv_sub_le_abv_sub E1 #

∀ {S : Type u_4} [inst : CommRing S] [inst_1 : LinearOrder S] [IsStrictOrderedRing S] {R : Type u_5} [inst_3 : Ring R]
  (abv : R → S) [IsAbsoluteValue abv] (a b : R), |abv a - abv b| ≤ abv (a - b)

theorem IsAbsoluteValue.abv_one' E1 #

∀ {S : Type u_4} [inst : Semiring S] [inst_1 : PartialOrder S] [IsCancelMulZero S] {R : Type u_5} [inst_3 : Semiring R]
  [Nontrivial R] (abv : R → S) [IsAbsoluteValue abv], abv 1 = 1

def IsAbsoluteValue.abvHom' E1 #

{S : Type u_4} →
  [inst : Semiring S] →
    [inst_1 : PartialOrder S] →
      [IsCancelMulZero S] →
        {R : Type u_5} → [inst_3 : Semiring R] → [Nontrivial R] → (abv : R → S) → [IsAbsoluteValue abv] → R →*₀ S

An absolute value as a monoid with zero homomorphism, assuming the target is a semifield.

theorem IsAbsoluteValue.abv_inv E1 #

∀ {S : Type u_4} [inst : Semifield S] [inst_1 : LinearOrder S] {R : Type u_5} [inst_2 : DivisionSemiring R]
  (abv : R → S) [IsAbsoluteValue abv] (a : R), abv a⁻¹ = (abv a)⁻¹

theorem IsAbsoluteValue.abv_div E1 #

∀ {S : Type u_4} [inst : Semifield S] [inst_1 : LinearOrder S] {R : Type u_5} [inst_2 : DivisionSemiring R]
  (abv : R → S) [IsAbsoluteValue abv] (a b : R), abv (a / b) = abv a / abv b