analysis.normed.order.basic
⟷
Mathlib.Analysis.Normed.Order.Basic
The following section lists changes to this file in mathlib3 and mathlib4 that occured after the initial port. Most recent changes are shown first. Hovering over a commit will show all commits associated with the same mathlib3 commit.
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(no changes)
(last sync)
mathlib commit https://github.com/leanprover-community/mathlib/commit/ce64cd319bb6b3e82f31c2d38e79080d377be451
@@ -3,8 +3,8 @@ Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Yaël Dillies
-/
-import Mathbin.Algebra.Order.Group.TypeTags
-import Mathbin.Analysis.NormedSpace.Basic
+import Algebra.Order.Group.TypeTags
+import Analysis.NormedSpace.Basic
#align_import analysis.normed.order.basic from "leanprover-community/mathlib"@"814d76e2247d5ba8bc024843552da1278bfe9e5c"
mathlib commit https://github.com/leanprover-community/mathlib/commit/32a7e535287f9c73f2e4d2aef306a39190f0b504
@@ -116,7 +116,7 @@ instance [NormedOrderedGroup α] : NormedOrderedGroup αᵒᵈ :=
@[to_additive]
instance [NormedLinearOrderedGroup α] : NormedLinearOrderedGroup αᵒᵈ :=
- { OrderDual.normedOrderedGroup, OrderDual.linearOrder _ with }
+ { OrderDual.normedOrderedGroup, OrderDual.instLinearOrder _ with }
instance [NormedOrderedGroup α] : NormedOrderedAddGroup (Additive α) :=
{ Additive.normedAddCommGroup with }
mathlib commit https://github.com/leanprover-community/mathlib/commit/8ea5598db6caeddde6cb734aa179cc2408dbd345
@@ -2,15 +2,12 @@
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Yaël Dillies
-
-! This file was ported from Lean 3 source module analysis.normed.order.basic
-! leanprover-community/mathlib commit 814d76e2247d5ba8bc024843552da1278bfe9e5c
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
-/
import Mathbin.Algebra.Order.Group.TypeTags
import Mathbin.Analysis.NormedSpace.Basic
+#align_import analysis.normed.order.basic from "leanprover-community/mathlib"@"814d76e2247d5ba8bc024843552da1278bfe9e5c"
+
/-!
# Ordered normed spaces
mathlib commit https://github.com/leanprover-community/mathlib/commit/cca40788df1b8755d5baf17ab2f27dacc2e17acb
@@ -53,7 +53,7 @@ class NormedOrderedGroup (α : Type _) extends OrderedCommGroup α, Norm α, Met
and a `linear_ordered_add_comm_group`. This class is necessary to avoid diamonds caused by both
classes carrying their own group structure. -/
class NormedLinearOrderedAddGroup (α : Type _) extends LinearOrderedAddCommGroup α, Norm α,
- MetricSpace α where
+ MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by obviously
#align normed_linear_ordered_add_group NormedLinearOrderedAddGroup
-/
@@ -64,7 +64,7 @@ class NormedLinearOrderedAddGroup (α : Type _) extends LinearOrderedAddCommGrou
carrying their own group structure. -/
@[to_additive]
class NormedLinearOrderedGroup (α : Type _) extends LinearOrderedCommGroup α, Norm α,
- MetricSpace α where
+ MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x / y‖ := by obviously
#align normed_linear_ordered_group NormedLinearOrderedGroup
#align normed_linear_ordered_add_group NormedLinearOrderedAddGroup
@@ -74,7 +74,7 @@ class NormedLinearOrderedGroup (α : Type _) extends LinearOrderedCommGroup α,
/-- A `normed_linear_ordered_field` is a field that is both a `normed_field` and a
`linear_ordered_field`. This class is necessary to avoid diamonds. -/
class NormedLinearOrderedField (α : Type _) extends LinearOrderedField α, Norm α,
- MetricSpace α where
+ MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by obviously
norm_mul' : ∀ x y : α, ‖x * y‖ = ‖x‖ * ‖y‖
#align normed_linear_ordered_field NormedLinearOrderedField
mathlib commit https://github.com/leanprover-community/mathlib/commit/917c3c072e487b3cccdbfeff17e75b40e45f66cb
@@ -24,7 +24,7 @@ These are mostly useful to avoid diamonds during type class inference.
open Filter Set
-open Topology
+open scoped Topology
variable {α : Type _}
mathlib commit https://github.com/leanprover-community/mathlib/commit/347636a7a80595d55bedf6e6fbd996a3c39da69a
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Yaël Dillies
! This file was ported from Lean 3 source module analysis.normed.order.basic
-! leanprover-community/mathlib commit f2ce6086713c78a7f880485f7917ea547a215982
+! leanprover-community/mathlib commit 814d76e2247d5ba8bc024843552da1278bfe9e5c
! Please do not edit these lines, except to modify the commit id
! if you have ported upstream changes.
-/
@@ -14,6 +14,9 @@ import Mathbin.Analysis.NormedSpace.Basic
/-!
# Ordered normed spaces
+> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
+> Any changes to this file require a corresponding PR to mathlib4.
+
In this file, we define classes for fields and groups that are both normed and ordered.
These are mostly useful to avoid diamonds during type class inference.
-/
mathlib commit https://github.com/leanprover-community/mathlib/commit/c9236f47f5b9df573443aa499c0d3968769628b7
@@ -25,13 +25,16 @@ open Topology
variable {α : Type _}
+#print NormedOrderedAddGroup /-
/-- A `normed_ordered_add_group` is an additive group that is both a `normed_add_comm_group` and an
`ordered_add_comm_group`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
class NormedOrderedAddGroup (α : Type _) extends OrderedAddCommGroup α, Norm α, MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by obviously
#align normed_ordered_add_group NormedOrderedAddGroup
+-/
+#print NormedOrderedGroup /-
/-- A `normed_ordered_group` is a group that is both a `normed_comm_group` and an
`ordered_comm_group`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
@@ -40,7 +43,9 @@ class NormedOrderedGroup (α : Type _) extends OrderedCommGroup α, Norm α, Met
dist_eq : ∀ x y, dist x y = ‖x / y‖ := by obviously
#align normed_ordered_group NormedOrderedGroup
#align normed_ordered_add_group NormedOrderedAddGroup
+-/
+#print NormedLinearOrderedAddGroup /-
/-- A `normed_linear_ordered_add_group` is an additive group that is both a `normed_add_comm_group`
and a `linear_ordered_add_comm_group`. This class is necessary to avoid diamonds caused by both
classes carrying their own group structure. -/
@@ -48,7 +53,9 @@ class NormedLinearOrderedAddGroup (α : Type _) extends LinearOrderedAddCommGrou
MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by obviously
#align normed_linear_ordered_add_group NormedLinearOrderedAddGroup
+-/
+#print NormedLinearOrderedGroup /-
/-- A `normed_linear_ordered_group` is a group that is both a `normed_comm_group` and a
`linear_ordered_comm_group`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
@@ -58,7 +65,9 @@ class NormedLinearOrderedGroup (α : Type _) extends LinearOrderedCommGroup α,
dist_eq : ∀ x y, dist x y = ‖x / y‖ := by obviously
#align normed_linear_ordered_group NormedLinearOrderedGroup
#align normed_linear_ordered_add_group NormedLinearOrderedAddGroup
+-/
+#print NormedLinearOrderedField /-
/-- A `normed_linear_ordered_field` is a field that is both a `normed_field` and a
`linear_ordered_field`. This class is necessary to avoid diamonds. -/
class NormedLinearOrderedField (α : Type _) extends LinearOrderedField α, Norm α,
@@ -66,27 +75,34 @@ class NormedLinearOrderedField (α : Type _) extends LinearOrderedField α, Norm
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by obviously
norm_mul' : ∀ x y : α, ‖x * y‖ = ‖x‖ * ‖y‖
#align normed_linear_ordered_field NormedLinearOrderedField
+-/
+#print NormedOrderedGroup.toNormedCommGroup /-
@[to_additive]
instance (priority := 100) NormedOrderedGroup.toNormedCommGroup [NormedOrderedGroup α] :
NormedCommGroup α :=
⟨NormedOrderedGroup.dist_eq⟩
#align normed_ordered_group.to_normed_comm_group NormedOrderedGroup.toNormedCommGroup
#align normed_ordered_add_group.to_normed_add_comm_group NormedOrderedAddGroup.toNormedAddCommGroup
+-/
+#print NormedLinearOrderedGroup.toNormedOrderedGroup /-
@[to_additive]
instance (priority := 100) NormedLinearOrderedGroup.toNormedOrderedGroup
[NormedLinearOrderedGroup α] : NormedOrderedGroup α :=
⟨NormedLinearOrderedGroup.dist_eq⟩
#align normed_linear_ordered_group.to_normed_ordered_group NormedLinearOrderedGroup.toNormedOrderedGroup
#align normed_linear_ordered_add_group.to_normed_ordered_add_group NormedLinearOrderedAddGroup.toNormedOrderedAddGroup
+-/
+#print NormedLinearOrderedField.toNormedField /-
instance (priority := 100) NormedLinearOrderedField.toNormedField (α : Type _)
[NormedLinearOrderedField α] : NormedField α
where
dist_eq := NormedLinearOrderedField.dist_eq
norm_mul' := NormedLinearOrderedField.norm_mul'
#align normed_linear_ordered_field.to_normed_field NormedLinearOrderedField.toNormedField
+-/
instance : NormedLinearOrderedField ℚ :=
⟨dist_eq_norm, norm_mul⟩
mathlib commit https://github.com/leanprover-community/mathlib/commit/21e3562c5e12d846c7def5eff8cdbc520d7d4936
@@ -28,8 +28,7 @@ variable {α : Type _}
/-- A `normed_ordered_add_group` is an additive group that is both a `normed_add_comm_group` and an
`ordered_add_comm_group`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
-class NormedOrderedAddGroup (α : Type _) extends OrderedAddCommGroup α, HasNorm α,
- MetricSpace α where
+class NormedOrderedAddGroup (α : Type _) extends OrderedAddCommGroup α, Norm α, MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by obviously
#align normed_ordered_add_group NormedOrderedAddGroup
@@ -37,7 +36,7 @@ class NormedOrderedAddGroup (α : Type _) extends OrderedAddCommGroup α, HasNor
`ordered_comm_group`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
@[to_additive]
-class NormedOrderedGroup (α : Type _) extends OrderedCommGroup α, HasNorm α, MetricSpace α where
+class NormedOrderedGroup (α : Type _) extends OrderedCommGroup α, Norm α, MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x / y‖ := by obviously
#align normed_ordered_group NormedOrderedGroup
#align normed_ordered_add_group NormedOrderedAddGroup
@@ -45,7 +44,7 @@ class NormedOrderedGroup (α : Type _) extends OrderedCommGroup α, HasNorm α,
/-- A `normed_linear_ordered_add_group` is an additive group that is both a `normed_add_comm_group`
and a `linear_ordered_add_comm_group`. This class is necessary to avoid diamonds caused by both
classes carrying their own group structure. -/
-class NormedLinearOrderedAddGroup (α : Type _) extends LinearOrderedAddCommGroup α, HasNorm α,
+class NormedLinearOrderedAddGroup (α : Type _) extends LinearOrderedAddCommGroup α, Norm α,
MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by obviously
#align normed_linear_ordered_add_group NormedLinearOrderedAddGroup
@@ -54,7 +53,7 @@ class NormedLinearOrderedAddGroup (α : Type _) extends LinearOrderedAddCommGrou
`linear_ordered_comm_group`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
@[to_additive]
-class NormedLinearOrderedGroup (α : Type _) extends LinearOrderedCommGroup α, HasNorm α,
+class NormedLinearOrderedGroup (α : Type _) extends LinearOrderedCommGroup α, Norm α,
MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x / y‖ := by obviously
#align normed_linear_ordered_group NormedLinearOrderedGroup
@@ -62,7 +61,7 @@ class NormedLinearOrderedGroup (α : Type _) extends LinearOrderedCommGroup α,
/-- A `normed_linear_ordered_field` is a field that is both a `normed_field` and a
`linear_ordered_field`. This class is necessary to avoid diamonds. -/
-class NormedLinearOrderedField (α : Type _) extends LinearOrderedField α, HasNorm α,
+class NormedLinearOrderedField (α : Type _) extends LinearOrderedField α, Norm α,
MetricSpace α where
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by obviously
norm_mul' : ∀ x y : α, ‖x * y‖ = ‖x‖ * ‖y‖
mathlib commit https://github.com/leanprover-community/mathlib/commit/bd9851ca476957ea4549eb19b40e7b5ade9428cc
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Yaël Dillies
-/
import Mathlib.Algebra.Order.Group.TypeTags
-import Mathlib.Analysis.NormedSpace.Basic
+import Mathlib.Analysis.Normed.Field.Basic
#align_import analysis.normed.order.basic from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
Type _
and Sort _
(#6499)
We remove all possible occurences of Type _
and Sort _
in favor of Type*
and Sort*
.
This has nice performance benefits.
@@ -20,12 +20,12 @@ open Filter Set
open Topology
-variable {α : Type _}
+variable {α : Type*}
/-- A `NormedOrderedAddGroup` is an additive group that is both a `NormedAddCommGroup` and an
`OrderedAddCommGroup`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
-class NormedOrderedAddGroup (α : Type _) extends OrderedAddCommGroup α, Norm α, MetricSpace α where
+class NormedOrderedAddGroup (α : Type*) extends OrderedAddCommGroup α, Norm α, MetricSpace α where
/-- The distance function is induced by the norm. -/
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by aesop
#align normed_ordered_add_group NormedOrderedAddGroup
@@ -34,7 +34,7 @@ class NormedOrderedAddGroup (α : Type _) extends OrderedAddCommGroup α, Norm
`OrderedCommGroup`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
@[to_additive]
-class NormedOrderedGroup (α : Type _) extends OrderedCommGroup α, Norm α, MetricSpace α where
+class NormedOrderedGroup (α : Type*) extends OrderedCommGroup α, Norm α, MetricSpace α where
/-- The distance function is induced by the norm. -/
dist_eq : ∀ x y, dist x y = ‖x / y‖ := by aesop
#align normed_ordered_group NormedOrderedGroup
@@ -42,7 +42,7 @@ class NormedOrderedGroup (α : Type _) extends OrderedCommGroup α, Norm α, Met
/-- A `NormedLinearOrderedAddGroup` is an additive group that is both a `NormedAddCommGroup`
and a `LinearOrderedAddCommGroup`. This class is necessary to avoid diamonds caused by both
classes carrying their own group structure. -/
-class NormedLinearOrderedAddGroup (α : Type _) extends LinearOrderedAddCommGroup α, Norm α,
+class NormedLinearOrderedAddGroup (α : Type*) extends LinearOrderedAddCommGroup α, Norm α,
MetricSpace α where
/-- The distance function is induced by the norm. -/
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by aesop
@@ -52,7 +52,7 @@ class NormedLinearOrderedAddGroup (α : Type _) extends LinearOrderedAddCommGrou
`LinearOrderedCommGroup`. This class is necessary to avoid diamonds caused by both classes
carrying their own group structure. -/
@[to_additive]
-class NormedLinearOrderedGroup (α : Type _) extends LinearOrderedCommGroup α, Norm α,
+class NormedLinearOrderedGroup (α : Type*) extends LinearOrderedCommGroup α, Norm α,
MetricSpace α where
/-- The distance function is induced by the norm. -/
dist_eq : ∀ x y, dist x y = ‖x / y‖ := by aesop
@@ -60,7 +60,7 @@ class NormedLinearOrderedGroup (α : Type _) extends LinearOrderedCommGroup α,
/-- A `NormedLinearOrderedField` is a field that is both a `NormedField` and a
`LinearOrderedField`. This class is necessary to avoid diamonds. -/
-class NormedLinearOrderedField (α : Type _) extends LinearOrderedField α, Norm α,
+class NormedLinearOrderedField (α : Type*) extends LinearOrderedField α, Norm α,
MetricSpace α where
/-- The distance function is induced by the norm. -/
dist_eq : ∀ x y, dist x y = ‖x - y‖ := by aesop
@@ -82,7 +82,7 @@ instance (priority := 100) NormedLinearOrderedGroup.toNormedOrderedGroup
#align normed_linear_ordered_group.to_normed_ordered_group NormedLinearOrderedGroup.toNormedOrderedGroup
#align normed_linear_ordered_add_group.to_normed_ordered_add_group NormedLinearOrderedAddGroup.toNormedOrderedAddGroup
-instance (priority := 100) NormedLinearOrderedField.toNormedField (α : Type _)
+instance (priority := 100) NormedLinearOrderedField.toNormedField (α : Type*)
[NormedLinearOrderedField α] : NormedField α where
dist_eq := NormedLinearOrderedField.dist_eq
norm_mul' := NormedLinearOrderedField.norm_mul'
Per https://github.com/leanprover/lean4/issues/2343, we are going to need to change the automatic generation of instance names, as they become too long.
This PR ensures that everywhere in Mathlib that refers to an instance by name, that name is given explicitly, rather than being automatically generated.
There are four exceptions, which are now commented, with links to https://github.com/leanprover/lean4/issues/2343.
This was implemented by running Mathlib against a modified Lean that appended _ᾰ
to all automatically generated names, and fixing everything.
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@@ -101,7 +101,7 @@ instance OrderDual.normedOrderedGroup [NormedOrderedGroup α] : NormedOrderedGro
@[to_additive]
instance OrderDual.normedLinearOrderedGroup [NormedLinearOrderedGroup α] :
NormedLinearOrderedGroup αᵒᵈ :=
- { OrderDual.normedOrderedGroup, OrderDual.linearOrder _ with }
+ { OrderDual.normedOrderedGroup, OrderDual.instLinearOrder _ with }
instance Additive.normedOrderedAddGroup [NormedOrderedGroup α] :
NormedOrderedAddGroup (Additive α) :=
@@ -2,15 +2,12 @@
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Yaël Dillies
-
-! This file was ported from Lean 3 source module analysis.normed.order.basic
-! leanprover-community/mathlib commit f2ce6086713c78a7f880485f7917ea547a215982
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
-/
import Mathlib.Algebra.Order.Group.TypeTags
import Mathlib.Analysis.NormedSpace.Basic
+#align_import analysis.normed.order.basic from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
+
/-!
# Ordered normed spaces
@@ -109,7 +109,6 @@ instance OrderDual.normedLinearOrderedGroup [NormedLinearOrderedGroup α] :
instance Additive.normedOrderedAddGroup [NormedOrderedGroup α] :
NormedOrderedAddGroup (Additive α) :=
{ Additive.normedAddCommGroup, Additive.orderedAddCommGroup with }
- --add_le_add_left := fun a b hab c => add_le_add_left }
instance Multiplicative.normedOrderedGroup [NormedOrderedAddGroup α] :
NormedOrderedGroup (Multiplicative α) :=
The unported dependencies are
algebra.order.module
init.core
algebra.order.monoid.cancel.defs
algebra.abs
algebra.group_power.lemmas
init.data.list.basic
algebra.order.monoid.cancel.basic
init.data.list.default
topology.subset_properties
init.logic
The following 1 dependencies have changed in mathlib3 since they were ported, which may complicate porting this file