Module docstring
{"# Subrings
Let R be a ring. This file defines the \"bundled\" subring type Subring R, a type
whose terms correspond to subrings of R. This is the preferred way to talk
about subrings in mathlib. Unbundled subrings (s : Set R and IsSubring s)
are not in this file, and they will ultimately be deprecated.
We prove that subrings are a complete lattice, and that you can map (pushforward) and
comap (pull back) them along ring homomorphisms.
We define the closure construction from Set R to Subring R, sending a subset of R
to the subring it generates, and prove that it is a Galois insertion.
Main definitions
Notation used here:
(R : Type u) [Ring R] (S : Type u) [Ring S] (f g : R →+* S)
(A : Subring R) (B : Subring S) (s : Set R)
Subring R: the type of subrings of a ringR.instance : CompleteLattice (Subring R): the complete lattice structure on the subrings.Subring.center: the center of a ringR.Subring.closure: subring closure of a set, i.e., the smallest subring that includes the set.Subring.gi:closure : Set M → Subring Mand coercion(↑) : Subring M → et Mform aGaloisInsertion.comap f B : Subring A: the preimage of a subringBalong the ring homomorphismfmap f A : Subring B: the image of a subringAalong the ring homomorphismf.prod A B : Subring (R × S): the product of subringsf.range : Subring B: the range of the ring homomorphismf.eqLocus f g : Subring R: given ring homomorphismsf g : R →+* S, the subring ofRwheref x = g x
Implementation notes
A subring is implemented as a subsemiring which is also an additive subgroup. The initial PR was as a submonoid which is also an additive subgroup.
Lattice inclusion (e.g. ≤ and ⊓) is used rather than set notation (⊆ and ∩), although
∈ is defined as membership of a subring's underlying set.
Tags
subring, subrings ","## Partial order "}