/-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
module
public import Mathlib.RingTheory.Ideal.Quotient.Defs
public import Mathlib.Topology.Algebra.Ring.Basic
import Mathlib.Topology.Algebra.Group.Quotient
/-!
# Ideals and quotients of topological rings
In this file we define `Ideal.closure` to be the topological closure of an ideal in a topological
ring. We also define a `TopologicalSpace` structure on the quotient of a topological ring by an
ideal and prove that the quotient is a topological ring.
-/
@[expose] public section
open Topology
section Ring
variable {R : Type*} [TopologicalSpace R] [Ring R] [IsTopologicalRing R]
/-- The closure of an ideal in a topological ring as an ideal. -/
protected def Ideal.closure (I : Ideal R) : Ideal R :=
{
AddSubmonoid.topologicalClosure
I.toAddSubmonoid with
carrier := closure I
smul_mem' := fun c _ hx => map_mem_closure (mulLeft_continuous _) hx fun _ => I.mul_mem_left c }
@[simp]
theorem Ideal.coe_closure (I : Ideal R) : (I.closure : Set R) = closure I :=
rfl
/--
This is not `@[simp]` since otherwise it causes timeouts downstream as `simp` tries and fails to
generate an `IsClosed` instance.
https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/!4.234852.20heartbeats.20of.20the.20linter
-/
theorem Ideal.closure_eq_of_isClosed (I : Ideal R) (hI : IsClosed (I : Set R)) : I.closure = I :=
SetLike.ext' hI.closure_eq
variable (R)
/-- The connected component of zero in a topological ring as an ideal. -/
def Ideal.connectedComponentOfZero : Ideal R where
__ := AddSubgroup.connectedComponentOfZero R
smul_mem' c x h := IsConnected.subset_connectedComponent
(isConnected_connectedComponent.image _ (continuous_const_mul c).continuousOn)
⟨0, mem_connectedComponent, mul_zero c⟩ ⟨x, h, rfl⟩
@[simp]
theorem Ideal.coe_connectedComponentOfZero :
(Ideal.connectedComponentOfZero R : Set R) = connectedComponent 0 :=
rfl
end Ring
section CommRing
variable {R : Type*} [TopologicalSpace R] [CommRing R] (N : Ideal R)
open Ideal.Quotient
instance topologicalRingQuotientTopology : TopologicalSpace (R ⧸ N) :=
instTopologicalSpaceQuotient
-- note for the reader: in the following, `mk` is `Ideal.Quotient.mk`, the canonical map `R → R/I`.
variable [IsTopologicalRing R]
theorem QuotientRing.isOpenMap_coe : IsOpenMap (mk N) :=
QuotientAddGroup.isOpenMap_coe
theorem QuotientRing.isOpenQuotientMap_mk : IsOpenQuotientMap (mk N) :=
QuotientAddGroup.isOpenQuotientMap_mk
theorem QuotientRing.isQuotientMap_coe_coe : IsQuotientMap fun p : R × R => (mk N p.1, mk N p.2) :=
((isOpenQuotientMap_mk N).prodMap (isOpenQuotientMap_mk N)).isQuotientMap
instance topologicalRing_quotient : IsTopologicalRing (R ⧸ N) where
__ := QuotientAddGroup.instIsTopologicalAddGroup _
continuous_mul := (QuotientRing.isQuotientMap_coe_coe N).continuous_iff.2 <|
continuous_quot_mk.comp continuous_mul
instance [CompactSpace R] : CompactSpace (R ⧸ N) :=
Quotient.compactSpace
end CommRing
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland