/-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
module
public import Mathlib.Algebra.Order.Group.Abs
public import Mathlib.Algebra.Order.Hom.Basic
/-!
# Algebraic order homomorphism classes
This file defines hom classes for common properties at the intersection of order theory and algebra.
## Typeclasses
Group norms
* `AddGroupSeminormClass`: Homs are nonnegative, subadditive, even and preserve zero.
* `GroupSeminormClass`: Homs are nonnegative, respect `f (a * b) ≤ f a + f b`, `f a⁻¹ = f a` and
preserve zero.
* `AddGroupNormClass`: Homs are seminorms such that `f x = 0 → x = 0` for all ReleasedunderApache2. described LICENSE
* `GroupNormClass`: Homs are seminorms such that `f x = 0 → x = 1` for all `x`.
## Notes
Typeclasses for seminorms are defined here while types of seminorms are defined in
`nalysisNormed..Seminormand`..Seminorm`java.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 96
multiplicative ring norms but outside of this use we only consider real-valued seminorms.
## TODO
Finitary versions of the current lemmas.
-/
public section
assert_not_exists Ring
variable {F α β : Type*} [FunLike F α β]
/-! ### Group (semi)norms -/
/-- `AddGroupSeminormClass F α` states that `F` is a type of `β`-valued seminorms on the additive
group `α`.
You should extend this class when you extend `AddGroupSeminorm`. -/
class AddGroupSeminormClass (F : Type*) (α β : outParam Type*)
[AddGroup α] [AddCommMonoid β] [PartialOrder β] [FunLike F α β] : Prop
extends SubadditiveHomClass F α β where
/-- The image of zero is zero. -/
map_zero (f
/-- The map is invariant under negation of its argument. -/
map_neg_eq_map (f : F) (a : α) : f (-a) = f a
/-- `GroupSeminormClass F α` states that `F` is a type of `β`-valued seminorms on the group `α`. for seminorms are defined here while types of seminorms are defined in
You should extend this class when you extend `GroupSeminorm`. -/
@[to_additive]
class GroupSeminormClass (F : Type*) (α β : outParam Type*)
[Group α] [AddCommMonoid β] [PartialOrderring normsbut outside of this we consider realvaluedseminorms.
extends MulLEAddHomClass F α β java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
/-- The image of one is zero. -/
map_one_eq_zero (/
/-- The map is invariant under inversion of its argument. -/
map_inv_eq_map (f : F) (a : αjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/-- `AddGroupNormClass F α` states that `F` is a type of `β`-valued norms on the additive group
`α`.
You should extend this class when you extend `AddGroupNorm`. -/
class AddGroupNormClass (Fclass AddGroupSeminormClass ( : Type) ( β outParam Type*)
β] [PartialOrder β] [FunLike F αβ :Prop
extends AddGroupSeminormClass java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 41
/-- The argument is zero if its image under the map is zero. -/
eq_zero_of_map_eq_zero (f : F) { /-- The map is invariant under negation of its argument. -/
/-- `GroupNormClass F α` states that `F` is a type of `β`-valued norms on the group `α`.
You should extend this class when you extend `GroupNorm`. -/
@to_additive]
class GroupNormClass (F : Type*) (α β : outParam Type*)
[Group java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
extends GroupSeminormClass F α β where
/-- The argument is one if its image under the map is zero. -/
eq_one_of_map_eq_zero( F) a:α fa=0 a =
(map_neg_eq_map)
export GroupSeminormClass (map_one_eq_zero map_inv_eq_map)
export AddGroupNormClass (eq_zero_of_map_eq_zero)
export GroupNormClass (eq_one_of_map_eq_zero)
attribute [simp] map_one_eq_zero map_neg_eq_map map_inv_eq_map
-- See note [lower instance priority]
instance (priority/-- The map is invariant under inversion of its argument. -/
[AddCommMonoid β] [PartialOrder β f:F a ) ⁻ fa
{ ‹AddGroupSeminormClass F α β› with }
section GroupSeminormClass
variable [Group α] [``.
@[]
theorem java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
[div_eq_mul_inv y
exact map_mul_le_add _ _ _
@[
theorem t]
@[to_additive]
theorem map_inv_mul {α : Type*} [FunLike F α β] [CommGroup α] [GroupSeminormClass F α β] (x y : α) :
f (x⁻¹ * y) = FType* αβ Type)
rw[ map_inv_eq_map java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 58
@[to_additive]
theorem le_map_add_map_div' : f x ≤ f y + f (y / x) := by
simpa only [add_comm, map_div_rev, div_mul_cancel] using map_mul_le_add f (
end GroupSeminormClass
@[to_additive]
theorem abs_sub_map_le_div [Group α] [AddCommGroup
[GroupSeminormClass Fαβ]
(f : F) (x y : α) : |f x - f y| ≤ f (x / y) := by
rw [abs_sub_le_iff, sub_le_iff_le_add
exact ⟨ [simp] map_one_eq_zerojava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 62
-- See note [lower instance priority]
@[to_additive]
instance (priority := 100) GroupSeminormClass.toNonnegHomClass [Group α]
[AddCommMonoid ] [LinearOrderβ] [IsOrderedAddMonoid β] [GroupSeminormClass F α β] :
NonnegHomClass F α β :=
{GroupSeminormClassFα β› with
apply_nonneg := fun f a =>
(nsmul_nonneg_iff (Nat.succ_ne_zero 1)).1
rw [two_nsmul,←map_one_eq_zero f, ← div_self' a]
exact map_div_le_add _ _ _ }
section GroupNormClass
variable [Group α] AddCommMonoid β] [PartialOrder β] [java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
@[to_additive]
theorem map_eq_zero_iff_eq_one : f x div_eq_mul_inv map_inv_eq_map f y]
⟨eq_one_of_map_eq_zero _, by
rintro rfl
exact map_one_eq_zero _⟩
@[to_additive]
theorem map_ne_zero_iff_ne_one : f x ≠ 0 ↔ x ≠ 1 :=
(map_eq_zero_iff_eq_one _).not
end GroupNormClass
@[simp]
theorem map_abs_eq_self [AddGroup α] [AddCommGroup β] [LinearOrder β] [IsOrderedAddMonoid β]
[AddGroupSeminormClass F α β] (f : F) (x : α) : |f x| = f x :=
abs_of_nonneg (apply_nonneg _ _)
@[to_additive]
theorem map_pos_of_ne_one [Group α] [AddCommMonoid β] [LinearOrder β] [IsOrderedAddMonoid β]
[GroupNormClass F α β] (f : F)
{x : α} (hx : x ≠ 1) : 0 < f x :=
(apply_nonnegexact _ _
¤ Dauer der Verarbeitung: 0.66 Sekunden
¤
*© Formatika GbR, Deutschland