analysis.normed.order.basicMathlib.Analysis.Normed.Order.Basic

This file has been ported!

Changes since the initial port

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.

Changes in mathlib3

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(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)

Changes in mathlib3port

mathlib3
mathlib3port
Diff
@@ -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"
 
Diff
@@ -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 }
Diff
@@ -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
 
Diff
@@ -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
Diff
@@ -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 _}
 
Diff
@@ -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.
 -/
Diff
@@ -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⟩
Diff
@@ -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‖

Changes in mathlib4

mathlib3
mathlib4
chore: reduce imports (#9830)

This uses the improved shake script from #9772 to reduce imports across mathlib. The corresponding noshake.json file has been added to #9772.

Co-authored-by: Mario Carneiro <di.gama@gmail.com>

Diff
@@ -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"
 
chore: banish Type _ and Sort _ (#6499)

We remove all possible occurences of Type _ and Sort _ in favor of Type* and Sort*.

This has nice performance benefits.

Diff
@@ -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'
chore: ensure all instances referred to directly have explicit names (#6423)

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>

Diff
@@ -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 α) :=
chore: script to replace headers with #align_import statements (#5979)

Open in Gitpod

Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Scott Morrison <scott.morrison@gmail.com>

Diff
@@ -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
 
chore: tidy various files (#3408)
Diff
@@ -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 α) :=
feat: port Analysis.Normed.Order.Basic (#3391)

Dependencies 10 + 609

610 files ported (98.4%)
266593 lines ported (98.0%)
Show graph

The unported dependencies are

The following 1 dependencies have changed in mathlib3 since they were ported, which may complicate porting this file