Skip to content

Commit 6d3f1ed

Browse files
committed
Revert "feat(Algebra/Category): some lemmas about adjunctions in Under R (#24589)"
This reverts commit 44c008f.
1 parent 44c008f commit 6d3f1ed

File tree

4 files changed

+3
-219
lines changed

4 files changed

+3
-219
lines changed

Mathlib.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ import Mathlib.Algebra.Category.Ring.Instances
183183
import Mathlib.Algebra.Category.Ring.Limits
184184
import Mathlib.Algebra.Category.Ring.LinearAlgebra
185185
import Mathlib.Algebra.Category.Ring.Topology
186-
import Mathlib.Algebra.Category.Ring.Under.Adjunctions
187186
import Mathlib.Algebra.Category.Ring.Under.Basic
188187
import Mathlib.Algebra.Category.Ring.Under.Limits
189188
import Mathlib.Algebra.Category.Semigrp.Basic

Mathlib/Algebra/Category/Ring/Topology.lean

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Mathlib.Algebra.Category.Ring.Colimits
77
import Mathlib.Algebra.Category.Ring.Constructions
88
import Mathlib.Algebra.MvPolynomial.CommRing
99
import Mathlib.Topology.Algebra.Ring.Basic
10-
import Mathlib.Topology.Category.TopCat.Basic
1110

1211
/-!
1312
# Topology on `Hom(R, S)`
@@ -138,6 +137,8 @@ instance [TopologicalSpace S] [IsTopologicalRing S] [T1Space S] [CompactSpace S]
138137
CompactSpace (R ⟶ S) :=
139138
(isClosedEmbedding_hom R S).compactSpace
140139

140+
open Limits
141+
141142
/-- `Hom(A ⊗[S] B, R)` has the subspace topology from `Hom(A, R) × Hom(B, R)`. -/
142143
lemma isEmbedding_pushout [TopologicalSpace R] [IsTopologicalRing R]
143144
(φ : S ⟶ A) (ψ : S ⟶ B) :
@@ -172,17 +173,4 @@ lemma isEmbedding_pushout [TopologicalSpace R] [IsTopologicalRing R]
172173
congr($(pushout.condition (f := φ)).hom s).symm
173174
ext f s <;> simp [fA, fB, fAB, PA, PB, PAB, F, this]
174175

175-
variable (S) in
176-
/-- The functor defined by above construction. -/
177-
def topFunctor [TopologicalSpace S] : CommRingCatᵒᵖ ⥤ TopCat where
178-
obj R := TopCat.of (R.unop ⟶ S)
179-
map f := TopCat.ofHom {
180-
toFun := (f.unop ≫ ·)
181-
continuous_toFun := continuous_precomp f.unop
182-
}
183-
184-
/-- The Yoneda embedding factors through topFunctor. -/
185-
@[simp]
186-
lemma topFunctor_forget [TopologicalSpace S] : topFunctor S ⋙ forget TopCat = yoneda.obj S := rfl
187-
188176
end CommRingCat.HomTopology

Mathlib/Algebra/Category/Ring/Under/Adjunctions.lean

Lines changed: 0 additions & 183 deletions
This file was deleted.

Mathlib/Algebra/Category/Ring/Under/Basic.lean

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace CommRingCat
2828
instance : CoeSort (Under R) (Type u) where
2929
coe A := A.right
3030

31-
instance algebra (A : Under R) : Algebra R A := RingHom.toAlgebra A.hom.hom
31+
instance (A : Under R) : Algebra R A := RingHom.toAlgebra A.hom.hom
3232

3333
/-- Turn a morphism in `Under R` into an algebra homomorphism. -/
3434
def toAlgHom {A B : Under R} (f : A ⟶ B) : A →ₐ[R] B where
@@ -62,10 +62,6 @@ lemma mkUnder_ext {A : Type u} [CommRing A] [Algebra R A] {B : Under R}
6262
ext x
6363
exact h x
6464

65-
@[simp]
66-
lemma mkUnder_eq (A : Type u) [CommRing A] [inst : Algebra R A] :
67-
algebra (R.mkUnder A) = inst := Algebra.algebra_ext _ _ (congrFun rfl)
68-
6965
end CommRingCat
7066

7167
namespace AlgHom
@@ -89,22 +85,6 @@ lemma toUnder_comp {A B C : Type u} [CommRing A] [CommRing B] [CommRing C]
8985
(g.comp f).toUnder = f.toUnder ≫ g.toUnder :=
9086
rfl
9187

92-
@[simp]
93-
lemma toUnder_eq {A B : Type u} [CommRing A] [CommRing B]
94-
[instA : Algebra R A] [instB : Algebra R B] (f : A →ₐ[R] B) : CommRingCat.toAlgHom f.toUnder =
95-
(cast <| congr_arg₂ (fun instA instB => @AlgHom R A B _ _ _ instA instB)
96-
(CommRingCat.mkUnder_eq A).symm (CommRingCat.mkUnder_eq B).symm) f :=
97-
have [instA : Algebra R A] [instB : Algebra R B] [instA' : Algebra R A] [instB' : Algebra R B]
98-
(eqA : instA = instA') (eqB : instB = instB') (f : @AlgHom R A B _ _ _ instA instB) :
99-
@OneHom.toFun A B _ _ f = @OneHom.toFun A B _ _ (
100-
(cast <| congr_arg₂ (fun instA instB => @AlgHom R A B _ _ _ instA instB) eqA eqB) f
101-
) := by
102-
subst eqA eqB
103-
rfl
104-
ext <| congrFun <| this (instA := instA) (instB := instB)
105-
(instA' := CommRingCat.algebra (R.mkUnder A)) (instB' := CommRingCat.algebra (R.mkUnder B))
106-
(CommRingCat.mkUnder_eq A).symm (CommRingCat.mkUnder_eq B).symm f
107-
10888
end AlgHom
10989

11090
namespace AlgEquiv

0 commit comments

Comments
 (0)