topology.category.LocaleMathlib.Topology.Category.Locale

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)

(last sync)

Changes in mathlib3port

mathlib3
mathlib3port
Diff
@@ -67,7 +67,8 @@ def topToLocale : TopCat ⥤ Locale :=
 
 #print CompHausToLocale.faithful /-
 -- Note, `CompHaus` is too strong. We only need `t0_space`.
-instance CompHausToLocale.faithful : Faithful (compHausToTop ⋙ topToLocale.{u}) :=
+instance CompHausToLocale.faithful :
+    CategoryTheory.Functor.Faithful (compHausToTop ⋙ topToLocale.{u}) :=
   ⟨fun X Y f g h => by dsimp at h; exact opens.comap_injective (Quiver.Hom.op_inj h)⟩
 #align CompHaus_to_Locale.faithful CompHausToLocale.faithful
 -/
Diff
@@ -68,7 +68,7 @@ def topToLocale : TopCat ⥤ Locale :=
 #print CompHausToLocale.faithful /-
 -- Note, `CompHaus` is too strong. We only need `t0_space`.
 instance CompHausToLocale.faithful : Faithful (compHausToTop ⋙ topToLocale.{u}) :=
-  ⟨fun X Y f g h => by dsimp at h ; exact opens.comap_injective (Quiver.Hom.op_inj h)⟩
+  ⟨fun X Y f g h => by dsimp at h; exact opens.comap_injective (Quiver.Hom.op_inj h)⟩
 #align CompHaus_to_Locale.faithful CompHausToLocale.faithful
 -/
 
Diff
@@ -3,7 +3,7 @@ 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
 -/
-import Mathbin.Order.Category.Frm
+import Order.Category.Frm
 
 #align_import topology.category.Locale from "leanprover-community/mathlib"@"2ed2c6310e6f1c5562bdf6bfbda55ebbf6891abe"
 
@@ -24,7 +24,7 @@ open CategoryTheory Opposite Order TopologicalSpace
 #print Locale /-
 /-- The category of locales. -/
 def Locale :=
-  FrmCatᵒᵖ
+  Frmᵒᵖ
 deriving LargeCategory
 #align Locale Locale
 -/
@@ -40,7 +40,7 @@ instance (X : Locale) : Frame X :=
 #print Locale.of /-
 /-- Construct a bundled `Locale` from a `frame`. -/
 def of (α : Type _) [Frame α] : Locale :=
-  op <| FrmCat.of α
+  op <| Frm.of α
 #align Locale.of Locale.of
 -/
 
@@ -61,7 +61,7 @@ end Locale
 -/
 @[simps]
 def topToLocale : TopCat ⥤ Locale :=
-  topCatOpToFrameCat.rightOp
+  topCatOpToFrm.rightOp
 #align Top_to_Locale topToLocale
 -/
 
Diff
@@ -2,14 +2,11 @@
 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
-
-! This file was ported from Lean 3 source module topology.category.Locale
-! leanprover-community/mathlib commit 2ed2c6310e6f1c5562bdf6bfbda55ebbf6891abe
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
 -/
 import Mathbin.Order.Category.Frm
 
+#align_import topology.category.Locale from "leanprover-community/mathlib"@"2ed2c6310e6f1c5562bdf6bfbda55ebbf6891abe"
+
 /-!
 # The category of locales
 
Diff
@@ -27,7 +27,8 @@ open CategoryTheory Opposite Order TopologicalSpace
 #print Locale /-
 /-- The category of locales. -/
 def Locale :=
-  FrmCatᵒᵖderiving LargeCategory
+  FrmCatᵒᵖ
+deriving LargeCategory
 #align Locale Locale
 -/
 
@@ -70,7 +71,7 @@ def topToLocale : TopCat ⥤ Locale :=
 #print CompHausToLocale.faithful /-
 -- Note, `CompHaus` is too strong. We only need `t0_space`.
 instance CompHausToLocale.faithful : Faithful (compHausToTop ⋙ topToLocale.{u}) :=
-  ⟨fun X Y f g h => by dsimp at h; exact opens.comap_injective (Quiver.Hom.op_inj h)⟩
+  ⟨fun X Y f g h => by dsimp at h ; exact opens.comap_injective (Quiver.Hom.op_inj h)⟩
 #align CompHaus_to_Locale.faithful CompHausToLocale.faithful
 -/
 
Diff
@@ -70,9 +70,7 @@ def topToLocale : TopCat ⥤ Locale :=
 #print CompHausToLocale.faithful /-
 -- Note, `CompHaus` is too strong. We only need `t0_space`.
 instance CompHausToLocale.faithful : Faithful (compHausToTop ⋙ topToLocale.{u}) :=
-  ⟨fun X Y f g h => by
-    dsimp at h
-    exact opens.comap_injective (Quiver.Hom.op_inj h)⟩
+  ⟨fun X Y f g h => by dsimp at h; exact opens.comap_injective (Quiver.Hom.op_inj h)⟩
 #align CompHaus_to_Locale.faithful CompHausToLocale.faithful
 -/
 
Diff
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Yaël Dillies
 
 ! This file was ported from Lean 3 source module topology.category.Locale
-! leanprover-community/mathlib commit e8ac6315bcfcbaf2d19a046719c3b553206dac75
+! leanprover-community/mathlib commit 2ed2c6310e6f1c5562bdf6bfbda55ebbf6891abe
 ! Please do not edit these lines, except to modify the commit id
 ! if you have ported upstream changes.
 -/
@@ -13,6 +13,9 @@ import Mathbin.Order.Category.Frm
 /-!
 # The category of locales
 
+> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
+> Any changes to this file require a corresponding PR to mathlib4.
+
 This file defines `Locale`, the category of locales. This is the opposite of the category of frames.
 -/
 
Diff
@@ -21,10 +21,12 @@ universe u
 
 open CategoryTheory Opposite Order TopologicalSpace
 
+#print Locale /-
 /-- The category of locales. -/
 def Locale :=
   FrmCatᵒᵖderiving LargeCategory
 #align Locale Locale
+-/
 
 namespace Locale
 
@@ -34,32 +36,40 @@ instance : CoeSort Locale (Type _) :=
 instance (X : Locale) : Frame X :=
   X.unop.str
 
+#print Locale.of /-
 /-- Construct a bundled `Locale` from a `frame`. -/
 def of (α : Type _) [Frame α] : Locale :=
   op <| FrmCat.of α
 #align Locale.of Locale.of
+-/
 
+#print Locale.coe_of /-
 @[simp]
 theorem coe_of (α : Type _) [Frame α] : ↥(of α) = α :=
   rfl
 #align Locale.coe_of Locale.coe_of
+-/
 
 instance : Inhabited Locale :=
   ⟨of PUnit⟩
 
 end Locale
 
+#print topToLocale /-
 /-- The forgetful functor from `Top` to `Locale` which forgets that the space has "enough points".
 -/
 @[simps]
 def topToLocale : TopCat ⥤ Locale :=
   topCatOpToFrameCat.rightOp
 #align Top_to_Locale topToLocale
+-/
 
+#print CompHausToLocale.faithful /-
 -- Note, `CompHaus` is too strong. We only need `t0_space`.
 instance CompHausToLocale.faithful : Faithful (compHausToTop ⋙ topToLocale.{u}) :=
   ⟨fun X Y f g h => by
     dsimp at h
     exact opens.comap_injective (Quiver.Hom.op_inj h)⟩
 #align CompHaus_to_Locale.faithful CompHausToLocale.faithful
+-/
 
Diff
@@ -23,7 +23,7 @@ open CategoryTheory Opposite Order TopologicalSpace
 
 /-- The category of locales. -/
 def Locale :=
-  Frmᵒᵖderiving LargeCategory
+  FrmCatᵒᵖderiving LargeCategory
 #align Locale Locale
 
 namespace Locale
@@ -36,7 +36,7 @@ instance (X : Locale) : Frame X :=
 
 /-- Construct a bundled `Locale` from a `frame`. -/
 def of (α : Type _) [Frame α] : Locale :=
-  op <| Frm.of α
+  op <| FrmCat.of α
 #align Locale.of Locale.of
 
 @[simp]
@@ -53,7 +53,7 @@ end Locale
 -/
 @[simps]
 def topToLocale : TopCat ⥤ Locale :=
-  topOpToFrame.rightOp
+  topCatOpToFrameCat.rightOp
 #align Top_to_Locale topToLocale
 
 -- Note, `CompHaus` is too strong. We only need `t0_space`.
Diff
@@ -4,11 +4,11 @@ Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Yaël Dillies
 
 ! This file was ported from Lean 3 source module topology.category.Locale
-! leanprover-community/mathlib commit 5a9fb92b86469f4111a69819ac2ee21d0de3dfd0
+! leanprover-community/mathlib commit e8ac6315bcfcbaf2d19a046719c3b553206dac75
 ! Please do not edit these lines, except to modify the commit id
 ! if you have ported upstream changes.
 -/
-import Mathbin.Order.Category.Frame
+import Mathbin.Order.Category.Frm
 
 /-!
 # The category of locales
@@ -23,7 +23,7 @@ open CategoryTheory Opposite Order TopologicalSpace
 
 /-- The category of locales. -/
 def Locale :=
-  Frameᵒᵖderiving LargeCategory
+  Frmᵒᵖderiving LargeCategory
 #align Locale Locale
 
 namespace Locale
@@ -36,7 +36,7 @@ instance (X : Locale) : Frame X :=
 
 /-- Construct a bundled `Locale` from a `frame`. -/
 def of (α : Type _) [Frame α] : Locale :=
-  op <| Frame.of α
+  op <| Frm.of α
 #align Locale.of Locale.of
 
 @[simp]

Changes in mathlib4

mathlib3
mathlib4
chore(CategoryTheory): move Full, Faithful, EssSurj, IsEquivalence and ReflectsIsomorphisms to the Functor namespace (#11985)

These notions on functors are now Functor.Full, Functor.Faithful, Functor.EssSurj, Functor.IsEquivalence, Functor.ReflectsIsomorphisms. Deprecated aliases are introduced for the previous names.

Diff
@@ -56,7 +56,7 @@ def topToLocale : TopCat ⥤ Locale :=
 #align Top_to_Locale topToLocale
 
 -- Note, `CompHaus` is too strong. We only need `T0Space`.
-instance CompHausToLocale.faithful : Faithful (compHausToTop ⋙ topToLocale.{u}) :=
+instance CompHausToLocale.faithful : (compHausToTop ⋙ topToLocale.{u}).Faithful :=
   ⟨fun h => by
     dsimp at h
     exact Opens.comap_injective (Quiver.Hom.op_inj h)⟩
chore: Remove Cat suffixes (#3730)

These names needn't change in the first place.

Diff
@@ -3,7 +3,7 @@ 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
 -/
-import Mathlib.Order.Category.FrmCat
+import Mathlib.Order.Category.Frm
 
 #align_import topology.category.Locale from "leanprover-community/mathlib"@"e8ac6315bcfcbaf2d19a046719c3b553206dac75"
 
@@ -22,7 +22,7 @@ set_option linter.uppercaseLean3 false
 
 /-- The category of locales. -/
 def Locale :=
-  FrmCatᵒᵖ deriving LargeCategory
+  Frmᵒᵖ deriving LargeCategory
 #align Locale Locale
 
 namespace Locale
@@ -35,7 +35,7 @@ instance (X : Locale) : Frame X :=
 
 /-- Construct a bundled `Locale` from a `Frame`. -/
 def of (α : Type*) [Frame α] : Locale :=
-  op <| FrmCat.of α
+  op <| Frm.of α
 #align Locale.of Locale.of
 
 @[simp]
@@ -52,7 +52,7 @@ end Locale
 -/
 @[simps!]
 def topToLocale : TopCat ⥤ Locale :=
-  topCatOpToFrameCat.rightOp
+  topCatOpToFrm.rightOp
 #align Top_to_Locale topToLocale
 
 -- Note, `CompHaus` is too strong. We only need `T0Space`.
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
@@ -27,19 +27,19 @@ def Locale :=
 
 namespace Locale
 
-instance : CoeSort Locale (Type _) :=
+instance : CoeSort Locale (Type*) :=
   ⟨fun X => X.unop⟩
 
 instance (X : Locale) : Frame X :=
   X.unop.str
 
 /-- Construct a bundled `Locale` from a `Frame`. -/
-def of (α : Type _) [Frame α] : Locale :=
+def of (α : Type*) [Frame α] : Locale :=
   op <| FrmCat.of α
 #align Locale.of Locale.of
 
 @[simp]
-theorem coe_of (α : Type _) [Frame α] : ↥(of α) = α :=
+theorem coe_of (α : Type*) [Frame α] : ↥(of α) = α :=
   rfl
 #align Locale.coe_of Locale.coe_of
 
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,14 +2,11 @@
 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
-
-! This file was ported from Lean 3 source module topology.category.Locale
-! leanprover-community/mathlib commit e8ac6315bcfcbaf2d19a046719c3b553206dac75
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
 -/
 import Mathlib.Order.Category.FrmCat
 
+#align_import topology.category.Locale from "leanprover-community/mathlib"@"e8ac6315bcfcbaf2d19a046719c3b553206dac75"
+
 /-!
 # The category of locales
 
feat: port Topology.Category.Locale (#4011)

Dependencies 10 + 745

746 files ported (98.7%)
309579 lines ported (98.3%)
Show graph

The unported dependencies are

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