Showing posts with label sheaves. Show all posts
Showing posts with label sheaves. Show all posts

Monday, June 21, 2021

Topoi from preorders

Every preorder can be construed as a thin category. Then by considering the category of all set-valued functors from the preorder, we can form a topos. Let $R$ be a preorder as a thin cateogry, then we can represent the topos of $R$ by: \[ Sets^{R} \] The topos of a preorder forms an important special case, which along with the topoi of monoid actions are the most basic types of topoi. All the most important topoi in foundations are the topoi of preorders. These foundational topoi emerge from the smallest preorders, and they are the building blocks of all algebraic structures.

Therefore, this post will procede in an ordered fashion from the most basic named topoi formed from the smallest preorders, like the topos of sets and functions, before continuing to consider preorder topoi in all their generality. The coverage of the foundational topoi in this post will be relatively brief, leaving most of the details to a more dedicated post.

Size one

The topos of a trivial preorder is the topos of sets. The topos of sets is the simplest preorder topoi, and all the larger preorder topoi can be considered to be built from it. All further limits/colimits, for example, are constructed pointwise using the topos of sets as a basis. \[ Sets^1 = Sets \] In brief, the topos of sets is a bivalent, well-pointed classical topos. Its quotient and subobject lattices are $Part(A)^d$ and $\wp(B)$. Its subobject classifier is based upon a membership test. As the topos of a single point, the topos of sets is a building block of almost everything in mathematics.

Size two

Topos of pairs:

A two element anti-chain produces the topos of pairs of sets. It is defined by doubling up everything in the topos of sets. \[ Sets^2 \] The objects of $Sets^2$ are ordered pairs of the form $(A,B)$ consisting of pairs of sets and its morphisms are pairs of functions $(f,g)$ between each of the components of the pair of sets.
  • The object of truth values in $Sets^2$ is equal to $(2,2)$ which is isomorphic to a coproduct $1+1$ and which has four elements. $Sets^2$ is therefore classical but not bivalent.
  • The subobject classifier is defined by doubling up the subobject classifier in $Sets$. If $i : (A,B) \to (C,D)$ is a morphism of pairs of sets, then its characteristic arrow is $(\chi_{i_1},\chi_{i_2} )$
  • The subobject lattice is $\wp(A)^2$ and the quotient lattice is $(Part(A)^d)^2$. Subobjects are defined by piecewise inclusions and quotient objects are defined by ordered pairs of set partitions.
  • Products, coproducts, as well as limits/colimits more generally are defined piecewise.
The topos $Sets^2$ is a good example of how larger topoi are generally constructed using the topos of sets as a base. $Sets^2$ is a good first example of a classical non-bivalent topoi.

Topos of functions:

Let $T_2$ be an ordered pair on two elements, then one way of defining the topos of functions is as the topos of an ordered pair: \[ Sets^{T_2} \] The topos of functions is the most important construct in all algebra, as it provides us with a theory of functions. The topos of functions describes how ordered pairs can be equipped with algebraic structure to produce functions of sets $f: A \to B$.

While it is possible to do work with functions without a knowledge of topoi theory, doing so is wandering in the dark. $Sets^{T_2}$ provides the fundamental logic of functions, without which there can be no logical theory. For example, $Sets^{T_2}$ elegantly provides support for congruences, which are the most important tool for reasoning about functions.

The logic of the topos of functions emerges from the unidirectional nature its arrow $A \to B$. Corresponding to these undirectional arrows, are logical implication arrows $A \Rightarrow B$. In particular, for any function we have the following logic arrow: \[ (x = y) \implies (f(x) = f(y)) \] Then if we have an ordered pair of equivalence relations $(=_P,=_Q)$ the topos of functions allows for a change of equivalence relations, which produces a quotient function. \[ (x =_P y) \implies (f(x) =_Q f(y))\] The logic of congruences emerges from relations of this form. The congruences of a semigroup are merely a special case, defined by doubling up an equivalence relation.
  • Subobjects of a function are generalizations of function restrictions. They form a distributive lattice based upon restricting the domain and the codomain of the function.
  • Quotients of a function are determined by any ordered pair of equivalence relations $(P,Q)$ of the function, whereby equality with respect the $P$ part of the input determines equality with respect to $Q$ part of the output.
The subobject and quotient lattices form the fundamental logic of functions, but the topos of functions includes much more then that like products, coproducts, other limits and colomits, a subobject classifier, power objects, and exponentation. Functions are basically like any other object in topos theory.

Topos of bijections:

Let $K_2$ be the complete symmetric preorder on two elements. Then the topos of bijections is defined by the preorder $K_2$. \[ Sets^{K_2} \] The objects of this topos are defined by a dual pair of functions $f,f^{-1}$ in inverse directions. To get that they are inverses of one another let $F : K_2 \to Sets$ be a set-valued functor. Notice that $f^{-1}\circ f = 1_A$ and $f \circ f^{-1} = 1_B$. Then by the fact that functors preserve inverses we have $F(f^{-1})\circ F(f) = 1_{F(A)}$ and $F(f) \circ F(f^{-1}) = 1_{F(B)}$. As $f,f^{-1}$ both compose to identities they must be inverses of one another.

It follows that the topos $Sets^{K_2}$ is a topos of bijections. Its objects are ordered pairs of sets $(A,B)$ with a pair of dual functions $f: A \to B$ and $f^{-1} : B \to A$ that are inverses of one another. Although bijections are often considered to be special cases of functions, bijections are associated with their own type of logic.

The logic of the topos of bijections is determined by the bidirectional nature of its arrows $A \leftrightarrow B$. Corresponding to these bidirectional arrows are bidirectional logic arrows $A \Leftrightarrow B$ of the form: \[ (x = y) \Leftrightarrow (f(x) = f(y)) \] To determine the quotient of a bijection we need to construct ordered pairs of equivalences $(P,Q)$ which preserve equality in both directions. Therefore, as opposed to the unidirectional logic of function congruences, the topos of bijections has a bidirectional logic of congruences. \[ (x =_P y) \Leftrightarrow (f(x) =_Q f(y))\] If you treat bijections as a special case of functions, then not all subobjects and quotients will remain bijections. The topos of bijections ensures this is the case, thereby determining different subobject and quotient lattices.
  • Subobjects of bijections are determined by any bidirectionally closed subset of the domain and codomain. The subobject lattices of bijections are therefore boolean, unlike for functions.
  • Quotients of bijections are determined by bidirectional implications of equivalence by ordered pairs of equivalence relations.
Logicians would do well to pay attention to how the topos of bijections produces a separate logic from the topos of functions, and how topoi create the fundamental logic of algebra. It is a pretty simple process whereby topoi associate logic arrows to function arrows, but its a fundamental one.

Traditionally, logic and functions where treated differently. This is demonstrated in for example the dichotomy between logic programming and functional programming. At best if functions were treated within a logical framework, they were dealt with as mere special case. This is now resolved by topoi theory which has provided the previously missing logic of inherent to functions.

General preorders:

Let $R$ be a preorder defined as a thin category. Then in the general case $Sets^R$ consists of all functors $F: R \to Sets$. A natural transformation is a map $t : Ob(C) \to Arrows(Sets)$ which assigns a function to each object of $C$ and which satisfies a commutative square diagram: Fortunately, this can be better understood by the simpler topoi we already constructed. This merely means that $(\tau_A,\tau_B)$ is a morphism of functions from $F(f)$ to $G(f)$. The general case of a set-valued functor topos can be understood to be a combination of simpler concepts arising in the topoi of sets and functions.

Object of truth values:
Let $Sets^R$ be a topos of set-valued functor from a preorder $R$. Then the functor associates sets and functions to each object and edge of the preorder in the following manner.
  • Vertices: the family of parent upper sets of the vertex $x$
  • Edges: restriction maps that take any parent upper set of a vertex to a parent upper set of a smaller vertex by intersection
The map that associates to any vertex its parent upper set is antitone. The larger a vertex is, the fewer upper sets of elements larger then it there are. The truth arrow selects the largest parent upper set, which is the principal filter of the vertex.

Subobject classifier:
Let $\tau : F \hookrightarrow G$ be a monic in the topos of set-valued functors. Then the characteristic arrow $\chi_\tau : G \to \Omega$ has a component function $\chi_\tau : Ob(C) \to Arrows(D)$. If we fix a given $a \in Ob(C)$ then we have a function : \[ (\chi_\tau)_a : F(a) \to \Omega(a) \] This function assigns a set of parents to the vertex consisting of all parents $b$, for which the transition map to the parent produces a value contained in the subfunctor set corresponding to the parent. \[ (\chi_\tau)_a(x) = \{ b : a \subseteq b \wedge G_{ab}(x) \in F_b \} \] This set of selected parents, again forms an upper parent set. This characteristic arrow satisfies the pullback diagram which makes it a subobject classifier.

Examples:
Disconnected partial orders
If a partial order is disconnected, then its components form a product of one another, because the natural transformations of a functor category are separated by connectivity. Therefore, continuining from $Sets^2$ we can form topoi like $Sets^3$, $Sets^4$, etc. A slightly different approach is to combine $Sets$ with the topos of functions to get $Sets \times Sets^{T_2}$ or the topos of bijections to get $Sets \times Sets^{K_2}$.

The total order $T_3$:
Let the first three ordinal numbers $0,1,2$ form a total order. Then they have object of truth values with a function to upper parent sets of the form: \[ 0 \to \{\emptyset, \{2\},\{1,2\},\{0,1,2\} \} \] \[ 1 \to \{\emptyset, \{2\},\{1,2\} \} \] \[ 2 \to \{\emptyset, \{2\} \} \] This is associated to three non-trivial transition maps: 01,02,and 12 which produce restriction maps by intersection. The first of these is the transition map $01$. \[ \{0,1,2\} \to \{1,2\} \] \[ \{1,2\} \to \{1,2\} \] \[ \{2\} \to \{2\} \] \[ \emptyset \to \emptyset \] The second is the transition map $02$ which is defined by the function display below: \[ \{0,1,2\} \to \{2\} \] \[ \{1,2\} \to \{2\} \] \[ \{2\} \to \{2\} \] \[ \emptyset \to \emptyset \] Finally there is a transition map $12$ which is defined by the function displayed below: \[ \{1,2\} \to \{2\} \] \[ \{2\} \to \{2\} \] \[ \emptyset \to \emptyset \] In general, restriction maps are defined by simple intersections like these. The subobject classifier selects out the first element in the chain for which an element is included in the subobject.

The total order $\omega$:
The topos $Sets^{\omega}$ is defined over an infinite ground set. By analogy with the simpler total orders, we have examined, the subobject classifier of this topos selects the first point in $\omega$ for which an element is included in the subobject by action of the chain. By construing $\omega$ as time, Maclane considered the result of the subobject classifier to be the time until truth of the element.

Span and co-span:
The span category is defined by $[1, 2]$ and the cospan category is defined by $[2, 1]$. Then the objects of the span category can be considered to be a pair of common input functions, which is equivalent to a function to a product. Morphisms of spans are triples which produce a morphism of functions to the product by $(f,g\times h)$. Cospan objects are the same except using the coproduct for inputs, and morphisms take the form $(f+g,h)$.

The topos of trijections:
We can consider $Sets^{K_3}$ to be the topos of trijections, by analogy with the topos of bijections. It consists of a collection of bijections between each of a triple of element. This can be continued to any $n$ to get a topos $Sets^{K_n}$.

The continuous total order $\eta$
The total order $\eta$ is the order type of the rational numbers $\mathbb{Q}$, unlike the total order $\omega$ it is not a discrete total order. If we treat $\eta$ as a model of time, then the topos $Sets^{\eta}$ could be construed as a model of truth over continuous time. The same idea can be applied to any order type.

Topological presheafs:
Let $(X,\tau)$ be a topological space, then a topos of set-valued functors can be formed by its spatial frame $Sets^{\tau}$. The topos of presheaves $Psh(X)$ is simply defined by the dual concept, which uses contravariant set-valued functors which can also be defined over the opposite category.

Sheaves are merely a special case of toplogical presheaves, defined on the spatial frame of a topological space. The special axioms of sheaves, are essentially an axiomization of properties of subobjects of the topos of functions. The restriction maps of sheaves are simply generalizations of the restriction maps of functions, which take any function to its subobject in the topos of functions.

See also:
Topoi of monoid actions:

References:
[1] Set Theory - The Stacks project

[1] Sheaves - The Stacks project

[2] Topoi the categorical analysis of logic

Friday, February 19, 2021

The affine scheme of Spec(R)

The construction of the affine scheme on Spec(R) hinges on the fact that you can you localize at the points of the spectrum: the irreducible radical ideals. This is possible because irreducible radical ideals are prime, which means that their complement is multiplicatively closed. This provides a link between the lattice of radical ideals and the lattice of multiplicative sets, which isn't entirely obvious. As a preliminary, I will therefore explain why irreducible radical ideals are prime ideals, and why you can indeed localize over them. This doesn't require much more then the proof that the nilradical is the intersection of all prime ideals and the lattice theorem.

Radical ideals are the complement of multiplicative-iteration closed sets and prime ideals are the complements of multiplicatively closed sets, so prime ideals are quite obviously radical. Prime ideals are also clearly irreducible (not the intersection of any other ideals) because if they are reducible then we can form elements from each set not in P whose product is in P. It remains only to show that irreducible radical ideals are prime. The proof is based upon Zorn's lemma, which is applicable because the lattice of ideals is a complete lattice.

Lemma. the nilradical $N$ is the intersection of all prime ideals

The nilradical is the smallest radical ideal, so it is contained in all prime ideals. We will show the converse. Let $x \not\in N$ be a non-nilpotent. Let $F$ be the family of all ideals not containing $x^n$ for $n \ge 0$. We can apply Zorn's lemma to get a maximal element $I_{max} \in F$. If $g,h \not\in I_max$ and $gh \in I_{max}$ we have $I_{max} + (g), I_{max} + (h) \not\in F$. Which implies that there exists $n,m \in \mathbb{N}$ such that $x^n \in I_{max} + (g)$ and $x^m \in I_{max} + (h)$ so $x^{n+m} \in I_{max}$ which contradicts the supposition that $I_{max}$ contains no powers of $x$. Non-nilpotents are all contained in prime ideals, so elements contained in all prime ideals are nilpotent. $\square$

The proof that the nilradical is the intersection of all prime ideals pays off, because everything else to do with the intersection between prime and radical ideals follows from it. The rest of the proofs are suprisingly easy.

Lemma. let $R$ be a commutative ring then if $(0)$ is an irreducible radical ideal it is prime.

Proof. If $(0)$ is a radical ideal it is the nilradical and the intersection of all prime ideals. By the fact that $(0)$ is irreducible it is contained in this set of all prime ideals which means it is a prime ideal. $\square$

Theorem. irreducible radical ideals are prime

Proof. let $I$ be an irreducible radical ideal of a commutative ring $R$. By the lattice theorem $(0)$ is an irreducible radical ideal in $\frac{R}{I}$ which means it is prime. The inverse image of prime ideal is prime, so this $(0)$ ideal in $\frac{R}{I}$ can be reflected back to get a prime ideal $I$. $\square$

With these preliminaries out of the way, we can now construct the affine scheme associated with a commutative ring $R$. In summary, the lattice of radical ideals is dual to a locale whose points are prime ideals. That the cotopology $Spec(R)$ is order-dual to the lattice of radical ideals is relevant, as for example coatomic ideals (which are called maximal ideals for some reason, although I have already gotten used to it) are translated into atomic sets in the cotopology which are of course singletons $\{x\}$.

The stalk of the affine scheme is defined by the localisation, which is a morphism from the lattice of multiplicative sets $Sub(R,*,1)$ to the objects of the category of rings $Ob(Rings)$. In this case of integral domains, the larger the zero free multiplicative set the larger the resulting localisation, as the localisation approaches the field of fractions, which means in certain cases localisation is a functor on a thin category. \[ \ell : Sub(R,*,1) \to Ob(Rings) \] By their very definition, the complement of a prime ideal is a multiplicative. This is formalized by the map $f : PrimeIdeals(R) \to Sub(R,*,1)$. The input action of this map on the localisation map $\ell$ produces a new morphism in the category of sets: \[ \ell : PrimeIdeals(R) \to Ob(Rings) \] We can now apply the image functor, to turn this into a map from sets of prime ideals (including open sets of our topology $Spec(R)$) to sets of rings. \[ \ell : \wp(PrimeIdeals(R)) \to \wp(Ob(Rings)) \] We now have a set of rings associated to any open set in the spectrum $Spec(R)$, but we want to get a single ring. There is a very obvious way to get a single object from a set of objects in a category: the product. This is precisely what we are going to use to construct the presheaf of rings. \[ \times : \wp(Ob(Rings)) \to Ob(Rings) \] We now have an adjusted localisation map $\ell_*$ which assigns a ring to any set of prime ideals by the product of localisations. \[ \ell_* : \wp(PrimeIdeals(R)) \to Ob(Rings) \] This is functorial on open sets because given any product of a set of objects we can form restriction morphisms to any product of a subset of objects, so the restriction maps merely restrict products of localisations to their subsets, which forms a ring homomorphism as it would in any category. So we have a presheaf of rings $\ell_*$ which we constructed from the localisation. This isn't necessarily a sheaf, so all that remains is to use sheafification to get a sheaf $\ell_*^{\#}$.

The sheafification, which is adjoint to the inclusion functor from the category of presheaves to the category of sheaves, is very convenient because it is much easier to construct presheafs then it is sheafs. Presheafs are abound in mathematics and in category theory, and all we need to do turn them into sheafs is to apply a single functor. This sheaf is a scheme because it is defined on the spectrum $Spec(R)$ of a topological space.

It is amazing that this scheme construction is even possible, which is why I spent so much time at the beginning describing why it is. There are obviously limitations of the traditional set-theoretic approach to algebraic geometry, such as that it doesn't take care of multiplicities which is responsible for the utility of this scheme construction. I will examine some of the details of that later.

Source:
Algebraic geometry by Robin Hatshorne

Friday, February 12, 2021

Classification of sheaves

The concept of a sheaf requires classification, towards that end I have produced a tentative classification of sheafs and related concepts. One term which not be completely familiar is that of a "categorical morphism" or a morphism of categories. I simply introduced that term to create a class that includes both covariant and contravariant functors. Covariant and contravariant functors are similar in almost everyway, so they should belong to a single class.
The basic category-theoretic classification of a sheaf is that it is a special case of contravariant functor. The next concepts we ought to introduce is that of a presheaf to the topoi of sets, which is dual to the concept of a set-valued functor. From the perspective of topoi theory, it is sufficient to consider set-valued functors and presheafs because the functor categories constructed from either of them form elementary topoi.

After the class of presheafs, the classification splits up a bit as presheafs can be defined either on a site or the lattice of open sets of a topology. Site presheafs are more general then topological ones, as you can make a lattice of open sets into a site by defining the family of covers to be all common output morphism systems whose inputs join into the output. Sites generally just give selected categories more of a topological character which allows us to define sheaves over them.

The two different covering conditions (1) locality and (2) gluing complete our classification. At this point, I should briefly comment on concrete categories, which are defined by faithful functors to the category of sets. Although the basic concept of a presheaf is a contravariant functor to the topoi of sets, defining sheafs and presheafs to arbitrary concrete categories is also necessary for any real application, so presheafs are not always classified as set-valued contravariant functors. The underlying presheaf can clearly be derived by composition.

Topoi theory essentially splits up into the study of elementary topoi and of Grothendieck topoi. Elementary topoi are generalizations of the topoi of sets and Grothendeick topoi are functor categories of sheaves on a site. The monomorphisms in the topoi of sheaves, are precisely the natural transformations whose component morphisms in the output category object common to both functors are all monomorphisms. A key realisation is that the input action of these mono natural transformations induces a lattice of subobjects in the category of sheaves.